/* ========================================
   Sidebar Navigation - Always Visible
   ======================================== */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: linear-gradient(135deg, rgba(30, 30, 60, 0.95), rgba(10, 10, 30, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 3px solid rgba(78, 205, 196, 0.4);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav.collapsed {
    transform: translateX(-280px);
}

/* Custom scrollbar for sidebar */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(78, 205, 196, 0.5);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(78, 205, 196, 0.7);
}

.sidebar-header {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-align: center;
}

.sidebar-subtitle {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.sidebar-menu {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 0.3rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-link:hover {
    background: rgba(78, 205, 196, 0.1);
    color: white;
    border-left-color: var(--accent-teal);
    padding-left: 2rem;
}

.sidebar-link.active {
    background: rgba(78, 205, 196, 0.2);
    color: white;
    border-left-color: var(--accent-teal);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--accent-teal);
}

.sidebar-link-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1600;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-teal), var(--primary-rose));
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(78, 205, 196, 0.5);
    animation: togglePulse 2s ease-in-out infinite;
}

@keyframes togglePulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(78, 205, 196, 0.5);
        transform: translateY(-50%) scale(1);
    }
    50% {
        box-shadow: 0 12px 48px rgba(78, 205, 196, 0.8);
        transform: translateY(-50%) scale(1.05);
    }
}

.sidebar-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 48px rgba(78, 205, 196, 0.8);
}

.sidebar-toggle.sidebar-open {
    left: 300px;
}

.sidebar-toggle i {
    width: 24px;
    height: 24px;
    color: white;
    transition: transform 0.3s ease;
}

.sidebar-toggle.sidebar-open i {
    transform: rotate(180deg);
}

/* Adjust main content when sidebar is open */
.main-content {
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-active .main-content {
    margin-left: 280px;
}

body:not(.sidebar-active) .main-content {
    margin-left: 0;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .sidebar-nav {
        width: 250px;
    }
    
    .sidebar-nav.collapsed {
        transform: translateX(-250px);
    }
    
    .sidebar-toggle.sidebar-open {
        left: 270px;
    }
    
    body.sidebar-active .main-content {
        margin-left: 250px;
    }
    
    body.sidebar-active .birthday-nav {
        left: 270px;
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        width: 280px;
        transform: translateX(-280px);
    }
    
    .sidebar-nav.mobile-open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        left: 20px;
    }
    
    .sidebar-toggle.sidebar-open {
        left: 300px;
    }
    
    body.sidebar-active .main-content {
        margin-left: 0;
    }
    
    .birthday-nav {
        left: 20px !important;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .sidebar-nav {
        width: 100%;
        max-width: 280px;
    }
}
