/* =====================================================
   SIGAP RATUJAYA
   DASHBOARD CSS
   ===================================================== */


/* =====================================================
   GLOBAL DASHBOARD
   ===================================================== */

.dashboard-page-body {
    margin: 0;
    min-height: 100vh;

    background: #f6f9fd;

    color: #172033;

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}


.dashboard-page-body *,
.dashboard-page-body *::before,
.dashboard-page-body *::after {
    box-sizing: border-box;
}


.dashboard-page-body a {
    text-decoration: none;
}


/* =====================================================
   CONTAINER
   ===================================================== */

.dashboard-container {
    width: min(1180px,
            calc(100% - 40px));

    margin: 0 auto;
}


/* =====================================================
   NAVBAR
   ===================================================== */

.dashboard-navbar {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(255,
            255,
            255,
            0.96);

    border-bottom:
        1px solid #e5eaf2;

    box-shadow:
        0 3px 15px rgba(15,
            23,
            42,
            0.04);

    backdrop-filter:
        blur(12px);
}


.dashboard-nav-container {
    min-height: 76px;

    width: min(1240px,
            calc(100% - 40px));

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;
}


/* =====================================================
   BRAND
   ===================================================== */

.dashboard-brand {
    display: flex;

    align-items: center;

    gap: 11px;

    color: #15366f;

    flex-shrink: 0;
}


.dashboard-brand-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        linear-gradient(135deg,
            #2878f0,
            #1557d4);

    color: white;

    font-size: 19px;

    font-weight: 900;

    box-shadow:
        0 7px 18px rgba(37,
            99,
            235,
            0.20);
}


.dashboard-brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.2;
}


.dashboard-brand-text strong {
    color: #15366f;

    font-size: 16px;

    letter-spacing: .3px;
}


.dashboard-brand-text span {
    margin-top: 2px;

    color: #71809a;

    font-size: 10px;

    white-space: nowrap;
}


/* =====================================================
   MENU
   ===================================================== */

.dashboard-main-menu {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 4px;

    flex: 1;
}


.dashboard-main-menu a {
    padding:
        9px 12px;

    border-radius: 9px;

    color: #59677d;

    font-size: 13px;

    font-weight: 700;

    transition:
        .2s ease;
}


.dashboard-main-menu a:hover {
    color: #1557d4;

    background: #eff6ff;
}


.dashboard-main-menu a.active {
    color: #1557d4;

    background: #eaf2ff;
}


/* =====================================================
   NAV ACTION
   ===================================================== */

.dashboard-nav-actions {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;
}


.dashboard-user-info {
    color: #64748b;

    font-size: 11px;

    font-weight: 700;
}


.dashboard-login-button,
.dashboard-logout-button {
    height: 37px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        0 14px;

    border-radius: 9px;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    transition:
        .2s ease;
}


.dashboard-login-button {
    border:
        1px solid #2563eb;

    color: #2563eb;

    background: white;
}


.dashboard-login-button:hover {
    background: #eff6ff;
}


