/* 
   LAYOUT.CSS
   App wrapper, main content structure, and footer
*/
.app-content-header {
    display: none !important;
}

/* ========== LAYOUT WRAPPER ========== */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
}

.content-area {
    padding: 20px;
    flex-grow: 1;
}

/* ========== SIDEBAR OVERLAY (mobile) ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Generic Footer Styling */
footer {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Standalone Login Page Layouts */
.standalone-page .main-content {
    margin-left: 0 !important;
    justify-content: center;
    align-items: center;
    background: var(--bg-dark);
    width: 100%;
}

.standalone-page .content-area {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0;
    width: 100%;
    max-width: none;
}

.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
}