/* Theme Toggle Button Styles */

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--nav-link-color);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
    background: var(--hover-bg);
    transform: scale(1.05);
}

.theme-toggle:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

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

.theme-toggle svg {
    width: 22px;
    height: 22px;
    display: none;
    transition: transform 0.3s ease;
}

/* Sun icon (light mode) */
.theme-toggle .icon-sun {
    color: #f59e0b;
}

/* Moon icon (dark mode) */
.theme-toggle .icon-moon {
    color: #6366f1;
}

/* Auto icon (system preference) */
.theme-toggle .icon-auto {
    color: var(--text-secondary);
}

/* Icon rotation on hover */
.theme-toggle:hover .icon-sun {
    transform: rotate(15deg);
}

.theme-toggle:hover .icon-moon {
    transform: rotate(-15deg);
}

/* Theme selector for account page */
.theme-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: var(--font-size-sm);
}

.theme-option:hover {
    border-color: var(--accent-primary);
    background: var(--hover-bg);
}

.theme-option.active {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
}

.theme-option svg {
    width: 18px;
    height: 18px;
}

.theme-option.active svg {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .theme-toggle {
        padding: 10px;
    }

    .theme-toggle svg {
        width: 24px;
        height: 24px;
    }

    .theme-selector {
        flex-direction: column;
    }

    .theme-option {
        justify-content: center;
    }
}
