/* ===== APP LAYOUT SYSTEM ===== */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.app-sidebar {
    background: #0f2b1a;
    color: white;
    padding: 28px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    z-index: 100;
}
.sidebar-logo {
    padding: 0 24px 24px;
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.3px;
    cursor: pointer;
    text-decoration: none;
    color: white;
}
.sidebar-logo img { width: 44px; height: 44px; border-radius: 8px; }
.sidebar-section {
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 12px 24px 6px;
    letter-spacing: 1.5px;
    font-weight: 600;
}
.sidebar-menu { list-style: none; padding: 0 12px; margin: 0; }
.sidebar-menu li {
    padding: 11px 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 2px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
}
.sidebar-menu li:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}
.sidebar-menu li.active {
    background: rgba(212,175,55,0.15);
    color: #d4af37;
    font-weight: 600;
}
.sidebar-menu li i {
    margin-right: 14px;
    width: 20px;
    text-align: center;
    font-size: 0.95rem;
}
.sidebar-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 10px 24px; }

/* Sidebar User Avatar */
.sidebar-user-avatar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sidebar-avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(212,175,55,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(212,175,55,0.5);
}
.sidebar-avatar-circle i {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
}
.sidebar-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sidebar-user-name {
    font-size: 1.15rem;
    line-height: 1.2;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verified badge next to user name: small and moderately spaced */
.verified-badge {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle;
    margin-left: 8px;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 20px 24px;
}
.logout-sidebar-btn {
    width: 100%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    font-family: inherit;
}
.logout-sidebar-btn:hover {
    background: rgba(220,53,69,0.15);
    color: #ff6b6b;
}

/* ===== APP MAIN ===== */
.app-main {
    padding: 32px 36px;
    overflow-y: auto;
    min-height: 100vh;
}
.app-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.app-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}
.mobile-sidebar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #1a472a;
    transition: all 0.2s;
    flex-shrink: 0;
}
.mobile-sidebar-toggle:hover { background: #f8fafc; }
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .app-layout { grid-template-columns: 1fr; }
    .app-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        width: 270px;
        transition: left 0.3s ease;
    }
    .app-sidebar.open { left: 0; }
    .mobile-sidebar-toggle { display: flex; }
    .app-main { padding: 24px 20px; }
}
@media (max-width: 480px) {
    .app-main { padding: 16px; }
    .app-page-title { font-size: 1.25rem; }
}
