/* =========================================================
   BASIGARO USER DASHBOARD
   ========================================================= */

:root {
    --dashboard-primary: #0757c9;
    --dashboard-primary-dark: #003b8f;
    --dashboard-sidebar: #03265c;

    --dashboard-text: #17213d;
    --dashboard-muted: #7b8499;

    --dashboard-border: #e7ebf3;
    --dashboard-bg: #f6f8fc;

    --dashboard-white: #ffffff;

    --dashboard-blue: #1667e8;
    --dashboard-green: #15936c;
    --dashboard-orange: #f39a16;
    --dashboard-purple: #7550df;
    --dashboard-cyan: #159fb8;
}


/* =========================================================
   BASE
   ========================================================= */

.dashboard-wrapper {
    min-height: 100vh;
    display: flex;

    background: var(--dashboard-bg);

    color: var(--dashboard-text);
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.dashboard-sidebar {
    width: 230px;
    min-width: 230px;

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #042d67 0%,
            #021f4e 100%
        );

    color: #ffffff;

    display: flex;
    flex-direction: column;

    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;

    z-index: 1000;

    overflow-y: auto;
}


/* BRAND */

.sidebar-brand {
    padding: 25px 15px 20px;

    text-align: center;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.brand-logo {
    width: 75px;
    height: 75px;

    margin: 0 auto 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}


.brand-name {
    font-size: 21px;
    font-weight: 800;

    color: #f5c84b;

    letter-spacing: 0.5px;
}


.brand-subtitle {
    font-size: 10px;

    line-height: 1.5;

    color:
        rgba(255, 255, 255, 0.8);
}


/* =========================================================
   MENU
   ========================================================= */

.sidebar-menu {
    padding: 18px 10px;
    flex: 1;
}


.menu-section-title {
    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.8px;

    color:
        rgba(255, 255, 255, 0.45);

    margin:

        18px 10px 8px;
}


.sidebar-menu-item {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 12px;

    padding:
        10px 13px;

    margin-bottom: 3px;

    border-radius: 8px;

    color:
        rgba(255, 255, 255, 0.85);

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.sidebar-menu-item i:first-child {
    width: 20px;

    text-align: center;

    font-size: 15px;
}


.sidebar-menu-item:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.09);

    text-decoration: none;
}


.sidebar-menu-item.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            #075dcc,
            #06499d
        );

    box-shadow:
        0 5px 14px
        rgba(0, 0, 0, 0.15);
}


.menu-arrow {
    width: auto !important;

    margin-left: auto;

    font-size: 10px !important;
}


/* =========================================================
   SIDEBAR USER
   ========================================================= */

.sidebar-user {
    margin: 10px;

    padding: 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 12px;

    background:
        rgba(255, 255, 255, 0.06);

    display: flex;

    gap: 10px;
}


.sidebar-user-avatar {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.16);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
}


