.mail-cloak-admin-wrap {
    max-width: 1200px;
    margin: 20px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mail-cloak-admin-wrap h1 {
    color: #23282d;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.mail-cloak-admin-wrap h2 {
    font-size: 1.3em;
    margin: 1.2em 0 0.8em;
    padding: 0;
    color: #1d2327;
}

.mail-cloak-admin-wrap .form-table {
    margin-top: 15px;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
}

.mail-cloak-admin-wrap .form-table th {
    padding: 10px 10px 10px 0;
    width: 200px;
}

.mail-cloak-admin-wrap .form-table td {
    padding: 10px;
    max-width: 100%;
}

.mail-cloak-admin-wrap .submit {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mail-cloak-admin-wrap .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    padding: 5px 20px;
    height: auto;
    text-shadow: none;
    box-shadow: none;
    border-radius: 4px;
}

.mail-cloak-admin-wrap .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.mail-cloak-description {
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

/* Toggle Switch Styles */
.toggle-switch-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.toggle-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f6f7f7;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.toggle-option:hover {
    background: #f0f0f1;
}

.toggle-option:hover .toggle-content {
    background: #f0f0f1;
}

.toggle-option input[type="radio"]:checked ~ .toggle-content,
.toggle-option input[type="checkbox"]:checked ~ .toggle-content {
    color: #0a3622;
}

.toggle-option input[type="radio"]:checked + .toggle-switch ~ .toggle-content .toggle-description,
.toggle-option input[type="checkbox"]:checked + .toggle-switch ~ .toggle-content .toggle-description {
    color: #1e4d33;
}

.toggle-option input[type="radio"]:checked,
.toggle-option input[type="checkbox"]:checked {
    background-color: #069e08;
}

.toggle-option input[type="radio"]:checked + .toggle-switch .toggle-slider,
.toggle-option input[type="checkbox"]:checked + .toggle-switch .toggle-slider {
    background-color: #069e08;
}

.toggle-option:has(input:checked) {
    background-color: #f0fdf4;
}

.toggle-option:has(input:checked) .toggle-content {
    background-color: #f0fdf4;
    transition: all 0.2s ease;
}

.toggle-option:has(input:checked):hover,
.toggle-option:has(input:checked):hover .toggle-content {
    background-color: #dcfce7;
}

.toggle-option input[type="radio"],
.toggle-option input[type="checkbox"] {
    display: none;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input[type="radio"]:checked + .toggle-switch .toggle-slider,
input[type="checkbox"]:checked + .toggle-switch .toggle-slider {
    background-color: #069e08;
}

input[type="radio"]:checked + .toggle-switch .toggle-slider:before,
input[type="checkbox"]:checked + .toggle-switch .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-content {
    flex-grow: 1;
    min-width: 0;
    padding: 0 16px;
    box-sizing: border-box;
    background: #f6f7f7;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.toggle-label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 2px;
    color: #1d2327;
}

.toggle-description {
    color: #646970;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Section styles */
.mail-cloak-admin-wrap .form-table + h2 {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Responsive styles */
@media screen and (max-width: 782px) {
    .toggle-option {
        padding: 10px 12px;
    }

    .toggle-content {
        padding: 0 12px;
    }

    .toggle-label {
        font-size: 13px;
    }

    .toggle-description {
        font-size: 12px;
    }

    .mail-cloak-admin-wrap h2 {
        font-size: 1.2em;
        margin: 1em 0 0.6em;
    }
}

@media screen and (max-width: 600px) {
    .mail-cloak-admin-wrap {
        margin: 10px;
        padding: 15px;
    }

    .toggle-option {
        padding: 8px 10px;
    }

    .toggle-switch {
        margin-right: 12px;
    }

    .mail-cloak-admin-wrap h2 {
        font-size: 1.1em;
    }
}
