/* Sidebar */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    z-index: 1000;
    background: #fdfcfb;
    border-right: 1.5px solid var(--border-peach);
}

.sidebar-brand {
    padding: 0.5rem; /* Reduced from 1.5rem */
    margin-bottom: 0.5rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem; /* Slightly reduced */
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    font-size: 0.85rem; /* Slightly reduced */
    margin-bottom: 0.125rem;
    font-weight: 500;
}

.nav-link:hover, .nav-link.active {
    background: #f3f0ec;
    color: var(--primary);
    border: 1px solid var(--border-peach);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1.5px solid var(--border-peach);
}

/* Header */
.main-header {
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    left: calc(var(--sidebar-width) + 1.5rem);
    height: 56px; /* Slightly reduced */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-radius: var(--radius-md);
    z-index: 999;
    background: #ffffff;
    border: 1.5px solid var(--border-peach);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.header-right {
    display: flex;
    align-items: center;
}

.status-indicator {
    padding: 0.4rem 0.85rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1.25rem;
    letter-spacing: 0.01em;
}

.status-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-indicator.offline { background: #fee2e2; color: var(--error); }
.status-indicator.online { background: #d1fae5; color: var(--success); }

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-left: 1.25rem;
    border-left: 1.5px solid var(--border-peach);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile:hover {
    opacity: 0.8;
}

.avatar { 
    width: 32px; 
    height: 32px; 
    border-radius: 50%;
    border: 1px solid var(--border-glass);
}

.username {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Mobile */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); transition: 0.3s; }
    .main-header { left: 1rem; right: 1rem; top: 0.75rem; }
}
