﻿/* =========================================================
   HORSE SENSE ADMIN DASHBOARD
   DARK COLORWAY
========================================================= */

.dashboard-page {
    min-height: 100vh;
    padding: 150px 0 42px;
    background: radial-gradient( circle at 15% 10%, rgba(70,110,80,.08), transparent 32% ), linear-gradient( 180deg, #07110c 0%, #0a1710 45%, #0b1b13 100% );
    color: #eef3ee;
}

.dashboard-inner {
    width: min(1480px, calc(100% - 64px));
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.dashboard-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #d1ad52;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dashboard-heading h1 {
    margin: 0;
    color: #f6f2e8;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 500;
    line-height: 1;
}

.dashboard-heading p {
    max-width: 760px;
    margin: 12px 0 0;
    color: #9daca2;
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   KPI CARDS
========================================================= */

.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.dashboard-kpi {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 20px 22px;
    border: 1px solid rgba(199,161,75,.24);
    border-radius: 12px;
    background: radial-gradient( circle at 100% 0, rgba(199,161,75,.08), transparent 45% ), linear-gradient( 145deg, #0c281d, #103629 );
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

    .dashboard-kpi::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient( 90deg, #2b7050, #c4a14c );
    }

    .dashboard-kpi > span {
        display: block;
        color: #9eada3;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .dashboard-kpi > strong {
        display: block;
        margin-top: 17px;
        color: #f5f0e4;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 38px;
        font-weight: 500;
        line-height: 1;
    }

    .dashboard-kpi > small {
        display: block;
        margin-top: 8px;
        color: #7f9186;
        font-size: 11px;
    }


/* =========================================================
   MAIN GRID
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr);
    gap: 18px;
    align-items: start;
}


/* =========================================================
   PANELS
========================================================= */

.dashboard-panel {
    overflow: hidden;
    border: 1px solid rgba(199,161,75,.20);
    border-radius: 12px;
    background: linear-gradient( 145deg, rgba(255,255,255,.018), rgba(255,255,255,.006) ), #0c2319;
    box-shadow: 0 12px 28px rgba(0,0,0,.13);
}

.dashboard-panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: linear-gradient( 180deg, rgba(199,161,75,.055), transparent );
}

    .dashboard-panel-heading span {
        display: block;
        margin-bottom: 3px;
        color: #9baba1;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .1em;
        text-transform: uppercase;
    }

    .dashboard-panel-heading h2 {
        margin: 0;
        color: #f5f1e7;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 25px;
        font-weight: 500;
        line-height: 1.1;
    }

    .dashboard-panel-heading small {
        color: #7d8d83;
        font-size: 10px;
    }


/* =========================================================
   PAGE PERFORMANCE TABLE
========================================================= */

.dashboard-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

    .dashboard-table th {
        padding: 13px 16px;
        border-bottom: 1px solid rgba(255,255,255,.07);
        background: #0a1c14;
        color: #9caba2;
        font-size: 9px;
        font-weight: 900;
        letter-spacing: .07em;
        text-align: right;
        text-transform: uppercase;
        white-space: nowrap;
    }

        .dashboard-table th:first-child {
            text-align: left;
        }

    .dashboard-table td {
        padding: 14px 16px;
        border-bottom: 1px solid rgba(255,255,255,.055);
        color: #c4cec7;
        font-size: 11px;
        text-align: right;
        vertical-align: middle;
        white-space: nowrap;
    }

        .dashboard-table td:first-child {
            text-align: left;
        }

    .dashboard-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .dashboard-table tbody tr:hover {
        background: rgba(255,255,255,.025);
    }

.dashboard-page-path {
    max-width: 470px;
    white-space: normal !important;
}

    .dashboard-page-path a {
        color: #8ec89b;
        font-weight: 700;
        text-decoration: none;
        word-break: break-word;
    }

        .dashboard-page-path a:hover {
            color: #b8e3c2;
            text-decoration: underline;
        }

.dashboard-table td strong {
    color: #f3eddc;
}


/* =========================================================
   TRAFFIC SOURCES
========================================================= */

.dashboard-source-list {
    padding: 18px 20px 20px;
}

.dashboard-source-row {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

    .dashboard-source-row:first-child {
        padding-top: 2px;
    }

    .dashboard-source-row:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

.dashboard-source-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .dashboard-source-head > div:first-child {
        min-width: 0;
    }

    .dashboard-source-head strong {
        display: block;
        color: #e9eee9;
        font-size: 13px;
    }

    .dashboard-source-head span {
        display: block;
        margin-top: 3px;
        color: #809086;
        font-size: 9px;
    }

.dashboard-source-value {
    text-align: right;
}

    .dashboard-source-value strong {
        color: #f2ead8;
        font-family: Georgia, "Times New Roman", serif;
        font-size: 20px;
        font-weight: 500;
    }

    .dashboard-source-value span {
        color: #d0ad57;
        font-size: 9px;
        font-weight: 800;
    }

.dashboard-source-track {
    height: 7px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #152b20;
}

.dashboard-source-fill {
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    background: linear-gradient( 90deg, #2c7752, #c09c45 );
}


/* =========================================================
   EMPTY STATES
========================================================= */

.dashboard-empty {
    padding: 26px !important;
    color: #7f9085 !important;
    font-size: 12px !important;
    text-align: center !important;
}


/* =========================================================
   RESPONSIVE - 1180
========================================================= */

@media (max-width: 1180px) {

    .dashboard-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE - 760
========================================================= */

@media (max-width: 760px) {

    .dashboard-page {
        padding-top: 105px;
    }

    .dashboard-inner {
        width: min(100% - 32px, 1480px);
    }

    .dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-heading {
        align-items: flex-start;
    }

    .dashboard-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   RESPONSIVE - 480
========================================================= */

@media (max-width: 480px) {

    .dashboard-kpis {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi {
        min-height: 125px;
    }
}
