:root {
  --bg: #050406;
  --card: #0e0b0f;
  --card-border: #1a111c;
  --text: #ffffff;
  --muted: #a5a5a5;
  --accent: #ff1a1a;
  --accent-soft: #ff3d3d;
  --success: #00e676;
  --fail: #ff5252;
  --radius: 14px;
  --shadow: 0 5px 25px rgba(0,0,0,0.5);
}



/* --- Graph Dropdown (Select) --- */
.graph-controls select {
    background-color: #151315;
    color: #fff;
    border: 1px solid #2a2629;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.graph-controls select:hover {
    border-color: #cc0000;
}

.graph-controls select:focus {
    border-color: #ff3333;
    box-shadow: 0 0 5px rgba(255, 51, 51, 0.4);
}

/* Arrow styling */
.graph-controls select::-ms-expand {
    display: none;
}

.graph-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
    width: 90%;
    max-width: 1200px;
}


.graph-controls select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}



/* Buttons for 7/30/90 days */
.graph-controls button {
    background-color: #151315;
    color: #fff;
    border: 1px solid #2a2629;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.graph-controls button:hover {
    border-color: #ff3333;
    color: #ff3333;
}


.graph-controls select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}









* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  padding: 20px;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  padding: 6px;
  background: rgba(255,26,26,0.1);
}

.title {
  font-size: 1.7rem;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 3px;
}

/* Search & right corner */
.top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search {
  padding: 10px 14px;
  border-radius: 10px;
  background: #0f0c10;
  border: 1px solid #241821;
  color: var(--text);
  width: 240px;
}

.last-update {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(310px,1fr));
  gap: 20px;
}

/* CARD */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge.ok {
  background: rgba(0,230,118,0.15);
  color: var(--success);
  border: 1px solid rgba(0,230,118,0.4);
}

.badge.down {
  background: rgba(255,82,82,0.15);
  color: var(--fail);
  border: 1px solid rgba(255,82,82,0.4);
}

/* Latency Bars */
.latency-bars {
  display: flex;
  gap: 2px;
  height: 32px;
  overflow: hidden;
}

.bar {
  width: 3px;
  background: var(--success);
  border-radius: 2px;
}

.bar.fail {
  background: var(--fail);
}

/* DETAILS */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
}

.info-label {
  color: var(--muted);
}

/* FOOTER */
footer {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Responsive */
@media(max-width:780px){
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
