/* ===== FUTURISTIC SIDEBAR THEME ===== */
:root {
    --theme-color-1: #000456;
    --theme-color-2: #0405ef;
    --theme-accent: #00f0ff;
    --theme-dark: #0a0a14;
    --theme-light: rgba(224, 247, 255, 0.9);

    --hologram-effect: linear-gradient(135deg,
        rgba(0,244,255,0.1) 0%,
        rgba(4,5,239,0.3) 50%,
        rgba(0,4,86,0.1) 100%);

    --neon-glow: 0 0 15px rgba(0, 240, 255, 0.7);
    --deep-glow: 0 0 25px rgba(4, 5, 239, 0.5);
    --card-glow: 0 0 10px rgba(0, 244, 255, 0.3);
}

/* ===== QUANTUM SIDEBAR ===== */
.sidebar {
    position: relative;
    background: rgba(10, 10, 20, 0.85);
    border-radius: 12px;
    border: 1px solid rgba(0, 244, 255, 0.15);
    box-shadow:
        var(--deep-glow),
        inset 0 0 30px rgba(0, 4, 86, 0.5);
    padding: 0;
    backdrop-filter: blur(8px);
    overflow: hidden;
    font-family: 'Orbitron', 'Segoe UI', sans-serif;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--theme-color-1),
        var(--theme-color-2),
        var(--theme-accent));
    z-index: 2;
}

.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 95%, rgba(0,244,255,0.05) 95%),
        linear-gradient(0deg, transparent 95%, rgba(0,244,255,0.05) 95%);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

.scroll-container {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.scroll-enabled {
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color-2) var(--theme-dark);
}

.scroll-enabled::-webkit-scrollbar {
    width: 6px;
}

.scroll-enabled::-webkit-scrollbar-track {
    background: var(--theme-dark);
    border-radius: 3px;
}

.scroll-enabled::-webkit-scrollbar-thumb {
    background-color: var(--theme-color-2);
    border-radius: 3px;
}

/* ===== SIDEBAR HEADER ===== */
.sidebar-header {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 244, 255, 0.2);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 244, 255, 0.3);
    position: relative;
    display: inline-block;
}

.sidebar-header h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--theme-accent), transparent);
}

.search-box {
    position: relative;
    margin-top: 20px;
}

.search-input {
    width:80%;
    padding: 12px 15px 12px 40px;
    background: rgba(0, 4, 86, 0.4);
    border: 1px solid rgba(0, 244, 255, 0.2);
    border-radius: 6px;
    color: var(--theme-light);
    font-family: 'Orbitron', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--theme-accent);
    box-shadow: var(--neon-glow);
    background: rgba(0, 4, 86, 0.6);
}

.search-input::placeholder {
    color: rgba(224, 247, 255, 0.6);
    letter-spacing: 1px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme-accent);
    font-size: 0.9rem;
}

/* ===== CAUSE ITEMS ===== */
.cause-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cause-item {
    position: relative;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.cause-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--theme-color-1), var(--theme-color-2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cause-item:hover::before {
    opacity: 1;
}

.cause-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(0, 4, 86, 0.3);
    border-radius: 6px;
    color: var(--theme-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cause-link:hover {
    background: rgba(4, 5, 239, 0.2);
    transform: translateX(5px);
    box-shadow: var(--card-glow);
}

.cause-link:hover .cause-name {
    color: var(--theme-accent);
}

.cause-link:hover .hover-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.holographic-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 244, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.cause-link:hover .holographic-icon {
    background: rgba(0, 244, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 244, 255, 0.3);
}

.holographic-icon i {
    color: var(--theme-accent);
    font-size: 1rem;
}

.cause-name {
    flex: 1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hover-arrow {
    opacity: 0;
    color: var(--theme-accent);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

/* ===== SIDEBAR FOOTER ===== */
.sidebar-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 244, 255, 0.1);
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--theme-color-1), var(--theme-color-2));
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(4, 5, 239, 0.3);
}

.view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(4, 5, 239, 0.5);
    background: linear-gradient(135deg, var(--theme-color-2), var(--theme-color-1));
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .sidebar {
        backdrop-filter: none;
    }

    .scroll-container {
        max-height: none;
    }
}
