/**
 * Logify Email Digest Admin Styles
 *
 * @since 1.4.0
 */

/* ------------------------------------------------------------------ */
/* Status grid                                                          */
/* ------------------------------------------------------------------ */
.kc-lf-digest-status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.kc-lf-digest-status-item {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
}

.kc-lf-digest-status-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.kc-lf-digest-status-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* ------------------------------------------------------------------ */
/* Preview section — two cards side by side                             */
/* ------------------------------------------------------------------ */
.kc-lf-digest-preview-section {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.kc-lf-digest-card {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 16px 18px;
}

.kc-lf-digest-card strong {
    font-size: 14px;
    color: #111827;
}

/* ------------------------------------------------------------------ */
/* Test row                                                             */
/* ------------------------------------------------------------------ */
.kc-lf-digest-test-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.kc-lf-digest-test-row input[type="email"] {
    flex: 1;
    min-width: 0;
}

/* ------------------------------------------------------------------ */
/* Status notice                                                        */
/* ------------------------------------------------------------------ */
#kc-lf-digest-status {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 4px;
}

.kc-lf-notice-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.kc-lf-notice-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ------------------------------------------------------------------ */
/* Loading state on button                                              */
/* ------------------------------------------------------------------ */
.kc-lf-btn-loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */
@media (max-width: 782px) {
    .kc-lf-digest-status-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .kc-lf-digest-preview-section {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .kc-lf-digest-status-grid {
        grid-template-columns: 1fr;
    }

    .kc-lf-digest-test-row {
        flex-direction: column;
        align-items: stretch;
    }
}
