/* God Mode Reporting Modal Styles */

/* Base modal styling for proper centering */
.god-mode-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.god-mode-modal.show {
  display: flex !important;
}

.god-mode-modal-content {
  max-width: 1200px;
  max-height: 90vh;
  overflow-y: auto;
  width: 95%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.god-mode-body {
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  margin: 10px 0;
}

/* God Mode Tab Navigation */
.god-mode-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.god-mode-tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.god-mode-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.god-mode-tab.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tab Content */
.god-mode-tab-content {
  display: none;
}

.god-mode-tab-content.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.god-mode-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.god-mode-section h3 {
  margin: 0 0 15px 0;
  color: #2c3e50;
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 2px solid #3498db;
  padding-bottom: 8px;
}

.god-mode-section h4 {
  margin: 0 0 10px 0;
  color: #34495e;
  font-size: 1.1em;
  font-weight: 500;
}

/* Metrics Grid */
.god-mode-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.god-mode-metric {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 15px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(52, 152, 219, 0.3);
  transition: transform 0.3s ease;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.god-mode-metric:hover {
  transform: translateY(-3px);
}

.god-mode-metric .metric-value {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.god-mode-metric .metric-label {
  font-size: 0.85em;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  font-weight: 500;
}

/* Tables */
.god-mode-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 15px;
}

.god-mode-table-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  border: 1px solid #e9ecef;
}

.god-mode-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.god-mode-table th {
  background: linear-gradient(135deg, #34495e, #2c3e50);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.god-mode-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
  font-size: 0.9em;
}

.god-mode-table tbody tr:hover {
  background-color: #f8f9fa;
}

.god-mode-table tbody tr:last-child td {
  border-bottom: none;
}

/* Performance Grid */
.god-mode-performance {
  margin-top: 15px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.performance-item {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 15px 12px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 12px rgba(231, 76, 60, 0.3);
  transition: all 0.3s ease;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.performance-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 16px rgba(231, 76, 60, 0.4);
}

.performance-item .performance-value {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 4px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.performance-item .performance-label {
  font-size: 0.75em;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .god-mode-modal-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .god-mode-tables {
    grid-template-columns: 1fr;
  }
  
  .god-mode-metrics {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .performance-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  
  .god-mode-table {
    font-size: 0.8em;
  }
  
  .god-mode-table th,
  .god-mode-table td {
    padding: 8px;
  }
}

/* Loading States */
.god-mode-loading {
  text-align: center;
  padding: 20px;
  color: #7f8c8d;
  font-style: italic;
}

/* Success/Error States */
.god-mode-success {
  color: #27ae60;
  font-weight: 500;
}

.god-mode-error {
  color: #e74c3c;
  font-weight: 500;
}

/* Animation for metrics */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.god-mode-metric .metric-value,
.performance-item .performance-value {
  animation: countUp 0.8s ease-out;
}

/* God Mode specific button styling */
.god-mode-body .preferences-btn {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  border: none;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.god-mode-body .preferences-btn:hover {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.4);
}
