/* Shared styles for host dashboard + client landing.
   Colors come from /brand.js via the --brand-* CSS variables set in each page's <head>. */

:root {
    --brand-primary: #0b5fff;
    --brand-secondary: #0a2540;
    --bg: #f4f6fb;
    --surface: #ffffff;
    --text: #11203a;
    --muted: #5b6b86;
    --border: #e2e8f4;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(16, 32, 58, 0.08);
    --ok: #1aa260;
    --err: #d23b3b;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.brandbar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: #fff;
    color: var(--brand-secondary);
    border-bottom: 3px solid var(--brand-primary);
    box-shadow: 0 1px 6px rgba(16, 32, 58, 0.06);
}

.brandbar img {
    height: 34px;
    width: auto;
    display: block;
}

.brandbar .name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
    color: var(--brand-secondary);
}

.wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
}

h1 {
    font-size: 26px;
    margin: 0 0 6px;
}

.sub {
    color: var(--muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
}

input[type='text'],
input[type='password'] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s;
}

input[type='text']:focus,
input[type='password']:focus {
    border-color: var(--brand-primary);
}

.btn {
    appearance: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 10px;
    background: var(--brand-primary);
    color: #fff;
    transition: filter 0.15s, transform 0.05s;
    width: 100%;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn.secondary {
    background: transparent;
    color: var(--brand-primary);
    border: 1.5px solid var(--brand-primary);
}

.btn.ghost {
    background: #eef2fb;
    color: var(--text);
}

.row {
    display: flex;
    gap: 12px;
}

.row .btn {
    width: auto;
    flex: 1;
}

.msg {
    margin-top: 14px;
    font-size: 14px;
    min-height: 18px;
}

.msg.err {
    color: var(--err);
}

.msg.ok {
    color: var(--ok);
}

.hidden {
    display: none !important;
}

/* Link box (copy a shareable URL) */
.linkbox {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.linkbox input {
    flex: 1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    background: #f7f9fe;
}

.linkbox .btn {
    width: auto;
    white-space: nowrap;
    padding: 14px 18px;
}

/* Recent meetings list */
.log {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.log li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.log .meta {
    color: var(--muted);
}

.log .id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    color: var(--text);
}

.log button {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
}

/* Instructions block on the landing page */
.tips {
    margin-top: 26px;
    padding: 18px 20px;
    background: #f7f9fe;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.tips h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.tips p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
}

.tips strong {
    color: var(--text);
}

.center {
    text-align: center;
}

.logo-hero {
    height: 56px;
    margin: 0 auto 18px;
    display: block;
}

/* ─────────────────────────  Redesigned host dashboard  ───────────────────── */
.host-body {
    background: radial-gradient(1100px 520px at 50% -8%, rgba(90, 92, 246, 0.10), transparent 60%), var(--bg);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--border);
}
.topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar .brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar .brand img {
    height: 26px;
    width: auto;
    display: block;
}
.topbar .brand-sep {
    color: var(--muted);
    font-weight: 400;
}
.topbar .name {
    font-weight: 600;
    font-size: 15px;
    color: var(--brand-secondary);
}

.host-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 24px 80px;
}

/* PIN gate centered */
.gate {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gate-card {
    width: 100%;
    max-width: 420px;
}
.tabs {
    display: flex;
    gap: 6px;
    background: #f1f3f8;
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.tabs .tab {
    flex: 1;
    appearance: none;
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
}
.tabs .tab.active {
    background: #fff;
    color: var(--brand-secondary);
    box-shadow: 0 1px 3px rgba(16, 32, 58, 0.1);
}
.lic-key {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 600;
    color: var(--brand-secondary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 26px 0 30px;
}
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 12px;
    color: var(--brand-secondary);
}
.hero-sub {
    color: var(--muted);
    font-size: 16px;
    margin: 0 auto 24px;
    max-width: 440px;
    line-height: 1.55;
}

.btn.btn-lg {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    font-size: 17px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(90, 92, 246, 0.28);
}

/* Cards */
.card {
    border-radius: 16px;
}
.card-h {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
    margin-bottom: 12px;
}
.card.accent {
    border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border));
    box-shadow: 0 10px 30px rgba(90, 92, 246, 0.12);
}
.grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
}

.hint {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.bar {
    margin-top: 12px;
    height: 8px;
    background: #eef0f6;
    border-radius: 6px;
    overflow: hidden;
}
#upload-fill {
    height: 100%;
    width: 0;
    background: var(--brand-primary);
    transition: width 0.15s;
}

.signout-row {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.signout-row .who {
    font-size: 13px;
    color: var(--muted);
}
.signout-row .btn {
    width: auto;
    padding: 10px 20px;
}
#admin-list button {
    appearance: none;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-primary);
}

input[type='file'] {
    width: 100%;
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 560px) {
    .hero-title {
        font-size: 32px;
    }
}
