/* ==================================================================
   B2B Meeting Dashboard — visual identity
   Deep navy chrome (matches ciibankingcolloquium.com) + gold accent.
   Poppins headings / Roboto body.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
    --ink:        #0E2A4A;   /* deep navy — sidebar, headings, primary */
    --ink-soft:   #16406B;
    --paper:      #ECEBE8;   /* warm light ground */
    --surface:    #FFFFFF;
    --line:       #DAD8D3;   /* warm grey border */
    --text:       #23252C;
    --text-mute:  #6B6E77;

    --brass:      #9A6B1E;   /* deep bronze/gold accent */
    --brass-soft: #F1E7D6;
    --cyan:       #1F6F6A;   /* deep teal — secondary accent */
    --pink:       #8A3D5B;   /* muted plum — used sparingly */

    --good:       #2E6B43;
    --good-soft:  #E2EDE6;
    --bad:        #A33A34;
    --bad-soft:   #F2E2E0;
    --wait:       #8C6416;
    --wait-soft:  #F3EAD6;

    --grad-brand:  linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
    --grad-accent: #0E2A4A;
    --grad-side:   linear-gradient(185deg, #163C63 0%, #081422 100%);

    --shadow-sm: 0 1px 2px rgba(8,20,34,.10);
    --shadow:    0 1px 2px rgba(8,20,34,.10), 0 14px 30px -20px rgba(8,20,34,.45);

    --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--text);
    font-family: 'Roboto', -apple-system, Segoe UI, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px 0;
    letter-spacing: -0.01em;
}

a { color: var(--brass); }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    background: var(--brass-soft);
    color: #7A5416;
    padding: 2px 7px;
    border-radius: 5px;
}

/* ---------- App shell ---------- */
.app {
    display: grid;
    grid-template-columns: 244px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--grad-side);
    color: #C4C6CD;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: relative;
}
.sidebar::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 1px;
    background: rgba(255,255,255,.08);
}

.sidebar .brand {
    padding: 0 22px 20px 22px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 14px;
}

.sidebar .brand .mark {
    font-family: 'Poppins', serif;
    font-weight: 700;
    color: #fff;
    font-size: 20px;
    letter-spacing: 0.2px;
}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 186px;
    height: auto;
}

.sidebar .brand .sub {
    font-size: 11px;
    color: #8B8E97;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    padding: 0 12px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #B7B9C1;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 500;
    border-radius: 8px;
    transition: background .15s ease, color .15s ease;
}

.sidebar nav a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.sidebar nav a.active {
    background: rgba(255,255,255,0.10);
    color: #fff;
    box-shadow: inset 3px 0 0 var(--brass);
}

.sidebar .foot {
    padding: 14px 24px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.10);
    margin-top: 14px;
    font-size: 12px;
    color: #8B8E97;
}

.sidebar .foot a { color: #C79A4E; font-weight: 600; }

/* ---------- Main ---------- */
.main { padding: 0; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
#startTour { white-space: nowrap; }

.topbar .page-title h1 { font-size: 21px; color: var(--ink); }
.topbar .page-title p { margin: 0; color: var(--text-mute); font-size: 13px; }
.topbar .who {
    font-size: 12.5px;
    color: var(--text-mute);
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 6px 12px;
    border-radius: 999px;
}
.topbar .who strong { color: var(--ink); }

.content { padding: 28px 32px 48px 32px; }

/* ---------- Stat cards ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin-bottom: 26px;
}

.stat-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    border-top: 3px solid var(--brass);
    box-shadow: var(--shadow);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
    color: inherit;
    text-decoration: none;
}
a.stat-card { cursor: pointer; }
a.stat-card:hover,
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(20,21,26,.12), 0 22px 38px -22px rgba(20,21,26,.5);
    border-color: var(--ink-soft);
}

.stat-card .num {
    font-family: 'Poppins', serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ink);
}

.stat-card .label {
    color: var(--text-mute);
    font-size: 12.5px;
    margin-top: 5px;
}

/* ---------- Cards / panels ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel .panel-head {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    background: #F7F6F4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel .panel-head h2 { font-size: 15px; }
.panel .panel-head .desc { color: var(--text-mute); font-size: 12.5px; margin-top: 3px; }
.panel .panel-body { padding: 18px; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
    text-align: left;
    font-weight: 700;
    color: var(--text-mute);
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    padding: 9px 10px;
    border-bottom: 2px solid var(--line);
    white-space: nowrap;
}

tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid #EEECE8;
    vertical-align: middle;
}

tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #F7F6F4; }

.table-scroll { overflow-x: auto; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .2px;
    border: 1px solid transparent;
}
.badge-good  { background: var(--good-soft); color: var(--good); border-color: #BEDAC8; }
.badge-bad   { background: var(--bad-soft);  color: var(--bad);  border-color: #E6C7C4; }
.badge-wait  { background: var(--wait-soft); color: #7A5713;     border-color: #E4D2A9; }
.badge-mute  { background: #E7E5E0; color: var(--text-mute); border-color: #DAD8D3; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
}
.btn:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-primary {
    background: var(--grad-brand);
    border-color: var(--ink);
    color: #fff;
}
.btn-primary:hover { background: #14161C; }

.btn-brass {
    background: var(--brass);
    border-color: var(--brass);
    color: #fff;
}
.btn-brass:hover { background: #855B18; }

.btn-good { background: var(--good); border-color: var(--good); color: #fff; }
.btn-bad  { background: var(--bad);  border-color: var(--bad);  color: #fff; }

.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }

.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Forms ---------- */
label { display: block; font-size: 12px; font-weight: 700; color: var(--text-mute); margin-bottom: 5px; letter-spacing: .3px; }

input[type=text], input[type=email], input[type=password], input[type=file],
input[type=time], input[type=number], select, textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--text);
    background: #FBFAF9;
    transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(27,29,36,.12);
    background: #fff;
}

