/* ==========================================
   BIBLE GROWTH SYSTEM
   Dashboard CSS - Lemon Green Theme
========================================== */

.dashboard-page {
    background: #F7FCEB;
    color: #26321A;
}

.dashboard-layout {
    min-height: 100vh;
    display: flex;
}

/* SIDEBAR */

.dashboard-sidebar {
    width: 255px;
    height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 26px 18px;
    overflow-y: auto;
    background: #FFFFFF;
    border-right: 1px solid #E3EBCF;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 6px 28px;
    color: #26321A;
}

.brand-icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 13px;
    background: #B7E432;
    color: #26321A;
    font-size: 25px;
}

.sidebar-brand strong,
.sidebar-brand small {
    display: block;
}

.sidebar-brand strong {
    font-size: 16px;
    font-weight: 800;
}

.sidebar-brand small {
    margin-top: 4px;
    color: #82935D;
    font-size: 9px;
    letter-spacing: 1px;
}

.sidebar-label {
    padding: 10px 12px;
    color: #97A287;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border-radius: 10px;
    color: #69745D;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.nav-link > span {
    width: 22px;
    text-align: center;
    font-size: 20px;
}

.nav-link:hover {
    background: #F7FCEB;
    color: #648B08;
}

.nav-link.active {
    background: #B7E432;
    color: #26321A;
    font-weight: 800;
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
}

.sidebar-verse {
    padding: 17px;
    border-radius: 12px;
    background: #F7FCEB;
    border: 1px solid #E6EFCF;
}

.verse-symbol {
    color: #83B600;
    font-size: 22px;
}

.sidebar-verse p {
    margin: 8px 0;
    color: #52613E;
    font-size: 12px;
    line-height: 1.7;
}

.sidebar-verse small {
    color: #789F13;
    font-size: 11px;
    font-weight: 700;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 9px;
    color: #8A4747;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-logout:hover {
    background: #FFF1F1;
}

.sidebar-logout span {
    font-size: 20px;
}

/* MAIN AREA */

.dashboard-main {
    min-width: 0;
    flex: 1;
    margin-left: 255px;
}

.dashboard-topbar {
    min-height: 83px;
    padding: 16px 35px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #E8EEDF;
}

.topbar-title {
    flex: 1;
}

.topbar-title strong,
.topbar-title small {
    display: block;
}

.topbar-title strong {
    font-size: 16px;
}

.topbar-title small {
    margin-top: 4px;
    color: #89917F;
    font-size: 11px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #B7E432;
    color: #26321A;
    font-size: 18px;
    font-weight: 800;
}

.user-details strong,
.user-details small {
    display: block;
}

.user-details strong {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.user-details small {
    margin-top: 3px;
    color: #89917F;
    font-size: 11px;
}

.menu-toggle {
    display: none;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: #F7FCEB;
    color: #26321A;
    font-size: 22px;
}

/* PAGE CONTENT */

.dashboard-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 32px 35px;
}

.welcome-banner {
    min-height: 255px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 35px 40px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(115deg, #263A18, #496B20);
    color: #FFFFFF;
}

.welcome-text {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.welcome-label {
    color: #D3F58A;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.welcome-banner h1 {
    margin: 13px 0 12px;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -1px;
}

.welcome-banner p {
    max-width: 510px;
    color: #E1EBD3;
    font-size: 13px;
    line-height: 1.9;
}

.welcome-btn {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin-top: 23px;
    padding: 12px 19px;
    border-radius: 9px;
    background: #B7E432;
    color: #26321A;
    font-size: 12px;
    font-weight: 800;
    transition: 0.2s ease;
}

.welcome-btn:hover {
    background: #FFFFFF;
    transform: translateY(-2px);
}

.welcome-btn span {
    font-size: 18px;
}

.welcome-symbol {
    width: 190px;
    height: 190px;
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(183, 228, 50, 0.35);
    border-radius: 50%;
    background: rgba(183, 228, 50, 0.08);
}

.welcome-symbol > span {
    z-index: 1;
    color: #B7E432;
    font-size: 90px;
}

.symbol-circle {
    position: absolute;
    width: 145px;
    height: 145px;
    border: 1px dashed rgba(183, 228, 50, 0.5);
    border-radius: 50%;
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 34px 0 18px;
}

.section-heading h2,
.panel-heading h2 {
    font-size: 17px;
    font-weight: 800;
}

.section-heading p,
.panel-heading p {
    margin-top: 5px;
    color: #89917F;
    font-size: 12px;
}

.date-badge {
    padding: 9px 13px;
    border: 1px solid #E3EBCF;
    border-radius: 8px;
    background: #FFFFFF;
    color: #69745D;
    font-size: 11px;
    white-space: nowrap;
}

/* STATISTICS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.stat-card {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 22px 17px;
    border: 1px solid #E7EDD9;
    border-radius: 13px;
    background: #FFFFFF;
    box-shadow: 0 3px 12px rgba(38, 50, 26, 0.025);
    transition: 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(38, 50, 26, 0.07);
}

.stat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    font-size: 22px;
}

.icon-bible {
    background: #F0F8D9;
    color: #719D0B;
}

.icon-activities {
    background: #EAF5DC;
    color: #557F24;
}

.icon-journal {
    background: #F6F2D8;
    color: #928122;
}

.icon-voice {
    background: #E1F4EA;
    color: #328057;
}

.stat-info {
    min-width: 0;
}

.stat-info p {
    color: #89917F;
    font-size: 11px;
    line-height: 1.6;
}

.stat-info h3 {
    margin: 7px 0;
    color: #26321A;
    font-size: 27px;
    line-height: 1.2;
}

.stat-total {
    color: #89917F;
    font-size: 15px;
    font-weight: 500;
}

.stat-info small {
    color: #9AA18F;
    font-size: 10px;
}

/* PANELS */

.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.9fr);
    gap: 20px;
    margin-top: 30px;
}

