/* Theme Toggle Button Styles */
.theme-toggle-container {
    margin-left: 20px;
    margin-right: 15px;
    position: relative;
}

.theme-toggle {
    height: 40px;
    width: 88px;
    border-radius: 999px;
    background: rgba(28, 28, 46, 0.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html[data-theme="light"] .theme-toggle {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.theme-toggle:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 10px 24px rgba(123, 140, 222, 0.25), 0 0 0 3px rgba(123, 140, 222, 0.15);
}

.theme-toggle:active {
    transform: scale(0.98);
}

.toggle-icons {
    position: relative;
    display: flex;
    width: 100%;
    justify-content: space-between;
    z-index: 2;
}

.toggle-icons i {
    font-size: 16px;
    transition: all 0.35s ease;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.toggle-icons i.fa-sun {
    color: #FFD76A;
    opacity: 0.65;
}

.toggle-icons i.fa-moon {
    color: #C3C8FF;
    opacity: 0.65;
}

html[data-theme="light"] .toggle-icons i.fa-sun {
    opacity: 1;
    transform: scale(1.1);
}

html[data-theme="dark"] .toggle-icons i.fa-moon {
    opacity: 1;
    transform: scale(1.1);
}

.toggle-slider {
    position: absolute;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #e9efff 60%, #b8c1ff 100%);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 18px rgba(184, 193, 255, 0.45), inset 0 -2px 6px rgba(0,0,0,0.15);
    z-index: 1;
}

html[data-theme="dark"] .toggle-slider {
    transform: translateX(0);
    left: 6px;
}

html[data-theme="light"] .toggle-slider {
    transform: translateX(42px);
    left: 0;
    background: radial-gradient(circle at 30% 30%, #fff1c1, #ffe39a 60%, #ffcf66 100%);
    box-shadow: 0 6px 18px rgba(255, 215, 106, 0.45), inset 0 -2px 6px rgba(0,0,0,0.12);
}

/* Animation for theme toggle */
.theme-animate {
    animation: pulse 0.35s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123,140,222,0.3); }
    50% { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(123,140,222,0.12); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(123,140,222,0); }
}

/* Ambient glow inside the toggle */
.theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120px 40px at 25% 50%, rgba(123,140,222,0.18), transparent 60%),
                radial-gradient(120px 40px at 75% 50%, rgba(255,215,106,0.12), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Simple toggle for mobile */
@media (max-width: 768px) {
    .theme-toggle {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        justify-content: center;
    }
    
    .toggle-icons {
        justify-content: center;
    }
    
    .toggle-icons i.fa-sun,
    .toggle-icons i.fa-moon {
        position: absolute;
        transition: all 0.3s ease;
    }
    
    html[data-theme="dark"] .toggle-icons i.fa-sun {
        opacity: 1;
        transform: scale(1);
    }
    
    html[data-theme="light"] .toggle-icons i.fa-sun {
        display: none;
    }
    
    html[data-theme="dark"] .toggle-icons i.fa-moon {
        display: none;
    }
    
    html[data-theme="light"] .toggle-icons i.fa-moon {
        opacity: 1;
        transform: scale(1);
    }
    
    .toggle-slider {
        display: none;
    }
} 