.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }

/* ---------- Participant detail blocks ---------- */
.participant-block {
    background: #F7F6F4;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 14px 2px;
    margin-bottom: 14px;
}
.participant-block-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 12px;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-left-width: 4px;
}
.alert-good { background: var(--good-soft); color: #1F4E30; border-color: #9BC4A9; }
.alert-bad  { background: var(--bad-soft);  color: #7C2A25; border-color: #D3A6A1; }
.alert-info { background: var(--brass-soft); color: #6E4C15; border-color: #D8BE8C; }

/* ---------- Login page ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #081422;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(217,182,121,.18), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(31,111,106,.18), transparent 45%),
        linear-gradient(160deg, #163C63 0%, #081422 100%);
}
.login-card {
    width: 410px;
    max-width: 100%;
    background: var(--surface);
    border-radius: 12px;
    padding: 0 32px 32px;
    border-top: 4px solid var(--brass);
    box-shadow: 0 30px 60px -22px rgba(0,0,0,.6);
    overflow: hidden;
}
.login-card .mark {
    font-family: 'Poppins', serif;
    font-size: 23px;
    font-weight: 700;
    color: #fff;
    background: var(--grad-side);
    margin: 0 -32px;
    padding: 22px 32px 10px;
    text-align: center;
}
.mark-logo {
    display: inline-block;
    width: 100%;
    max-width: 240px;
    height: auto;
}
.login-card .sub {
    color: #9A9DA6;
    font-size: 12.5px;
    background: var(--grad-side);
    margin: 0 -32px 26px;
    padding: 0 32px 20px;
}
/* ---------- Split login (delegate portal) ----------
   Fixed to the viewport height (not min-height) so the page never needs
   to scroll on a normal screen; each column scrolls internally only in
   the rare case content doesn't fit (small window / large browser zoom). */
.split-login {
    height: 100vh;
    display: flex;
    overflow: hidden;
}
.split-login-left {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: var(--ink);
    background-image:
        radial-gradient(circle at 20% 15%, rgba(217,182,121,.22), transparent 45%),
        radial-gradient(circle at 85% 92%, rgba(31,111,106,.20), transparent 45%),
        radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
        var(--grad-side);
    background-size: auto, auto, 24px 24px, auto;
    color: #fff;
    padding: 24px 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.split-login-left::before,
.split-login-left::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}
.split-login-left::before {
    top: -70px;
    left: -50px;
    background: rgba(230,199,126,.30);
    animation: splitGlowPulse 10s ease-in-out infinite;
}
.split-login-left::after {
    bottom: -90px;
    right: -50px;
    background: rgba(31,111,106,.32);
    animation: splitGlowPulse 10s ease-in-out infinite 4s;
}

.split-login-content,
.split-login-copyright { position: relative; z-index: 1; }

.split-login-content { max-width: 620px; }

.split-login-logo-card,
.split-login-date,
.split-login-headline,
.split-login-lede,
.split-login-step {
    opacity: 0;
    animation: splitFadeUp .7s ease forwards;
}
.split-login-logo-card { animation-delay: .05s; }
.split-login-date      { animation-delay: .18s; }
.split-login-headline  { animation-delay: .30s; }
.split-login-lede      { animation-delay: .42s; }
.split-login-step:nth-child(1) { animation-delay: .54s; }
.split-login-step:nth-child(2) { animation-delay: .64s; }
.split-login-step:nth-child(3) { animation-delay: .74s; }

.split-login-form-wrap {
    opacity: 0;
    animation: splitFadeIn .7s ease .3s forwards;
}

.btn-arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

@keyframes splitFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes splitFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes splitGlowPulse {
    0%, 100% { opacity: .40; }
    50%      { opacity: .95; }
}

@media (prefers-reduced-motion: reduce) {
    .split-login-logo-card, .split-login-date, .split-login-headline,
    .split-login-lede, .split-login-step, .split-login-form-wrap {
        opacity: 1;
        animation: none;
    }
    .split-login-left::before, .split-login-left::after { animation: none; }
    .btn:hover .btn-arrow { transform: none; }
}
.split-login-logo-card {
    display: inline-flex;
    align-self: flex-start;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}
.split-login-logo-card img { display: block; width: 100%; max-width: 200px; height: auto; }
.split-login-date {
    font-size: 15px;
    font-weight: 700;
    color: #E6C77E;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}
.split-login-headline {
    font-family: 'Poppins', serif;
    font-size: 25px;
    font-weight: 700;
    color: #fff;
    line-height: 1.24;
    margin: 0 0 9px;
    max-width: 600px;
}
.split-login-lede {
    font-size: 13px;
    color: #C4C6CD;
    line-height: 1.5;
    max-width: 560px;
    margin: 0 0 20px;
}
.split-login-steps { display: flex; flex-direction: column; gap: 13px; }
.split-login-step { display: flex; gap: 13px; align-items: flex-start; max-width: 560px; }
.split-login-step-num {
    flex-shrink: 0;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    color: #fff;
}
.split-login-step-title { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13px; color: #fff; margin-bottom: 2px; }
.split-login-step-desc { font-size: 11.5px; color: #9EA1AA; line-height: 1.45; }
.split-login-copyright { position: absolute; left: 48px; bottom: 18px; font-size: 11px; color: #7C88A0; }

.split-login-right {
    flex: 0 0 420px;
    width: 420px;
    max-width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}
.split-login-form-wrap { width: 100%; max-width: 340px; }
.split-login-form-wrap h2 { font-size: 25px; margin-bottom: 4px; }
.split-login-form-sub { color: var(--text-mute); font-size: 13.5px; margin: 0 0 26px; }

.input-icon { position: relative; }
.input-icon svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-mute);
    pointer-events: none;
}
.input-icon input { padding-left: 38px; }

@media (max-width: 900px) {
    .split-login { height: auto; overflow: visible; flex-direction: column; }
    .split-login-left { flex: none; height: auto; overflow: visible; max-width: none; justify-content: flex-start; padding: 34px 24px; }
    .split-login-copyright { position: static; margin-top: 24px; left: auto; bottom: auto; }
    .split-login-right { flex: none; height: auto; overflow: visible; width: 100%; padding: 34px 24px; }
}

/* ---------- Misc ---------- */
.mute { color: var(--text-mute); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag-count { background: var(--ink); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; margin-left: 6px; font-weight: 700; }

.pill-nav { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.pill-nav a {
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-mute);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .14s ease, box-shadow .14s ease, color .14s ease;
}
.pill-nav a:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); color: var(--ink); }
.pill-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-mute);
}

/* ---------- Copyright ---------- */
.copyright {
    text-align: center;
    color: var(--text-mute);
    font-size: 11.5px;
    padding: 20px 16px 26px;
}
.login-wrap .copyright {
    color: rgba(255, 255, 255, 0.55);
    padding: 18px 16px 0;
}

/* ---------- Guided tour ---------- */
.tour-blocker {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
}
.tour-spot {
    position: fixed;
    z-index: 9999;
    border-radius: 8px;
    border: 2px solid var(--brass);
    box-shadow: 0 0 0 9999px rgba(15,16,20,.72);
    pointer-events: none;
    display: none;
    transition: top .2s ease, left .2s ease, width .2s ease, height .2s ease;
}
.tour-pop {
    position: fixed;
    z-index: 10000;
    width: 300px;
    max-width: calc(100vw - 16px);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-top: 3px solid var(--brass);
    border-radius: 10px;
    padding: 16px 16px 14px;
    box-shadow: 0 20px 50px -15px rgba(0,0,0,.5);
    display: none;
}
.tour-on .tour-blocker,
.tour-on .tour-spot,
.tour-on .tour-pop { display: block; }

.tour-pop .tour-x {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-mute);
    cursor: pointer;
}
.tour-pop .tour-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--ink);
    margin-bottom: 5px;
    padding-right: 16px;
}
.tour-pop .tour-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.tour-pop .tour-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}
.tour-pop .tour-count { font-size: 11.5px; color: var(--text-mute); }
.tour-pop .tour-btns { display: flex; gap: 8px; }

@media (max-width: 880px) {
    .app { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .field-row { grid-template-columns: 1fr; }
    .content { padding: 20px 16px 40px; }
    .topbar { padding: 14px 16px; }
}
