/* ==========================================
   STATUS PAGE STYLES
   Extracted from inline styles in status.php
   ========================================== */

/* Status Summary Cards */
.status-summary {
  display: flex;
  justify-content: space-around;
  margin: 30px 0;
  flex-wrap: wrap;
  gap: 20px;
}

.stat-card {
  text-align: center;
  background: rgba(0, 20, 20, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  min-width: 140px;
  flex: 1;
  max-width: 180px;
}

.stat-value {
  font-size: 2.5em;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-label {
  margin-top: 10px;
  color: #aaa;
  font-size: 0.9em;
}

/* Server Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.server-card {
  background: rgba(0, 20, 20, 0.5);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease;
  text-align: left;
}

.server-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.server-card.online {
  border-left: 4px solid #00ff00;
}

.server-card.offline {
  border-left: 4px solid #ff0000;
}

/* Status Indicators */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-indicator.online {
  background: #00ff00;
  box-shadow: 0 0 10px #00ff00;
  animation: pulse-green 2s ease-in-out infinite;
}

.status-indicator.offline {
  background: #ff0000;
  box-shadow: 0 0 5px #ff0000;
}

@keyframes pulse-green {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Server Information */
.server-name {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left;
}

.server-type {
  color: #00ffff;
  font-size: 0.85em;
  margin-bottom: 8px;
  text-align: left;
}

.server-location {
  color: #ccc;
  font-size: 0.9em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
  justify-content: flex-start;
}

.flag-icon {
  width: 20px;
  height: 14px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 8px;
  flex-shrink: 0;
}

.server-status {
  margin-top: 12px;
  font-size: 0.9em;
  text-align: left;
}

.server-status.online {
  color: #00ff00;
}

.server-status.offline {
  color: #ff0000;
}

.error-detail {
  color: #999;
  font-size: 0.8em;
  margin-top: 5px;
}

/* Refresh Section */
.refresh-section {
  margin: 30px 0;
}

.refresh-btn {
  padding: 12px 30px;
  background: rgba(0, 255, 255, 0.1);
  border: 2px solid rgba(0, 255, 255, 0.3);
  color: #00ffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Orbitron', sans-serif;
  transition: all 0.3s ease;
}

.refresh-btn:hover {
  background: rgba(0, 255, 255, 0.2);
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Loading Overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
  display: none !important;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #00ff00;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #00ff00;
  margin-top: 20px;
  font-size: 18px;
  font-family: 'Orbitron', sans-serif;
}

.loading-progress {
  width: 300px;
  height: 4px;
  background: #001100;
  border-radius: 2px;
  margin-top: 15px;
  overflow: hidden;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00ff00, #00cc00);
  width: 0%;
  animation: progress 1.5s ease-out forwards;
}

@keyframes progress {
  to {
    width: 100%;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .status-summary {
    flex-direction: column;
  }

  .stat-card {
    max-width: 100%;
  }
}
