/* Theme Switcher Styles */
.theme-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.theme-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-shadow-dark);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.theme-panel {
    position: absolute;
    top: 60px;
    left: 0;
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
}

.theme-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.theme-panel h4 {
    margin: 0 0 1rem 0;
    color: var(--dark);
    font-size: 1rem;
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.theme-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.theme-color:hover {
    transform: scale(1.1);
    border-color: #333;
}

.theme-color.theme-special {
    font-size: 1.4rem;
    border: 2px dashed #999;
}

.theme-color::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-color:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        left: 10px;
    }
    
    .theme-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .theme-panel {
        min-width: 180px;
    }
    
    .theme-colors {
        grid-template-columns: repeat(2, 1fr);
    }
}