/*
 * Stylesheet for Smart Notification Manager admin interface.
 *
 * This file defines a clean, modern look for the settings page. It uses
 * card‑like panels and custom toggle switches to mirror the Smart plugin
 * family aesthetics. If you wish to customise the appearance further, you can
 * safely override these styles in your own admin theme.
 */

.senm7s-wrap .senm7s-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.senm7s-wrap .senm7s-card h2 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 12px;
}

.senm7s-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.senm7s-toggle label {
    font-weight: 600;
    margin: 0;
}

/* Toggle switch styling */
.senm7s-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

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

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

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

.senm7s-switch input:checked + .senm7s-slider {
    background-color: #00a0d2;
}

.senm7s-switch input:checked + .senm7s-slider:before {
    transform: translateX(18px);
}

.senm7s-slider:active:before {
    width: 22px;
}

/* Fix WordPress nav tab spacing inside our wrap */
.senm7s-wrap .nav-tab-wrapper {
    margin-bottom: 20px;
}

/* Ensure WP editor boxes fit within cards */
.senm7s-card .wp-editor-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
}
.senm7s-card .wp-editor-container textarea {
    width: 100%;
}

/* Table styling in logs */
.senm7s-card table.widefat {
    margin-top: 0;
}
