
/* ============================================================
   VEDHAI PREMIUM SIDEBAR - FUTURISTIC DESIGN
   Responsive Navigation with Advanced Animations
   ============================================================ */

/* Sidebar Container */
.app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(16, 20, 32, 0.95) 0%, rgba(26, 31, 46, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-right: 2px solid rgba(0, 201, 167, 0.15);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 40px rgba(0, 201, 167, 0.1), inset -1px 0 0 rgba(255, 255, 255, 0.05);
}

/* Sidebar Glow Effect */
.app-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 100% 0%, rgba(0, 201, 167, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated Background Particles */
.app-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0, 201, 167, 0.03) 2px,
        rgba(0, 201, 167, 0.03) 4px
    );
    animation: sidebarShimmer 8s infinite linear;
    pointer-events: none;
}

@keyframes sidebarShimmer {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100px 100px;
    }
}

/* Sidebar Logo Section - Premium Edition */
.sidebar-logo {
    padding: 24px 20px;
    border-bottom: 2px solid rgba(0, 201, 167, 0.15);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.05) 0%, rgba(50, 184, 198, 0.03) 100%);
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* Logo Hover Effect */
.sidebar-logo:hover {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.1) 0%, rgba(50, 184, 198, 0.08) 100%);
    border-color: rgba(0, 201, 167, 0.3);
    box-shadow: 0 0 30px rgba(0, 201, 167, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Logo Glow Animation */
.sidebar-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 167, 0.1), transparent);
    animation: logoShine 4s infinite;
}

@keyframes logoShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Logo Image */
.sidebar-logo img {
    width: 90px;
    height: auto;
    margin: 0 auto 8px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 201, 167, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.sidebar-logo img:hover {
    filter: drop-shadow(0 0 20px rgba(0, 201, 167, 0.6)) drop-shadow(0 0 40px rgba(50, 184, 198, 0.3));
    transform: scale(1.08) rotate(5deg);
}

/* Logo Text */
.sidebar-logo h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #00C9A7 0%, #00FFFF 50%, #32B8C6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 201, 167, 0.3);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 201, 167, 0.3), 0 0 20px rgba(0, 201, 167, 0.1);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 201, 167, 0.6), 0 0 40px rgba(50, 184, 198, 0.3);
    }
}

/* Navigation Menu */
.sidebar-nav {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

/* Navigation Item */
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    color: rgba(201, 209, 217, 0.8);
    border-left: 3px solid transparent;
    border-right: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    font-weight: 500;
    margin: 0 8px;
    border-radius: 8px 0 0 8px;
    background: transparent;
}

/* Animated Background for Nav Item */
.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 201, 167, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #00C9A7, #00FFFF);
    transition: width 0.3s ease;
}

/* Navigation Item Hover */
.nav-item:hover {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.08) 0%, rgba(50, 184, 198, 0.04) 100%);
    color: #C9D1D9;
    border-left-color: rgba(0, 201, 167, 0.4);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 201, 167, 0.1), inset 1px 0 0 rgba(0, 201, 167, 0.2);
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover::after {
    width: 100%;
}

/* Navigation Item Active State */
.nav-item.active {
    background: linear-gradient(135deg, rgba(0, 201, 167, 0.15) 0%, rgba(50, 184, 198, 0.08) 100%);
    color: #00C9A7;
    border-left-color: #00C9A7;
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(0, 201, 167, 0.2), inset 1px 0 0 rgba(0, 201, 167, 0.4), 0 0 20px rgba(0, 201, 167, 0.1);
    font-weight: 600;
    animation: activeItemPulse 2s ease-in-out infinite;
}

@keyframes activeItemPulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0, 201, 167, 0.2), inset 1px 0 0 rgba(0, 201, 167, 0.4), 0 0 20px rgba(0, 201, 167, 0.1);
    }
    50% {
        box-shadow: 0 8px 24px rgba(0, 201, 167, 0.3), inset 1px 0 0 rgba(0, 201, 167, 0.5), 0 0 30px rgba(0, 201, 167, 0.2);
    }
}

.nav-item.active::after {
    width: 100%;
    animation: underlineFlow 1s ease infinite;
}

