/*
 Theme Name: Astra Child
 Template: astra
*/
/* =========================================
   MEMBER DASHBOARD
   ========================================= */

.dashboard-wrap {
    display: flex;
    min-height: 100vh;
    background: #f4f5f8;
    font-family: 'Georgia', serif;
}

/* === SIDEBAR === */
.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #061C50;
    display: flex;
    flex-direction: column;
    padding: 40px 0 32px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-profile {
    padding: 0 28px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    margin-bottom: 24px;
}

.avatar-ring {
    display: inline-block;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A227, #e8c84a);
    margin-bottom: 14px;
}

.sidebar-avatar {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #061C50;
    object-fit: cover;
}

.sidebar-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    letter-spacing: 0.01em;
}

.sidebar-email {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 12px;
    word-break: break-word;
}

.member-badge {
    display: inline-block;
    background: rgba(201,162,39,0.2);
    color: #C9A227;
    border: 1px solid rgba(201,162,39,0.4);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
}

.sidebar-nav {
    flex: 1;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
}

.sidebar-nav-item.active {
    background: rgba(201,162,39,0.15);
    color: #C9A227;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px;
    padding: 11px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
}

.sidebar-logout:hover {
    color: #ff8080;
    background: rgba(255,100,100,0.08);
    text-decoration: none;
}

/* === MAIN === */
.dashboard-main {
    flex: 1;
    padding: 48px 52px;
    max-width: 1000px;
}

.dashboard-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 40px;
}

.dashboard-greeting {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dashboard-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.02em;
}

.btn-edit-profile {
    display: inline-block;
    padding: 10px 22px;
    border: 1.5px solid #061C50;
    border-radius: 50px;
    color: #061C50;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-edit-profile:hover {
    background: #061C50;
    color: #ffffff;
    text-decoration: none;
}

/* === STAT CARDS === */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 26px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.stat-card--gold {
    background: #061C50;
    border-color: #061C50;
}

.stat-card--gold .stat-icon {
    color: #C9A227;
}

.stat-card--gold .stat-value {
    color: #ffffff;
}

.stat-card--gold .stat-label {
    color: rgba(255,255,255,0.55);
}

.stat-icon {
    color: #061C50;
    margin-bottom: 14px;
    opacity: 0.8;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* === PANELS === */
.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.panel-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.panel-link {
    font-size: 13px;
    color: #061C50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.panel-link:hover {
    color: #C9A227;
}

.panel-body {
    padding: 8px 0;
}

/* === RESOURCES === */
.resource-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease;
}

.resource-item:last-child {
    border-bottom: none;
}

.resource-item:hover {
    background: #fafafa;
}

.resource-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.resource-info {
    flex: 1;
}

.resource-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 3px;
}

.resource-meta {
    font-size: 12px;
    color: #6b7280;
}

.resource-download {
    font-size: 12px;
    font-weight: 600;
    color: #061C50;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.resource-download:hover {
    background: #061C50;
    color: #ffffff;
    border-color: #061C50;
    text-decoration: none;
}

/* === QUICK LINKS === */
.quick-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    text-decoration: none;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.15s ease, color 0.15s ease;
}

.quick-link-item:last-child {
    border-bottom: none;
}

.quick-link-item:hover {
    background: #fafafa;
    color: #061C50;
    text-decoration: none;
}

.quick-link-item svg {
    color: #6b7280;
    flex-shrink: 0;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .dashboard-wrap {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 20px;
        gap: 12px;
    }

    .sidebar-profile {
        border-bottom: none;
        padding: 0;
        margin: 0;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0;
    }

    .sidebar-logout {
        margin: 0;
    }

    .dashboard-main {
        padding: 28px 24px;
    }

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

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

@media (max-width: 560px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}






