/* css/layout/app-shell.css */

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--bg-color);
}

/* === SIDEBAR === */
.sidebar {
    width: 260px;
    background-color: var(--card-bg-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s ease;
    z-index: 50;
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
}
.logo span { color: var(--primary-color); }
.logo-icon {
    width: 32px; height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

/* === MAIN WRAPPER === */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent flex overflow */
    position: relative;
}

/* === TOP HEADER === */
.top-header {
    height: 64px;
    background-color: rgba(255,255,255,0.8); /* Fallback */
    background-color: var(--header-bg-color);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 40;
}

.header-left, .header-right { display: flex; align-items: center; gap: 1rem; }
.page-title { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--text-color); }

.status-indicator {
    font-size: 0.85rem;
    color: var(--success-color);
    font-weight: 500;
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.header-separator { width: 1px; height: 24px; background: var(--border-color); margin: 0 0.5rem; }

/* === CONTENT AREA === */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    scroll-behavior: smooth;
    position: relative;
}

/* Mobile Responsiveness */
.mobile-only { display: none; }

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { transform: translateX(0); }
    .mobile-only { display: block; }
    .top-header { padding: 0 1rem; }
}