/* ======================================
   SIDEBAR MENU STYLES
   ====================================== */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 70px;
    background: rgba(20, 25, 35, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
}

.sidebar:hover {
    width: 220px;
    background: rgba(25, 30, 40, 0.98);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 0;
}

.sidebar-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 0;
}

.sidebar-bottom {
    margin-top: auto;
    padding: 1rem 0;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(
        to right, 
        transparent 20%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 80%
    );
    margin: 1rem 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    background: transparent;
    border: none;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.sidebar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: rgba(var(--primary), 1);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.sidebar-item:hover::before {
    transform: scaleY(1);
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(var(--primary), 1);
}

.sidebar-item:active {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.sidebar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sidebar-item:hover .sidebar-icon {
    background: rgba(var(--primary), 0.15);
    transform: scale(1.05);
}

.sidebar-label {
    margin-left: 1rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.sidebar:hover .sidebar-label {
    opacity: 1;
    transform: translateX(0);
}

/* Special styling for settings button */
.sidebar-item#settings-btn:hover {
    color: rgba(var(--session), 1);
}

.sidebar-item#settings-btn:hover::before {
    background: rgba(var(--session), 1);
}

.sidebar-item#settings-btn:hover .sidebar-icon {
    background: rgba(var(--session), 0.15);
    transform: scale(1.05) rotate(90deg);
}

/* Special styling for user button */
.sidebar-item#user-btn:hover {
    color: rgba(var(--break), 1);
}

.sidebar-item#user-btn:hover::before {
    background: rgba(var(--break), 1);
}

.sidebar-item#user-btn:hover .sidebar-icon {
    background: rgba(var(--break), 0.15);
}

/* Logged in state for user button */
.sidebar-item#user-btn.logged-in .sidebar-icon {
    background: rgba(0, 220, 130, 0.2);
    color: rgba(0, 220, 130, 1);
}

.sidebar-item#user-btn.logged-in:hover .sidebar-icon {
    background: rgba(0, 220, 130, 0.3);
}

/* Disabled state for buttons */
.sidebar-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.sidebar-item.disabled:hover {
    background: transparent;
    color: var(--on-surface);
}

.sidebar-item.disabled .sidebar-icon {
    background: rgba(255, 255, 255, 0.03);
}

/* Auth required state for buttons (still clickable but visually different) */
.sidebar-item.auth-required {
    opacity: 0.7;
}

.sidebar-item.auth-required .sidebar-icon {
    background: rgba(255, 193, 7, 0.1);
    color: rgba(255, 193, 7, 0.8);
}

.sidebar-item.auth-required:hover {
    color: rgba(255, 193, 7, 1);
}

.sidebar-item.auth-required:hover::before {
    background: rgba(255, 193, 7, 1);
}

.sidebar-item.auth-required:hover .sidebar-icon {
    background: rgba(255, 193, 7, 0.2);
    color: rgba(255, 193, 7, 1);
}

/* ======================================
   SIDEBAR RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        background: rgba(15, 20, 30, 0.98);
    }
    
    .sidebar:hover {
        width: 200px;
        background: rgba(20, 25, 35, 0.98);
    }
    
    .sidebar-item {
        height: 45px;
    }
    
    .sidebar-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .sidebar-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 50px;
    }
    
    .sidebar:hover {
        width: 180px;
    }
    
    .sidebar-item {
        height: 40px;
        padding: 0 0.8rem;
    }
    
    .sidebar-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .sidebar-label {
        font-size: 0.85rem;
        margin-left: 0.8rem;
    }
    
    .sidebar-content {
        padding: 0.8rem 0;
    }
    
    .sidebar-main {
        padding: 0.8rem 0;
        gap: 0.3rem;
    }
    
    .sidebar-bottom {
        padding: 0.8rem 0;
    }
}

/* Main content padding will be handled by responsive navigation rules */

/* ======================================
   BOTTOM NAVIGATION BAR STYLES (MOBILE)
   ====================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(20, 25, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    display: none; /* Hidden by default, shown on mobile */
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.bottom-nav-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    padding: 0 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 12px;
    position: relative;
    flex: 1;
    max-width: 80px;
    height: 60px;
}

