/* ======================== 
   DASHBOARD PAGES STYLES
   ======================== */

/* DASHBOARD HERO */
.dashboard-hero {
    position: relative;
    padding: 160px 0 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.dashboard-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.dashboard-hero-content {
    position: relative;
    z-index: 2;
}

.dashboard-hero-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.dashboard-hero-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* DASHBOARD MAIN LAYOUT */
.dashboard-section {
    padding: -60px 0 100px; /* pull up if needed, but mockup shows it detached below */
    background: var(--bg-dark);
    margin-top: 40px;
    margin-bottom: 80px;
}

.container-dashboard {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: flex-start;
}

/* SIDEBAR (DESKTOP) */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.d-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05); /* very subtle */
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.d-menu-item:hover {
    background: #1A1A1A;
    border-color: rgba(255,255,255,0.1);
}

.d-menu-item.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.d-menu-item i {
    font-size: 1.1rem;
}

/* MAIN PANEL CARD */
.d-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 40px;
}

.d-card-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.d-card-header p {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 20px;
}

.d-card-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 32px;
    width: 100%;
}

/* AVATAR */
.d-avatar-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 32px;
}

.d-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    border: 2px solid var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-avatar-edit:hover {
    background: var(--gold); /* Or lighter red */
}

/* FORM */
.d-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-d label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
}

.form-control-d {
    width: 100%;
    background: #111111;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control-d:focus {
    border-color: rgba(255, 255, 255, 0.3);
    outline: none;
}

.btn-d-save {
    background: var(--red);
    color: var(--white);
    border: none;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition);
}

.btn-d-save:hover {
    background: var(--red-light);
}

.text-red { color: var(--red); }
.mt-16 { margin-top: 16px; }

/* MOBILE BOTTOM NAV */
.mobile-bottom-nav {
    display: none;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .dashboard-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .dashboard-hero {
        padding: 120px 0 80px;
    }

    .dashboard-hero-content h2 {
        font-size: 2rem;
    }

    .dashboard-section {
        margin-bottom: 120px; /* make room for bottom nav */
    }

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

    .desktop-only {
        display: none !important;
    }

    .d-card {
        padding: 24px 20px;
    }

    .btn-d-save {
        width: 100%;
    }

    /* Mobile Bottom Nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 12px 16px;
        gap: 12px;
        z-index: 1000;
        justify-content: space-between;
        align-items: center;
        /* The mockup shows it seamlessly at the bottom without any weird padding, 
           maybe a border top */
    }

    .m-nav-item {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #111111; /* dark unactive */
        border: 1px solid rgba(255,255,255,0.05); /* subtle */
        color: var(--white);
        border-radius: var(--radius-sm);
        height: 48px;
        flex: 1; /* evenly spacing */
        transition: var(--transition);
    }
    
    .m-nav-item i {
        font-size: 1.1rem;
    }

    /* The active item is wider and has text */
    .m-nav-item.active {
        background: var(--red);
        border-color: var(--red);
        flex: 2; /* takes more space */
        gap: 8px;
        font-weight: 600;
        font-size: 0.85rem;
    }

    /* Inactive items just have icon, no text. So text is hidden inside them */
}