@keyframes underlineFlow {
    0% {
        background: linear-gradient(90deg, #00C9A7, #00FFFF);
    }
    50% {
        background: linear-gradient(90deg, #00FFFF, #32B8C6);
    }
    100% {
        background: linear-gradient(90deg, #00C9A7, #00FFFF);
    }
}

/* Navigation Icon */
.nav-item i {
    font-size: 18px;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-item:hover i {
    transform: scale(1.2) rotate(10deg);
    color: #00C9A7;
    filter: drop-shadow(0 0 8px rgba(0, 201, 167, 0.6));
}

.nav-item.active i {
    transform: scale(1.3) rotate(20deg);
    color: #00C9A7;
    filter: drop-shadow(0 0 12px rgba(0, 201, 167, 0.8));
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1.3) rotate(20deg) translateY(0); }
    50% { transform: scale(1.3) rotate(20deg) translateY(-3px); }
}

/* Navigation Text */
.nav-item span {
    transition: all 0.3s ease;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-item:hover span {
    letter-spacing: 1px;
}

/* ============================================================
   MOBILE RESPONSIVE SIDEBAR
   ============================================================ */

/* Mobile Sidebar Toggle Button */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #C9D1D9;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00C9A7;
}

/* Main Content Adjustment */
.app-main {
    margin-left: 280px;
    flex: 1;
    width: calc(100% - 280px);
    transition: all 0.4s ease;
}

/* ============================================================
   TABLET RESPONSIVE (768px - 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .app-sidebar {
        width: 240px;
    }

    .sidebar-logo {
        padding: 20px 16px;
    }

    .sidebar-logo img {
        width: 80px;
    }

    .sidebar-logo h1 {
        font-size: 20px;
    }

    .nav-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .nav-item i {
        font-size: 16px;
    }

    .nav-item span {
        font-size: 13px;
    }

    .app-main {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

/* ============================================================
   MOBILE RESPONSIVE (768px and below)
   ============================================================ */

@media (max-width: 768px) {
    /* Sidebar Slides Out */
    .app-sidebar {
        position: fixed;
        width: 280px;
        left: -280px;
        height: 100vh;
        z-index: 2000;
        box-shadow: 2px 0 30px rgba(0, 0, 0, 0.5);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Sidebar Active on Mobile */
    .app-sidebar.mobile-active {
        left: 0;
        box-shadow: 2px 0 50px rgba(0, 201, 167, 0.2), 2px 0 30px rgba(0, 0, 0, 0.5);
    }

    /* Show Toggle Button */
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Main Content Full Width */
    .app-main {
        margin-left: 0;
        width: 100%;
    }

    /* Mobile Overlay */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(5px);
        z-index: 1999;
        animation: fadeIn 0.3s ease;
    }

    .sidebar-overlay.active {
        display: block;
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Sidebar Styling for Mobile */
    .sidebar-logo {
        padding: 20px 16px;
    }

    .sidebar-logo img {
        width: 85px;
    }

    .sidebar-logo h1 {
        font-size: 22px;
    }

    .nav-item {
        padding: 15px 18px;
        margin: 0 6px;
    }

    .nav-item span {
        font-size: 14px;
    }
}

/* ============================================================
   SMALL MOBILE (480px and below)
   ============================================================ */

@media (max-width: 480px) {
    .app-sidebar {
        width: 260px;
        left: -260px;
    }

    .app-sidebar.mobile-active {
        left: 0;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-logo {
        padding: 16px 12px;
    }

    .sidebar-logo img {
        width: 75px;
        margin-bottom: 6px;
    }

    .sidebar-logo h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .nav-item {
        padding: 12px 14px;
        gap: 10px;
        margin: 0 4px;
        border-radius: 6px 0 0 6px;
    }

    .nav-item i {
        font-size: 16px;
        width: 18px;
    }

    .nav-item span {
        font-size: 12px;
    }

    .sidebar-nav {
        padding: 8px 0;
        gap: 2px;
    }
}

/* ============================================================
   PREMIUM ANIMATIONS COLLECTION
   ============================================================ */

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Glow Animation */
@keyframes glowEffect {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 201, 167, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 201, 167, 0.6), 0 0 50px rgba(50, 184, 198, 0.3);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Slide In Animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide Out Animation */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* ============================================================
   SCROLLBAR STYLING - PREMIUM
   ============================================================ */

.app-sidebar::-webkit-scrollbar {
    width: 8px;
}

.app-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00C9A7, #00FFFF);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 201, 167, 0.3);
    transition: all 0.3s ease;
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00FFFF, #00C9A7);
    box-shadow: 0 0 20px rgba(0, 201, 167, 0.6);
}

/* ============================================================
   DARK MODE SUPPORT
   ============================================================ */

@media (prefers-color-scheme: dark) {
    .app-sidebar {
        background: linear-gradient(135deg, rgba(10, 14, 28, 0.98) 0%, rgba(16, 20, 32, 0.95) 100%);
        border-right-color: rgba(0, 201, 167, 0.2);
    }
}
