/* =========================================
   DASHBOARD PORTAL STYLES (NLS AESTHETIC)
   ========================================= */
.dash-body {
    background-color: #F4F4F5;
    margin: 0;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- SIDEBAR --- */
.sidebar {
    width: 260px;
    background: #FFFFFF;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.sidebar-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #111;
    letter-spacing: 1px;
}
.mobile-close-btn {
    display: none;
    background: none; border: none; font-size: 1.5rem; cursor: pointer;
}

.sidebar-nav {
    flex-grow: 1;
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    transition: 0.3s;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover {
    background: var(--bg-soft);
    color: #111;
}
.nav-item.active {
    background: #111;
    color: #FFF;
    font-weight: 600;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
}
.btn-logout {
    width: 100%;
    background: transparent;
    border: 1px solid #E5E7EB;
    padding: 10px;
    border-radius: 8px;
    color: #d9534f;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-logout:hover { background: #fee2e2; border-color: #fca5a5; }

/* --- MAIN CONTENT --- */
.main-content {
    flex-grow: 1;
    margin-left: 260px; /* Offset for sidebar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dash-topbar {
    height: 80px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}
.mobile-menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer;
}
.topbar-user {
    display: flex; align-items: center; gap: 15px; margin-left: auto;
}
.user-greeting { font-size: 0.9rem; color: var(--text-muted); }
.user-greeting strong { color: #111; }
.user-avatar {
    width: 40px; height: 40px;
    background: var(--gold-primary);
    color: #FFF;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
}

.dash-content-wrapper {
    padding: 40px;
    max-width: 1200px;
}

/* Section Hiding Logic */
.dash-section { display: none; animation: fadeIn 0.4s ease; }
.dash-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Section Typo */
.section-title { font-family: var(--font-serif); font-size: 2rem; color: #111; margin-bottom: 5px; }
.section-subtitle { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 40px; }

/* --- OVERVIEW GRID --- */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: #FFFFFF;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}
.energy-card {
    background: #111;
    border-color: #111;
}
.energy-card .stat-label { color: #AAA; }
.energy-card .stat-value { color: #FFF; font-size: 1.4rem; }
.energy-card .stat-meta { color: var(--gold-primary); }

.stat-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 10px; }
.stat-value { font-family: var(--font-serif); font-size: 2rem; color: #111; margin-bottom: 5px; line-height: 1; }
.stat-meta { font-size: 0.85rem; color: #777; }
.text-gold { color: var(--gold-primary); font-weight: 600; }

.module-box {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}
.module-box h4 { font-size: 1.1rem; margin-bottom: 20px; border-bottom: 1px solid #EEE; padding-bottom: 10px; }
.activity-list { list-style: none; padding: 0; margin: 0; }
.activity-list li { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px dashed #EEE; font-size: 0.9rem; color: #444; }
.activity-list li:last-child { border-bottom: none; }
.activity-list li span { color: #999; font-size: 0.8rem; }

/* --- BLUEPRINT SECTION --- */
.blueprint-container { display: flex; flex-direction: column; gap: 20px; }
.blueprint-card {
    background: #FFF; padding: 30px; border-radius: 16px;
    border: 1px solid var(--border-light);
    display: flex; align-items: center; gap: 25px;
}
.blueprint-card.locked { background: #FAFAFA; border-color: #EEE; opacity: 0.7; }
.bp-icon {
    width: 60px; height: 60px; background: rgba(197, 160, 89, 0.1); color: var(--gold-primary);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
}
.blueprint-card.locked .bp-icon { background: #EEE; color: #999; }
.bp-icon svg { width: 30px; height: 30px; }
.bp-info { flex-grow: 1; }
.bp-info h3 { font-size: 1.2rem; color: #111; margin-bottom: 5px; }
.bp-info p { font-size: 0.9rem; color: var(--text-muted); }
.bp-actions { display: flex; gap: 10px; }

/* --- EBOOKS / MUSIC / GENERAL GRIDS --- */
.dash-grid-cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}
.dash-card {
    background: #FFF; border-radius: 16px; border: 1px solid var(--border-light);
    overflow: hidden; position: relative;
}
.locked-card { opacity: 0.7; filter: grayscale(100%); }
.badge-status { position: absolute; top: 15px; left: 15px; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #FFF; z-index: 2;}
.badge-status.success { background: #34A853; }
.badge-status.danger { background: #EA4335; }
.badge-package { position: absolute; top: 15px; right: 15px; background: #111; color: var(--gold-primary); padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 600; border: 1px solid var(--gold-primary); z-index: 2;}
.badge-package.small { position: static; display: inline-block; padding: 2px 8px; margin-top: 5px; }

.card-img-placeholder { width: 100%; height: 200px; background: #EEE; display: flex; align-items: center; justify-content: center; color: #AAA; font-weight: 600; }
.card-body { padding: 25px; }
.card-body h4 { font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 8px; }
.card-body p { font-size: 0.85rem; color: var(--text-muted); }

/* --- MUSIC TRACKS --- */
.music-list { display: flex; flex-direction: column; gap: 15px; }
.music-track { background: #FFF; border: 1px solid var(--border-light); padding: 15px 25px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; }
.music-track.locked { background: #FAFAFA; border-color: #EEE; }
.track-info { display: flex; align-items: center; gap: 20px; }
.track-info h4 { font-size: 1rem; color: #111; margin-bottom: 2px;}
.play-btn { width: 45px; height: 45px; background: #111; color: #FFF; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; }
.play-btn:hover { background: var(--gold-primary); transform: scale(1.05); }
.play-btn.lock { background: #EEE; color: #999; cursor: not-allowed; }
.play-btn svg { width: 20px; height: 20px; margin-left: 2px; }
.play-btn.lock svg { margin-left: 0; }
.track-duration { font-size: 0.9rem; font-weight: 600; color: #666; }

/* --- JOURNAL LIST --- */
.journal-list { display: flex; flex-direction: column; gap: 20px; }
.journal-item { background: #FFF; padding: 25px; border-radius: 12px; border-left: 4px solid var(--gold-primary); box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.journal-date { font-size: 0.75rem; color: #999; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.journal-item h3 { font-size: 1.3rem; margin-bottom: 10px; }
.journal-item h3 a { color: #111; transition: 0.3s; }
.journal-item h3 a:hover { color: var(--gold-primary); }
.journal-item p { font-size: 0.95rem; color: var(--text-muted); }

/* --- PROFILE --- */
.profile-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.profile-box { background: #FFF; padding: 35px; border-radius: 16px; border: 1px solid var(--border-light); }
.profile-box h3 { font-size: 1.2rem; border-bottom: 1px solid #EEE; padding-bottom: 15px; margin-bottom: 20px; }

/* Form Utilities General */
.nls-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px;}
.form-row { display: flex; gap: 15px; }
.w-50 { width: 50%; }
.nls-form label { font-size: 0.85rem; font-weight: 600; color: #111; }
.nls-form input { padding: 12px; border: 1px solid #E5E7EB; border-radius: 8px; font-family: var(--font-sans); }
.disabled-input { background: #F4F4F5; color: #999; cursor: not-allowed; }

/* Buttons General */
.btn-primary { background: #111; color: #FFF; border: none; padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-primary:hover { background: var(--gold-primary); }
.btn-outline { background: transparent; color: #111; border: 1px solid #111; padding: 12px 20px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; display: inline-block; text-align: center;}
.btn-outline:hover { background: #111; color: #FFF; }
.btn-text { background: transparent; border: none; color: var(--gold-primary); font-weight: 600; cursor: pointer; }
.btn-text:hover { text-decoration: underline; }
.w-100 { width: 100%; }
.mt-15 { margin-top: 15px; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .profile-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 280px; }
    .sidebar.open { transform: translateX(0); box-shadow: 10px 0 30px rgba(0,0,0,0.1); }
    .main-content { margin-left: 0; }
    .dash-topbar { padding: 0 20px; }
    .mobile-menu-toggle { display: block; }
    .mobile-close-btn { display: block; }
    .dash-content-wrapper { padding: 30px 20px; }
    .blueprint-card { flex-direction: column; text-align: center; }
    .bp-actions { width: 100%; display: flex; flex-direction: column; }
}