/* ===== Shared Admin CSS ===== */
/* Used by: Logs, Audit, VinAuditLogs, SubmissionDashboard, Descargas, PrevalidatorTest */

/* ===== Page Layout ===== */
.admin-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
}

/* ===== Page Header ===== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    flex-shrink: 0;
}

.page-header h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.header-count {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 2px;
    display: block;
}

.header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ===== Stats Cards ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg { width: 20px; height: 20px; }

.icon-primary { background: #e0e7ff; color: #4338ca; }
.icon-success { background: #dcfce7; color: #16a34a; }
.icon-warning { background: #fef3c7; color: #d97706; }
.icon-error { background: #fee2e2; color: #dc2626; }

.stat-info { flex: 1; min-width: 0; }

.stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.72rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-pct {
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.stat-pct.pct-success { color: #16a34a; }
.stat-pct.pct-warning { color: #d97706; }
.stat-pct.pct-error { color: #dc2626; }

/* ===== Filters Card ===== */
.filters-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.filter-row {
    display: flex;
    gap: 14px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}

.filter-item.filter-grow {
    flex: 1;
    min-width: 180px;
}

.filter-item label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-item select,
.filter-item input {
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    transition: border-color 0.2s;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79,195,247,0.15);
}

/* ===== Table Container ===== */
.table-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.table-scroll {
    flex: 1;
    overflow: auto;
    min-height: 0;
}