.dashboard-logout-button {
    border: none;

    color: white;

    background:
        linear-gradient(135deg,
            #2878f0,
            #1557d4);

    box-shadow:
        0 5px 14px rgba(37,
            99,
            235,
            .15);
}


.dashboard-logout-button:hover {
    transform:
        translateY(-1px);
}


/* =====================================================
   HERO
   ===================================================== */

.dashboard-hero {
    background:
        linear-gradient(135deg,
            #eff6ff 0%,
            #ffffff 100%);

    border-bottom:
        1px solid #e5edf7;
}


.dashboard-hero-inner {
    min-height: 250px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.dashboard-hero-content {
    padding:
        35px 0;
}


.dashboard-welcome {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px 12px;

    background: white;

    border:
        1px solid #dbeafe;

    border-radius: 100px;

    color: #2563eb;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1px;
}


.dashboard-status-dot {
    width: 7px;
    height: 7px;

    background: #22c55e;

    border-radius: 50%;
}


.dashboard-hero h1 {
    margin:
        15px 0 9px;

    color: #172b50;

    font-size: 42px;

    line-height: 1.15;

    letter-spacing:
        -1.5px;
}


.dashboard-hero p {
    max-width: 620px;

    margin: 0;

    color: #64748b;

    font-size: 15px;

    line-height: 1.7;
}


.dashboard-hero-icon {
    width: 108px;
    height: 108px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #dbeafe;

    border-radius: 28px;

    background: white;

    font-size: 45px;

    box-shadow:
        0 15px 40px rgba(37,
            99,
            235,
            .10);
}


/* =====================================================
   CONTENT
   ===================================================== */

.dashboard-content {
    padding:
        40px 0 65px;

    background: #f7f9fc;
}


/* =====================================================
   STATISTICS
   ===================================================== */

.dashboard-stat-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 16px;

    margin-bottom: 20px;
}


.dashboard-stat-card {
    min-height: 112px;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 20px;

    background: white;

    border:
        1px solid #e5eaf1;

    border-radius: 17px;

    box-shadow:
        0 6px 20px rgba(15,
            23,
            42,
            .025);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.dashboard-stat-card:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 14px 30px rgba(15,
            23,
            42,
            .07);
}


.dashboard-stat-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    font-size: 21px;
}


.dashboard-stat-icon.blue {
    background: #dbeafe;
}


.dashboard-stat-icon.green {
    background: #dcfce7;
}


.dashboard-stat-icon.purple {
    background: #ede9fe;
}


.dashboard-stat-icon.cyan {
    background: #cffafe;
}


.dashboard-stat-content span {
    display: block;

    margin-bottom: 4px;

    color: #64748b;

    font-size: 11px;

    font-weight: 600;
}


.dashboard-stat-content strong {
    display: block;

    color: #172033;

    font-size: 27px;

    line-height: 1.1;

    font-weight: 900;
}


.dashboard-stat-content small {
    display: block;

    margin-top: 4px;

    color: #94a3b8;

    font-size: 10px;
}


/* =====================================================
   TWO COLUMN
   ===================================================== */

.dashboard-two-column {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}


/* =====================================================
   PANEL
   ===================================================== */

.dashboard-panel {
    margin-bottom: 18px;

    padding: 25px;

    background: white;

    border:
        1px solid #e5eaf1;

    border-radius: 18px;

    box-shadow:
        0 6px 22px rgba(15,
            23,
            42,
            .025);
}


.dashboard-panel-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.dashboard-panel-header>div:first-child>span {
    color: #2563eb;

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1.3px;
}


.dashboard-panel-header h2 {
    margin:
        5px 0 5px;

    color: #172033;

    font-size: 20px;

    line-height: 1.3;
}


.dashboard-panel-header p {
    margin: 0;

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.5;
}


.dashboard-panel-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 11px;

    background: #eff6ff;

    font-size: 17px;
}


/* =====================================================
   CATEGORY
   ===================================================== */

.dashboard-category-list {
    display: flex;

    flex-direction: column;

    gap: 19px;
}


.dashboard-category-item {
    width: 100%;
}


.dashboard-category-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 8px;
}


.dashboard-category-name {
    display: flex;

    align-items: center;

    gap: 8px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;
}


.dashboard-category-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #2563eb;
}


.dashboard-category-value {
    color: #2563eb;

    font-size: 13px;

    font-weight: 900;
}


.dashboard-category-progress {
    width: 100%;

    height: 8px;

    overflow: hidden;

    border-radius: 100px;

    background: #eef2f7;
}


.dashboard-category-progress span {
    display: block;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(90deg,
            #60a5fa,
            #2563eb);
}


.dashboard-category-item small {
    display: block;

    margin-top: 6px;

    color: #94a3b8;

    font-size: 10px;
}


/* =====================================================
   GENDER
   ===================================================== */

.dashboard-gender-list {
    display: flex;

    flex-direction: column;

    gap: 10px;
}


.dashboard-gender-item {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    background: #f8fafc;

    border:
        1px solid #edf1f6;

    border-radius: 13px;
}


.dashboard-gender-icon {
    width: 44px;
    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    font-size: 21px;
}


.dashboard-gender-icon.male {
    background: #dbeafe;

    color: #2563eb;
}


.dashboard-gender-icon.female {
    background: #fce7f3;

    color: #db2777;
}


.dashboard-gender-info {
    flex: 1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;
}


.dashboard-gender-info strong {
    display: block;

    color: #334155;

    font-size: 13px;
}


.dashboard-gender-info span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
}


.dashboard-gender-number {
    color: #2563eb;

    font-size: 18px;

    font-weight: 900;
}


/* =====================================================
   POSYANDU
   ===================================================== */

