/* ============================================================
   AVENTIS IT MONITORING
   NOC UI v3.0
   ============================================================ */

:root {
    --av-bg: #07111f;
    --av-bg-2: #0b1728;
    --av-panel: #101e30;
    --av-panel-2: #13243a;
    --av-border: rgba(255,255,255,.08);

    --av-text: #f4f7fb;
    --av-muted: #8fa2b8;

    --av-blue: #3b82f6;
    --av-green: #22c55e;
    --av-red: #ef4444;
    --av-yellow: #f59e0b;
    --av-cyan: #06b6d4;

    --av-radius: 12px;
}

/* ============================================================
   GLOBAL
   ============================================================ */

html.aventis-noc {
    background: var(--av-bg) !important;
}

html.aventis-noc body {
    background:
        radial-gradient(
            circle at top right,
            rgba(37,99,235,.10),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #07111f 0%,
            #081421 100%
        ) !important;

    color: var(--av-text);
}

/* ============================================================
   DASHBOARD
   ============================================================ */

body.aventis-dashboard {
    background:
        radial-gradient(
            circle at 85% 5%,
            rgba(59,130,246,.10),
            transparent 25%
        ),
        #07111f !important;
}

/* Remove excessive default dashboard whitespace */

body.aventis-dashboard main {
    max-width: 1700px !important;
    margin: 0 auto !important;
}

/* ============================================================
   HEADER
   ============================================================ */

.aventis-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 76px;
    margin: 0 0 20px;

    padding: 14px 20px;

    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);

    background:
        linear-gradient(
            135deg,
            rgba(19,36,58,.96),
            rgba(10,24,40,.96)
        );

    box-shadow:
        0 12px 40px rgba(0,0,0,.25);
}

.aventis-dashboard-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.aventis-logo,
.aventis-status-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #06b6d4
        );

    color: white;

    font-size: 22px;
    font-weight: 800;

    box-shadow:
        0 8px 25px rgba(37,99,235,.35);
}

.aventis-main-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .8px;
}

.aventis-sub-title {
    margin-top: 3px;

    color: var(--av-muted);

    font-size: 12px;
}

/* ============================================================
   DASHBOARD KPI
   ============================================================ */

.aventis-dashboard-kpi {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 20px;
}

.aventis-kpi-card {
    position: relative;

    min-height: 105px;

    padding: 18px 20px;

    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);

    background:
        linear-gradient(
            145deg,
            rgba(18,35,56,.98),
            rgba(10,23,38,.98)
        );

    overflow: hidden;

    transition:
        transform .2s ease,
        border-color .2s ease;
}

.aventis-kpi-card:hover {
    transform: translateY(-2px);

    border-color:
        rgba(59,130,246,.35);
}

.aventis-kpi-card::after {
    content: "";

    position: absolute;

    right: -30px;
    bottom: -45px;

    width: 120px;
    height: 120px;

    border-radius: 50%;

    background: rgba(59,130,246,.06);
}

.aventis-kpi-label {
    position: relative;

    z-index: 2;

    color: var(--av-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.aventis-kpi-value {
    position: relative;

    z-index: 2;

    margin-top: 8px;

    font-size: 34px;
    line-height: 1;

    font-weight: 800;
}

.aventis-kpi-total .aventis-kpi-value {
    color: var(--av-blue);
}

.aventis-kpi-online .aventis-kpi-value {
    color: var(--av-green);
}

.aventis-kpi-offline .aventis-kpi-value {
    color: var(--av-red);
}

.aventis-kpi-maintenance .aventis-kpi-value {
    color: var(--av-yellow);
}

/* ============================================================
   UPTIME KUMA DASHBOARD PANELS
   ============================================================ */

body.aventis-dashboard .card,
body.aventis-dashboard .shadow-box,
body.aventis-dashboard .monitor-list {
    border-color: var(--av-border) !important;
}

body.aventis-dashboard .card {
    background:
        rgba(15,30,48,.92) !important;
}

body.aventis-dashboard input,
body.aventis-dashboard select,
body.aventis-dashboard textarea {
    background: #0b192a !important;
    border-color: var(--av-border) !important;

    color: var(--av-text) !important;
}

/* ============================================================
   STATUS PAGE
   ============================================================ */

body.aventis-status-page {
    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(37,99,235,.13),
            transparent 35%
        ),
        #07111f !important;
}

/*
 * Keep Uptime Kuma's status-page content centered,
 * but make it significantly wider for NOC display.
 */

body.aventis-status-page main,
body.aventis-status-page .container {
    max-width: 1500px !important;
}

/* ============================================================
   STATUS HEADER
   ============================================================ */

.aventis-status-header {
    display: flex;
    align-items: center;

    gap: 14px;

    margin-bottom: 22px;

    padding: 18px 22px;

    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);

    background:
        linear-gradient(
            135deg,
            rgba(17,35,57,.97),
            rgba(8,22,37,.97)
        );

    box-shadow:
        0 14px 45px rgba(0,0,0,.28);
}

