/* ============================================================================
   STATUS PAGE STYLES
   Design moderno com animações para página de status do OpereBem Group
   ============================================================================ */

/* Variables */
:root {
  --status-online: #10b981;
  --status-offline: #ef4444;
  --status-degraded: #f59e0b;
  --status-paused: #6b7280;
  --status-loading: #3b82f6;
  
  --chart-excellent: #10b981;
  --chart-good: #84cc16;
  --chart-poor: #f59e0b;
  --chart-down: #ef4444;
  --chart-grey: #374151;
  
  --skeleton-bg: rgba(255, 255, 255, 0.05);
  --skeleton-shine: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   STATUS PAGE LAYOUT
   ============================================================================ */

.status-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.status-hero {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

.status-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.status-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3rem;
}

/* ============================================================================
   OVERALL STATUS
   ============================================================================ */

.overall-status {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2.5rem;
  margin-bottom: 3rem;
  backdrop-filter: blur(10px);
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.overall-status__indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Status Pulse Animation */
.status-pulse {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--status-online);
  opacity: 0;
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.status-badge__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.status-badge--online {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--status-online);
  color: var(--status-online);
}

.status-badge--online .status-badge__dot {
  background: var(--status-online);
  box-shadow: 0 0 20px var(--status-online);
}

.status-badge--offline {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid var(--status-offline);
  color: var(--status-offline);
}

.status-badge--offline .status-badge__dot {
  background: var(--status-offline);
  box-shadow: 0 0 20px var(--status-offline);
}

.status-badge--offline ~ .status-pulse {
  background: var(--status-offline);
}

.status-badge--degraded {
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid var(--status-degraded);
  color: var(--status-degraded);
}

.status-badge--degraded .status-badge__dot {
  background: var(--status-degraded);
  box-shadow: 0 0 20px var(--status-degraded);
}

.status-badge--degraded ~ .status-pulse {
  background: var(--status-degraded);
}

.status-badge--loading {
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid var(--status-loading);
  color: var(--status-loading);
}

.status-badge--loading .status-badge__dot {
  background: var(--status-loading);
  animation: loadingPulse 1s ease-in-out infinite;
}

@keyframes loadingPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Overall Status Stats */
.overall-status__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-item__value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: countUp 0.6s ease-out;
}

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

.stat-item__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================================
   MONITORS GRID
   ============================================================================ */

.monitors-section {
  margin-bottom: 4rem;
}

.monitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 2rem;
  animation: fadeIn 1s ease-out 0.4s both;
}

/* Monitor Card */
.monitor-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out both;
  margin-bottom: 2rem;
}

.monitor-card:nth-child(1) { animation-delay: 0.1s; }
.monitor-card:nth-child(2) { animation-delay: 0.2s; }
.monitor-card:nth-child(3) { animation-delay: 0.3s; }

.monitor-card:hover {
  transform: translateY(-5px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 20px 60px rgba(167, 139, 250, 0.15);
}

.monitor-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.monitor-card__name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.monitor-card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.monitor-card__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.monitor-card__status--online {
  background: rgba(16, 185, 129, 0.15);
  color: var(--status-online);
}

.monitor-card__status--online .monitor-card__status-dot {
  background: var(--status-online);
  box-shadow: 0 0 10px var(--status-online);
}

.monitor-card__status--offline {
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-offline);
}

.monitor-card__status--offline .monitor-card__status-dot {
  background: var(--status-offline);
  box-shadow: 0 0 10px var(--status-offline);
}

.monitor-card__status--paused {
  background: rgba(107, 114, 128, 0.15);
  color: var(--status-paused);
}

.monitor-card__status--paused .monitor-card__status-dot {
  background: var(--status-paused);
}

/* Uptime Circles */
.monitor-card__uptime {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.uptime-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.uptime-circle__chart {
  position: relative;
  width: 100px;
  height: 100px;
}

.uptime-circle__svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.uptime-circle__bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}

.uptime-circle__progress {
  fill: none;
  stroke: url(#gradient-uptime);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1s ease-out;
  animation: drawCircle 1.5s ease-out forwards;
}

@keyframes drawCircle {
  from {
    stroke-dashoffset: 283;
  }
}

.uptime-circle__value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
}

.uptime-circle__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Timeline Chart */

.timeline-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-days {
  display: flex;
  gap: 3px;
  height: 40px;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0.5rem;
}

.timeline-day {
  flex: 1;
  min-width: 3px;
  background: var(--chart-grey);
  border-radius: 2px 2px 0 0;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: growBar 0.6s ease-out both;
}

.timeline-day:hover {
  transform: scaleY(1.1);
  filter: brightness(1.3);
}

