/* ==========================================================================
   RADAR ENTERPRISE LIGHT THEME STYLESHEET
   High-Density, Modern SaaS Workspace for Job & Government Exam Intelligence
   ========================================================================== */

:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-hover: #f8fafc;
    --bg-active: #eff6ff;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    --border-focus: #3b82f6;

    --brand-primary: #1e40af;
    --brand-light: #3b82f6;
    --brand-dark: #172554;
    --brand-accent: #0284c7;

    --color-success: #16a34a;
    --color-warning: #d97706;
    --color-danger: #dc2626;
    --color-info: #2563eb;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08);

    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ==========================================================================
   TOP ACTION & NAVIGATION BAR
   ========================================================================== */
.top-nav-bar {
    position: sticky;
    top: 0;
    height: 56px;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
}

.brand-badge-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    font-size: 22px;
}

.brand-name {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.version-tag {
    font-size: 10px;
    font-weight: 700;
    background: #eff6ff;
    color: var(--brand-primary);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #bfdbfe;
}

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.nav-center {
    flex: 1;
    max-width: 480px;
    margin: 0 20px;
}

.global-search-trigger {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    transition: all 0.15s ease-in-out;
}

.global-search-trigger:hover {
    border-color: var(--brand-light);
    background-color: #ffffff;
    box-shadow: var(--shadow-xs);
}

.search-placeholder {
    flex: 1;
}

.shortcut-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-pill-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.location-pill-btn:hover {
    border-color: var(--brand-light);
    color: var(--brand-primary);
    background: #f8fafc;
}

.active-profile-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}

.active-profile-pill:hover {
    border-color: var(--brand-light);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-success);
}

/* ==========================================================================
   APP LAYOUT & SIDEBAR NAVIGATION
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: calc(100vh - 56px);
}

.sidebar-nav {
    width: 250px;
    min-width: 250px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-scroll-wrapper {
    padding: 16px 12px;
    overflow-y: auto;
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
}

.nav-group-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 0.5px;
    padding: 12px 10px 4px 10px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.12s ease;
}

.nav-link:hover {
    background-color: var(--bg-subtle);
    color: var(--text-primary);
}

.nav-link.active {
    background-color: var(--bg-active);
    color: var(--brand-primary);
    font-weight: 600;
}

.nav-icon {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

.nav-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.nav-pill.highlight {
    background: #dbeafe;
    color: #1e40af;
}

.nav-pill.accent {
    background: #ecfdf5;
    color: #065f46;
}

.sidebar-system-footer {
    margin-top: 24px;
    padding: 12px 10px;
    border-top: 1px solid var(--border-color);
    font-size: 11.5px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   WORKSPACE MAIN & PANELS
   ========================================================================== */
.workspace-main {
    flex: 1;
    background-color: var(--bg-page);
    padding: 24px;
    overflow-y: auto;
}

.workspace-panel {
    display: none;
    animation: fadeIn 0.12s ease-in;
}

.workspace-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.workspace-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.workspace-header .subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 3px;
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   BUTTONS & FORM ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: var(--brand-dark);
}

.btn-outline {
    background-color: #ffffff;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-muted);
    background-color: var(--bg-subtle);
}

.btn-text {
    background: none;
    border: none;
    color: var(--brand-primary);
    cursor: pointer;
    font-weight: 600;
}

.btn-text:hover {
    text-decoration: underline;
}

input[type="text"], input[type="email"], select, textarea {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    color: var(--text-primary);
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand-light);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

/* KPI GRID */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.kpi-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
}

.kpi-card.accent-green { border-top: 3px solid var(--color-success); }
.kpi-card.accent-blue { border-top: 3px solid var(--brand-light); }
.kpi-card.accent-amber { border-top: 3px solid var(--color-warning); }

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 4px 0;
}

.kpi-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

