.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    width: 60px;
    height: 30px;
    background-color: var(--background-secondary);
    border-radius: 15px;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-indicator {
    position: absolute;
    width: 26px;
    height: 26px;
    background-color: var(--text-primary);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    overflow: visible;
}

/* Fox ears */
.fox-ear {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: var(--fox-orange);
    top: -5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.fox-ear.left {
    left: 3px;
    transform: rotate(45deg);
    border-radius: 0 0 0 5px;
}

.fox-ear.right {
    right: 3px;
    transform: rotate(-45deg);
    border-radius: 0 0 5px 0;
}

.fox-ear.active {
    opacity: 1;
}

/* Visor element */
.toggle-visor {
    position: absolute;
    width: 16px;
    height: 4px;
    background-color: transparent;
    top: 10px;
    left: 5px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* When toggled to protofox mode */
input:checked + .toggle-track {
    background-color: var(--background-primary);
}

input:checked + .toggle-track .toggle-indicator {
    left: 32px;
    background-color: #121212;
}

input:checked + .toggle-track .toggle-visor {
    background-color: #00e5ff;
    box-shadow: 0 0 5px #00e5ff;
}

.toggle-label {
    margin-left: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

input:checked + .toggle-track + .toggle-label {
    color: var(--accent-primary);
}
