:root {
    --gf-ink: #17202a;
    --gf-muted: #667085;
    --gf-line: #e7ebf0;
    --gf-page: #f4f7fb;
    --gf-panel: #ffffff;
    --gf-sidebar: #101828;
    --gf-sidebar-soft: #1d2939;
    --gf-green: #12805c;
    --gf-green-soft: #e7f7ef;
    --gf-blue: #1d5fa7;
    --gf-orange: #d97706;
    --gf-red: #dc2626;
}

* {
    letter-spacing: 0;
}

body {
    background: var(--gf-page);
    color: var(--gf-ink);
}

.text-label {
    color: var(--gf-muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(16, 24, 40, .86), rgba(18, 128, 92, .72)),
        url("https://images.unsplash.com/photo-1516937941344-00b4e0337589?auto=format&fit=crop&w=1800&q=80");
    background-size: cover;
    background-position: center;
}

.auth-card {
    width: min(100%, 440px);
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(16, 24, 40, .28);
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #17a36f, #1d5fa7);
    color: #fff;
    font-weight: 800;
}

.btn-gadharu {
    --bs-btn-bg: var(--gf-green);
    --bs-btn-border-color: var(--gf-green);
    --bs-btn-hover-bg: #0f6f50;
    --bs-btn-hover-border-color: #0f6f50;
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
}

.app-shell {
    min-height: 100vh;
}

.app-sidebar {
    background: var(--gf-sidebar);
    color: #fff;
    width: 280px;
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand .brand-mark {
    width: 42px;
    height: 42px;
}

.sidebar-nav {
    padding: 18px 14px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, .74);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--gf-sidebar-soft);
    color: #fff;
}

.sidebar-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    font-size: .78rem;
    font-weight: 800;
}

.app-main {
    margin-left: 280px;
    min-height: 100vh;
}

.topbar {
    min-height: 72px;
    border-bottom: 1px solid var(--gf-line);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.mobile-sidebar {
    background: var(--gf-sidebar);
    color: #fff;
}

.metric-card {
    border: 1px solid rgba(18, 128, 92, .08);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .07);
    overflow: hidden;
}

.metric-card::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--gf-green), rgba(29, 95, 167, .75));
}

.metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--gf-green);
    background: var(--gf-green-soft);
    font-weight: 800;
}

.tank-card {
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .07);
}

.tank-gauge {
    height: 14px;
    border-radius: 999px;
    background: #edf1f6;
    overflow: hidden;
}

.tank-gauge-fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    transition: width .25s ease;
}

.fuel-normal {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.fuel-low {
    background: linear-gradient(90deg, #d97706, #f59e0b);
}

.fuel-critical {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.fuel-unknown {
    background: linear-gradient(90deg, #98a2b3, #cbd5e1);
}

.data-chip {
    border: 1px solid var(--gf-line);
    border-radius: 14px;
    padding: 12px;
    background: #fbfcfe;
}

.empty-card {
    border: 1px dashed #b9c3d0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .05);
}

.content-card {
    border: 1px solid rgba(16, 24, 40, .08);
    border-radius: 18px;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .06);
}

.settings-card {
    transition: transform .18s ease, box-shadow .18s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(16, 24, 40, .1);
}

.notification-preview {
    border: 1px solid var(--gf-line);
    border-radius: 14px;
    background: #fbfcfe;
}

.event-message-cell {
    min-width: 280px;
    max-width: 560px;
}

.event-timeline {
    display: grid;
    gap: 14px;
}

.event-timeline-item {
    border-left: 3px solid var(--gf-green);
    padding-left: 14px;
}

.tank-chart-wrap {
    height: 360px;
    min-height: 280px;
}

@media (max-width: 767.98px) {
    .tank-chart-wrap {
        height: 300px;
    }
}

@media (max-width: 991.98px) {
    .app-sidebar {
        display: none;
    }

    .app-main {
        margin-left: 0;
    }

    .topbar {
        min-height: 64px;
    }
}
