/* MEMBER PROFILE - NEUTRAL PROFESSIONAL THEME
   Palette: Deep Slate (#0f172a), Architectural Gray (#f4f7fa), Brand Blue (#3b82f6)
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-neutral: #f4f7fa;
    --header-dark: #0f172a;
    --brand-blue: #3b82f6;
    --brand-blue-soft: #eff6ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --white: #ffffff;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-neutral);
    color: var(--text-main);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- HEADER & NAVIGATION --- */

.site-header {
    background-color: var(--header-dark) !important;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-icon-wrap {
    width: 38px;
    height: 38px;
    background: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    font-size: 1.2rem;
}

.navbar-brand .brand-text span {
    font-size: 1.15rem;
    letter-spacing: -0.5px;
}

/* Home button-style link */
.btn-home-nav {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 22px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-home-nav:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-link-custom {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-link-custom.active, .nav-link-custom:hover {
    color: var(--brand-blue) !important;
}

/* Circular Logout */
.btn-logout-pill {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-logout-pill:hover {
    background-color: #ef4444;
    color: white;
    border-color: #ef4444;
}

/* --- MAIN DASHBOARD AREA --- */

.dashboard-area {
    padding: 60px 0;
}

.page-title {
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

/* Top Profile Header Card */
.profile-header-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
}

.profile-avatar-box {
    width: 80px;
    height: 80px;
    background: var(--brand-blue-soft);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--brand-blue);
    border: 1px solid #dbeafe;
}

.badge-role {
    background-color: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 0.75rem;
    padding: 6px 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar Info Blocks */
.info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.info-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Stat Tiles */
.stat-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.stat-icon.blue { background: #eff6ff; color: #3b82f6; }
.stat-icon.green { background: #ecfdf5; color: #10b981; }

/* --- DOCUMENT REPOSITORY TABLE --- */

.document-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 24px;
}

.table tbody td {
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background-color: #fcfdfe;
}

/* Action Buttons in Table */
.btn-action-outline {
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-action-outline:hover {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

/* --- RESPONSIVE DESIGN --- */

@media (max-width: 991px) {
    .dashboard-area { padding: 30px 0; }
    
    .btn-home-nav {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-box {
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    .border-start {
        border: none !important;
        margin: 15px 0 0 0 !important;
        padding: 15px 0 0 0 !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        display: flex;
        justify-content: center;
    }
}