/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0a1628;
    color: #d0e4f7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── TOP BANNER ─── */
.top-banner {
    background: #003366;
    border-bottom: 3px solid #0066cc;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-logo { font-size: 24px; margin-right: 10px; }

.banner-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 1px;
}

.banner-right { color: #7fb3d3; font-size: 14px; font-family: monospace; }

.banner-time { color: #00ccff; font-weight: bold; }

/* ─── NAVIGATION ─── */
.navbar {
    background: #001a40;
    border-bottom: 1px solid #0066cc;
    padding: 0 20px;
    display: flex;
    gap: 4px;
}

.nav-link {
    color: #7fb3d3;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: #ffffff;
    background: #002855;
    border-bottom-color: #0066cc;
}

.nav-link.active {
    color: #ffffff;
    border-bottom-color: #00ccff;
    background: #002855;
}

/* ─── MAIN CONTENT ─── */
.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* ─── PAGE HEADERS ─── */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #0066cc;
}

.page-header h1 {
    font-size: 24px;
    color: #ffffff;
    font-weight: 600;
}

.page-header p {
    color: #7fb3d3;
    font-size: 14px;
    margin-top: 4px;
}

/* ─── CARDS ─── */
.card {
    background: #001a40;
    border: 1px solid #0066cc;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.card-header {
    font-size: 14px;
    font-weight: bold;
    color: #00ccff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #003366;
}

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }

/* ─── STATUS INDICATORS ─── */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #002855;
    font-size: 13px;
}

.status-row:last-child { border-bottom: none; }

.status-label { color: #aac8e8; }

.status-ok { color: #00cc66; font-weight: bold; }
.status-warn { color: #ffaa00; font-weight: bold; }
.status-err { color: #ff4444; font-weight: bold; }
.status-time { color: #7fb3d3; font-family: monospace; font-size: 12px; }

/* ─── STAT BOXES ─── */
.stat-box {
    background: #002855;
    border: 1px solid #0066cc;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #00ccff;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #7fb3d3;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ─── FORMS ─── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: #aac8e8;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input, .form-select {
    width: 100%;
    background: #002855;
    border: 1px solid #0066cc;
    border-radius: 4px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #00ccff;
    background: #003377;
}

.form-hint {
    font-size: 11px;
    color: #7fb3d3;
    margin-top: 4px;
}

/* ─── BUTTONS ─── */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-primary {
    background: #0066cc;
    color: #ffffff;
}

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

.btn-success {
    background: #006633;
    color: #ffffff;
}

.btn-success:hover { background: #008844; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ─── TABLES ─── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #002855;
    color: #00ccff;
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #0066cc;
}

.data-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #002855;
    color: #d0e4f7;
}

.data-table tr:hover td { background: #001f4d; }

/* ─── ALERTS ─── */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success { background: #003322; border: 1px solid #006633; color: #00cc66; }
.alert-error { background: #330011; border: 1px solid #660022; color: #ff4444; }
.alert-info { background: #001a40; border: 1px solid #0066cc; color: #00ccff; }

/* ─── FOOTER ─── */
.footer {
    background: #001a40;
    border-top: 1px solid #003366;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #4a7a9b;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .navbar { flex-wrap: wrap; }
    .nav-link { padding: 10px 12px; font-size: 13px; }
    .banner-title { font-size: 16px; }
}
