/* =====================================================
 * 02-sidebar.css — Sidebar Navigation & Branding
 * ===================================================== */

.sidebar {
    width: 280px;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 38px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand img { height: 40px; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.brand-name { font-size: 1.4rem; font-weight: 900; color: var(--primary); letter-spacing: 1px; }
.brand-sub { font-size: 0.82rem; color: var(--accent-dark); font-weight: 600; letter-spacing: 0.5px; }

/* Navigation */
nav { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    height: var(--btn-height);
    padding: 0 18px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    width: 100%;
}
.nav-btn i { font-size: 1.2rem; width: 20px; text-align: center; }
.nav-btn:hover { background: #f1f3f5; color: var(--primary); }
.nav-btn.active { background: var(--primary); color: #ffffff; box-shadow: none; border: none; }

.nav-btn.trash-btn {
    margin-top: 0;
}
.nav-btn.trash-btn:hover { background: #fff5f5; color: #e05252; }
.nav-btn.trash-btn.active { background: #e05252; color: #ffffff; }

/* Sidebar Footer Action */
.sidebar-footer {
    padding: 20px;
    border-top: none;
    background: #ffffff;
}

.sidebar-action-btn {
    width: 100%;
    height: var(--btn-height);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 !important;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-action-btn:hover {
    background: var(--primary-dark);
}

.sidebar-action-btn i {
    font-size: 1.25rem;
}

/* Sidebar Count Badge */
.sidebar-count-badge {
    margin-right: auto;
    background: #fee2e2;
    color: #e05252;
    padding: 2px 8px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 700;
}
.nav-btn.active .sidebar-count-badge {
    background: rgba(255,255,255,0.2);
    color: white;
}
.sidebar-logout-btn { color: #ef4444 !important; width: 100%; }
.logout-btn:hover { background: #fff5f5 !important; color: #ef4444 !important; }

/* Sidebar Search (legacy) */
.sidebar-search-group { margin-bottom: 15px; padding: 0 12px; }
.sidebar-search-box-inner {
    position: relative; display: flex; align-items: center;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 0;
    padding: 0 12px; transition: all 0.3s; height: 42px;
}
.sidebar-search-icon-fixed { color: #94a3b8; font-size: 0.9rem; }
.sidebar-search-input-field {
    background: transparent; border: none; outline: none;
    padding: 8px 10px; width: 100%; font-size: 0.9rem;
    font-family: inherit; color: var(--text-dark);
}
