/* TailwindCSS maneja el estilo principal del dashboard. */

/* Custom badge styles for status pills */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.95em;
    font-weight: 600;
    border-radius: 9999px;
    padding: 0.5em 1em;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}

.badge-completed {
    background: #10b981;
    color: #fff;
}

.badge-processing {
    background: #2563eb;
    color: #fff;
}

.badge-icon {
    font-size: 1.2em;
    vertical-align: middle;
}

.json-preview-btn {
    border-radius: 0.75rem;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.json-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 40;
}

.json-modal.hidden {
    display: none;
}

.json-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(4px);
}

.json-modal-panel {
    position: relative;
    max-width: 800px;
    width: min(90vw, 800px);
    max-height: 90vh;
    background: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.json-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.json-modal-close {
    background: transparent;
    border: none;
    color: #e2e8f0;
    font-size: 1.25rem;
    cursor: pointer;
}

.json-modal-body {
    flex: 1;
    margin: 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #e0f2fe;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow: auto;
    white-space: pre-wrap;
}