/* Theme Switcher Styles */

.theme-switcher {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: var(--background-color);
    padding: 0.5rem;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
}

.theme-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.theme-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

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

.theme-btn.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--background-color), 0 0 0 3px var(--secondary-color);
}

.theme-btn[data-theme="light"] {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: 2px solid #2c3e50;
}

.theme-btn[data-theme="dark"] {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #3498db;
}

.theme-btn[data-theme="sepia"] {
    background: linear-gradient(135deg, #f5f0e8 0%, #d7ccc8 100%);
    border: 2px solid #5d4037;
}

.theme-btn[data-theme="high-contrast"] {
    background: linear-gradient(90deg, #000000 0%, #000000 50%, #ffffff 50%, #ffffff 100%);
    border: 2px solid #000000;
}

/* Tooltip for theme names */
.theme-btn::after {
    content: attr(data-theme-name);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .theme-switcher {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem;
    }

    .theme-buttons {
        gap: 0.4rem;
    }

    .theme-btn {
        width: 22px;
        height: 22px;
    }
}

@media print {
    .theme-switcher {
        display: none;
    }
}
