/* Estilo moderno para o toggle de tema */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    margin: 0 0.5rem;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(138, 43, 226, 0.15);
    transition: 0.4s;
    border-radius: 34px;
    border: 1px solid rgba(138, 43, 226, 0.2);
    overflow: hidden;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: var(--primary-color);
    transition: 0.4s;
    border-radius: 50%;
    z-index: 2;
}

/* Ícones dentro do toggle */
.theme-slider:after {
    content: "🌙";
    position: absolute;
    right: 6px;
    top: 3px;
    font-size: 14px;
    transition: 0.4s;
}

/* Tema claro (sol) */
input:checked + .theme-slider {
    background-color: rgba(66, 184, 131, 0.15);
    border-color: rgba(66, 184, 131, 0.3);
}

input:checked + .theme-slider:before {
    transform: translateX(26px);
    background-color: var(--secondary-color);
}

input:checked + .theme-slider:after {
    content: "☀️";
    left: 6px;
    right: auto;
}

/* Efeito de foco */
.theme-switch input:focus + .theme-slider {
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

/* Efeito hover */
.theme-slider:hover {
    background-color: rgba(138, 43, 226, 0.25);
}

input:checked + .theme-slider:hover {
    background-color: rgba(66, 184, 131, 0.25);
}