.dashboard-posyandu-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 11px;
}


.dashboard-posyandu-card {
    min-height: 70px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 13px;

    border:
        1px solid #edf1f6;

    border-radius: 13px;

    background: white;

    transition:
        .2s ease;
}


.dashboard-posyandu-card:hover {
    border-color: #bfdbfe;

    background: #f8fbff;

    transform:
        translateY(-2px);
}


.dashboard-posyandu-number {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 10px;

    font-weight: 900;
}


.dashboard-posyandu-info strong {
    display: block;

    color: #334155;

    font-size: 11px;
}


.dashboard-posyandu-info span {
    display: block;

    margin-top: 3px;

    color: #94a3b8;

    font-size: 10px;
}


/* =====================================================
   RW
   ===================================================== */

.dashboard-rw-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 10px;
}


.dashboard-rw-card {
    padding: 16px 10px;

    text-align: center;

    border:
        1px solid #edf1f6;

    border-radius: 13px;

    background: white;

    transition:
        .2s ease;
}


.dashboard-rw-card:hover {
    border-color: #bfdbfe;

    background: #eff6ff;
}


.dashboard-rw-card span {
    display: block;

    color: #94a3b8;

    font-size: 9px;

    font-weight: 700;
}


.dashboard-rw-card strong {
    display: block;

    margin:
        3px 0;

    color: #2563eb;

    font-size: 23px;

    font-weight: 900;
}


.dashboard-rw-card small {
    color: #94a3b8;

    font-size: 9px;
}


/* =====================================================
   EMPTY / ERROR
   ===================================================== */

.dashboard-empty {
    padding: 30px;

    text-align: center;

    color: #94a3b8;

    font-size: 12px;
}


.dashboard-empty.error {
    color: #dc2626;
}


/* =====================================================
   FOOTER
   ===================================================== */

.dashboard-footer {
    background: #ffffff;

    border-top:
        1px solid #e5eaf1;
}


.dashboard-footer-content {
    padding:
        30px 0 20px;
}


.dashboard-footer-content strong {
    color: #15366f;

    font-size: 15px;
}


.dashboard-footer-content p {
    max-width: 500px;

    margin:
        6px 0 0;

    color: #7b8798;

    font-size: 11px;

    line-height: 1.6;
}


.dashboard-footer-bottom {
    padding:
        15px 0;

    border-top:
        1px solid #edf1f6;

    color: #94a3b8;

    font-size: 10px;

    text-align: center;
}


/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1050px) {

    .dashboard-main-menu {
        gap: 0;
    }

    .dashboard-main-menu a {
        padding:
            8px 8px;

        font-size: 11px;
    }

    .dashboard-stat-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-posyandu-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-rw-grid {
        grid-template-columns:
            repeat(4, 1fr);
    }
}


@media (max-width: 800px) {

    .dashboard-brand-text span {
        display: none;
    }

    .dashboard-main-menu {
        display: none;
    }

    .dashboard-nav-container {
        min-height: 68px;

        width: min(100% - 30px,
                1180px);
    }

    .dashboard-user-info {
        display: none;
    }

    .dashboard-two-column {
        grid-template-columns: 1fr;
    }

    .dashboard-hero-inner {
        min-height: 220px;
    }

    .dashboard-hero h1 {
        font-size: 34px;
    }

    .dashboard-hero-icon {
        width: 85px;
        height: 85px;

        font-size: 34px;
    }
}


@media (max-width: 600px) {

    .dashboard-container {
        width:
            calc(100% - 30px);
    }

    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-posyandu-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-rw-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .dashboard-hero-icon {
        display: none;
    }

    .dashboard-hero h1 {
        font-size: 29px;
    }

    .dashboard-hero p {
        font-size: 13px;
    }

    .dashboard-content {
        padding-top: 25px;
    }

    .dashboard-panel {
        padding: 19px;
    }

    .dashboard-stat-card {
        min-height: 100px;
    }
}


@media (max-width: 420px) {

    .dashboard-brand-text strong {
        font-size: 14px;
    }

    .dashboard-brand-icon {
        width: 38px;
        height: 38px;
    }

    .dashboard-login-button,
    .dashboard-logout-button {
        padding:
            0 11px;

        font-size: 10px;
    }

    .dashboard-hero-content {
        padding:
            28px 0;
    }

    .dashboard-panel-header h2 {
        font-size: 18px;
    }
}