/* ===== STATUS PAGE CSS ===== */

/* Variables específicas para la página de estado */
:root {
  --status-online: #28a745;
  --status-degraded: #ffc107;
  --status-offline: #dc3545;
  --status-maintenance: #6f42c1;
  --status-bg: #0b0b10;
  --status-card-bg: rgba(255, 255, 255, 0.1);
  --status-border: rgba(255, 255, 255, 0.1);
  --discord-blue: #5865f2;
  --discord-blue-dark: #4752c4;
}

/* Layout para página independiente */
.status-main {
  background: linear-gradient(135deg, #0b0b10 0%, #121219 100%);
  min-height: 100vh;
  color: white;
  padding: 2rem 0;
}

/* Header de estado */
.status-header {
  text-align: center;
  margin-bottom: 3rem;
}

.status-title {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ffffff, #e3f2fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.status-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 2rem;
}

/* Estado general */
.overall-status {
  margin-top: 2rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.status-indicator.status-online {
  background: rgba(40, 167, 69, 0.2);
  border: 2px solid var(--status-online);
  color: var(--status-online);
}

.status-indicator.status-degraded {
  background: rgba(255, 193, 7, 0.2);
  border: 2px solid var(--status-degraded);
  color: var(--status-degraded);
}

.status-indicator.status-offline {
  background: rgba(220, 53, 69, 0.2);
  border: 2px solid var(--status-offline);
  color: var(--status-offline);
}

.last-updated {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* Métricas generales */
.uptime-overview {
  margin-bottom: 4rem;
}

.metric-card {
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--status-border);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.metric-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #7c5cff, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.metric-icon i {
  font-size: 1.8rem;
  color: white;
}

.metric-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.metric-content p {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.metric-content small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Estado de servicios */
.services-status h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--status-border);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.service-info h4 {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.service-status-badge.status-online,
.service-status-badge.status-up {
  background: rgba(40, 167, 69, 0.2);
  color: var(--status-online);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.service-status-badge.status-degraded {
  background: rgba(255, 193, 7, 0.2);
  color: var(--status-degraded);
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.service-status-badge.status-offline,
.service-status-badge.status-down {
  background: rgba(220, 53, 69, 0.2);
  color: var(--status-offline);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.service-metrics {
  display: flex;
  gap: 1.5rem;
}

.metric {
  text-align: right;
}

.metric small {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

.metric strong {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.uptime-chart {
  margin: 1.5rem 0;
  height: 60px;
}

.service-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.service-footer small,
.service-footer span {
  color: #ffffff;
}

/* Gráfico de uptime histórico */
.uptime-history h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.chart-container {
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--status-border);
  height: 400px;
  position: relative;
}

.uptime-legend {
  margin-top: 2rem;
}

.legend-item {
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--status-border);
}

.legend-item h5 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legend-item small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Sección de incidentes */
.incidents-section h2 {
  color: #ffffff;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.incidents-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.incident-card {
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--status-border);
  border-left: 5px solid;
}

.incident-card.incident-critical {
  border-left-color: var(--status-offline);
}

.incident-card.incident-major {
  border-left-color: #fd7e14;
}

.incident-card.incident-minor {
  border-left-color: var(--status-degraded);
}

.incident-card.incident-maintenance {
  border-left-color: var(--status-maintenance);
}

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.incident-info h4 {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.incident-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.incident-status,
.incident-severity {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.incident-status.status-resolved {
  background: rgba(40, 167, 69, 0.2);
  color: var(--status-online);
}

.incident-status.status-investigating {
  background: rgba(255, 193, 7, 0.2);
  color: var(--status-degraded);
}

.incident-status.status-identified {
  background: rgba(220, 53, 69, 0.2);
  color: var(--status-offline);
}

.incident-severity.severity-critical {
  background: rgba(220, 53, 69, 0.2);
  color: var(--status-offline);
}

.incident-severity.severity-major {
  background: rgba(253, 126, 20, 0.2);
  color: #fd7e14;
}

.incident-severity.severity-minor {
  background: rgba(255, 193, 7, 0.2);
  color: var(--status-degraded);
}

.incident-severity.severity-maintenance {
  background: rgba(111, 66, 193, 0.2);
  color: var(--status-maintenance);
}

.incident-time {
  text-align: right;
  color: rgba(255, 255, 255, 0.6);
}

.incident-time small {
  font-size: 0.85rem;
}

.duration {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.incident-body {
  margin-top: 1rem;
}

.incident-body p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.affected-services {
  margin-top: 1rem;
}

.affected-services strong {
  color: #ffffff;
  font-size: 0.9rem;
}

.service-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  margin: 0.25rem 0.5rem 0.25rem 0;
}

.no-incidents {
  text-align: center;
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 3rem;
  border: 1px solid var(--status-border);
}

/* Sección de notificaciones */
.notifications-section {
  margin-top: 4rem;
}

.notification-card {
  background: var(--status-card-bg);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 3rem;
  border: 1px solid var(--status-border);
  text-align: center;
}

.notification-card h3 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.notification-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.notification-options {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== REDISEÑO DE SECCIÓN DE NOTIFICACIONES ===== */

/* Contenedor principal de la hub de notificaciones */
.notifications-hub {
  margin-top: 3rem;
}

.notification-modern-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 25px;
  padding: 3rem;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

/* Headers de sección */
.section-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-header .icon-wrapper {
  background: linear-gradient(45deg, #7c5cff, #a855f7);
  padding: 1rem;
  border-radius: 15px;
  color: white;
  font-size: 1.5rem;
  min-width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.section-header .webhook-icon {
  background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.section-header h3 {
  color: white;
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.section-header p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 0 0;
  font-size: 1.1rem;
}

/* Métodos de notificación */
.notification-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.method-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.12);
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s;
}

.method-card:hover::before {
  left: 100%;
}

.method-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.discord-method .method-icon {
  background: linear-gradient(45deg, #5865f2, #7289da);
  color: white;
}

.twitter-method .method-icon {
  background: linear-gradient(45deg, #1da1f2, #0d8bd9);
  color: white;
}

.rss-method .method-icon {
  background: linear-gradient(45deg, #ff6600, #ff8533);
  color: white;
}

.method-content h5 {
  color: white;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  font-size: 1.2rem;
}

.method-content p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
}

/* Botones de métodos */
.btn-discord {
  background: linear-gradient(45deg, #5865f2, #7289da);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-discord:hover {
  background: linear-gradient(45deg, #4752c4, #677bc4);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

.btn-twitter {
  background: linear-gradient(45deg, #1da1f2, #0d8bd9);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-twitter:hover {
  background: linear-gradient(45deg, #0d8bd9, #0a7bc4);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.btn-rss {
  background: linear-gradient(45deg, #ff6600, #ff8533);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-rss:hover {
  background: linear-gradient(45deg, #e55a00, #e6751a);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
}

/* Formulario de webhook moderno */
.webhook-form-modern {
  margin-top: 1rem;
}

.input-section {
  margin-bottom: 2rem;
}

.modern-label {
  display: block;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
}

.modern-input-group {
  position: relative;
  margin-bottom: 0.8rem;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  z-index: 3;
  font-size: 1.1rem;
}

.modern-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.modern-input:focus {
  outline: none;
  border-color: #4facfe;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 0.2rem rgba(79, 172, 254, 0.25);
}

.modern-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(45deg, #4facfe, #00f2fe);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 0 0 12px 12px;
}

.modern-input:focus + .input-decoration {
  transform: scaleX(1);
}

.help-text {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.help-text a {
  color: #4facfe;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.help-text a:hover {
  color: #00f2fe;
  text-decoration: underline;
}

/* Responsive para la nueva sección */
@media (max-width: 992px) {
  .notification-modern-card {
    padding: 2rem;
  }
  
  .section-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .method-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
  }
  
  .method-content h5 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .notifications-hub {
    margin-top: 2rem;
  }
  
  .notification-modern-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .method-card {
    padding: 1.5rem 1rem;
  }
  
  .modern-input {
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    font-size: 0.95rem;
  }
}

/* Mejoras adicionales para el formulario */
.webhook-form-container h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.webhook-form-container h4 i {
  background: linear-gradient(45deg, var(--discord-blue), #7289da);
  padding: 0.5rem;
  border-radius: 10px;
  margin-right: 0.75rem;
}

.webhook-form-container p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* Animaciones suaves para los form checks */
.form-check-custom {
  position: relative;
  overflow: hidden;
}

.form-check-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s;
}

.form-check-custom:hover::before {
  left: 100%;
}

/* Mejora para servicios checklist */
.services-checklist, .notification-types {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Efecto de pulso para el botón cuando está cargando */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.btn-gradient-success.loading {
  animation: pulse 1s infinite;
  pointer-events: none;
  opacity: 0.8;
}

/* Mejora para los iconos de servicios */
.form-check-custom .form-check-label i {
  width: 20px;
  text-align: center;
}

/* ===== SISTEMA DE GESTIÓN DE INCIDENTES ===== */

/* Botón flotante para gestión de incidentes */
.btn-floating-incident {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #ff6b6b, #ff8e53);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-floating-incident:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 107, 107, 0.6);
  background: linear-gradient(45deg, #ff5252, #ff7043);
}

.btn-floating-incident:active {
  transform: scale(0.95);
}

/* Modal de incidentes */
.incident-modal .modal-content {
  background: #16161f;
  border: none;
  border-radius: 20px;
  color: white;
}

.incident-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.incident-modal .modal-title {
  font-weight: 600;
  font-size: 1.5rem;
}

.incident-modal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.incident-modal .btn-close:hover {
  opacity: 1;
}

/* Pestañas del modal */
.incident-modal .nav-pills .nav-link {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
}

.incident-modal .nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.incident-modal .nav-pills .nav-link.active {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* Formulario de incidentes */
.incident-modal .form-label {
  color: white;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.incident-modal .form-control,
.incident-modal .form-select {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  transition: all 0.3s ease;
}

.incident-modal .form-control:focus,
.incident-modal .form-select:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
  color: white;
}

.incident-modal .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.incident-modal .form-select option {
  background: #444;
  color: white;
}

/* Lista de incidentes */
.incidents-list {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.incident-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
  transition: all 0.3s ease;
}

.incident-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.incident-item.severity-low {
  border-left-color: #28a745;
}

.incident-item.severity-medium {
  border-left-color: #ffc107;
}

.incident-item.severity-high {
  border-left-color: #fd7e14;
}

.incident-item.severity-critical {
  border-left-color: #dc3545;
}

.incident-header {
  display: flex;
  justify-content: between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.incident-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  flex-grow: 1;
}

.incident-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.incident-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.incident-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.incident-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.incident-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.incident-actions .btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  border-radius: 8px;
}

/* Estado de los incidentes */
.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.status-investigating {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-identified {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.status-monitoring {
  background: rgba(108, 117, 125, 0.2);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-resolved {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

/* Filtros de incidentes */
.incident-filters .form-select {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
}

/* Scrollbar personalizada para la lista de incidentes */
.incidents-list::-webkit-scrollbar {
  width: 8px;
}

.incidents-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.incidents-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.incidents-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Responsive para gestión de incidentes */
@media (max-width: 768px) {
  .btn-floating-incident {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .incident-modal .modal-dialog {
    margin: 0.5rem;
  }
  
  .incident-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .incident-meta {
    flex-direction: column;
    gap: 0.3rem;
  }
  
  .incident-actions {
    flex-direction: column;
  }
  
  .incidents-list {
    max-height: 300px;
  }
}

/* ===== MODAL DE GRÁFICAS DETALLADAS ===== */

/* Modal de servicio detallado */
.service-detail-modal .modal-dialog {
  max-width: 90%;
  width: 1000px;
}

.service-detail-modal .modal-content {
  background: #16161f;
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  color: white;
}

.service-detail-modal .modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 2rem 2rem 1rem 2rem;
}

.service-detail-modal .modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-detail-modal .service-status-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.service-detail-modal .service-status-icon.online {
  background: rgba(40, 167, 69, 0.3);
  color: #28a745;
  border: 2px solid #28a745;
}

.service-detail-modal .service-status-icon.degraded {
  background: rgba(255, 193, 7, 0.3);
  color: #ffc107;
  border: 2px solid #ffc107;
}

.service-detail-modal .service-status-icon.offline {
  background: rgba(220, 53, 69, 0.3);
  color: #dc3545;
  border: 2px solid #dc3545;
}

.service-detail-modal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}

.service-detail-modal .btn-close:hover {
  opacity: 1;
}

.service-detail-modal .modal-body {
  padding: 1rem 2rem 2rem 2rem;
}

/* Métricas del servicio */
.service-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-metric-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.service-metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.service-metric-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

.service-metric-sublabel {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* Selector de período de tiempo */
.time-period-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.time-period-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.time-period-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.time-period-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Contenedor del gráfico detallado */
.detailed-chart-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.detailed-chart-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  opacity: 0.9;
}

.detailed-chart-canvas {
  height: 300px !important;
}

/* Loading state para gráfico */
.chart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: rgba(255, 255, 255, 0.7);
}

.chart-loading .spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Información adicional del servicio */
.service-additional-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.service-info-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.service-info-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-info-content {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.5;
}

/* Historial de eventos del servicio */
.service-events-list {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.service-events-list::-webkit-scrollbar {
  width: 6px;
}

.service-events-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.service-events-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.service-event-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.service-event-item:last-child {
  border-bottom: none;
}

.service-event-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.service-event-icon.online { background: #28a745; }
.service-event-icon.degraded { background: #ffc107; }
.service-event-icon.offline { background: #dc3545; }

.service-event-content {
  flex: 1;
}

.service-event-time {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.service-event-description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Responsive design para el modal */
@media (max-width: 768px) {
  .service-detail-modal .modal-dialog {
    max-width: 95%;
    margin: 0.5rem;
  }
  
  .service-detail-modal .modal-header,
  .service-detail-modal .modal-body {
    padding: 1rem;
  }
  
  .service-metrics-row {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  
  .service-metric-card {
    padding: 1rem;
  }
  
  .service-metric-value {
    font-size: 2rem;
  }
  
  .time-period-selector {
    gap: 0.25rem;
  }
  
  .time-period-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .detailed-chart-container {
    padding: 1rem;
  }
  
  .detailed-chart-canvas {
    height: 250px !important;
  }
  
  .service-additional-info {
    grid-template-columns: 1fr;
  }
}

/* Animaciones para el modal */
.service-detail-modal.fade .modal-dialog {
  transform: scale(0.8) translateY(-50px);
  transition: all 0.3s ease;
}

.service-detail-modal.show .modal-dialog {
  transform: scale(1) translateY(0);
}

/* Cursor pointer para las gráficas clickeables */
.uptime-chart {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.uptime-chart:hover {
  transform: scale(1.02);
}

/* Tooltip para indicar que las gráficas son clickeables */
.service-card {
  position: relative;
}

.service-card::after {
  content: "👆 Haz clic para ver detalles";
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}
