/* Theme Toggle Button */

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-button-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-button-border);
    color: var(--glass-button-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 20px;
    padding: 0;
}

.theme-toggle:hover {
    background: var(--glass-button-hover);
    transform: rotate(180deg);
}

/* Dashboard theme toggle - matches existing button style */
.theme-toggle-dashboard {
    width: auto;
    height: auto;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle-dashboard:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: none;
}

.theme-toggle-dashboard svg {
    width: 16px;
    height: 16px;
}

/* Profile modal theme toggle */
.theme-toggle-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.theme-toggle-modal:hover {
    color: var(--primary-color);
    transform: none;
}

/* Hide moon in light mode, sun in dark mode */
[data-theme="light"] .theme-icon-moon,
:root:not([data-theme="dark"]) .theme-icon-moon {
    display: none;
}

[data-theme="dark"] .theme-icon-sun {
    display: none;
}

/* Auth pages theme toggle */
.theme-toggle-auth {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
