:root {
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.9);
  --metallic-gradient: linear-gradient(
    135deg,
    #f5f9ff 0%,
    #e6f0ff 50%,
    #d4e4ff 100%
  );
  --red: #e74c3c;
  --orange: #f39c12;
  --green: #27ae60;
  --blue: #3498db;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  background-image: var(--metallic-gradient);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 2px 10px rgba(255, 255, 255, 0.5);
  padding: 2rem;
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.search-input {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  flex: 1;
}

.btn-check {
  background: var(--blue);
  border: none;
  border-radius: 16px;
  padding: 0 2rem;
  font-weight: 600;
  white-space: nowrap;
}

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

.counter {
  text-align: center;
  min-width: 100px;
}

.counter-num {
  font-size: 2.5rem;
  font-weight: 700;
}

.counter-label {
  font-size: 0.95rem;
  color: #666;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-down {
  background: var(--red);
}
.status-instavel {
  background: var(--orange);
}
.status-normal {
  background: var(--green);
}

.incident-card {
  background: rgba(231, 76, 60, 0.08);
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: transform 0.2s;
}

.incident-card:hover {
  transform: translateX(8px);
}

.incident-card.orange {
  background: rgba(243, 156, 18, 0.08);
  border-left-color: var(--orange);
}

.now-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.now-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

@media (max-width: 992px) {
  .layout-row {
    flex-direction: column;
  }
  .now-card {
    position: static;
    margin-top: 2rem;
  }
}
