:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --border: #e2e8f0;
    --accent: #4f6ef7;
    --accent-light: #eef2ff;
    --text: #1e293b;
    --dim: #64748b;
    --green: #22c55e;
    --red: #ef4444;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--text); font-family: -apple-system, 'Segoe UI', sans-serif; font-size: 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.navbar {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 24px; border-bottom: 1px solid var(--border);
    background: var(--surface); position: sticky; top: 0; z-index: 10;
    box-shadow: var(--shadow);
}
.brand { font-size: 17px; font-weight: 700; color: var(--accent); }
.nav-links { margin-left: auto; display: flex; gap: 18px; }
.nav-links a { color: var(--dim); font-size: 13px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.container { max-width: 920px; margin: 28px auto; padding: 0 16px; }
h1 { margin-bottom: 20px; font-size: 24px; font-weight: 700; color: var(--text); }
h2 { margin-bottom: 16px; font-size: 18px; }
h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: 0.5px; }

.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px; margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.auth-card { max-width: 400px; margin: 100px auto; padding: 32px; }
.cards-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 160px; text-align: center; padding: 24px 16px; }
.stat-label { font-size: 12px; color: var(--dim); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 30px; font-weight: 800; color: var(--text); }
.stat-sub { font-size: 12px; color: var(--dim); margin-top: 6px; }
.status-running { color: var(--green); }
.status-error { color: var(--red); }
.status-provisioning { color: var(--accent); }

input, select {
    background: var(--bg); border: 1px solid var(--border); color: var(--text);
    padding: 10px 14px; border-radius: 8px; font-size: 14px; width: 100%; margin-bottom: 12px;
    transition: border-color 0.2s;
}
select option { background: var(--surface); color: var(--text); }
#containerSelect { width: auto; min-width: 250px; }
input:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-light); }
button {
    background: var(--accent); color: #fff; border: none;
    padding: 10px 22px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600;
    transition: background 0.2s;
}
button:hover { background: #3b5de7; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #dc2626; }

.chart-controls { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.chart-controls select, .chart-controls input { width: auto; margin-bottom: 0; }

.msg { margin-top: 12px; color: var(--accent); font-size: 13px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
th { color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: var(--accent-light); }
