/* ========================================
   CodeBrains Bot Compact Sidebar
   ======================================== */

/* Force Override - Compact Sidebar */
.sidebar {
    width: 200px !important; /* Compact width */
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    background: linear-gradient(180deg, 
        #038187 0%, 
        #05a5ac 50%, 
        #C49A6C 100%) !important;
    z-index: 9999 !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
    border-left: 3px solid rgba(255, 255, 255, 0.2) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    animation: slideInRight 0.5s ease-out !important;
    transition: all 0.3s ease !important;
}

/* Force Override - Compact Header */
.sidebar-header {
    padding: 0.8rem 0.6rem !important; /* Very compact padding */
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Force Override - Compact Brand */
.sidebar-brand {
    font-size: 0.9rem !important; /* Very small font */
    font-weight: 300 !important;
    color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    animation: fadeInDown 0.6s ease-out !important;
    text-decoration: none !important;
}

/* Force Override - Compact Logo */
.sidebar-brand img {
    width: 25px !important; /* Very small logo */
    height: 25px !important; /* Very small logo */
    margin-left: 0.6rem !important; /* Small margin */
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease !important;
}

/* Force Override - Compact Navigation */
.sidebar-nav {
    padding: 0 0.6rem !important; /* Very compact padding */
}

.sidebar-nav .navbar-nav {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.sidebar-nav .nav-item {
    margin: 0 !important;
}

/* Force Override - Compact Nav Links */
.nav-link {
    padding: 0.6rem 0.8rem !important; /* Very compact padding */
    font-size: 0.8rem !important; /* Small font */
    margin: 0.15rem 0.6rem !important; /* Small margin */
    border-radius: 0 15px 15px 0 !important; /* Smaller radius */
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    font-weight: 300 !important;
    animation: fadeInRight 0.7s ease-out !important;
    animation-fill-mode: both !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateX(-3px) !important; /* Smaller transform */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-weight: 300 !important;
}

/* Force Override - Compact Icons */
.nav-link i {
    width: 18px !important; /* Very small icons */
    font-size: 0.9rem !important; /* Small icon size */
    margin-left: 0.6rem !important; /* Small margin */
    text-align: center !important;
}

/* Force Override - Compact Badges */
.nav-link .badge {
    margin-right: auto !important;
    font-size: 0.6rem !important; /* Very small badges */
    padding: 0.2rem 0.4rem !important; /* Small padding */
}

/* Force Override - Main Content */
.main-content {
    margin-right: 200px !important; /* Match sidebar width */
    transition: all 0.3s ease !important;
    min-height: 100vh !important;
}

.main-content.sidebar-collapsed {
    margin-right: 60px !important; /* Collapsed width */
}

/* Force Override - Collapsed Sidebar */
.sidebar.collapsed {
    width: 60px !important; /* Very compact collapsed */
}

.sidebar.collapsed .sidebar-brand .nav-text {
    display: none !important;
}

.sidebar.collapsed .sidebar-brand img {
    margin-left: 0 !important;
}

.sidebar.collapsed .nav-link .nav-text {
    display: none !important;
}

.sidebar.collapsed .nav-link i {
    margin-left: 0 !important;
}

.sidebar.collapsed .nav-link {
    justify-content: center !important;
    border-radius: 50% !important;
    width: 40px !important; /* Very small collapsed links */
    height: 40px !important; /* Very small collapsed links */
    margin: 0.3rem auto !important; /* Small margin */
    padding: 0 !important;
}

.sidebar.collapsed .nav-link:hover {
    transform: none !important;
}

.sidebar.collapsed .nav-link.active {
    border-radius: 50% !important;
}

/* Force Override - Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px !important; /* Mobile collapsed */
    }
    
    .main-content {
        margin-right: 60px !important; /* Mobile margin */
    }
    
    .sidebar .nav-link .nav-text {
        display: none !important;
    }
    
    .sidebar .nav-link i {
        margin-left: 0 !important;
    }
    
    .sidebar .nav-link {
        justify-content: center !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
        margin: 0.3rem auto !important;
        padding: 0 !important;
    }
}

/* Force Override - Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 3px !important; /* Very thin scrollbar */
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

/* Animation Keyframes */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        transform: translateX(20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Nav Link Animation Delays */
.nav-link:nth-child(1) { animation-delay: 0.1s !important; }
.nav-link:nth-child(2) { animation-delay: 0.2s !important; }
.nav-link:nth-child(3) { animation-delay: 0.3s !important; }
.nav-link:nth-child(4) { animation-delay: 0.4s !important; }
.nav-link:nth-child(5) { animation-delay: 0.5s !important; }
.nav-link:nth-child(6) { animation-delay: 0.6s !important; }
.nav-link:nth-child(7) { animation-delay: 0.7s !important; }
.nav-link:nth-child(8) { animation-delay: 0.8s !important; }
.nav-link:nth-child(9) { animation-delay: 0.9s !important; }
.nav-link:nth-child(10) { animation-delay: 1.0s !important; }
