/* Theme Toggle Button Styles */

.theme-toggle-btn {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    border-width: 2px;
}

.theme-toggle-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

/* Light theme button */
.btn-outline-primary.theme-toggle-btn {
    border-color: #007bff;
    color: #007bff;
}

.btn-outline-primary.theme-toggle-btn:hover {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Dark theme button */
.btn-outline-warning.theme-toggle-btn {
    border-color: #ffc107;
    color: #ffc107;
    background: rgba(0, 0, 0, 0.8);
}

.btn-outline-warning.theme-toggle-btn:hover {
    background: #ffc107;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

/* Icon animations */
.theme-toggle-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover i {
    transform: rotate(20deg) scale(1.1);
}

/* Text styling */
.theme-text {
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Dark mode overrides */
[data-theme="dark"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .theme-toggle-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .theme-toggle-btn i {
        font-size: 1rem;
    }
    
    .theme-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .theme-toggle-btn .theme-text {
        display: none;
    }
    
    .theme-toggle-btn {
        padding: 0.6rem;
        border-radius: 50%;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
    }
}

/* Pulse animation for initial load */
@keyframes themePulse {
    0% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

.theme-toggle-btn.pulse {
    animation: themePulse 2s ease-in-out;
}