.panel {
    min-width: 0;
    padding: 24px;
    border: 1px solid #E7EDD9;
    border-radius: 14px;
    background: #FFFFFF;
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.text-link {
    color: #719D0B;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.text-link:hover {
    color: #405B0B;
}

/* ACTIVITIES */

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #F0F2E9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-marker {
    width: 29px;
    height: 29px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid #DCE9B9;
    border-radius: 50%;
    color: #83B600;
    font-weight: 800;
}

.activity-marker.completed {
    border-color: #B7E432;
    background: #B7E432;
    color: #26321A;
}

.activity-details {
    min-width: 0;
    flex: 1;
}

.activity-details strong,
.activity-details small {
    display: block;
}

.activity-details strong {
    overflow-wrap: anywhere;
    font-size: 12px;
}

.activity-details small {
    margin-top: 5px;
    color: #89917F;
    font-size: 10px;
}

.status-badge {
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending {
    background: #FFF5D9;
    color: #99731A;
}

.status-completed {
    background: #EEF8D9;
    color: #54780A;
}

.status-skipped {
    background: #F1F1EF;
    color: #73776B;
}

.empty-state {
    padding: 25px 10px;
    text-align: center;
}

.empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #F1F8DE;
    color: #719D0B;
    font-size: 27px;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 15px;
}

.empty-state p {
    max-width: 310px;
    margin: 0 auto;
    color: #89917F;
    font-size: 12px;
    line-height: 1.8;
}

.small-action {
    display: inline-block;
    margin-top: 17px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #B7E432;
    color: #26321A;
    font-size: 11px;
    font-weight: 800;
}

/* SCRIPTURE CARD */

.scripture-panel {
    background: linear-gradient(160deg, #FFFFFF, #F6FBEA);
}

.scripture-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    margin-bottom: 19px;
    border-radius: 12px;
    background: #B7E432;
    color: #26321A;
    font-size: 22px;
}

.scripture-label {
    color: #719D0B;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.scripture-panel h2 {
    margin-top: 12px;
    font-size: 22px;
    line-height: 1.4;
}

.scripture-panel blockquote {
    margin: 18px 0;
    color: #52613E;
    font-size: 14px;
    font-style: italic;
    line-height: 1.9;
}

.scripture-panel > strong {
    color: #719D0B;
    font-size: 12px;
}

.scripture-divider {
    height: 1px;
    margin: 20px 0;
    background: #E3EBCF;
}

.scripture-panel > p {
    margin-bottom: 17px;
    color: #69745D;
    font-size: 12px;
    line-height: 1.8;
}

/* QUICK ACTIONS */

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
}

.quick-action-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 165px;
    padding: 21px;
    border: 1px solid #E7EDD9;
    border-radius: 13px;
    background: #FFFFFF;
    color: #26321A;
    transition: 0.2s ease;
}

.quick-action-card:hover {
    border-color: #B7E432;
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(38, 50, 26, 0.06);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 11px;
    background: #F0F8D9;
    color: #719D0B;
    font-size: 22px;
}

.quick-action-card > strong {
    font-size: 12px;
}

.quick-action-card > small {
    margin-top: 7px;
    color: #89917F;
    font-size: 10px;
    line-height: 1.7;
}

.quick-arrow {
    position: absolute;
    top: 20px;
    right: 18px;
    color: #83B600;
    font-size: 17px;
}

.dashboard-alert {
    margin-top: 20px;
    padding: 14px;
    border: 1px solid #E8D5A5;
    border-radius: 9px;
    background: #FFF8E8;
    color: #765A18;
    font-size: 12px;
}

/* FOOTER */

.dashboard-footer {
    padding: 30px 0 10px;
    text-align: center;
}

.dashboard-footer p {
    color: #89917F;
    font-size: 11px;
    line-height: 1.8;
}

/* RESPONSIVE TABLETS */

@media (max-width: 1200px) {
    .dashboard-content {
        padding: 28px 24px;
    }

    .dashboard-topbar {
        padding: 16px 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-symbol {
        width: 145px;
        height: 145px;
    }

    .welcome-symbol > span {
        font-size: 70px;
    }

    .symbol-circle {
        width: 110px;
        height: 110px;
    }
}

/* RESPONSIVE MOBILE */

@media (max-width: 768px) {
    .dashboard-sidebar {
        width: 255px;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        box-shadow: none;
    }

    .dashboard-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 8px 0 30px rgba(38, 50, 26, 0.15);
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-topbar {
        min-height: 72px;
        padding: 13px 17px;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .topbar-title strong {
        font-size: 14px;
    }

    .topbar-title small {
        font-size: 10px;
    }

    .user-details {
        display: none;
    }

    .user-avatar {
        width: 38px;
        height: 38px;
    }

    .dashboard-content {
        padding: 22px 16px;
    }

    .welcome-banner {
        min-height: 0;
        padding: 27px 23px;
    }

    .welcome-banner h1 {
        font-size: 29px;
    }

    .welcome-banner p {
        font-size: 12px;
    }

    .welcome-symbol {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        margin-top: 28px;
    }

    .dashboard-columns {
        grid-template-columns: 1fr;
    }

    .panel {
        padding: 19px;
    }
}

@media (max-width: 450px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 17px;
    }

    .stat-info h3 {
        font-size: 24px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-action-card {
        min-height: 140px;
    }

    .date-badge {
        font-size: 10px;
    }

    .status-badge {
        font-size: 9px;
    }
}