.bottom-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(var(--primary), 1);
    transform: translateY(-2px);
}

.bottom-nav-item:active {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(0);
}

.bottom-nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
    transition: all 0.3s ease;
}

.bottom-nav-item:hover .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    opacity: 0.8;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.bottom-nav-item:hover .bottom-nav-label {
    opacity: 1;
    color: rgba(var(--primary), 1);
}

/* Special styling for settings button in bottom nav */
.bottom-nav-item#settings-btn-mobile:hover {
    color: rgba(var(--session), 1);
}

.bottom-nav-item#settings-btn-mobile:hover .bottom-nav-icon {
    color: rgba(var(--session), 1);
    transform: scale(1.1) rotate(90deg);
}

.bottom-nav-item#settings-btn-mobile:hover .bottom-nav-label {
    color: rgba(var(--session), 1);
}

/* Active/Selected state for bottom nav items */
.bottom-nav-item.active {
    background: rgba(var(--primary), 0.15);
    color: rgba(var(--primary), 1);
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
    color: rgba(var(--primary), 1);
}

.bottom-nav-item.active .bottom-nav-label {
    opacity: 1;
    color: rgba(var(--primary), 1);
}

/* Disabled state for bottom nav buttons */
.bottom-nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.bottom-nav-item.disabled:hover {
    background: transparent;
    color: var(--on-surface);
    transform: none;
}

/* Auth required state for bottom nav buttons */
.bottom-nav-item.auth-required {
    opacity: 0.7;
}

.bottom-nav-item.auth-required .bottom-nav-icon {
    color: rgba(255, 193, 7, 0.8);
}

.bottom-nav-item.auth-required:hover {
    color: rgba(255, 193, 7, 1);
}

.bottom-nav-item.auth-required:hover .bottom-nav-icon {
    color: rgba(255, 193, 7, 1);
}

.bottom-nav-item.auth-required:hover .bottom-nav-label {
    color: rgba(255, 193, 7, 1);
}

/* User button overlay (floating) */
.bottom-nav-user-overlay {
    position: fixed;
    bottom: 80px;
    left: 1rem;
    z-index: 1002;
    display: none; /* Show only when needed */
}

.bottom-nav-user-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(25, 30, 40, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--on-surface);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-user-btn:hover {
    background: rgba(var(--break), 0.2);
    color: rgba(var(--break), 1);
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.bottom-nav-user-btn .bottom-nav-icon {
    font-size: 1.2rem;
    margin-bottom: 0;
}

/* Logged in state for user button */
.bottom-nav-user-btn.logged-in {
    background: rgba(0, 220, 130, 0.2);
    border-color: rgba(0, 220, 130, 0.3);
    color: rgba(0, 220, 130, 1);
}

.bottom-nav-user-btn.logged-in:hover {
    background: rgba(0, 220, 130, 0.3);
    transform: scale(1.05);
}

/* ======================================
   RESPONSIVE NAVIGATION DESIGN
   ====================================== */

/* Desktop: Show sidebar, hide bottom nav */
@media (min-width: 769px) {
    .sidebar {
        display: block;
    }
    
    .bottom-nav {
        display: none;
    }
    
    body {
        padding-left: 70px;
        padding-bottom: 0;
    }
}

/* Mobile: Hide sidebar, show bottom nav */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .bottom-nav {
        display: block;
    }
    
    .bottom-nav-user-overlay {
        display: block;
    }
    
    body {
        padding-left: 0;
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    /* Smaller bottom nav for smaller screens */
    .bottom-nav {
        height: 65px;
    }
    
    .bottom-nav-item {
        height: 55px;
        max-width: 70px;
    }
    
    .bottom-nav-icon {
        font-size: 1.1rem;
    }
    
    .bottom-nav-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .bottom-nav {
        height: 60px;
    }
    
    .bottom-nav-item {
        height: 50px;
        max-width: 65px;
        padding: 0.3rem;
    }
    
    .bottom-nav-icon {
        font-size: 1rem;
        margin-bottom: 0.1rem;
    }
    
    .bottom-nav-label {
        font-size: 0.6rem;
    }
    
    body {
        padding-bottom: 60px;
    }
}
