/* theme-toggle_demo3.css - Demo 3: Immersive Interactive */

.theme-toggle-button-d3 {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: var(--blur-effect);
    -webkit-backdrop-filter: var(--blur-effect);
    background-color: var(--color-card-bg);
}

.theme-toggle-button-d3:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px) rotate(15deg);
    box-shadow: var(--glow-effect);
}

.theme-toggle-button-d3 svg {
    width: 20px;
    height: 20px;
    transition: transform 0.5s ease;
}

.theme-toggle-button-d3 .sun-icon {
    display: none; /* Hidden by default, shown in dark mode */
    color: #ffffff;
}


.theme-toggle-button-d3 .moon-icon {
    display: block; /* Shown by default, hidden in dark mode */
    color: var(--color-text-primary);
}

body[data-theme='light'] .theme-toggle-button-d3 .sun-icon {
    display: block;
    color: #9aa204;
}

body[data-theme='light'] .theme-toggle-button-d3 .moon-icon {
    display: none;
}

.theme-toggle-button-d3:hover svg {
    transform: rotate(30deg);
  
}
