:root {
    --cuotealo-primary: #0d6efd;
}

body {
    background: #f5f7fb;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-logo {
    height: 28px;
    width: auto;
    margin-right: 6px;
    vertical-align: -4px;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 1.25rem;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 12px 12px 0 0 !important;
    padding: .85rem 1.25rem;
}

.card-header[data-bs-toggle="collapse"] {
    cursor: pointer;
    user-select: none;
}

.card-header[data-bs-toggle="collapse"]:hover {
    background: #f8f9fa;
}

.collapse-icon {
    transition: transform 0.2s ease;
}

.card-header[aria-expanded="false"] .collapse-icon {
    transform: rotate(-90deg);
}

/* Buttons */
.btn-primary {
    border-radius: 8px;
    font-weight: 500;
}

/* Forms */
.form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: .25rem;
}

.form-control, .form-select {
    border-radius: 8px;
    border-color: #e0e0e0;
    font-size: .9rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cuotealo-primary);
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.15);
}

/* Product rows */
.product-row {
    background: #fafbfc;
    border-radius: 8px;
    padding: .75rem;
    margin-bottom: .5rem;
    position: relative;
}

/* Badge */
.badge-env {
    font-size: .7rem;
    padding: .35em .65em;
}

/* Spinner overlay */
.spinner-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255,255,255,.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner-overlay.active {
    display: flex;
}

/* JSON preview */
pre.json-preview {
    background: #1e1e2e;
    color: #cdd6f4;
    border-radius: 10px;
    padding: 1rem;
    font-size: .8rem;
    max-height: 300px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
