/* Universal Scheduler — aligned with GUI Operations Hub */
:root {
    --bg-dark: #090f18;
    --panel-bg: #141b27;
    --panel-border: #1e293b;
    --accent-blue: #0066ff;
    --accent-glow: rgba(0, 102, 255, 0.28);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
}

body {
    background-color: var(--bg-dark);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
    color: var(--text-main);
    margin: 0;
}

body.hub-grid-bg {
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.font-mono {
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", "Consolas", monospace;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

.hub-panel {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 0.5rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.hub-panel-elevated {
    background: linear-gradient(180deg, #161f2e 0%, var(--panel-bg) 100%);
    border: 1px solid var(--panel-border);
    border-radius: 0.625rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hub-input,
.hub-input select,
select.hub-input {
    background-color: #0a0f18;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    font-size: 0.875rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.375rem;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-input:focus,
select.hub-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.hub-input::placeholder,
textarea.hub-input::placeholder {
    color: #64748b;
}

.hub-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.hub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.75rem 1.25rem;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    cursor: pointer;
    border: none;
}

.hub-btn:active {
    transform: translateY(1px);
}

.hub-btn-primary {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.hub-btn-primary:hover {
    background: #1a75ff;
}

.hub-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.hub-btn-danger {
    background: #dc2626;
    color: #fff;
}

.hub-btn-danger:hover {
    background: #ef4444;
}

.hub-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--panel-border);
}

.hub-btn-ghost:hover {
    color: var(--text-main);
    border-color: #475569;
}

.hub-btn-block {
    width: 100%;
}

.hub-alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.hub-alert-success {
    border-color: rgba(52, 211, 153, 0.45);
    background: rgba(6, 78, 59, 0.35);
    color: #6ee7b7;
}

.hub-alert-warning {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(120, 53, 15, 0.35);
    color: #fcd34d;
}

.hub-alert-info {
    border-color: rgba(0, 102, 255, 0.35);
    background: rgba(0, 102, 255, 0.08);
    color: #93c5fd;
}

.hub-alert-error,
.hub-alert-danger {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(127, 29, 29, 0.35);
    color: #fca5a5;
}

.hub-topbar {
    height: 3.5rem;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(9, 15, 24, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.hub-brand {
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    text-decoration: none;
}

.hub-brand span {
    color: var(--accent-blue);
}

.hub-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.6875rem;
}

.hub-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.hub-nav a:hover,
.hub-nav a.is-active {
    color: #fff;
}

.hub-nav a.is-active {
    color: var(--accent-blue);
}

.hub-eyebrow {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.hub-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}

.hub-page-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.hub-slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.hub-slot-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.hub-slot-option span {
    display: block;
    text-align: center;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.75rem;
    padding: 0.55rem 0.25rem;
    border-radius: 0.375rem;
    border: 1px solid var(--panel-border);
    color: #cbd5e1;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hub-slot-option input:checked + span,
.hub-slot-option input:focus-visible + span {
    border-color: var(--accent-blue);
    background: rgba(0, 102, 255, 0.12);
    color: #fff;
}

.hub-list-card {
    border-left: 2px solid var(--accent-blue);
    text-decoration: none;
}

a.hub-panel,
a.hub-list-card {
    text-decoration: none;
    color: inherit;
}

a.hub-panel:hover,
a.hub-list-card:hover {
    text-decoration: none;
}

.hub-list-card.is-booking {
    border-left-color: #34d399;
}

.hub-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.625rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
}

.hub-footer-note {
    font-size: 0.6875rem;
    color: #475569;
    text-align: center;
    margin-top: 2rem;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

.embed-shell {
    padding: 1rem;
}

/* —— Operations dashboard —— */
.ops-dash-bg {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 102, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(16, 185, 129, 0.08), transparent 50%),
        linear-gradient(rgba(0, 102, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.025) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px, 28px 28px;
}

.ops-dash {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 4rem;
}

.ops-dash__hero {
    margin-bottom: 2rem;
    animation: ops-fade-up 0.45s ease-out both;
}

.ops-dash__title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.1;
}

.ops-dash__lede {
    margin: 0;
    max-width: 32rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.ops-dash__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    animation: ops-fade-up 0.5s ease-out 0.06s both;
}

.ops-metric {
    padding: 1rem 0.85rem;
    border-top: 2px solid var(--accent-blue);
    background: linear-gradient(180deg, rgba(20, 27, 39, 0.9) 0%, rgba(9, 15, 24, 0.4) 100%);
}

.ops-metric--booking {
    border-top-color: var(--success);
}

.ops-metric__label {
    display: block;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.35rem;
}

.ops-metric__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ops-dash__nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    animation: ops-fade-up 0.55s ease-out 0.12s both;
}

.ops-route {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    row-gap: 0.15rem;
    padding: 1.1rem 0.25rem 1.1rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.9);
    text-decoration: none !important;
    color: inherit;
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.ops-route:hover,
.ops-route:focus-visible {
    background: rgba(0, 102, 255, 0.06);
    padding-left: 0.5rem;
    outline: none;
}

.ops-route--booking:hover,
.ops-route--booking:focus-visible {
    background: rgba(16, 185, 129, 0.06);
}

.ops-route__kicker {
    grid-column: 1;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.625rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #60a5fa;
}

.ops-route--booking .ops-route__kicker {
    color: #6ee7b7;
}

.ops-route__title {
    grid-column: 1;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
}

.ops-route__desc {
    grid-column: 1;
    font-size: 0.8125rem;
    color: #64748b;
}

.ops-route__go {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    font-size: 1.25rem;
    color: #475569;
    transition: color 0.2s ease, transform 0.2s ease;
}

.ops-route:hover .ops-route__go,
.ops-route:focus-visible .ops-route__go {
    color: #fff;
    transform: translateX(4px);
}

.ops-dash__widgets {
    animation: ops-fade-up 0.55s ease-out 0.18s both;
}

.ops-dash__section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.ops-dash__section-title {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

.ops-dash__section-link {
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.625rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #60a5fa;
    text-decoration: none !important;
}

.ops-dash__section-link:hover {
    color: #93c5fd;
}

.ops-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ops-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 41, 59, 0.75);
}

.ops-widget--empty {
    border-bottom: none;
    padding-top: 0.25rem;
}

.ops-widget__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
}

.ops-widget__meta {
    margin: 0.25rem 0 0;
    font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
    font-size: 0.625rem;
    color: #64748b;
}

.ops-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

@keyframes ops-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ops-dash__hero,
    .ops-dash__metrics,
    .ops-dash__nav,
    .ops-dash__widgets {
        animation: none;
    }

    .ops-route,
    .ops-route__go {
        transition: none;
    }
}

@media (max-width: 640px) {
    .hub-topbar {
        padding: 0 1rem;
        flex-wrap: wrap;
        height: auto;
        min-height: 3.5rem;
        gap: 0.5rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .hub-slot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ops-dash__metrics {
        grid-template-columns: 1fr;
    }

    .ops-metric__value {
        font-size: 1.5rem;
    }
}
