/* Dedicated navigation styling */
.side-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 80px;
    height: 100vh;
    background: rgba(0, 10, 20, 0.9);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow-y: auto; /* Enable scrolling */
}

/* Custom scrollbar for the nav */
.side-nav::-webkit-scrollbar {
    width: 3px;
}

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

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

.side-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
}

/* Logo styling */
.nav-logo {
    position: relative;
    width: 50px;
    height: 50px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.nav-logo span {
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    z-index: 1;
}

/* Navigation links */
.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-links li {
    width: 100%;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a i {
    width: 24px;
    text-align: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.nav-links a span {
    margin-left: 1rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Hover effects */
.nav-links a:hover {
    background: rgba(0, 255, 255, 0.1);
}

.nav-links a:hover i {
    transform: scale(1.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: #00ffff;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleY(1);
}

/* Active state */
.nav-links a.active {
    background: rgba(0, 255, 255, 0.1);
}

.nav-links a.active::before {
    transform: scaleY(1);
}

/* Nav footer */
.nav-footer {
    margin-top: auto;
    padding: 1rem 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.nav-footer a {
    color: #00ffff;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.nav-footer a:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Expanded state */
.side-nav:hover {
    width: 240px;
}

.side-nav:hover .nav-links a span {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive design */
@media (max-height: 800px) {
    .nav-links {
        gap: 0.3rem;
    }
    
    .nav-links a {
        padding: 0.6rem 0.8rem;
    }
    
    .nav-logo {
        margin-bottom: 1rem;
    }
}

@media (max-height: 600px) {
    .side-nav {
        padding: 1rem 0;
    }
    
    .nav-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 0.8rem;
    }
    
    .nav-links a {
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 768px) {
    .side-nav {
        width: 60px;
    }
    
    .side-nav:hover {
        width: 200px;
    }
}

/* Animations */
@keyframes logoGlow {
    from { box-shadow: 0 0 20px rgba(0, 255, 255, 0.2); }
    to { box-shadow: 0 0 30px rgba(0, 255, 255, 0.4); }
} 