.sidebar-user-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.sidebar-user-info strong {
    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.sidebar-user-info span {
    font-size: 10px;

    color:
        rgba(255, 255, 255, 0.65);
}


.sidebar-user-info small {
    margin-top: 4px;

    font-size: 9px;

    color:
        rgba(255, 255, 255, 0.6);
}


.sidebar-user-info small i {
    font-size: 7px;

    color: #39d98a;
}


/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */

.sidebar-footer {
    padding:
        12px 15px 18px;

    text-align: center;

    font-size: 9px;

    line-height: 1.6;

    color:
        rgba(255, 255, 255, 0.5);
}


/* =========================================================
   MAIN
   ========================================================= */

.dashboard-main {
    width: calc(100% - 230px);

    margin-left: 230px;

    min-height: 100vh;
}


/* =========================================================
   HEADER
   ========================================================= */

/* .dashboard-header {
    height: 82px;

    padding:
        0 30px;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid
        var(--dashboard-border);

    display: flex;

    align-items: center;

    justify-content: space-between;
} */

.dashboard-header {
    height: 82px;

    padding: 0 30px;

    background: rgba(255, 255, 255, 0.98);

    border-bottom: 1px solid var(--dashboard-border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    /* FIXED HEADER */
    position: fixed;
    top: 0;
    right: 0;
    left: 230px;

    z-index: 900;

    box-sizing: border-box;
}


.header-left {
    display: flex;

    align-items: center;

    gap: 18px;
}


.sidebar-toggle {
    border: 0;

    background: transparent;

    color:
        var(--dashboard-text);

    font-size: 20px;

    cursor: pointer;

    padding: 5px;
}


.header-left h1 {
    margin: 0;

    font-size: 21px;

    font-weight: 700;
}


.header-left p {
    margin:
        3px 0 0;

    font-size: 12px;

    color:
        var(--dashboard-muted);
}


.header-right {
    display: flex;

    align-items: center;

    gap: 25px;
}


.header-notification {
    position: relative;

    font-size: 20px;

    color:
        var(--dashboard-text);
}


.notification-badge {
    position: absolute;

    top: -8px;
    right: -9px;

    min-width: 16px;
    height: 16px;

    padding: 0 4px;

    border-radius: 10px;

    background: #e83345;

    color: #ffffff;

    font-size: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.header-user {
    display: flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;
}


.header-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background:
        #e8edf6;

    color:
        #365072;

    display: flex;
    align-items: center;
    justify-content: center;
}


.header-user div:nth-child(2) {
    display: flex;

    flex-direction: column;
}


.header-user strong {
    font-size: 12px;
}


.header-user span {
    font-size: 10px;

    color:
        var(--dashboard-muted);
}


.header-user > i {
    margin-left: 4px;

    font-size: 10px;
}


/* =========================================================
   CONTENT
   ========================================================= */

.dashboard-content {
    padding: 25px 30px 35px;
}


/* =========================================================
   WELCOME
   ========================================================= */

.dashboard-welcome {
    margin-bottom: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.dashboard-welcome h2 {
    margin: 0 0 4px;

    font-size: 21px;

    font-weight: 700;
}


.dashboard-welcome p {
    margin: 0;

    color:
        var(--dashboard-muted);

    font-size: 12px;
}


.btn-primary-dashboard {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding:
        10px 16px;

    border-radius: 7px;

    background:
        var(--dashboard-primary);

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    border: 0;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.btn-primary-dashboard:hover {
    color: #ffffff;

    text-decoration: none;

    background:
        var(--dashboard-primary-dark);

    transform:
        translateY(-1px);
}


/* =========================================================
   STAT GRID
   ========================================================= */

.stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 17px;

    margin-bottom: 20px;
}


.stat-card {
    min-height: 122px;

    padding: 20px;

    background:
        var(--dashboard-white);

    border:
        1px solid
        var(--dashboard-border);

    border-radius: 11px;

    box-shadow:
        0 2px 8px
        rgba(31, 45, 61, 0.03);

    display: flex;

    align-items: center;

    gap: 15px;
}


.stat-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}


.stat-icon.blue {
    color: #1264db;

    background:
        #eaf2ff;
}


.stat-icon.orange {
    color: #ed9012;

    background:
        #fff2df;
}


.stat-icon.purple {
    color: #7041d9;

    background:
        #f0eaff;
}


.stat-icon.green {
    color: #13936a;

    background:
        #e4f7ef;
}


.stat-content {
    min-width: 0;

    display: flex;

    flex-direction: column;
}


.stat-content span {
    font-size: 11px;

    color:
        var(--dashboard-muted);
}


.stat-content strong {
    margin-top: 3px;

    font-size: 25px;

    line-height: 1.2;
}


.stat-content small {
    margin-top: 4px;

    font-size: 9px;

    color:
        var(--dashboard-muted);
}


/* =========================================================
   DASHBOARD GRID
   ========================================================= */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        1.55fr 1fr;

    gap: 17px;

    margin-bottom: 20px;
}


.dashboard-bottom-grid {
    display: grid;

    grid-template-columns:
        1.55fr 1fr;

    gap: 17px;
}


/* =========================================================
   CARD
   ========================================================= */

.dashboard-card {
    background:
        var(--dashboard-white);

    border:
        1px solid
        var(--dashboard-border);

    border-radius: 11px;

    box-shadow:
        0 2px 8px
        rgba(31, 45, 61, 0.03);

    overflow: hidden;
}


.card-header-dashboard {
    padding:
        20px 20px 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.card-header-dashboard h3 {
    margin: 0;

    font-size: 15px;

    font-weight: 700;
}


.card-header-dashboard p {
    margin:
        4px 0 0;

    font-size: 10px;

    color:
        var(--dashboard-muted);
}


.view-all-link {
    font-size: 10px;

    color:
        var(--dashboard-primary);

    font-weight: 600;

    text-decoration: none;
}


/* =========================================================
   STATUS FLOW
   ========================================================= */

.status-card {
    min-height: 280px;
}


.status-flow {
    padding:
        20px 25px 25px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.status-step {
    width: 75px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;
}


.status-circle {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 7px;

    font-size: 16px;
}


.status-circle.blue {
    color: #1264db;
    background: #eaf2ff;
}


.status-circle.orange {
    color: #ed9012;
    background: #fff2df;
}


.status-circle.purple {
    color: #7041d9;
    background: #f0eaff;
}


.status-circle.cyan {
    color: #159fb8;
    background: #e2f6fa;
}


.status-circle.green {
    color: #13936a;
    background: #e4f7ef;
}


.status-step strong {
    font-size: 9px;

    line-height: 1.3;
}


.status-step span {
    margin-top: 3px;

    font-size: 11px;

    font-weight: 700;

    color:
        var(--dashboard-text);
}


.status-line {
    flex: 1;

    max-width: 55px;

    height: 2px;

    background:
        #dce3ef;

    margin:
        0 4px 25px;
}


/* =========================================================
   STATUS INFORMATION
   ========================================================= */

.status-information {
    margin:
        0 20px 20px;

    padding: 15px;

    border-radius: 8px;

    background:
        #f5f8fd;

    display: flex;

    gap: 12px;
}


.information-icon {
    color:
        var(--dashboard-primary);

    font-size: 18px;
}


.status-information strong {
    font-size: 11px;
}


.status-information p {
    margin:
        4px 0 0;

    font-size: 10px;

    line-height: 1.6;

    color:
        var(--dashboard-muted);
}


/* =========================================================
   QUICK ACCESS
   ========================================================= */

.quick-access-grid {
    padding:
        10px 20px 25px;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 10px;
}


.quick-access-item {
    min-height: 105px;

    padding: 15px 10px;

    border:
        1px solid
        var(--dashboard-border);

    border-radius: 8px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 9px;

    text-align: center;

    text-decoration: none;

    color:
        var(--dashboard-text);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.quick-access-item:hover {
    color:
        var(--dashboard-text);

    text-decoration: none;

    transform:
        translateY(-2px);

    box-shadow:
        0 5px 15px
        rgba(0, 0, 0, 0.06);
}


.quick-icon {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
}


.quick-icon.green {
    color: #15936c;
    background: #e4f7ef;
}


.quick-icon.blue {
    color: #1667e8;
    background: #eaf2ff;
}


.quick-icon.orange {
    color: #ed9012;
    background: #fff2df;
}


.quick-icon.purple {
    color: #7041d9;
    background: #f0eaff;
}


.quick-access-item span {
    font-size: 10px;

    font-weight: 600;
}


/* =========================================================
   TABLE
   ========================================================= */

.table-wrapper {
    overflow-x: auto;
}


.dashboard-table {
    width: 100%;

    border-collapse: collapse;
}


.dashboard-table th {
    padding:
        12px 15px;

    background:
        #f8faff;

    border-top:
        1px solid
        var(--dashboard-border);

    border-bottom:
        1px solid
        var(--dashboard-border);

    color:
        #69748a;

    font-size: 9px;

    font-weight: 600;

    text-align: left;

    white-space: nowrap;
}


.dashboard-table td {
    padding:
        13px 15px;

    border-bottom:
        1px solid
        #f0f2f6;

    font-size: 10px;

    color:
        #45516a;

    vertical-align: middle;

    white-space: nowrap;
}


.dashboard-table tbody tr:hover {
    background:
        #fafcff;
}


.dashboard-table td strong {
    color:
        var(--dashboard-text);
}


/* =========================================================
   STATUS BADGES
   ========================================================= */

.status-badge {
    display: inline-flex;

    align-items: center;

    padding:
        4px 9px;

    border-radius: 20px;

    font-size: 8px;

    font-weight: 600;
}


.status-warning {
    color: #b36b00;
    background: #fff1d9;
}


.status-info {
    color: #087eaa;
    background: #e3f7fc;
}


.status-purple {
    color: #6941c6;
    background: #f0eaff;
}


.status-primary {
    color: #1458b9;
    background: #e7f0ff;
}


.status-orange {
    color: #c76c00;
    background: #fff0df;
}


.status-success {
    color: #11805b;
    background: #e2f6ed;
}


.status-danger {
    color: #c72d3e;
    background: #fde8eb;
}


.status-secondary {
    color: #677286;
    background: #eef1f5;
}


.table-action {
    width: 29px;
    height: 29px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        #dfe5ef;

    border-radius: 6px;

    color:
        var(--dashboard-primary);

    text-decoration: none;

    background: #ffffff;
}


.table-action:hover {
    color: #ffffff;

    background:
        var(--dashboard-primary);

    text-decoration: none;
}


/* =========================================================
   INFORMATION CARD
   ========================================================= */

.information-card {
    padding-bottom: 20px;
}


.important-info {
    padding:
        5px 20px 15px;
}


.important-info-item {
    display: flex;

    gap: 10px;

    padding:
        10px 0;

    border-bottom:
        1px solid
        #eef1f5;
}


.important-info-item:last-child {
    border-bottom: 0;
}


.important-info-item i {
    margin-top: 2px;

    color:
        var(--dashboard-primary);

    font-size: 12px;
}


.important-info-item span {
    font-size: 10px;

    line-height: 1.5;

    color:
        #5d687d;
}


.information-banner {
    margin:
        5px 20px 0;

    padding: 13px;

    border-radius: 8px;

    background:
        #eef5ff;

    color:
        var(--dashboard-primary);

    display: flex;

    gap: 10px;
}


.information-banner > i {
    margin-top: 2px;

    font-size: 18px;
}


.information-banner strong {
    display: block;

    font-size: 10px;
}


.information-banner p {
    margin:
        3px 0 0;

    font-size: 9px;

    line-height: 1.5;

    color:
        #66748c;
}


/* =========================================================
   EMPTY
   ========================================================= */

.empty-dashboard {
    padding:
        45px 20px;

    text-align: center;
}


.empty-dashboard-icon {
    width: 55px;
    height: 55px;

    margin:
        0 auto 12px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        #edf2f8;

    color:
        #8994a7;

    font-size: 20px;
}


.empty-dashboard h4 {
    margin: 0 0 5px;

    font-size: 14px;
}


.empty-dashboard p {
    margin:
        0 0 15px;

    color:
        var(--dashboard-muted);

    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {

    .stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-grid,
    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 900px) {

    .dashboard-sidebar {
        transform:
            translateX(-100%);

        transition:
            transform 0.25s ease;
    }

    .dashboard-sidebar.mobile-open {
        transform:
            translateX(0);
    }

    .dashboard-main {
        width: 100%;

        margin-left: 0;
    }

    .dashboard-header {
        padding:
            0 20px;
    }

    .dashboard-content {
        padding:
            20px;
    }

}


@media (max-width: 650px) {

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .header-user div:nth-child(2),
    .header-user > i {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .status-flow {
        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 20px;
    }

    .status-step {
        flex-shrink: 0;
    }

    .status-line {
        flex-shrink: 0;
    }

  
}