/* OVERVIEW WIDGET GRID */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.widget-box {
    padding: 20px;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.deadlines-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deadline-item {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mini-jobs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-job-item {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-page);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pipeline-funnel-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.funnel-step {
    flex: 1;
    min-width: 120px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    text-align: center;
}

.funnel-count {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-primary);
}

.funnel-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==========================================================================
   FILTER CARD & JOB LISTINGS
   ========================================================================== */
.filter-card {
    padding: 18px 20px;
    margin-bottom: 20px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-item.span-2 {
    grid-column: span 2;
}

.control-item label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
}

.control-item input, .control-item select {
    padding: 7px 10px;
}

.filter-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.job-listings-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* JOB CARD */
.job-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    box-shadow: var(--shadow-xs);
    transition: all 0.15s ease;
}

.job-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.job-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.job-title:hover {
    color: var(--brand-primary);
}

.job-company {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 6px;
}

.job-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.job-tags-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tag-badge {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.tier-badge {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.match-badge {
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    color: #ffffff;
}

.match-high { background-color: var(--color-success); }
.match-mid { background-color: var(--brand-light); }
.match-mod { background-color: var(--color-warning); }

.job-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.multi-platform-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.platform-link {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.12s;
}

.platform-link:hover {
    background: #ffffff;
    border-color: var(--brand-light);
    color: var(--brand-primary);
}

/* ==========================================================================
   COMPETITIVE EXAMS WORKSPACE
   ========================================================================== */
.sub-tab-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sub-tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.12s;
}

.sub-tab-btn:hover {
    border-color: var(--brand-light);
    color: var(--brand-primary);
}

.sub-tab-btn.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.exam-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-xs);
    border-left: 4px solid var(--brand-light);
}

.exam-card.state-assam {
    border-left-color: #059669;
}

.exam-authority {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exam-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 8px 0;
}

.exam-dates-box {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    margin: 10px 0;
}

