/* =========================================
   QUICK ACCESS SIDEBAR (Desktop) - Enhanced with Dropdowns
   ========================================= */

.quick-sidebar {
    position: fixed;
    top: 50%;
    right: -320px;
    transform: translateY(-50%);
    width: 320px;
    max-height: 90vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: -15px 0 40px rgba(30, 64, 175, 0.15),
        0 0 0 1px rgba(30, 64, 175, 0.05) inset;
    z-index: 1050;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    border-radius: 24px 0 0 24px;
    display: none;
    backdrop-filter: blur(10px);
    overflow: visible;
}

@media (min-width: 992px) {
    .quick-sidebar {
        display: block;
    }
}

.quick-sidebar.active {
    right: 0;
    box-shadow: -20px 0 60px rgba(30, 64, 175, 0.25),
        0 0 0 1px rgba(30, 64, 175, 0.1) inset;
}

.quick-sidebar__inner {
    width: 100%;
    height: 100%;
    max-height: calc(90vh - 64px);
    /* Account for padding */
    overflow-y: auto;
    overflow-x: hidden;
    padding: 32px 20px;
    scrollbar-width: thin;
    scrollbar-color: #2563eb #f1f5f9;
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
.quick-sidebar__inner::-webkit-scrollbar {
    width: 6px;
}

.quick-sidebar__inner::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.quick-sidebar__inner::-webkit-scrollbar-thumb {
    background: #2563eb;
    border-radius: 10px;
    transition: background 0.3s;
}

.quick-sidebar__inner::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Toggle Button with Gradient */
.quick-sidebar__toggle {
    position: absolute;
    left: -48px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 70px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -8px 0 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.quick-sidebar__toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.quick-sidebar__toggle:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: -10px 0 30px rgba(37, 99, 235, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.quick-sidebar__toggle:hover::before {
    opacity: 1;
}

.quick-sidebar__toggle i {
    font-size: 1.3rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.quick-sidebar.active .quick-sidebar__toggle i {
    transform: rotate(180deg);
}

/* Header Section */
.quick-sidebar__header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(to right, #e0e7ff 0%, transparent 100%) bottom / 100% 2px no-repeat;
}

.quick-sidebar__title {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.quick-sidebar__subtitle {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Dropdown Sections */
.quick-sidebar__dropdown {
    margin-bottom: 16px;
}

.quick-sidebar__dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: 12px;
    color: #1e40af;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-sidebar__dropdown-toggle span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-sidebar__dropdown-toggle span i {
    font-size: 1.1rem;
    color: #2563eb;
}

.quick-sidebar__chevron {
    font-size: 1rem;
    transition: transform 0.3s;
    color: #2563eb;
}

.quick-sidebar__dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: #2563eb;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.quick-sidebar__dropdown-toggle.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-color: #2563eb;
}

.quick-sidebar__dropdown-toggle.active span i,
.quick-sidebar__dropdown-toggle.active .quick-sidebar__chevron {
    color: white;
}

.quick-sidebar__dropdown-toggle.active .quick-sidebar__chevron {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.quick-sidebar__dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin-top 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.quick-sidebar__dropdown-menu.active {
    max-height: 400px;
    opacity: 1;
    margin-top: 12px;
}

.quick-sidebar__dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: #475569;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    position: relative;
    overflow: hidden;
}

.quick-sidebar__dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.quick-sidebar__dropdown-item i {
    font-size: 1rem;
    color: #3b82f6;
    transition: all 0.3s;
}

.quick-sidebar__dropdown-item:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1e40af;
    transform: translateX(6px);
    padding-left: 20px;
}

.quick-sidebar__dropdown-item:hover::before {
    transform: scaleY(1);
}

.quick-sidebar__dropdown-item:hover i {
    color: #2563eb;
    transform: scale(1.1);
}

/* Navigation Sections */
.quick-sidebar__nav {
    margin-bottom: 20px;
}

/* Enhanced Link Styles */
.quick-sidebar__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: #475569;
    text-decoration: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 6px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quick-sidebar__link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 4px 4px 0;
}

.quick-sidebar__link::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    font-family: 'Bootstrap Icons';
    content: '\F285';
    color: #2563eb;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-sidebar__link i {
    font-size: 1.15rem;
    color: #3b82f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-sidebar__link:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(59, 130, 246, 0.05) 100%);
    color: #1e40af;
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.quick-sidebar__link:hover::before {
    transform: scaleY(1);
}

.quick-sidebar__link:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.quick-sidebar__link:hover i {
    color: #2563eb;
    transform: scale(1.15) rotate(-5deg);
}

.quick-sidebar__link:active {
    transform: translateX(4px) scale(0.98);
}

/* Apply Now Button - Premium Style */
.quick-sidebar__link--apply {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white !important;
    margin-top: 18px;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.quick-sidebar__link--apply::before {
    display: none;
}

.quick-sidebar__link--apply::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transform: rotate(45deg);
    transition: all 0.6s;
}

.quick-sidebar__link--apply i {
    color: white !important;
    transition: transform 0.3s;
}

.quick-sidebar__link--apply:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

.quick-sidebar__link--apply:hover::after {
    left: 100%;
}

.quick-sidebar__link--apply:hover i {
    transform: scale(1.1);
}

/* Social Links */
.quick-sidebar__social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid transparent;
    background: linear-gradient(to right, transparent 0%, #e0e7ff 50%, transparent 100%) top / 100% 2px no-repeat;
}

.quick-sidebar__social-link {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.quick-sidebar__social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.quick-sidebar__social-link i {
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.quick-sidebar__social-link:hover {
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.quick-sidebar__social-link:hover::before {
    width: 100%;
    height: 100%;
}

.quick-sidebar__social-link:hover i {
    transform: rotate(360deg);
}

/* Scrollbar Styling */
.quick-sidebar__inner::-webkit-scrollbar {
    width: 6px;
}

.quick-sidebar__inner::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.quick-sidebar__inner::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 10px;
}

.quick-sidebar__inner::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}