/* ==================== CORE LAYOUTS & SIDEBAR NAVIGATION ==================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
.header {
    position: relative;
    z-index: 3000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--shadow);
    animation: slideInSoft 0.55s var(--motion-ease);
}

.header h1 {
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main Layout */
.main-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

/* Sidebar */
.sidebar {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: fit-content;
    animation: slideInLeft 0.55s var(--motion-ease);
}

.menu-item {
    padding: 15px;
    margin: 5px 0;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: transform var(--motion-normal) var(--motion-ease), background var(--motion-normal), color var(--motion-normal), box-shadow var(--motion-normal);
    color: var(--text-color);
    text-decoration: none;
}

.menu-item:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.16);
}

.menu-item.active {
    background: var(--secondary-color);
    color: white;
    font-weight: bold;
    animation: popIn 0.24s var(--motion-ease);
}

/* Content Area */
.content-area {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    min-height: 600px;
    animation: slideInSoft 0.62s var(--motion-ease);
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeIn 0.45s var(--motion-ease);
}

/* Glassmorphism glass overlay effect & panel styles */
.header, .sidebar, .content-area {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

/* User profile badge in sidebar */
.user-profile-badge h4 {
    font-size: 15px;
    font-weight: bold;
    margin-top: 5px;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: flex;
        overflow-x: auto;
        padding: 10px;
    }
    
    .menu-item {
        white-space: nowrap;
        padding: 10px 15px;
    }
}
