/* Floating Theme Toggle Button */
.theme-toggle-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--text-color);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid var(--border-color, #e0e0e0);
}

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

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

/* Theme icon visibility based on current theme */
.light .theme-toggle-floating .sun-icon {
    display: none;
}

.light .theme-toggle-floating .moon-icon {
    display: inline;
}

.dark .theme-toggle-floating .sun-icon {
    display: inline;
}

.dark .theme-toggle-floating .moon-icon {
    display: none;
}

/* Default state - show moon icon (for switching to dark) */
.theme-toggle-floating .sun-icon {
    display: inline;
}

.theme-toggle-floating .moon-icon {
    display: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .theme-toggle-floating {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}