* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #f5f5f7;
  padding: 20px;
  color: #1d1d1f;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

header {
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 600;
}

.status-badge {
  background: #10b981;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}

.header-actions button {
  /* background: none; */
  justify-content: center;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1d1d1f;
}

.theme-toggle {
  background: #f0f0f0;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s;
}

.theme-toggle:hover {
  background: #e0e0e0;
}

.subscribe-dropdown {
  position: absolute;
  top: 100%;
  right: 60px;
  margin-top: 10px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 24px;
  width: 320px;
  z-index: 1000;
  display: none;
}

.subscribe-dropdown.active {
  display: block;
  animation: slideDown 0.3s ease;
}

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

.subscribe-dropdown h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.subscribe-dropdown p {
  font-size: 13px;
  color: #86868b;
  margin-bottom: 20px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d1d6;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-group input:focus {
  outline: none;
  border-color: #0071e3;
}

.subscribe-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  flex: 1;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary {
  background: #0071e3;
  color: white;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-primary:disabled {
  background: #d1d1d6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f0f0f0;
  color: #1d1d1f;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.success-message {
  display: none;
  text-align: center;
  padding: 20px;
}

.success-message.active {
  display: block;
}

.success-message .icon {
  font-size: 20px;
  margin-bottom: 12px;
}

.success-message h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.success-message p {
  font-size: 14px;
  color: #86868b;
}

/* Dark theme styles */
body.dark-theme {
  background-color: #1a1a1a;
  color: #e5e5e7;
}

body.dark-theme header,
body.dark-theme .uptime-section,
body.dark-theme .card {
  background: #2d2d2d;
}

body.dark-theme .header-actions button {
  color: #e5e5e7;
}

body.dark-theme .theme-toggle {
  background: #3d3d3d;
}

body.dark-theme .theme-toggle:hover {
  background: #4d4d4d;
}

body.dark-theme .subscribe-dropdown {
  background: #2d2d2d;
}

body.dark-theme .subscribe-dropdown h3,
body.dark-theme .input-group label {
  color: #e5e5e7;
}

body.dark-theme .input-group input {
  background: #3d3d3d;
  border-color: #4d4d4d;
  color: #e5e5e7;
}

body.dark-theme .btn-secondary {
  background: #3d3d3d;
  color: #e5e5e7;
}

body.dark-theme .btn-secondary:hover {
  background: #4d4d4d;
}

body.dark-theme .tab {
  color: #86868b;
}

body.dark-theme .tab.active {
  color: #e5e5e7;
}

body.dark-theme .tabs {
  border-bottom-color: #3d3d3d;
}

body.dark-theme .system-item,
body.dark-theme .maintenance-item {
  border-color: #3d3d3d;
}

body.dark-theme .system-info h3,
body.dark-theme .maintenance-title {
  color: #e5e5e7;
}

body.dark-theme .status-indicator.operational {
  background: #064e3b;
  color: #6ee7b7;
}

body.dark-theme .status-indicator.partial {
  background: #78350f;
  color: #fcd34d;
}

body.dark-theme .maintenance-badge {
  background: #3d3d3d;
  color: #e5e5e7;
}

.tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e5e5e7;
}

.tab {
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  color: #86868b;
  transition: all 0.2s;
}

.tab.active {
  color: #1d1d1f;
  border-bottom-color: #0071e3;
  font-weight: 500;
}

.uptime-section {
  background: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.uptime-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.uptime-header h2 {
  font-size: 18px;
  font-weight: 600;
}

.uptime-percentage {
  font-size: 14px;
  color: #86868b;
}

.status-grid {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.status-bar {
  flex: 1;
  height: 40px;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.status-bar:hover {
  transform: scale(1.1);
}

.status-bar.operational {
  background: #10b981;
}

.status-bar.partial {
  background: #f59e0b;
}

.status-bar.degraded {
  background: #ef4444;
}

.timeline {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #86868b;
  margin-bottom: 20px;
}

.legend {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #86868b;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.system-item {
  padding: 20px;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.system-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.system-info p {
  font-size: 13px;
  color: #86868b;
}

.status-indicator {
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator.operational {
  background: #d1fae5;
  color: #065f46;
}

.status-indicator.partial {
  background: #fef3c7;
  color: #92400e;
}

.status-indicator::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.operational::before {
  background: #10b981;
}

.status-indicator.partial::before {
  background: #f59e0b;
}

.no-incidents {
  text-align: center;
  padding: 40px;
  color: #86868b;
  font-size: 14px;
}

.maintenance-item {
  padding: 20px;
  border: 1px solid #e5e5e7;
  border-radius: 8px;
  margin-bottom: 12px;
}

.maintenance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.maintenance-badge {
  background: #f0f0f0;
  color: #1d1d1f;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.maintenance-date {
  font-size: 12px;
  color: #86868b;
}

.maintenance-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.maintenance-desc {
  font-size: 13px;
  color: #86868b;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}
.support-btn-glass {
  background: rgb(0 22 255 / 15%);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 0, 0, 0.3);
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.support-btn-glass:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border: 2px solid black;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border: 2px solid black;
}

.legend-item .operational {
  background-color: #10b981;
}
.legend-item .partial {
  background-color: #f59e0b;
}
.legend-item .degraded {
  background-color: #ef4444;
}
.logo a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.support-icon {
  display: none;
}
.uph {
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .uptime-header {
    flex-direction: column;
    align-items: baseline;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .uptime-header div:first-of-type {
    /* flex-direction: column; */
    align-items: baseline;
    gap: 10px;
  }
  .logo a {
    gap: 5px;
  }
  .support-text {
    display: none;
  }
  .support-icon {
    display: inline;
    font-size: 20px;
  }
  .support-btn-glass {
    background: none;
  }
  .header-actions {
    gap: 10px;
  }
  .maintenance-header {
    flex-direction: column;
    align-items: baseline;
    gap: 10px;
  }
  .uph {
    width: 100%;
    justify-content: space-between;
  }
  .legend {
    flex-direction: column;
    margin-top: 50px;
  }
}