.eligibility-verdict-box {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.eligibility-verdict-box.eligible {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.eligibility-verdict-box.ineligible {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.eligibility-verdict-box.caveat {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

/* ==========================================================================
   CALENDAR & TIMELINE
   ========================================================================== */
.calendar-card {
    padding: 20px;
}

.calendar-timeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-event-item {
    background: var(--bg-page);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.12s;
}

.timeline-event-item:hover {
    background: #ffffff;
    border-color: var(--brand-light);
}

.event-date-col {
    width: 140px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-dark);
}

.event-details-col {
    flex: 1;
    margin: 0 16px;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.event-authority {
    font-size: 12px;
    color: var(--text-muted);
}

.event-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-exam-deadline { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.badge-exam-day { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-admit-card { background: #fdf4ff; color: #86198f; border: 1px solid #f5d0fe; }
.badge-fee-due { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-job-deadline { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ==========================================================================
   DENSE TABLE VIEW
   ========================================================================== */
.dense-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dense-table th {
    background-color: var(--bg-subtle);
    padding: 10px 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.dense-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.dense-table tr:hover td {
    background-color: var(--bg-hover);
}

/* ==========================================================================
   MODALS & DIALOGS
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.modal-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    box-shadow: var(--shadow-lg);
}

.modal-card.wide-modal {
    max-width: 840px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-muted);
}

/* COMMAND PALETTE */
.cmd-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 620px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.cmd-input-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
}

.cmd-input-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
}

.cmd-input-bar kbd {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
}

.cmd-results-list {
    max-height: 380px;
    overflow-y: auto;
    padding: 8px 0;
}

.cmd-item {
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 13.5px;
}

.cmd-item:hover, .cmd-item.selected {
    background-color: var(--bg-active);
    color: var(--brand-primary);
}

/* LOCATION DRILLDOWN MODAL */
.location-presets-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.location-drilldown-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    max-height: 400px;
}

.states-scroll-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-y: auto;
    max-height: 380px;
}

.state-select-item {
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
}

.state-select-item:hover, .state-select-item.active {
    background-color: var(--bg-active);
    color: var(--brand-primary);
    font-weight: 600;
}

.districts-grid-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    overflow-y: auto;
    max-height: 380px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.district-pill {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.district-pill:hover, .district-pill.active {
    background: var(--brand-primary);
    color: #ffffff;
    border-color: var(--brand-primary);
}

/* FORM SECTIONS */
.form-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}

.check-item {
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sidebar-nav {
        position: fixed;
        left: -250px;
        top: 56px;
        bottom: 0;
        z-index: 150;
        transition: left 0.2s ease;
    }

    .sidebar-nav.open {
        left: 0;
    }

    .sidebar-toggle-btn {
        display: block;
    }

    .overview-grid {
        grid-template-columns: 1fr;
    }

    .location-drilldown-grid {
        grid-template-columns: 1fr;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.25s ease-out;
    max-width: 420px;
    line-height: 1.4;
}
.toast-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.toast-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.toast-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.toast-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

@keyframes toastSlideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Location Chips & Badges */
.loc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    padding: 3px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
}
.loc-chip-remove {
    cursor: pointer;
    font-weight: 800;
    color: #3b82f6;
    margin-left: 2px;
}
.loc-chip-remove:hover {
    color: #1d4ed8;
}

/* Provenance Source Badge */
.source-provenance-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #cbd5e1;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}
.source-provenance-badge.live-feed {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

/* ==========================================================================
   PUBLIC AUTHENTICATION GATEWAY & LANDING STYLES
   ========================================================================== */
.auth-gateway-container {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.public-nav-bar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-gateway-hero {
    display: flex;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 24px;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
    flex: 1;
}

.auth-hero-copy {
    flex: 1 1 540px;
    min-width: 320px;
}

.auth-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--brand-primary);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.auth-hero-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin: 0 0 16px 0;
}

.auth-hero-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 32px 0;
}

.auth-highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.auth-feature-pill {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.auth-feature-pill .pill-icon {
    font-size: 24px;
    line-height: 1;
}

.auth-feature-pill strong {
    display: block;
    font-size: 13.5px;
    color: #1e293b;
    margin-bottom: 3px;
}

.auth-feature-pill span {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.auth-gateway-form-box {
    flex: 0 0 420px;
    max-width: 100%;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    overflow: hidden;
}

.auth-card-tabs {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.auth-card-tab {
    flex: 1;
    padding: 12px 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: center;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
}

.auth-card-tab.active {
    color: var(--brand-primary);
    background: #ffffff;
    border-bottom-color: var(--brand-primary);
}

.auth-panel-content {
    padding: 24px;
}

.auth-form-heading {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.auth-form-sub {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.auth-field-group {
    margin-bottom: 16px;
}

.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.auth-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 13.5px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease;
}

.auth-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.auth-input.otp-input {
    letter-spacing: 6px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

.auth-submit-btn {
    width: 100%;
    padding: 11px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.auth-footer-prompt {
    font-size: 12.5px;
    color: #64748b;
    text-align: center;
    margin-top: 18px;
}

.auth-link {
    font-size: 12px;
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.public-legal-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 20px 32px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
    line-height: 1.6;
}

.public-legal-footer .legal-disclaimer {
    max-width: 900px;
    margin: 0 auto 8px auto;
}

.public-legal-footer .legal-links {
    color: #94a3b8;
}

/* RESPONSIVE ADDITIONS */
@media (max-width: 768px) {
    .public-nav-bar {
        padding: 0 16px;
    }
    .auth-gateway-hero {
        margin: 20px auto;
        padding: 0 16px;
        gap: 28px;
    }
    .auth-hero-title {
        font-size: 24px;
    }
    .auth-gateway-form-box {
        flex: 1 1 100%;
    }
    .top-nav-bar {
        padding: 0 10px;
    }
    .nav-center {
        display: none;
    }
    .brand-sub {
        display: none;
    }
    #headerLocationBtn, #btnSyncLive {
        display: none;
    }
}

/* Temporal Lifecycle Filter Pills & Badges */
.status-pill-filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.pill-filter-btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #1e293b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-filter-btn:hover {
    border-color: var(--brand-primary, #2563eb);
    background: rgba(37, 99, 235, 0.05);
}

.pill-filter-btn.active {
    background: var(--brand-primary, #2563eb);
    color: #ffffff;
    border-color: var(--brand-primary, #2563eb);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.3px;
}

.status-pill.status-open {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-pill.status-closing-soon {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    animation: pulseGlow 2s infinite;
}

.status-pill.status-announced {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.status-pill.status-prep {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.status-pill.status-archive {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}