.aventis-status-title {
    color: white;

    font-size: 21px;
    font-weight: 800;

    letter-spacing: 1px;
}

.aventis-status-subtitle {
    margin-top: 4px;

    color: var(--av-muted);

    font-size: 12px;
}

/* ============================================================
   STATUS KPI
   ============================================================ */

.aventis-status-kpi {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;

    margin-bottom: 22px;
}

.aventis-status-card {
    position: relative;

    padding: 17px 20px;

    min-height: 95px;

    border: 1px solid var(--av-border);
    border-radius: var(--av-radius);

    background:
        linear-gradient(
            145deg,
            rgba(18,35,56,.98),
            rgba(10,23,38,.98)
        );

    overflow: hidden;
}

.aventis-status-card::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: var(--av-blue);
}

.aventis-status-online::before {
    background: var(--av-green);
}

.aventis-status-offline::before {
    background: var(--av-red);
}

.aventis-status-maintenance::before {
    background: var(--av-yellow);
}

.aventis-status-card-label {
    color: var(--av-muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;
}

.aventis-status-card-value {
    margin-top: 7px;

    font-size: 30px;
    font-weight: 800;
}

.aventis-status-online
.aventis-status-card-value {
    color: var(--av-green);
}

.aventis-status-offline
.aventis-status-card-value {
    color: var(--av-red);
}

.aventis-status-maintenance
.aventis-status-card-value {
    color: var(--av-yellow);
}

/* ============================================================
   STATUS GROUPS
   ============================================================ */

body.aventis-status-page .group {
    margin-bottom: 22px !important;

    padding: 18px !important;

    border:
        1px solid var(--av-border) !important;

    border-radius:
        var(--av-radius) !important;

    background:
        rgba(12,27,44,.85) !important;

    box-shadow:
        0 10px 30px rgba(0,0,0,.18);
}

/* ============================================================
   STATUS MONITOR ITEMS
   ============================================================ */

body.aventis-status-page .item {
    border-color:
        rgba(255,255,255,.055) !important;

    background:
        rgba(17,35,56,.75) !important;

    border-radius:
        9px !important;

    transition:
        background .2s ease,
        transform .2s ease;
}

body.aventis-status-page .item:hover {
    background:
        rgba(24,47,73,.95) !important;

    transform:
        translateX(2px);
}

body.aventis-status-page .item-name {
    color:
        var(--av-text) !important;

    font-weight:
        600 !important;
}

/* ============================================================
   STATUS BADGES
   ============================================================ */

body.aventis-status-page .badge {
    border-radius: 999px !important;

    font-size: 10px !important;

    padding:
        4px 9px !important;
}

/* ============================================================
   SUCCESS
   ============================================================ */

body.aventis-status-page .bg-success {
    background:
        rgba(34,197,94,.14) !important;

    color:
        #4ade80 !important;

    border:
        1px solid rgba(34,197,94,.20);
}

/* ============================================================
   ERROR
   ============================================================ */

body.aventis-status-page .bg-danger {
    background:
        rgba(239,68,68,.14) !important;

    color:
        #f87171 !important;

    border:
        1px solid rgba(239,68,68,.20);
}

/* ============================================================
   WARNING
   ============================================================ */

body.aventis-status-page .bg-warning {
    background:
        rgba(245,158,11,.14) !important;

    color:
        #fbbf24 !important;

    border:
        1px solid rgba(245,158,11,.20);
}

/* ============================================================
   INFO
   ============================================================ */

body.aventis-status-page .bg-info {
    background:
        rgba(6,182,212,.14) !important;

    color:
        #22d3ee !important;

    border:
        1px solid rgba(6,182,212,.20);
}

/* ============================================================
   STATUS ALERT
   ============================================================ */

body.aventis-status-page .alert {
    border-radius:
        var(--av-radius) !important;

    border:
        1px solid rgba(34,197,94,.20) !important;

    background:
        rgba(34,197,94,.08) !important;

    color:
        #86efac !important;
}

/* ============================================================
   FOOTER
   ============================================================ */

body.aventis-status-page footer {
    opacity: .65;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {

    .aventis-dashboard-kpi,
    .aventis-status-kpi {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 700px) {

    .aventis-dashboard-kpi,
    .aventis-status-kpi {
        grid-template-columns:
            1fr;
    }

    .aventis-dashboard-header,
    .aventis-status-header {
        padding: 14px;
    }

    .aventis-main-title,
    .aventis-status-title {
        font-size: 16px;
    }

    .aventis-kpi-value,
    .aventis-status-card-value {
        font-size: 27px;
    }

}

/* ============================================================
   NOC LARGE SCREEN
   ============================================================ */

@media (min-width: 1600px) {

    body.aventis-dashboard main,
    body.aventis-status-page main {
        max-width: 1650px !important;
    }

    .aventis-kpi-value {
        font-size: 38px;
    }

    .aventis-status-card-value {
        font-size: 34px;
    }
}