/**
 * Portal Theme: Air
 *
 * Rounded cards, soft shadows, larger radii, slightly bolder typography.
 * Uses --portal-accent for dynamic accent color per portal.
 */

:root {
    --portal-accent: #2694FA;
    --portal-accent-hover: color-mix(in srgb, var(--portal-accent) 85%, black);
    --portal-radius: 0.75rem;
    --portal-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
body {
    font-family: var(--portal-font);
    font-size: 12pt;
    color: #1a1a2e;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
    border: none;
    border-radius: var(--portal-radius);
    box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--portal-accent) 14%, transparent);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--portal-accent), color-mix(in srgb, var(--portal-accent) 75%, black));
    color: #fff;
    border-bottom: none;
    font-weight: 600;
    border-radius: 0;
}

.card-body {
    padding: 1.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.portalThemeBtn {
    background: var(--portal-accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--portal-accent) 35%, transparent);
    transition: all 0.2s ease-in-out;
}

.portalThemeBtn:hover {
    background: var(--portal-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--portal-accent) 40%, transparent);
}

/* ── Form controls ──────────────────────────────────────────────────────── */
.form-control {
    border-radius: var(--portal-radius);
    border: 1px solid #dee2e6;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--portal-accent);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--portal-accent) 25%, transparent);
}

/* ── Background accent ──────────────────────────────────────────────────── */
.darkBak {
    background:
        radial-gradient(ellipse 55% 55% at 85% 10%,
            color-mix(in srgb, var(--portal-accent) 18%, transparent) 0%,
            transparent 70%),
        #fff !important;
    min-height: 100vh;
    width: 100%;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.proceedBtn,
.addBtn,
.updateBtn {
    background: transparent;
    color: var(--portal-accent);
    border: 2px solid var(--portal-accent);
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.proceedBtn:hover,
.addBtn:hover,
.updateBtn:hover {
    background: var(--portal-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--portal-accent) 30%, transparent);
}

.goBackBtn {
    background: transparent;
    color: #6c757d;
    border: 2px solid #adb5bd;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.goBackBtn:hover {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
    transform: translateY(-1px);
}

/* ── Disclosure area ────────────────────────────────────────────────────── */
.disclosureSection .col-12 {
    border-radius: var(--portal-radius);
}

/* ── Remove gray backgrounds on utility divs ────────────────────────────── */
/* The modern theme uses a clean white bg, so strip the #EBEFF2 inline bg
   from the logo wrapper, disclosure, agent card, and privacy strip. */
.darkBak .rounded.d-inline-block[style*="EBEFF2"],
.darkBak .rounded.pt-2[style*="EBEFF2"],
.darkBak .col-12.rounded[style*="EBEFF2"] {
    background: transparent !important;
}

/* ── Avatar ─────────────────────────────────────────────────────────────── */
.avatar-circle {
    border-radius: 50%;
}

/* ── Section body data rows ─────────────────────────────────────────────── */
.sectionBody .dataDiv {
    border-radius: 0.5rem;
}

/* ── Progress bar ───────────────────────────────────────────────────────── */
.progress {
    background: color-mix(in srgb, var(--portal-accent) 10%, #e9ecef);
    border-radius: 50px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--portal-accent), var(--portal-accent-hover));
    border-radius: 50px;
}