
/* =========================================================
   MEMBER DASHBOARD
   Simple Green & White Design
========================================================= */

:root {
    --dashboard-green: #075e54;
    --dashboard-bright: #25d366;
    --dashboard-text: #263238;
    --dashboard-muted: #718087;
    --dashboard-bg: #f5f7f8;
    --dashboard-border: #e6ebed;
}

/* =========================================================
   DASHBOARD PAGE
========================================================= */

.section:has(.stats-grid) {
    background: var(--dashboard-bg);
    padding: 35px 0 50px;
}

.section:has(.stats-grid) > .container {
    width: min(1100px, calc(100% - 32px));
    margin: auto;
}

/* =========================================================
   PAGE BANNER
========================================================= */

.page-banner:has(+ .section .stats-grid) {
    padding: 40px 0;
    background: var(--dashboard-green);
    color: #fff;
}

.page-banner:has(+ .section .stats-grid) span {
    display: inline-block;
    margin-bottom: 10px;
    color: #c9f3df;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.page-banner:has(+ .section .stats-grid) h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(25px, 4vw, 38px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.stat-card {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--dashboard-border);
    border-radius: 11px;
    transition: border-color .2s ease;
}

.stat-card:hover {
    border-color: var(--dashboard-green);
}

.stat-card span {
    display: block;
    margin-bottom: 12px;
    color: var(--dashboard-muted);
    font-size: 13px;
    font-weight: 600;
}

.stat-card strong {
    display: block;
    color: var(--dashboard-green);
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
}

/* =========================================================
   DASHBOARD TWO-COLUMN LAYOUT
========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 35px;
}

/* =========================================================
   DASHBOARD CARDS
========================================================= */

.dashboard-grid .card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--dashboard-border);
    border-radius: 11px;
    box-shadow: none;
    overflow: hidden;
}

.dashboard-grid .card-body {
    padding: 23px;
}

.dashboard-grid .card-body h2 {
    margin: 0 0 20px;
    color: var(--dashboard-text);
    font-size: 19px;
    font-weight: 750;
}

/* =========================================================
   PROFILE SUMMARY
========================================================= */

.profile-summary {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    min-width: 0;
}

.profile-avatar {
    width: 75px;
    height: 75px;
    flex: 0 0 75px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    background: #e8f7f1;
    border: 2px solid #e8f7f1;
}

.profile-avatar.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dashboard-green);
    font-size: 30px;
    font-weight: 800;
}

.profile-summary > div {
    min-width: 0;
}

.profile-summary h3 {
    margin: 0 0 6px;
    color: var(--dashboard-text);
    font-size: 17px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.profile-summary p {
    margin: 4px 0;
    color: var(--dashboard-muted);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-summary p strong {
    color: var(--dashboard-green);
}

/* PROFILE BUTTON */

.dashboard-grid .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 7px;
    background: var(--dashboard-green);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s ease;
}

.dashboard-grid .btn-primary:hover {
    background: #064c44;
}

/* =========================================================
   DASHBOARD ACTIONS
========================================================= */

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 65px;
    padding: 12px;
    border: 1px solid var(--dashboard-border);
    border-radius: 9px;
    background: #fff;
    color: var(--dashboard-green);
    text-decoration: none;
    font-size: 21px;
    transition: background .2s ease, border-color .2s ease;
}

.dashboard-action span {
    color: var(--dashboard-text);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.dashboard-action:hover {
    background: #e8f7f1;
    border-color: #b9e5d1;
}

/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading.left {
    margin: 30px 0 17px;
    text-align: left;
}

.section-heading.left > span {
    display: block;
    margin-bottom: 7px;
    color: var(--dashboard-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.section-heading.left h2 {
    margin: 0;
    color: var(--dashboard-text);
    font-size: 24px;
}

/* =========================================================
   EVENTS TABLE
========================================================= */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--dashboard-border);
    border-radius: 10px;
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    width: 100%;
    min-width: 550px;
    border-collapse: collapse;
    text-align: left;
}

.table-wrapper thead {
    background: #e8f7f1;
}

.table-wrapper th {
    padding: 15px 17px;
    color: var(--dashboard-green);
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.table-wrapper td {
    padding: 15px 17px;
    border-top: 1px solid var(--dashboard-border);
    color: var(--dashboard-text);
    font-size: 13px;
    line-height: 1.5;
}

.table-wrapper tbody tr:hover {
    background: #f8fbfa;
}

.table-wrapper td a {
    display: inline-block;
    color: var(--dashboard-green);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.table-wrapper td a:hover {
    text-decoration: underline;
}

/* EVENT STATUS */

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 20px;
    background: #e8f7f1;
    color: var(--dashboard-green);
    font-size: 11px;
    font-weight: 700;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.section:has(.stats-grid) .empty-state {
    padding: 30px 20px;
    background: #fff;
    border: 1px solid var(--dashboard-border);
    border-radius: 10px;
    text-align: center;
}

.section:has(.stats-grid) .empty-state p {
    margin: 0;
    color: var(--dashboard-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 800px) {

    .stats-grid {
        gap: 12px;
    }

    .stat-card {
        padding: 18px;
    }

    .stat-card strong {
        font-size: 27px;
    }

    .dashboard-grid {
        gap: 13px;
    }

    .dashboard-grid .card-body {
        padding: 18px;
    }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .section:has(.stats-grid) {
        padding: 23px 0 35px;
    }

    .page-banner:has(+ .section .stats-grid) {
        padding: 30px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 17px;
    }

    .stat-card {
        padding: 15px;
        border-radius: 9px;
    }

    .stat-card:last-child {
        grid-column: 1 / -1;
    }

    .stat-card span {
        font-size: 11px;
        margin-bottom: 9px;
    }

    .stat-card strong {
        font-size: 25px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 13px;
        margin-bottom: 25px;
    }

    .dashboard-grid .card-body {
        padding: 18px;
    }

    .dashboard-grid .card-body h2 {
        font-size: 17px;
        margin-bottom: 17px;
    }

    .profile-avatar {
        width: 65px;
        height: 65px;
        flex-basis: 65px;
    }

    .profile-summary h3 {
        font-size: 15px;
    }

    .dashboard-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .dashboard-action {
        min-height: 60px;
        padding: 10px;
        gap: 8px;
        font-size: 18px;
    }

    .dashboard-action span {
        font-size: 11px;
    }

    .section-heading.left h2 {
        font-size: 21px;
    }

    .table-wrapper {
        border-radius: 8px;
    }

}

/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .profile-summary {
        align-items: flex-start;
        gap: 11px;
    }

    .profile-avatar {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
    }

    .stat-card strong {
        font-size: 22px;
    }

}
