/*
 * Dashboard refresh
 * Separate, versioned asset to avoid stale production/CDN caches.
 */

.dashboard-page {
    --dash-blue: #4f6cf7;
    --dash-navy: #17233d;
    --dash-muted: #718096;
    --dash-line: #e5eaf2;
    --dash-surface: #ffffff;
    --dash-bg: #f4f7fb;
    padding: 0 2px 30px;
    color: var(--dash-navy);
}

.dashboard-page * {
    box-sizing: border-box;
}

.dashboard-page .dashboard-hero {
    display: flex !important;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 30px !important;
    padding: 34px 40px !important;
    overflow: hidden;
    position: relative;
    border: 0 !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 74% 5%, rgba(255, 255, 255, .18), transparent 23rem),
        linear-gradient(125deg, #182c68 0%, #425fdd 54%, #7287f5 100%) !important;
    box-shadow: 0 20px 46px rgba(41, 64, 156, .24) !important;
    color: #fff !important;
}

.dashboard-page .dashboard-hero::before,
.dashboard-page .dashboard-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.dashboard-page .dashboard-hero::before {
    width: 250px;
    height: 250px;
    right: 110px;
    top: -175px;
}

.dashboard-page .dashboard-hero::after {
    width: 330px;
    height: 330px;
    right: -120px;
    bottom: -235px;
    border-width: 55px;
    border-color: rgba(255, 255, 255, .07);
}

.dashboard-page .dashboard-hero > div:first-child {
    position: relative;
    z-index: 2;
}

.dashboard-page .hero-kicker {
    display: inline-flex !important;
    align-items: center;
    margin-bottom: 11px !important;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    color: rgba(255, 255, 255, .86) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .1em;
    line-height: 1;
    text-transform: uppercase;
}

.dashboard-page .dashboard-hero h2 {
    margin: 0 0 9px !important;
    color: #fff !important;
    font-size: clamp(28px, 2.4vw, 42px) !important;
    font-weight: 800 !important;
    letter-spacing: -.04em;
    line-height: 1.08 !important;
}

.dashboard-page .dashboard-hero p {
    margin: 0 !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 15px !important;
}

.dashboard-page .health-ring {
    display: grid !important;
    width: 118px !important;
    height: 118px !important;
    flex: 0 0 118px;
    margin: 0 36px 0 30px !important;
    position: relative;
    z-index: 2;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#72f2cb calc(var(--health) * 1%), rgba(255, 255, 255, .18) 0) !important;
    box-shadow: 0 12px 30px rgba(19, 35, 91, .2);
}

.dashboard-page .health-ring::before {
    width: 88px !important;
    height: 88px !important;
    position: absolute;
    border-radius: 50%;
    background: #405bd5 !important;
    box-shadow: inset 0 0 18px rgba(0, 0, 0, .07);
    content: "";
}

.dashboard-page .health-ring div {
    position: relative;
    z-index: 1;
    text-align: center;
}

.dashboard-page .health-ring strong,
.dashboard-page .health-ring span {
    display: block;
    color: #fff !important;
}

.dashboard-page .health-ring strong {
    font-size: 25px !important;
    font-weight: 800;
    line-height: 1;
}

