.thormail-wrap {
    max-width: 1200px;
    /* Increased max width for 2-column */
    margin: 20px 20px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #3c434a;
}

/* Header */
.thormail-header {
    background: #fff;
    padding: 24px 32px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.thormail-logo h1 {
    margin: 0;
    color: #1d2327;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.thormail-logo img {
    vertical-align: middle;
}

.thormail-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Layout */
.thormail-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.thormail-main {
    flex: 2;
    /* Takes up 2/3 of the space */
    min-width: 0;
}

.thormail-sidebar {
    flex: 1;
    /* Takes up 1/3 of the space */
    min-width: 300px;
}

/* responsive */
@media screen and (max-width: 960px) {
    .thormail-container {
        flex-direction: column;
    }

    .thormail-sidebar {
        width: 100%;
        min-width: 0;
    }
}


/* Cards */
.thormail-card {
    background: #fff;
    padding: 32px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.thormail-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f1;
}

.thormail-card-header h2,
.thormail-card-header h3 {
    margin: 0 0 8px;
    font-size: 1.3em;
    font-weight: 600;
}

.thormail-card-header p {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

/* Form Elements */
.thormail-form-table th {
    width: 200px;
    font-weight: 600;
}

.thormail-input,
.regular-text {
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 0 12px;
    height: 40px;
    font-size: 14px;
    line-height: normal;
    box-shadow: 0 0 0 transparent;
    transition: box-shadow .15s ease-in-out, border-color .15s ease-in-out;
}

.thormail-input:focus,
.regular-text:focus,
textarea:focus {
    color: #2c3338;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: 0;
}

.thormail-form-row {
    margin-bottom: 20px;
}

.thormail-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.thormail-test-email textarea {
    width: 100%;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    padding: 12px;
}

/* Status Badges */
.thormail-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.thormail-status.active {
    background: #edfaef;
    /* Light green */
    color: #008a20;
    border: 1px solid #cff5d4;
}

.thormail-status.inactive {
    background: #fcf0f1;
    /* Light red */
    color: #d63638;
    border: 1px solid #f7dadd;
}

/* Sidebar Info Cards */
.thormail-feature-list {
    margin: 16px 0 24px;
    list-style: none;
    padding: 0;
}

.thormail-feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #50575e;
}

.thormail-feature-list li .dashicons {
    color: #2271b1;
}

.thormail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thormail-btn-block {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
    width: 100%;
    margin-bottom: 0 !important;
    height: 40px !important;
    font-size: 14px !important;
}

.thormail-footer-link {
    margin-top: 16px;
    font-size: 12px;
    color: #a7aaad;
    text-align: center;
}

/* Toggle Switch Overrides */
.switch {
    display: inline-block;
    height: 24px;
    position: relative;
    width: 44px;
}

.switch input {
    display: none;
}

/* System Status Card */
.thormail-system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.thormail-system-status.safe {
    color: #008a20;
}

.thormail-system-status.error {
    color: #d63638;
}

.thormail-service-list {
    margin: 10px 0 0;
    font-size: 12px;
    color: #646970;
    list-style: none;
    padding: 0;
}

.thormail-service-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.thormail-service-list li span:first-child {
    text-transform: capitalize;
}

.thormail-status-ok {
    color: #008a20;
    font-weight: 500;
}

.thormail-status-timestamp {
    margin-top: 12px;
    font-size: 11px;
    color: #a7aaad;
    text-align: right;
}


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

.slider:before {
    background-color: #fff;
    bottom: 3px;
    content: "";
    height: 18px;
    left: 3px;
    position: absolute;
    transition: .4s;
    width: 18px;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2271b1;
}

input:checked+.slider:before {
    transform: translateX(20px);
}