@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #121212;
  color: #eaeaea;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%23252525' fill-opacity='0.05'%3E%3Crect x='0' y='0' width='50' height='50'/%3E%3Crect x='50' y='50' width='50' height='50'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100px 100px;
}

/* --- HEADER --- */
.header-bar {
  width: 100%;
  padding: 2rem 1rem;
  text-align: center;
}

.main-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.status-banner {
  background-color: #1de9b6;
  color: #000;
  padding: 1rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  min-width: 260px;
  text-align: center;
  font-size: 1rem;
}

/* --- UPTIME INFO --- */
.uptime-info {
  text-align: center;
  color: #aaa;
  margin: 1rem 0;
}

.uptime-link {
  color: #e53935;
  text-decoration: none;
  font-weight: 600;
}
.uptime-link:hover {
  text-decoration: underline;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  gap: 1.5rem;
  padding: 1rem;
  max-width: 900px;
  width: 100%;
}

.service-card {
  background: #1b1b1b;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  padding: 1.2rem;
  transition: background 0.3s ease;
}
.service-card:hover {
  background: #232323;
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.service-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-operational {
  background-color: #1de9b6;
  color: #000;
}
.status-maintenance {
  background-color: #f39c12;
  color: #000;
}
.status-down {
  background-color: #e74c3c;
  color: #fff;
}

/* --- UPTIME BARS --- */
.uptime-bar-container {
  background: #2a2a2a;
  border-radius: 3px;
  height: 12px;
  display: flex;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.uptime-bar {
  background: #1de9b6;
  transition: width 0.3s ease-in-out;
  border-radius: 3px;
}

.uptime-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #ccc;
}

.uptime-percentage {
  font-weight: 600;
  color: #1de9b6;
}

/* --- FOOTER --- */
.footer {
  text-align: center;
  color: #666;
  font-size: 0.8rem;
  padding: 1rem;
  border-top: 1px solid #2c2c2c;
  margin-top: auto;
  width: 100%;
}
