/* Public Layout Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav-brand .logo {
    height: 40px;
    width: auto;
}
.nav-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-link {
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--secondary);
}

/* Public Footer */
.public-footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 3rem 5%;
    text-align: center;
    margin-top: 4rem;
}
.public-footer .logo-footer {
    height: 60px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Dashboard Layout */
.sidebar {
    width: 260px;
    background: #101a2c;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    box-shadow: var(--shadow-lg);
}
.sidebar-header { min-height: 170px; display:grid; place-items:center; background:linear-gradient(160deg,#13243d,#0d1728); }
.sidebar-product{display:grid;gap:1px;margin-top:-18px;text-align:center}.sidebar-product strong{color:#fff;font-size:15px}.sidebar-product span{color:#8ea6b9;font-size:11.5px;text-transform:uppercase;letter-spacing:.08em}.header-context{display:block;margin-bottom:2px;color:#6d8497;font-size:11.5px;font-weight:900;line-height:1.35;letter-spacing:.08em}.avatar{font-weight:900;box-shadow:0 0 0 4px #e5f1f8}
.sidebar-link { margin: 0 .7rem; border-left:0; border-radius:8px; }
.sidebar-link:hover, .sidebar-link.active { background:#fff; color:var(--primary); border-left-color:transparent; box-shadow:0 8px 22px rgba(0,0,0,.15); }
.dashboard-header { margin-bottom:0; border:0; border-radius:0 0 0 14px; box-shadow:0 10px 28px rgba(11,60,93,.12); background:#fff; }
.dashboard-content { max-width:1600px; width:100%; margin:0 auto; }
.sidebar-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-logo {
    max-width: 160px;
    height: auto;
}
.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
}
.sidebar-link {
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray);
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}
.sidebar-link i {
    font-size: 1.25rem;
}
.sidebar-link:hover, .sidebar-link.active {
    color: var(--surface);
    background: rgba(255,255,255,0.05);
    border-left-color: var(--accent);
}
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.btn-logout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--gray);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}
.btn-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: calc(100% - 260px);
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--surface-soft);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: 72px;
}
.header-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.user-name {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}
.user-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-pill);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.dashboard-content {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}
