.toggle-container {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    background-color: #1a202c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin: 20px auto;
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.toggle-container:hover {
    border-color: #7541d1;
}

.toggle-container .checker-label {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.toggle-container .toggle-label {
    opacity: 0.8;
}

.toggle-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 22px;
    border-radius: 11px;
    background: rgba(45, 55, 72, 0.8);
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.toggle-container input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: linear-gradient(145deg, #e2e8f0, #cbd5e0);
    transition: left 0.3s ease, background 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.toggle-container input[type="checkbox"]::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    border-radius: 11px;
    top: 0;
    left: 0;
    background: linear-gradient(90deg, #7541d1, #a855f7);
    transition: width 0.3s ease;
    z-index: 1;
}

.toggle-container input[type="checkbox"]:checked {
    background: rgba(26, 26, 46, 0.8);
}

.toggle-container input[type="checkbox"]:checked::before {
    left: 24px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.toggle-container input[type="checkbox"]:checked::after {
    width: 100%;
}

.toggle-container input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 
        inset 0 1px 3px rgba(0, 0, 0, 0.4),
        0 0 0 2px rgba(117, 65, 209, 0.3);
}

@media (min-width: 768px) {
    .toggle-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .toggle-container .toggle-label {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .toggle-container .checker-label {
        margin-bottom: 12px;
    }

    .toggle-container .toggle-input {
        order: 1;
    }

    .toggle-container .toggle-label {
        order: 2;
    }
}