.timeline-day--excellent {
  background: linear-gradient(to top, var(--chart-excellent), #34d399);
}

.timeline-day--good {
  background: linear-gradient(to top, var(--chart-good), #a3e635);
}

.timeline-day--poor {
  background: linear-gradient(to top, var(--chart-poor), #fbbf24);
}

.timeline-day--down {
  background: linear-gradient(to top, var(--chart-down), #f87171);
}

.timeline-day--grey {
  background: var(--chart-grey);
}

@keyframes growBar {
  from {
    transform: scaleY(0);
    opacity: 0;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Tooltip */
.timeline-day::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

.timeline-day:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

/* ============================================================================
   HISTORY SECTION
   ============================================================================ */

.history-section {
  margin-bottom: 3rem;
  animation: fadeIn 1.2s ease-out 0.6s both;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  padding: 2rem;
}

.history-section__title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.history-section__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-bottom: 2rem;
}

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

.chart-monitor {
  margin-bottom: 2rem;
}

.chart-monitor:last-child {
  margin-bottom: 0;
}

.chart-monitor__name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'JetBrains Mono', monospace;
}

.chart-timeline {
  display: flex;
  gap: 2px;
  height: 50px;
  align-items: flex-end;
}

/* ============================================================================
   UPDATE INFO
   ============================================================================ */

.update-info {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  animation: fadeIn 1.4s ease-out 0.8s both;
}

.update-info__text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.update-info__text span {
  color: #fff;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}

.update-info__refresh {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================================
   LOADING SKELETON
   ============================================================================ */

.monitor-card.skeleton {
  animation: none;
  pointer-events: none;
}

.skeleton-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.skeleton-title {
  width: 200px;
  height: 24px;
  background: var(--skeleton-bg);
  border-radius: 0.5rem;
  animation: shimmer 1.5s infinite;
}

.skeleton-badge {
  width: 80px;
  height: 32px;
  background: var(--skeleton-bg);
  border-radius: 2rem;
  animation: shimmer 1.5s infinite 0.2s;
}

.skeleton-content {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
}

.skeleton-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--skeleton-bg);
  animation: shimmer 1.5s infinite 0.4s;
}

.skeleton-chart {
  width: 100%;
  height: 40px;
  background: var(--skeleton-bg);
  border-radius: 0.5rem;
  margin-top: 2rem;
  animation: shimmer 1.5s infinite 0.6s;
}

@keyframes shimmer {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    opacity: 0.3;
  }
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer__powered {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__powered a {
  color: #a78bfa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__powered a:hover {
  color: #c4b5fd;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
  .status-page {
    padding-top: 6rem;
  }

  .status-hero__title {
    font-size: 2rem;
  }

  .overall-status {
    padding: 1.5rem;
  }

  .overall-status__stats {
    gap: 1rem;
  }

  .stat-item__value {
    font-size: 2rem;
  }

  .monitor-card {
    padding: 1.5rem;
  }

  .monitor-card__uptime {
    gap: 1.5rem;
  }

  .uptime-circle__chart {
    width: 100px;
    height: 100px;
  }

  .uptime-circle__value {
    font-size: 1.25rem;
  }

  .timeline-day::after {
    display: none; /* Ocultar tooltips em mobile */
  }

  .uptime-chart {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .status-hero__title {
    font-size: 1.75rem;
  }

  .status-hero__subtitle {
    font-size: 1rem;
  }

  .status-badge {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .monitor-card__uptime {
    flex-direction: column;
    gap: 2rem;
  }
}

/* ============================================================================
   NEW MONITOR CARD STYLES - Custom Uptime System
   ============================================================================ */

.monitor-card__domain {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

.monitor-card__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric {
  text-align: center;
}

.metric__value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
}

.metric__label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.monitor-card__endpoints {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.endpoints-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.endpoint-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.endpoint-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.endpoint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.endpoint-item--operational .endpoint-dot {
  background: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
}

.endpoint-item--down .endpoint-dot,
.endpoint-item--offline .endpoint-dot {
  background: var(--status-offline);
  box-shadow: 0 0 8px var(--status-offline);
}

.endpoint-item--degraded .endpoint-dot {
  background: var(--status-degraded);
  box-shadow: 0 0 8px var(--status-degraded);
}

.endpoint-name {
  flex: 1;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.endpoint-critical {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.endpoint-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
}

.monitor-card--api {
  border: 2px solid rgba(99, 102, 241, 0.3);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(167, 139, 250, 0.05));
}

/* Features Section */
.monitor-card__features {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.features-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: capitalize;
  letter-spacing: 0.025em;
  transition: all 0.2s ease;
}

.feature-badge:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}

.feature-badge--small {
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
}

/* Items Section (Sites/APIs agrupados) */
.monitor-card__items {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.items-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Service Item */
.service-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: all 0.2s ease;
}

.service-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(4px);
}

.service-item__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.service-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.service-item--operational .service-item__dot {
  background: var(--status-online);
  box-shadow: 0 0 8px var(--status-online);
}

.service-item--degraded .service-item__dot {
  background: var(--status-degraded);
  box-shadow: 0 0 8px var(--status-degraded);
}

.service-item--critical .service-item__dot,
.service-item--down .service-item__dot {
  background: var(--status-offline);
  box-shadow: 0 0 8px var(--status-offline);
}

.service-item__name {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
}

.service-item__status {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.service-item__details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
}

.service-item__detail {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.service-item__detail--features {
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.25rem;
}

.service-item__detail-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.service-item__detail-value {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

.service-item__domain {
  color: rgba(167, 139, 250, 0.8);
  font-size: 0.75rem;
}

.monitor-card__status--critical {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.monitor-card__status--critical .monitor-card__status-dot {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

/* Update Info Styles */
.update-info__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 0.5rem;
  color: #6366f1;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.refresh-button:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.refresh-button:active {
  transform: translateY(0);
}

.refresh-button svg {
  transition: transform 0.6s ease;
}

.refresh-button:hover svg {
  transform: rotate(180deg);
}

.refresh-button.refreshing svg {
  animation: spin 1s linear infinite;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .update-info__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .refresh-button {
    width: 100%;
    justify-content: center;
  }

  .monitor-card__metrics {
    gap: 1rem;
    padding: 1rem;
  }

  .metric__value {
    font-size: 1.25rem;
  }

  .metric__label {
    font-size: 0.7rem;
  }

  .endpoint-item {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .endpoint-time {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .monitor-card__metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
  }

  .metric__value {
    font-size: 1.1rem;
  }

  .metric__label {
    font-size: 0.75rem;
  }

  .endpoint-item {
    flex-wrap: wrap;
  }

  .endpoint-time {
    margin-left: auto;
  }

  .service-item {
    padding: 0.75rem;
  }

  .service-item__header {
    gap: 0.5rem;
  }

  .service-item__name {
    font-size: 0.875rem;
  }

  .service-item__details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .service-item__detail {
    width: 100%;
  }
}

/* ============================================================
   LIGHT THEME OVERRIDES
   Melhora contraste e legibilidade no tema claro
   ============================================================ */
@media (prefers-color-scheme: light) {
  .status-hero__title {
    background: none !important;
    -webkit-text-fill-color: var(--color-heading) !important;
    color: var(--color-heading) !important;
  }
  .status-hero__subtitle {
    color: var(--color-text) !important;
  }

  .overall-status {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
  }
  .stat-item__value {
    background: none !important;
    -webkit-text-fill-color: var(--color-heading) !important;
    color: var(--color-heading) !important;
  }
  .stat-item__label {
    color: var(--color-text-muted) !important;
  }

  .monitor-card {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
  }
  .monitor-card__name {
    color: var(--color-heading) !important;
  }

  .uptime-circle__bg {
    stroke: rgba(0, 0, 0, 0.08) !important;
  }
  .uptime-circle__value {
    color: var(--color-heading) !important;
  }

  .timeline-label {
    color: var(--color-text-muted) !important;
  }

  .history-section {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
  }
  .history-section__subtitle {
    color: var(--color-text-muted) !important;
  }
  .chart-monitor__name {
    color: var(--color-heading) !important;
  }

  .update-info {
    background: var(--color-surface) !important;
  }
  .update-info__text {
    color: var(--color-text-muted) !important;
  }
  .update-info__text span {
    color: var(--color-heading) !important;
  }
  .update-info__refresh {
    color: var(--color-text-muted) !important;
  }

  .monitor-card__metrics {
    background: var(--color-surface-hover) !important;
    border: 1px solid var(--color-border) !important;
  }

  .endpoint-item {
    background: var(--color-surface) !important;
  }
  .endpoint-item:hover {
    background: var(--color-surface-hover) !important;
  }
  .endpoint-name {
    color: var(--color-text) !important;
  }
  .endpoint-time {
    background: var(--color-surface-hover) !important;
    color: var(--color-text-muted) !important;
  }

  .service-item {
    background: var(--color-surface) !important;
    border: 1px solid var(--color-border) !important;
  }
  .service-item:hover {
    background: var(--color-surface-hover) !important;
    border-color: color-mix(in srgb, var(--color-border) 80%, var(--color-accent) 10%) !important;
  }
  .service-item__name {
    color: var(--color-heading) !important;
  }
  .service-item__status {
    color: var(--color-text) !important;
  }
  .service-item__detail-label {
    color: var(--color-text-muted) !important;
  }
  .service-item__detail-value {
    color: var(--color-text) !important;
  }

  .footer__powered {
    color: var(--color-text-muted) !important;
  }
  .footer__powered a {
    color: var(--color-accent) !important;
  }
}

