/**
 * EgniTech One — Dark Mode Toggle Button Styles
 */

.egnitech-dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--wp--preset--color--border);
    border-radius: 50%;
    background: transparent;
    color: var(--wp--preset--color--contrast);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.egnitech-dark-mode-toggle:hover {
    background-color: var(--wp--preset--color--surface);
    border-color: var(--wp--preset--color--accent);
    transform: scale(1.08);
}

.egnitech-dark-mode-toggle:focus-visible {
    outline: 2px solid var(--wp--preset--color--accent);
    outline-offset: 2px;
}

.egnitech-dark-mode-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 0.2s ease, transform 0.3s ease;
}

.egnitech-dark-mode-toggle .icon-sun {
    display: none;
}

.egnitech-dark-mode-toggle .icon-moon {
    display: block;
}