.jetly-notify-layout {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.jetly-notify-main {
    flex: 1;
}

.jetly-notify-sidebar {
    width: 350px;
}

.form-field {
    margin-bottom: 20px;
}

.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-field input[type="text"],
.form-field input[type="password"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    max-width: 600px;
}

.form-field .description {
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

.wa-device-frame {
    width: 340px;
    max-width: 100%;
    margin: 0 auto 20px auto;
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 1.5px 4px rgba(0, 0, 0, 0.08);
    background: #222;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 540px;
    border: 1.5px solid #e0e0e0;
}

.wa-header-bar {
    background: #075e54;
    color: #fff;
    padding: 18px 18px 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-logo {
    background: #25d366;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.wa-contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wa-contact-name {
    font-weight: 600;
    font-size: 1.08em;
}

.wa-contact-status {
    font-size: 0.93em;
    color: #d0f8ce;
}

.wa-chat-bg {
    background: #ece5dd;
    background-size: 340px 540px;
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.wa-chat-messages {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 18px 24px 18px;
    min-height: 200px;
}

.wa-bubble {
    background: #dcf8c6;
    color: #222;
    border-radius: 0 16px 16px 16px;
    padding: 14px 18px;
    font-size: 0.97rem;
    line-height: 1.7;
    max-width: 95%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    word-break: break-word;
    align-self: flex-end;
}

.wa-header-label,
.wa-footer-label {
    background: #f0f0f0;
    color: #888;
    font-size: 0.93em;
    border-radius: 8px;
    padding: 6px 14px;
    margin-bottom: 0;
    align-self: flex-end;
    font-weight: 500;
    max-width: 70%;
}

.wa-footer-label {
    font-style: italic;
    margin-top: 2px;
}

.no-template-selected {
    color: #666;
    font-style: italic;
    text-align: center;
    margin-top: 40px;
}

.wa-bubble-full {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.wa-bubble-header-inside {
    background: transparent;
    color: #888;
    font-size: 0.89em;
    font-weight: 500;
    padding: 10px 18px 2px 18px;
    border-radius: 0 16px 0 0;
}

.wa-bubble-body-inside {
    background: none;
    color: #383838;
    font-size: 0.87rem;
    padding: 10px 18px 0 18px;
    line-height: 1.3;
}

.wa-bubble-footer-inside {
    background: transparent;
    color: #888;
    font-size: 0.7rem;
    padding: 6px 18px 10px 18px;
    border-radius: 0 0 16px 16px;
}

.variable-mapping {
    margin-bottom: 10px;
    padding: 10px 0;
    background: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.variable-mapping label {
    flex: 1 1 50%;
    margin: 0;
    font-weight: 500;
    min-width: 120px;
    max-width: 220px;
}

.variable-mapping .variable-select {
    flex: 1 1 50%;
    min-width: 120px;
    max-width: 260px;
}

.trigger-form-premium-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 32px rgba(37, 211, 102, 0.10), 0 1.5px 4px rgba(0, 0, 0, 0.04);
    padding: 0;
    margin-bottom: 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1.5px solid #eafbe7;
}

.trigger-form-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    background: #f7fafd;
    border-radius: 18px 18px 0 0;
    padding: 36px 36px 20px 36px;
    border-bottom: 1px solid #e0e0e0;
}

.hero-icon-premium {
    font-size: 48px;
    color: #fff;
    background: linear-gradient(135deg, #25d366 60%, #128c7e 100%);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.13);
}

.trigger-form-hero .hero-content h2 {
    margin: 0 0 6px 0;
    font-size: 1.7rem;
    font-weight: 800;
    color: #1d2327;
    letter-spacing: -1px;
}

.trigger-form-hero .hero-content .hero-subtitle {
    margin: 0;
    color: #4a5568;
    font-size: 1.09rem;
    opacity: 0.92;
    font-weight: 400;
}

.form-section-premium {
    padding: 32px 36px 0 36px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.section-header {
    font-size: 1.09rem;
    font-weight: 700;
    color: #25d366;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.form-divider-premium {
    border: none;
    border-top: 1.5px solid #eafbe7;
    margin: 36px 0 0 0;
}

.form-floating-premium {
    position: relative;
    margin-bottom: 0;
}

.form-floating-premium select.form-control-premium {
    width: 100%;
    padding: 20px 18px 10px 18px;
    font-size: 1.13rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    background: #fff;
    color: #222;
    appearance: none;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    box-shadow: 0 1.5px 4px rgba(37, 211, 102, 0.04);
}

.form-floating-premium label {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 1.13rem;
    color: #888;
    background: #fff;
    padding: 0 4px;
    pointer-events: none;
    transition: 0.18s;
    z-index: 2;
}

.form-floating-premium select.form-control-premium:focus+label,
.form-floating-premium select.form-control-premium:not([value=""]):not(:invalid)+label {
    top: -12px;
    left: 18px;
    font-size: 0.99rem;
    color: #25d366;
    background: #fff;
    padding: 0 4px;
}

.form-switch-premium {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e0e0e0;
    border-radius: 28px;
    transition: background 0.2s;
}

.switch input:checked+.slider {
    background: linear-gradient(90deg, #25d366 60%, #128c7e 100%);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1.5px 4px rgba(37, 211, 102, 0.10);
}

.switch input:checked+.slider:before {
    transform: translateX(20px);
}

.switch-label {
    font-size: 1.09rem;
    color: #222;
    font-weight: 600;
}

.sticky-action-bar-premium {
    position: sticky;
    bottom: 0;
    left: 0;
    background: #fff;
    border-top: 1.5px solid #eafbe7;
    padding: 22px 36px 22px 36px;
    display: flex;
    gap: 18px;
    z-index: 10;
    margin-top: 36px;
    justify-content: flex-end;
}

@media (max-width: 900px) {

    .trigger-form-hero,
    .form-section-premium,
    .sticky-action-bar-premium {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 700px) {
    .trigger-form-premium-card {
        border-radius: 10px;
    }

    .trigger-form-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 18px 10px 10px 10px;
    }

    .form-section-premium {
        padding: 18px 10px 0 10px;
    }

    .sticky-action-bar-premium {
        padding: 14px 10px 14px 10px;
        border-radius: 0 0 10px 10px;
    }
}

.jetly-notify-select {
    width: 100%;
    padding: 14px 38px 14px 18px;
    font-size: 1.08rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 999px;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="%2325d366" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 7.293a1 1 0 011.414 0L10 8.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>') no-repeat right 16px center/18px 18px;
    color: #222;
    appearance: none;
    outline: none;
    box-shadow: 0 1.5px 4px rgba(37, 211, 102, 0.04);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.jetly-notify-select:focus {
    border-color: #25d366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.13);
}

/*** admin trigger  ***/
.notifications-table-card {
    padding: 0;
    margin-top: 20px;
    overflow-x: auto;
}

.notifications-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    min-width: 600px;
}

.notifications-table thead tr {
    background: #fff;
}

.notifications-table th,
.notifications-table td {
    padding: 14px 16px;
    text-align: start;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
}

.notifications-table th {
    font-weight: 700;
    color: #1d2327;
    letter-spacing: 0.01em;
}

.notifications-table tr:last-child td {
    border-bottom: none;
}

.notifications-table tbody tr:hover {
    background: #f8fff6;
    transition: background 0.2s;
}

.badge {
    display: inline-block;
    padding: 3px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    vertical-align: middle;
}

.badge-active {
    background: #eafbe7;
    color: #2e7d32;
    border: 1px solid #b6e2c1;
}

.badge-inactive {
    background: #fbeaea;
    color: #c62828;
    border: 1px solid #f5bdbd;
}

.table-action {
    display: inline-block;
    margin-inline-end: 8px;
    color: #2271b1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 18px;
    vertical-align: middle;
    transition: color 0.2s;
}

.table-action.edit:hover {
    color: #25d366;
}

.table-action.delete:hover {
    color: #c62828;
}

.table-action .dashicons {
    vertical-align: middle;
}

.empty-table {
    text-align: center;
    color: #888;
    font-size: 1.08em;
    padding: 40px 0;
}

.empty-table .dashicons {
    font-size: 22px;
    color: #bdbdbd;
    margin-inline-end: 6px;
    vertical-align: middle;
}

@media (max-width: 700px) {
    .notifications-table {
        min-width: 500px;
    }
}

.jetly-notify-hero-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 32px 32px 28px 32px;
    margin-bottom: 28px;
    position: relative;
    gap: 28px;
    flex-wrap: wrap;
}

.jetly-notify-hero-card .hero-icon {
    font-size: 48px;
    color: #25d366;
    background: #eafbe7;
    border-radius: 50%;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.07);
}

.jetly-notify-hero-card .hero-content {
    flex: 1 1 300px;
    min-width: 220px;
}

.jetly-notify-hero-card h1 {
    margin: 0 0 8px 0;
    font-size: 2.1rem;
    font-weight: 700;
    color: #1d2327;
    letter-spacing: -1px;
}

.jetly-notify-hero-card .hero-subtitle {
    margin: 0;
    color: #4a5568;
    font-size: 1.08rem;
    opacity: 0.92;
    font-weight: 400;
}

.add-notification-btn {
    margin-inline-start: auto;
    font-size: 1.13rem;
    padding: 10px 15px !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    border-radius: 5px !important;
    background: #25d366 !important;
    color: #fff !important;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    letter-spacing: 0.01em;
    text-shadow: none;
    cursor: pointer;
    outline: none;
    position: relative;
    overflow: hidden;
}

.add-notification-btn .dashicons {
    font-size: 22px;
    margin-inline-end: 6px;
    font-weight: bold;
    color: #fff;
    transition: color 0.18s;
}

@media (max-width: 700px) {
    .jetly-notify-hero-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 12px 18px 12px;
        gap: 16px;
    }

    .add-notification-btn {
        width: 100%;
        justify-content: center;
        margin-inline-start: 0;
        margin-top: 16px;
        padding: 14px 0;
    }
}

.jetly-notify-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin: 18px 0 0 0;
}

.jetly-notify-pagination .page-numbers {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 7px;
    background: #f7fafd;
    color: #2271b1;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    border: 1px solid #e0e0e0;
    font-size: 1em;
}

.jetly-notify-pagination .page-numbers.current,
.jetly-notify-pagination .page-numbers:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.jetly-notify-pagination .page-numbers.prev,
.jetly-notify-pagination .page-numbers.next {
    font-size: 1.08em;
    font-weight: 700;
}