/**
 * WP EXtra - Admin Settings Styles (WP Extra Specific)
 *
 * @package WPEXtra
 */

/* ==========================================================================
   1. Protect .htaccess Styles
   ========================================================================== */
.wpex-protect-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 650px;
}

.wpex-protect-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wpex-protect-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    min-height: 32px;
    line-height: 30px;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    box-sizing: border-box;
    user-select: none;
}

.wpex-protect-badge.is-active {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.wpex-protect-badge.is-inactive {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.wpex-protect-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.wpex-protect-btn {
    height: 32px;
    min-height: 32px;
    line-height: 30px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
}

.wpex-protect-btn.is-danger {
    color: #d63638;
    border-color: #d63638;
    background: #ffffff;
}

.wpex-protect-btn.is-danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
    color: #b91c1c;
}

/* ==========================================================================
   2. SMTP Test & Quota Badges
   ========================================================================== */
.wpex-smtp-test-card {
    max-width: 600px;
    background: #ffffff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wpex-smtp-provider-hint {
    padding: 10px 14px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    color: #1d2327;
    margin: 4px 0 10px;
    line-height: 1.5;
}

.wpex-quota-badge {
    margin-left: 8px;
    font-size: 11.5px;
    font-weight: normal;
    vertical-align: middle;
}

/* ==========================================================================
   3. Email Delivery Logs Modal & Elements
   ========================================================================== */
.wpex-modal-overlay {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.wpex-modal-dialog {
    background: #fff;
    width: 90%;
    max-width: 820px;
    max-height: 88vh;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.wpex-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.wpex-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpex-modal-close-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #646970;
}

.wpex-modal-meta {
    padding: 12px 20px;
    background: #fcfcfd;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    line-height: 1.7;
}

.wpex-modal-body {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.wpex-modal-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}