.dashboard-page .health-ring span {
    margin-top: 6px;
    color: rgba(255, 255, 255, .7) !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dashboard-page .dashboard-section {
    margin: 0 0 30px !important;
    padding: 0 !important;
}

.dashboard-page .section-heading {
    display: flex !important;
    align-items: center;
    margin: 0 0 14px !important;
}

.dashboard-page .section-heading > div:last-child {
    min-width: 0;
}

.dashboard-page .section-heading h3 {
    margin: 0 0 3px !important;
    color: var(--dash-navy) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.dashboard-page .section-heading p {
    margin: 0 !important;
    color: var(--dash-muted) !important;
    font-size: 13px !important;
    line-height: 1.35;
}

.dashboard-page .section-icon {
    display: grid !important;
    width: 43px !important;
    height: 43px !important;
    flex: 0 0 43px;
    margin: 0 12px 0 0 !important;
    place-items: center;
    border-radius: 13px !important;
    font-size: 16px;
}

.dashboard-page .section-icon.ip {
    background: #e9edff !important;
    color: #4f6cf7 !important;
}

.dashboard-page .section-icon.proxy {
    background: #e4f8f1 !important;
    color: #118a6d !important;
}

.dashboard-page .section-icon.dns {
    background: #fff0e6 !important;
    color: #d56d25 !important;
}

.dashboard-page .metric-grid {
    display: flex !important;
    flex-wrap: wrap;
    margin-right: -7px !important;
    margin-left: -7px !important;
}

.dashboard-page .metric-grid > [class*="col-"] {
    padding-right: 7px !important;
    padding-left: 7px !important;
}

.dashboard-page .metric-card {
    display: flex !important;
    min-height: 110px;
    align-items: center;
    margin: 0 0 14px !important;
    padding: 18px !important;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--dash-line) !important;
    border-radius: 16px !important;
    background: var(--dash-surface) !important;
    box-shadow: 0 8px 24px rgba(27, 43, 80, .07) !important;
    color: var(--dash-navy) !important;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dashboard-page .metric-card::before {
    width: 100%;
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    background: currentColor;
    content: "";
    opacity: .8;
}

.dashboard-page .metric-card:hover {
    border-color: #d5deec !important;
    box-shadow: 0 15px 32px rgba(27, 43, 80, .13) !important;
    transform: translateY(-3px);
}

.dashboard-page .metric-icon {
    display: grid !important;
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px;
    margin: 0 13px 0 0 !important;
    place-items: center;
    border-radius: 13px !important;
    font-size: 17px;
}

.dashboard-page .metric-content {
    display: block;
    min-width: 0;
}

.dashboard-page .metric-content strong,
.dashboard-page .metric-content small {
    display: block !important;
}

.dashboard-page .metric-content strong {
    color: var(--dash-navy) !important;
    font-size: 27px !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
    line-height: 1 !important;
}

.dashboard-page .metric-content small {
    margin-top: 7px !important;
    overflow: hidden;
    color: var(--dash-muted) !important;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-page .metric-arrow {
    margin-left: auto !important;
    color: #c5cedd !important;
    font-size: 10px !important;
}

.dashboard-page .metric-primary { color: #4f6cf7 !important; }
.dashboard-page .metric-success { color: #12a078 !important; }
.dashboard-page .metric-danger { color: #e05162 !important; }
.dashboard-page .metric-dark { color: #536174 !important; }
.dashboard-page .metric-warning { color: #e29525 !important; }
.dashboard-page .metric-info { color: #1f99bd !important; }

.dashboard-page .metric-primary .metric-icon { background: #e9edff !important; color: #4f6cf7 !important; }
.dashboard-page .metric-success .metric-icon { background: #e5f8f1 !important; color: #128a6c !important; }
.dashboard-page .metric-danger .metric-icon { background: #fff0f2 !important; color: #dc4d5d !important; }
.dashboard-page .metric-dark .metric-icon { background: #edf0f4 !important; color: #536174 !important; }
.dashboard-page .metric-warning .metric-icon { background: #fff4df !important; color: #d88a18 !important; }
.dashboard-page .metric-info .metric-icon { background: #e7f6fb !important; color: #198fb2 !important; }

.dashboard-page .inventory-grid {
    display: flex !important;
    flex-wrap: wrap;
    margin-top: 5px !important;
}

.dashboard-page .inventory-grid > [class*="col-"] {
    margin-bottom: 20px;
}

.dashboard-page .inventory-card {
    height: 100% !important;
    overflow: hidden;
    border: 1px solid var(--dash-line) !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgba(27, 43, 80, .08) !important;
}

.dashboard-page .inventory-card .card-header {
    display: flex !important;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px !important;
    border-bottom: 1px solid var(--dash-line) !important;
    background: linear-gradient(180deg, #fff, #fbfcfe) !important;
}

.dashboard-page .inventory-card .card-header > div {
    min-width: 0;
}

.dashboard-page .inventory-card .card-title {
    float: none !important;
    margin: 0 0 3px !important;
    color: var(--dash-navy) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
}

.dashboard-page .inventory-card .card-header p {
    margin: 0 !important;
    color: var(--dash-muted) !important;
    font-size: 12px !important;
}

.dashboard-page .inventory-card .card-header .btn {
    flex: 0 0 auto;
    margin-left: 14px;
    padding: 7px 12px;
    border-radius: 9px;
    font-weight: 700;
}

.dashboard-page .inventory-card .card-body {
    padding: 10px 22px 20px !important;
}

.dashboard-page .server-inventory-item {
    border-bottom: 1px solid #e9edf3 !important;
}

.dashboard-page .server-inventory-item:last-child {
    border-bottom: 0 !important;
}

.dashboard-page .server-inventory-item summary {
    display: flex !important;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
    cursor: pointer;
    list-style: none;
}

.dashboard-page .server-inventory-item summary::-webkit-details-marker {
    display: none;
}

.dashboard-page .inventory-server-name {
    display: inline-flex;
    align-items: center;
    color: #34415a !important;
    font-size: 14px;
    font-weight: 800 !important;
}

.dashboard-page .inventory-server-name i {
    display: grid;
    width: 31px;
    height: 31px;
    margin-right: 10px;
    place-items: center;
    border-radius: 9px;
    background: #edf1ff;
    color: #4f6cf7 !important;
}

.dashboard-page .inventory-total {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #e9f8f3;
    color: #14836a !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

.dashboard-page .inventory-total.has-alert {
    background: #fff3e5;
    color: #c87422 !important;
}

.dashboard-page .inventory-total i {
    margin-left: 7px;
    font-size: 9px;
    transition: transform .2s ease;
}

.dashboard-page details[open] .inventory-total i {
    transform: rotate(180deg);
}

.dashboard-page .balance-list {
    margin: 0 0 14px 42px !important;
    padding: 6px 14px !important;
    border: 1px solid #e9eef5;
    border-radius: 12px !important;
    background: #f7f9fc !important;
}

.dashboard-page .balance-row {
    display: flex !important;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8edf4;
}

.dashboard-page .balance-row:last-child {
    border-bottom: 0;
}

.dashboard-page .balance-row strong,
.dashboard-page .balance-row small {
    display: block !important;
}

.dashboard-page .balance-row strong {
    color: #34415a !important;
    font-size: 13px !important;
    font-weight: 750;
}

.dashboard-page .balance-row small {
    margin-top: 2px;
    color: #8a95a7 !important;
    font-size: 11px !important;
}

.dashboard-page .availability-badge {
    padding: 5px 9px !important;
    border-radius: 999px;
    font-size: 10px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.dashboard-page .availability-badge.available {
    background: #e5f7f1 !important;
    color: #168468 !important;
}

.dashboard-page .availability-badge.empty {
    background: #fff0e7 !important;
    color: #c76825 !important;
}

.dashboard-page .proxy-pool-row {
    display: flex !important;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e9edf3;
}

.dashboard-page .proxy-pool-row:last-child {
    border-bottom: 0;
}

.dashboard-page .proxy-pool-row span {
    display: inline-flex;
    align-items: center;
    color: #43506a !important;
    font-size: 13px;
    font-weight: 750 !important;
}

.dashboard-page .proxy-pool-row i {
    display: grid;
    width: 30px;
    height: 30px;
    margin-right: 9px;
    place-items: center;
    border-radius: 9px;
    background: #f0f3f7;
    color: #697990 !important;
}

.dashboard-page .proxy-pool-row strong {
    display: grid !important;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px !important;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-page .proxy-pool-row strong.available {
    background: #e5f7f1 !important;
    color: #168468 !important;
}

.dashboard-page .proxy-pool-row strong.empty {
    background: #fff0e7 !important;
    color: #c76825 !important;
}

@media (max-width: 991.98px) {
    .dashboard-page .dashboard-hero {
        min-height: 170px;
        padding: 28px 30px !important;
    }

    .dashboard-page .health-ring {
        width: 98px !important;
        height: 98px !important;
        flex-basis: 98px;
        margin-right: 10px !important;
    }

    .dashboard-page .health-ring::before {
        width: 73px !important;
        height: 73px !important;
    }
}

@media (max-width: 767.98px) {
    .dashboard-page .dashboard-hero {
        margin-bottom: 24px !important;
        padding: 25px !important;
        border-radius: 17px !important;
    }

    .dashboard-page .dashboard-hero h2 {
        font-size: 28px !important;
    }

    .dashboard-page .health-ring {
        display: none !important;
    }

    .dashboard-page .metric-card {
        min-height: 96px;
    }

    .dashboard-page .inventory-card .card-header {
        padding: 16px !important;
    }

    .dashboard-page .inventory-card .card-body {
        padding: 8px 16px 16px !important;
    }

    .dashboard-page .balance-list {
        margin-left: 0 !important;
    }
}

@media (max-width: 420px) {
    .dashboard-page .dashboard-hero {
        min-height: 150px;
        padding: 21px !important;
    }

    .dashboard-page .dashboard-hero p {
        font-size: 13px !important;
    }

    .dashboard-page .inventory-card .card-header {
        align-items: flex-start;
        gap: 10px;
    }

    .dashboard-page .balance-row {
        align-items: flex-start;
        padding: 11px 0;
        gap: 8px;
    }
}
