/* ═══════════════════════════════════════════════════════════
   NP2 Security & Admin Modal Styles
   Matches the design language of shared-components.css and cic.css
   ═══════════════════════════════════════════════════════════ */

/* ─── Page-level Security Cards ─────────────────────────── */

.sec-page {
    max-width: 720px;
}

.sec-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sec-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #f3f4f6;
}

.sec-card-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sec-card-body {
    padding: 14px 16px;
}

.sec-card-desc {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}

/* ─── Colored Notice Boxes ──────────────────────────────── */
/* Subtle backgrounds with readable text, aligned to app palette */

.sec-notice {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sec-notice strong {
    font-weight: 600;
}

.sec-notice-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.sec-notice-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.sec-notice-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.sec-notice-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* ─── User Summary (shown in admin modals) ──────────────── */

.sec-user-summary {
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sec-user-summary-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.sec-user-summary-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.sec-user-summary-email {
    font-size: 12px;
    color: #6b7280;
    margin-top: 1px;
}

/* ─── Labeled Field ─────────────────────────────────────── */

.sec-field {
    margin-bottom: 12px;
}

.sec-field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
}

.sec-field-input {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
    box-sizing: border-box;
    background: white;
    color: #111827;
}

.sec-field-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

.sec-field-hint {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 3px;
}

.sec-field-error {
    font-size: 12px;
    color: #dc2626;
    margin-top: 4px;
    min-height: 14px;
}

/* ─── Step Container ────────────────────────────────────── */

.sec-step {
    margin-bottom: 14px;
}

.sec-step-title {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.sec-step-desc {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

/* ─── QR Container ──────────────────────────────────────── */

.sec-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    min-height: 220px;
    margin-bottom: 10px;
}

/* ─── Secret Code Display ───────────────────────────────── */

.sec-code-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.sec-code-box {
    flex: 1;
    padding: 8px 10px;
    background: #1e293b;
    color: #10b981;
    border-radius: 6px;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.05em;
    word-break: break-all;
    font-weight: 400;
}

/* Single-line password display (larger, centered) */
.sec-code-display {
    padding: 12px 16px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    margin-bottom: 12px;
    text-align: center;
}

.sec-code-display code {
    color: #10b981;
    font-family: 'Space Mono', 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 0.08em;
    word-break: break-all;
}

/* Backup codes grid */
.sec-code-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 12px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    margin-bottom: 12px;
    font-family: 'Space Mono', 'Courier New', monospace;
}

.sec-code-grid > div {
    padding: 4px 8px;
    text-align: center;
    color: #10b981;
    font-size: 13px;
    letter-spacing: 0.06em;
}

/* ─── Checkbox Confirmation ─────────────────────────────── */

.sec-checkbox-confirm {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

.sec-checkbox-confirm input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2563eb;
}

/* ─── Button Rows ───────────────────────────────────────── */

.sec-button-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

/* ─── Security page info list ───────────────────────────── */

.sec-info-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0 0;
    font-size: 12px;
    line-height: 1.7;
    color: #6b7280;
}

.sec-info-list li {
    padding-left: 12px;
    position: relative;
}

.sec-info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #9ca3af;
}