/* Layout */
.app-layout {
    display: flex; min-height: 100vh; position: relative; z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 260px; min-height: 100vh;
    background: rgba(10, 22, 40, 0.95);
    border-right: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0;
    z-index: 100; transition: transform var(--transition);
}

.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 12px;
}

.sidebar-logo .logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--accent), #0099ff);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff; font-weight: 800;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.sidebar-logo .logo-text {
    font-size: 15px; font-weight: 700; line-height: 1.3;
}
.sidebar-logo .logo-subtext { font-size: 11px; color: var(--text-muted); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }

.sidebar-nav .nav-section {
    font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--text-muted); padding: 12px 12px 8px; font-weight: 700;
}

.sidebar-nav .nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all var(--transition); margin-bottom: 2px;
    text-decoration: none;
}

.sidebar-nav .nav-item:hover {
    background: rgba(0, 212, 255, 0.08); color: var(--text-primary);
}

.sidebar-nav .nav-item.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 255, 0.1));
    color: var(--accent); border-left: 3px solid var(--accent);
    box-shadow: inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.sidebar-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; }

.sidebar-footer {
    padding: 16px; border-top: 1px solid var(--border-color);
}

/* Main content area */
.main-content {
    flex: 1; margin-left: 260px; padding: 0;
    min-height: 100vh; position: relative; z-index: 1;
}

/* Top header bar */
.top-bar {
    padding: 16px 32px;
    background: rgba(10, 22, 40, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50;
}

.top-bar .page-title { font-size: 20px; font-weight: 700; }

.top-bar .user-menu {
    display: flex; align-items: center; gap: 12px;
    padding: 8px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border-color);
    cursor: pointer; transition: all var(--transition);
}
.top-bar .user-menu:hover { border-color: var(--accent); }

.top-bar .user-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #0099ff);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; color: #fff;
}

/* Content wrapper */
.content-wrapper { padding: 24px 32px; }

/* Page card */
.page-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.page-card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-card-title { font-size: 18px; font-weight: 700; }

/* Login page (no sidebar) */
.login-layout {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}

/* Big screen (no sidebar, full screen) */
.bigscreen-layout {
    width: 100vw; height: 100vh; overflow: hidden;
    background: #060e1a; position: relative;
}