/* ===== Admin Table ===== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.admin-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    background: #1a1a2e;
}

.admin-table th.center { text-align: center; }

.admin-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.admin-table tbody tr:hover { background: #f8fafc; }

/* ===== Cell Utilities ===== */
.center { text-align: center; }
.cell-mono { font-family: 'Consolas', 'Courier New', monospace; font-size: 0.8rem; letter-spacing: 0.3px; }
.cell-bold { font-weight: 600; color: #1f2937; }
.cell-secondary { color: #6b7280; font-size: 0.82rem; }
.cell-date { white-space: nowrap; font-size: 0.78rem; color: #6b7280; font-variant-numeric: tabular-nums; }
.cell-truncate { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Status Pills ===== */
.status-pill {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-ok { background: #dcfce7; color: #166534; }
.pill-warn { background: #fef3c7; color: #92400e; }
.pill-error { background: #fee2e2; color: #991b1b; }
.pill-info { background: #dbeafe; color: #1e40af; }
.pill-default { background: #f3f4f6; color: #6b7280; }

/* ===== Service Badges ===== */
.svc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.svc-claa { background: #ede9fe; color: #6d28d9; }
.svc-caaarem { background: #dbeafe; color: #1e40af; }
.svc-secomext { background: #e0f2fe; color: #0369a1; }
.svc-cintesis { background: #fef3c7; color: #92400e; }
.svc-global { background: #ffedd5; color: #c2410c; }
.svc-default { background: #f3f4f6; color: #6b7280; }

/* ===== Type Chips ===== */
.type-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.chip-usa { background: #dbeafe; color: #1e40af; }
.chip-mx { background: #dcfce7; color: #166534; }
.chip-trucks { background: #ffedd5; color: #c2410c; }

/* ===== Action Chips (Audit) ===== */
.action-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
}

.achip-login { background: #dbeafe; color: #1e40af; }
.achip-login-fail { background: #fee2e2; color: #991b1b; }
.achip-cert-create { background: #dcfce7; color: #166534; }
.achip-cert-edit { background: #fef3c7; color: #92400e; }
.achip-user-create { background: #dcfce7; color: #166534; }
.achip-default { background: #f3f4f6; color: #6b7280; }

/* ===== Trigger Chips ===== */
.trigger-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid;
}

.trig-create { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.trig-edit { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ===== Table Footer / Pagination ===== */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafafa;
    flex-shrink: 0;
}

.page-info { font-size: 0.8rem; color: #9ca3af; }
.page-btns { display: flex; gap: 4px; }

.pg-btn {
    padding: 5px 12px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    color: #374151;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
}

.pg-btn:hover:not(:disabled):not(.pg-active) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pg-active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; }
.pg-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ===== Buttons ===== */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    text-align: center;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-action svg { flex-shrink: 0; }
.btn-action:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary { background: #1a1a2e; color: #fff; }
.btn-primary:hover { background: #16213e; }

.btn-ghost { background: #f3f4f6; color: #4b5563; border-color: #d1d5db; }
.btn-ghost:hover { background: #e5e7eb; }

.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }

.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.act-btn-text {
    background: none;
    border: none;
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.15s;
}

.act-btn-text:hover { background: #eff6ff; }

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease-out;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.modal-wide { max-width: 850px; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a1a2e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s;
    line-height: 1;
}

.modal-close:hover { color: #374151; }

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}

/* ===== Detail Table (inside modals) ===== */
.detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.detail-table th {
    padding: 8px 12px;
    background: #f3f4f6;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.detail-table td {
    padding: 7px 12px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
}

.detail-table tbody tr:hover { background: #f8fafc; }

.detail-scroll {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.detail-scroll .detail-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* ===== Messages / Toast ===== */
.msg-bar {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.msg-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.msg-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.msg-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.msg-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.toast-float {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Toggle Switch ===== */
.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.toggle-track {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #d1d5db;
    border-radius: 24px;
    transition: background 0.25s;
}

.toggle-track::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
}

.toggle-switch input:checked + .toggle-track {
    background: #22c55e;
}

.toggle-switch input:checked + .toggle-track::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}

/* ===== Loading Bar ===== */
.loading-bar {
    height: 3px;
    background: linear-gradient(90deg, #4fc3f7 0%, #1a1a2e 50%, #4fc3f7 100%);
    background-size: 200% 100%;
    animation: loadSlide 1.5s ease-in-out infinite;
    border-radius: 2px;
}

@keyframes loadSlide {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Pre / Code Blocks ===== */
.code-block {
    background: #1e1e30;
    color: #e0e0e0;
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Consolas', 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 250px;
    overflow-y: auto;
}

/* ===== Empty State ===== */
.state-msg {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Info Grid (for modals) ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.info-item { display: flex; flex-direction: column; gap: 2px; }

.info-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
}

/* ===== Section Label ===== */
.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
}

.section-label:first-child { margin-top: 0; }

/* ===== URL Copy Row ===== */
.url-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.url-row input {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.8rem;
    background: #f9fafb;
    color: #374151;
}

.url-row button {
    padding: 7px 12px;
    background: #1a1a2e;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s;
    white-space: nowrap;
}

.url-row button:hover { background: #16213e; }

/* ===== Connection Status Grid ===== */
.conn-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.conn-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.conn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-success { background: #22c55e; }
.dot-warning { background: #f59e0b; }
.dot-error { background: #dc2626; }
.dot-default { background: #d1d5db; }

.conn-info { min-width: 0; }
.conn-name { font-size: 0.82rem; font-weight: 600; color: #1f2937; }
.conn-status { font-size: 0.72rem; color: #9ca3af; }

/* ===== Two Column Layout (PrevalidatorTest) ===== */
.two-col {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
    flex: 1;
    min-height: 0;
}

.sticky-col {
    position: sticky;
    top: 0;
    align-self: start;
}

/* ===== Form Card ===== */
.form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.form-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 14px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.form-field label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field input,
.form-field select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus {
    outline: none;
    border-color: #4fc3f7;
    box-shadow: 0 0 0 2px rgba(79,195,247,0.15);
}

/* ===== Result Card ===== */
.result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.1rem;
}

.result-icon.ri-success { background: #22c55e; }
.result-icon.ri-warning { background: #f59e0b; }
.result-icon.ri-error { background: #dc2626; }

/* ===== Log Entry (Logs page) ===== */
.log-entry {
    padding: 6px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.log-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.log-level {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.level-warning { background: #fef3c7; color: #92400e; }
.level-error { background: #fee2e2; color: #991b1b; }
.level-critical { background: #1f2937; color: #fff; }

.log-time {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.72rem;
    color: #9ca3af;
}

.log-cat {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.log-msg {
    font-size: 0.84rem;
    color: #374151;
    word-break: break-word;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-item { min-width: 100%; }

    .stats-row { grid-template-columns: repeat(2, 1fr); }

    .table-footer {
        flex-direction: column;
        gap: 8px;
    }

    .two-col { grid-template-columns: 1fr; }
    .conn-grid { grid-template-columns: repeat(2, 1fr); }
    .info-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Cancellation Requests ===== */
.reason-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}

.cancel-status-chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cs-pending { background: #fef3c7; color: #92400e; }
.cs-approved { background: #dcfce7; color: #166534; }
.cs-denied { background: #fee2e2; color: #991b1b; }

.fault-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.fault-tecnico { background: #fee2e2; color: #991b1b; }
.fault-cliente { background: #fef3c7; color: #92400e; }
.fault-sistema { background: #e0f2fe; color: #0369a1; }

.act-approve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    background: #dcfce7;
    color: #166534;
    cursor: pointer;
    transition: all 0.15s;
}
.act-approve:hover { background: #bbf7d0; }

.act-deny {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #991b1b;
    cursor: pointer;
    transition: all 0.15s;
}
.act-deny:hover { background: #fecaca; }

.act-restore {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
    cursor: pointer;
    transition: all 0.15s;
}
.act-restore:hover { background: #dcfce7; }

.cs-restored { background: #dbeafe; color: #1e40af; }

/* Cancel request button (used in CertificateForm) */
.btn-cancel-request {
    background: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
.btn-cancel-request:hover { background: #fee2e2 !important; }
.btn-cancel-request:disabled { opacity: 0.6; cursor: not-allowed; }

/* ===== Tabs ===== */
.tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    background: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
}

.tab-btn:hover { color: #374151; }

.tab-btn.tab-active {
    color: #1a1a2e;
    border-bottom-color: #1a1a2e;
}

.tab-btn svg { opacity: 0.6; }
.tab-btn.tab-active svg { opacity: 1; }

/* ===== Edit Count Badge ===== */
.edit-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 13px;
    background: #e0e7ff;
    color: #4338ca;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ===== Photo Slot Badge ===== */
.photo-slot-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
}
