:root {
    /* Corealis Brand Palette */
    --obsidian: #0B0F1A; /* primary dark surface */
    --core-teal: #00E5C8; /* brand primary */
    --core-teal-2: #00B8A0;
    --core-teal-3: #007A6B;
    --signal-coral: #FF6B4A; /* accent / alerts */
    --signal-coral-2: #CC4A2D;
    --aura-grey: #8892A4; /* secondary text / muted */
    --light-teal: #E0FBF7; /* secondary text / muted */
    --success: #0ADD08; /* success text*/

    /* Tonal surfaces (from darkest to light) */
    --surface-1: #0B0F1A;
    --surface-2: #111827;
    --surface-3: #1C2333;
    --surface-4: #2A3447;
    --surface-5: #556070;
    --surface-6: #8892A4;
    /* Utility */
    --white-90: rgba(255,255,255,0.9);
    /* Sidebar dimensions */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 70px;
    --header-height: 64px;
}

/* New helpers for moved inline styles */
.about-logo-img { max-width: 280px; display: block; margin: 0 auto; }
.vertical-hero-bg { background: linear-gradient(135deg, var(--surface-3), var(--surface-4)); }
.cta-rounded { border-radius: 24px !important; }
.trunc-title { max-width: 300px; }

/* Status banner gradients updated to Corealis palette */
.status-healthy { background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2)); }
.status-warning { background: linear-gradient(135deg, var(--signal-coral), var(--signal-coral-2)); }

/* Bootstrap utility overrides to align with Corealis palette */
.bg-success {
    background: linear-gradient(90deg, var(--core-teal), var(--core-teal-2)) !important;
    color: var(--surface-1) !important;
}

.bg-danger, .text-danger {
    background-color: var(--signal-coral) !important;
    color: var(--surface-1) !important;
}

.text-muted {
    color: var(--light-teal) !important;
}

.badge.bg-info {
    background: var(--core-teal-2) !important;
    color: var(--surface-1) !important;
}

.bg-proposal {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    color: white !important;
}
.card-header.bg-proposal {
    background: linear-gradient(135deg, #7c83ff, #6366f1) !important;
    color: white !important;
}
/* Outline primary buttons (bootstrap classes) */
.btn-outline-primary {
    color: var(--core-teal) !important;
    border-color: rgba(0,229,200,0.2) !important;
}
.btn-outline-primary:hover {
    background: linear-gradient(90deg, rgba(0,229,200,0.06), rgba(0,229,200,0.03));
    color: var(--surface-1) !important;
}

/* Alert styles */
.alert-success {
    background: linear-gradient(90deg, rgba(0,229,200,0.08), rgba(0,229,200,0.04));
    border-color: rgba(0,229,200,0.12);
    color: var(--core-teal-2);
}

.alert-danger {
    background: linear-gradient(90deg, rgba(255,107,74,0.06), rgba(255,107,74,0.03));
    border-color: rgba(255,107,74,0.12);
    color: var(--signal-coral-2);
}

/* ============================================
   Modern App Layout
   ============================================ */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background: var(--surface-5);
    color: var(--aura-grey);
    margin: 0;
    overflow-x: hidden;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar Navigation
   ============================================ */

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface-3) 100%);
    color: var(--white-90);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0,0,0,0.6);
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Signum Logo Branding */
.Signum-logo {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,229,200,0.12);
}

.Signum-logo i {
    font-size: 1.25rem;
    color: white;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--white-90);
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar-brand:hover .Signum-logo {
    box-shadow: 0 10px 30px rgba(0,229,200,0.18);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.sidebar-brand:hover .brand-name {
    color: var(--core-teal);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-section {
    padding: 0.5rem 1rem;
}

.menu-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--light-teal);
    padding: 0.5rem 0.75rem;
    display: block;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--core-teal-2);
    text-decoration: none;
    border-radius: 10px;
    margin: 2px 0;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.menu-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 1rem;
    opacity: 1;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.menu-item.active {
    background: linear-gradient(90deg, var(--core-teal), var(--core-teal-2));
    color: var(--surface-1);
    box-shadow: 0 6px 18px rgba(0,229,200,0.12);
}

.menu-item.active i {
    opacity: 1;
}

.menu-item .badge {
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.version-info {
    text-align: center;
}

/* ============================================
   Main Content Area
   ============================================ */

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.top-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-toggle {
    font-size: 1.25rem;
    color: var(--aura-grey);
    padding: 0.5rem;
    margin-right: 1rem;
}

.header-search {
    max-width: 400px;
    flex: 1;
}

.header-search .input-group {
    background: #f3f4f6;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.header-search .input-group:focus-within {
    background: white;
    border-color: var(--core-teal-2);
    box-shadow: 0 0 0 3px rgba(0,229,200,0.15);
}

.header-search .form-control,
.header-search .input-group-text {
    border: none;
    background: transparent;
}

.header-search .form-control:focus {
    box-shadow: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aura-grey);
    background: transparent;
    border: none;
    position: relative;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: #f3f4f6;
    color: var(--aura-grey);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    background: var(--signal-coral);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-content {
    flex: 1;
    padding: 1.5rem 2rem;
}

.page-footer {
    padding: 1rem 2rem;
    border-top: 1px solid #e5e7eb;
    background: white;
}

.page-footer a {
    text-decoration: none;
}

.page-footer a:hover {
    color: var(--steel-blue) !important;
}
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}
.nav-pills .nav-link:not(.active) {
    color: var(--light-teal);
}
/* ============================================
   Cards & Components
   ============================================ */

.card {
    border: none;
    box-shadow: 0 6px 24px rgba(2,6,23,0.6);
    border-radius: 12px;
    background: var(--surface-3);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 14px 40px rgba(0,0,0,0.6);
}

.card-header {
    background: linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.05));
    color: var(--white-90);
    border-radius: 12px 12px 0 0 !important;
    border: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.card-header h5 {
    color: white;
    margin: 0;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2));
    border: none;
    color: var(--surface-1);
    box-shadow: 0 6px 18px rgba(0,229,200,0.12);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--core-teal-2), var(--core-teal-3));
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0,229,200,0.14);
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--steel-blue);
    border: 2px solid var(--steel-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--steel-blue);
    border-color: var(--steel-blue);
    color: white;
}

.text-success {
    color: var(--success) !important;
}

/* ============================================
   Tables
   ============================================ */

.table {
    background: white;
    margin-bottom: 0;
}

.table thead th {
    background: #f8fafc;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--aura-grey);
    border-bottom: 2px solid #e5e7eb;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #f3f4f6;
}

.table-hover tbody tr:hover {
    background: rgba(0,229,200,0.05);
}

.table-dark {
    background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

/* ============================================
   Forms
   ============================================ */

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: var(--core-teal-2);
    box-shadow: 0 0 0 3px rgba(0,229,200,0.15);
}

.form-select {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.625rem 1rem;
}

.form-select:focus {
    border-color: var(--core-teal-2);
    box-shadow: 0 0 0 3px rgba(0,229,200,0.15);
}

.form-check-input:checked {
    background-color: var(--core-teal-2);
    border-color: var(--core-teal-2);
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

/* ============================================
   Badges & Pills
   ============================================ */

.badge {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.4em 0.8em;
}

/* Source badge colors - match signal card source labels */
.source-linkedin {
    background: #0077b5 !important;
    color: white !important;
}

.source-crunchbase {
    background: #f26e1f !important;
    color: white !important;
}

.source-jobs {
    background: #2e7d32 !important;
    color: white !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--core-teal-2), var(--core-teal)) !important;
}

/* ============================================
   Alerts
   ============================================ */

.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.alert-success {
    background: linear-gradient(135deg, rgba(0,229,200,0.08), rgba(0,184,160,0.06));
    color: var(--core-teal-2);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(255,107,74,0.06), rgba(204,74,45,0.04));
    color: var(--signal-coral-2);
}

.alert-info {
    background: linear-gradient(135deg, rgba(10,24,38,0.08), rgba(28,35,51,0.04));
    color: var(--aura-grey);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* White headings only on dark surfaces */
.card-header h1, .card-header h2, .card-header h3,
.card-header h4, .card-header h5, .card-header h6,
.sidebar h1, .sidebar h2, .sidebar h3,
.sidebar h4, .sidebar h5, .sidebar h6 {
    color: var(--white-90);
}

.display-4, .display-5 {
    background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient {
    background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Icons
   ============================================ */

.icon-primary { color: var(--core-teal-2); }
.icon-accent { color: var(--signal-coral); }
.icon-muted { color: var(--aura-grey); }

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 1rem;
    }
    
    .display-4, .display-5 {
        font-size: 1.75rem;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.shadow-custom {
    box-shadow: 0 4px 16px rgba(4, 51, 83, 0.1) !important;
}

.border-accent {
    border-color: var(--orange) !important;
}

.rounded-xl {
    border-radius: 16px !important;
}

/* Progress bars */
.progress {
    border-radius: 10px;
    background: #e5e7eb;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

/* Size variants for progress */
.progress-sm { height: 10px !important; }
.progress-lg { height: 20px !important; }

/* Progress fill helper when width is set via data-progress */
.progress-fill { width: 0%; transition: width 0.6s ease; }

/* Animation delay utility classes (0.1s .. 0.8s) */
.anim-delay-01 { animation-delay: 0.1s !important; }
.anim-delay-02 { animation-delay: 0.2s !important; }
.anim-delay-03 { animation-delay: 0.3s !important; }
.anim-delay-04 { animation-delay: 0.4s !important; }
.anim-delay-05 { animation-delay: 0.5s !important; }
.anim-delay-06 { animation-delay: 0.6s !important; }
.anim-delay-07 { animation-delay: 0.7s !important; }
.anim-delay-08 { animation-delay: 0.8s !important; }

/* Kanban column sizing moved from inline styles */
.kanban-column { min-height: 300px; max-height: 500px; overflow-y: auto; }

/* Hidden helper uses bootstrap d-none, but include generic */
.hidden { display: none !important; }

/* Dropdown menus */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(4, 51, 83, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.625rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0,229,200,0.08);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* ============================================
   Toast Notifications
   ============================================ */

.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: var(--surface-3);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    z-index: 1100;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.toast-success {
    border-left: 4px solid var(--core-teal-2);
}

.toast-notification.toast-success i {
    color: var(--core-teal-2);
}

.toast-notification.toast-error {
    border-left: 4px solid var(--signal-coral-2);
}

.toast-notification.toast-error i {
    color: var(--signal-coral-2);
}

/* ============================================
   Loading Spinner
   ============================================ */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--core-teal-2);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.empty-state h4 {
    color: var(--regent-gray);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #9ca3af;
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

/* ============================================
   Skeleton Loading
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-text:last-child {
    width: 60%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Improved Focus States (Accessibility)
   ============================================ */

:focus-visible {
    outline: 2px solid var(--core-teal-2);
    outline-offset: 2px;
}

.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(0,229,200,0.4);
}

/* ============================================
   Light Mode
   ============================================ */

[data-bs-theme="light"] body {
    background: #f3f4f6;
    color: #1f2937;
}

[data-bs-theme="light"] .sidebar {
    background: linear-gradient(180deg, #1c2333 0%, #2a3447 100%);
}

[data-bs-theme="light"] .main-content {
    background: #f3f4f6;
}

[data-bs-theme="light"] .top-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .page-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    color: #1f2937;
}

[data-bs-theme="light"] .card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

[data-bs-theme="light"] .card-header {
    background: #f8fafc;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .card-header h5,
[data-bs-theme="light"] .card-header h6 {
    color: #1f2937;
}

[data-bs-theme="light"] h1,
[data-bs-theme="light"] h2,
[data-bs-theme="light"] h3,
[data-bs-theme="light"] h4,
[data-bs-theme="light"] h5,
[data-bs-theme="light"] h6 {
    color: #1f2937;
}

[data-bs-theme="light"] .text-muted {
    color: #6b7280 !important;
}

[data-bs-theme="light"] .text-success {
    color: var(--core-teal-3) !important;
}

[data-bs-theme="light"] .stat-card {
    background: #ffffff;
}

[data-bs-theme="light"] .kanban-column {
    background: #f8fafc;
}

[data-bs-theme="light"] .lead-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .dropdown-menu {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .dropdown-item {
    color: #1f2937;
}

[data-bs-theme="light"] .dropdown-item:hover {
    background: rgba(0,229,200,0.08);
}

[data-bs-theme="light"] .table {
    background: #ffffff;
    color: #1f2937;
}

[data-bs-theme="light"] .table thead th {
    background: #f8fafc;
    color: #6b7280;
    border-color: #e5e7eb;
}

[data-bs-theme="light"] .table tbody td {
    border-color: #f3f4f6;
}

[data-bs-theme="light"] .form-control,
[data-bs-theme="light"] .form-select {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

[data-bs-theme="light"] .modal-content {
    background: #ffffff;
    color: #1f2937;
}

[data-bs-theme="light"] .modal-header,
[data-bs-theme="light"] .modal-footer {
    border-color: #e5e7eb;
}

[data-bs-theme="light"] .list-group-item {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

[data-bs-theme="light"] .list-group-item-action:hover {
    background: rgba(0,229,200,0.06);
}

[data-bs-theme="light"] .signal-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .signal-card.dismissed {
    background: #f9fafb;
    opacity: 0.7;
}

[data-bs-theme="light"] .evidence-box {
    background: #f8fafc;
    border-left-color: var(--core-teal-2);
    color: #1f2937;
}

[data-bs-theme="light"] .toast-notification {
    background: #ffffff;
    color: #1f2937;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

[data-bs-theme="light"] .nav-pills .nav-link:not(.active) {
    color: #6b7280;
}

[data-bs-theme="light"] .search-results-dropdown {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

[data-bs-theme="light"] .search-result-item {
    color: #1f2937;
    border-color: #f3f4f6;
}

[data-bs-theme="light"] .search-result-item:hover,
[data-bs-theme="light"] .search-result-item.selected {
    background: rgba(0,229,200,0.08);
}

[data-bs-theme="light"] .ai-panel {
    background: #ffffff;
}

[data-bs-theme="light"] .ai-message.assistant .message-content {
    background: #f1f5f9;
    color: #1f2937;
}

[data-bs-theme="light"] .score-circle {
    background: rgba(0,0,0,0.05);
}

[data-bs-theme="light"] .score-label {
    color: #6b7280;
}

/* ============================================
   Dark Mode Support
   ============================================ */

[data-bs-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: #334155;
}

[data-bs-theme="dark"] body {
    background: var(--bg-primary);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .card-header {
    background: linear-gradient(135deg, #1e293b, #334155);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .main-content {
    background: var(--bg-primary);
}

[data-bs-theme="dark"] .top-header {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .page-footer {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .sidebar {
    background: linear-gradient(180deg, #0c1929, #0f172a);
}

[data-bs-theme="dark"] .header-search .input-group {
    background: #334155;
}

[data-bs-theme="dark"] .header-search .form-control {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .header-search .form-control::placeholder {
    color: var(--text-secondary);
}

[data-bs-theme="dark"] .search-results-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .search-result-item {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .search-result-item:hover,
[data-bs-theme="dark"] .search-result-item.selected {
    background: rgba(110, 208, 248, 0.15);
}

[data-bs-theme="dark"] .search-result-icon {
    background: #334155;
}

[data-bs-theme="dark"] .dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-bs-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background: rgba(110, 208, 248, 0.15);
}

[data-bs-theme="dark"] .table {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .table thead th {
    background: #334155;
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .table tbody td {
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #334155;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #3f4f63;
    border-color: var(--malibu);
}

[data-bs-theme="dark"] .btn-icon:hover {
    background: #334155;
}

[data-bs-theme="dark"] .modal-content {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .modal-header {
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

[data-bs-theme="dark"] h1, 
[data-bs-theme="dark"] h2, 
[data-bs-theme="dark"] h3, 
[data-bs-theme="dark"] h4, 
[data-bs-theme="dark"] h5, 
[data-bs-theme="dark"] h6 {
    color: var(--text-primary);
}

[data-bs-theme="dark"] .display-4,
[data-bs-theme="dark"] .display-5,
[data-bs-theme="dark"] .text-gradient {
    background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .list-group-item {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .list-group-item-action:hover {
    background: rgba(110, 208, 248, 0.1);
}

[data-bs-theme="dark"] .toast-notification {
    background: var(--bg-card);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .ai-panel {
    background: var(--bg-card);
}

[data-bs-theme="dark"] .ai-message.assistant .message-content {
    background: #334155;
    color: var(--text-primary);
}

[data-bs-theme="dark"] .ai-input input {
    background: #334155;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .ai-suggestions {
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .suggestion-chip {
    background: #334155;
    color: var(--malibu);
}

[data-bs-theme="dark"] .stat-card {
    background: var(--bg-card);
}

[data-bs-theme="dark"] .kanban-column {
    background: #151f2e;
}

[data-bs-theme="dark"] .lead-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .empty-state i {
    color: #4b5563;
}

[data-bs-theme="dark"] .evidence-box {
    background: #334155;
    border-left-color: var(--malibu);
    color: var(--text-primary);
}

[data-bs-theme="dark"] .evidence-box .text-muted {
    color: var(--text-secondary) !important;
}

[data-bs-theme="dark"] .evidence-box p,
[data-bs-theme="dark"] .evidence-box .evidence-text {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .signal-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .signal-card.dismissed {
    background: #1a2332;
}

[data-bs-theme="dark"] .stat-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-bs-theme="dark"] .score-circle {
    background: rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .score-label {
    color: var(--text-secondary);
}

/* ============================================
   Global Search Dropdown
   ============================================ */

.header-search {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(4, 51, 83, 0.2);
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--blue-whale);
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.15s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
    background: rgba(110, 208, 248, 0.1);
}

.search-result-icon {
    width: 36px;
    height: 36px;
    background: #f3f4f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--steel-blue);
    margin-right: 12px;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-subtitle {
    font-size: 0.75rem;
    color: var(--regent-gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-type {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--regent-gray);
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
}

.search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--regent-gray);
}

/* Keyboard shortcut hint */
.header-search input::placeholder {
    font-size: 0.85rem;
}

/* About page stat card gradients */
.card-gradient-primary {
    background: linear-gradient(135deg, var(--core-teal), var(--core-teal-2));
    color: white;
}

.card-gradient-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.card-gradient-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.card-gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Shared layout loader styles (moved from _Layout) */
#page-loader-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, #6ed0f8, #478db1);
    z-index: 99999;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px rgba(110, 208, 248, 0.8);
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;
    pointer-events: none;
    display: none;
}

#page-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
}

.page-loader-spinner {
    text-align: center;
}

.page-loader-spinner-lg {
    width: 3rem;
    height: 3rem;
}

.search-results-dropdown {
    display: none;
}

.admin-indicator-badge {
    font-size: 0.5rem;
}

/* Shared notifications styles (moved from _NotificationsPartial) */
#notification-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
}

.lead-notification {
    background: linear-gradient(135deg, #043353, #144a6d);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(4, 51, 83, 0.4);
    overflow: hidden;
}

.lead-notification.slide-in {
    animation: slideInRight 0.3s ease;
}

.lead-notification.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.notification-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.85rem;
}

.notification-header .btn-close {
    margin-left: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.notification-body {
    padding: 12px 16px;
}

.notification-body .company-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.notification-body .signal-type {
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.score-badge.high { background: #22c55e; }
.score-badge.medium { background: #f59e0b; }
.score-badge.low { background: #6b7280; }

.notification-actions {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.1);
}

.connection-indicator {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    z-index: 1000;
    cursor: help;
    transition: all 0.3s ease;
}

.connection-indicator.connected {
    background: #22c55e;
    color: white;
}

.connection-indicator.disconnected {
    background: #ef4444;
    color: white;
}

.connection-indicator.reconnecting {
    background: #f59e0b;
    color: white;
}

.badge.pulse {
    animation: badgePulse 0.5s ease;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Shared AI assistant styles (moved from _AIAssistantPartial) */
.ai-assistant-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1050;
}

.ai-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #478db1, #043353);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(4, 51, 83, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.ai-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(4, 51, 83, 0.5);
}

.ai-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #22c55e;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.ai-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ai-panel.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ai-header {
    background: linear-gradient(135deg, #478db1, #043353);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 300px;
}

.ai-message {
    margin-bottom: 12px;
}

.ai-message.assistant .message-content {
    background: #f1f5f9;
    padding: 12px;
    border-radius: 12px 12px 12px 0;
    font-size: 0.9rem;
}

.ai-message.user .message-content {
    background: linear-gradient(135deg, #478db1, #043353);
    color: white;
    padding: 12px;
    border-radius: 12px 12px 0 12px;
    margin-left: 20%;
    font-size: 0.9rem;
}

.ai-message ul {
    padding-left: 1.2rem;
    font-size: 0.85rem;
}

.ai-suggestions {
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #e5e7eb;
}

.suggestion-chip {
    background: #e0f2fe;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #0369a1;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-chip:hover {
    background: #bae6fd;
}

.ai-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e5e7eb;
    gap: 8px;
}

.ai-input input {
    flex: 1;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.9rem;
}

.ai-input input:focus {
    outline: none;
    border-color: #478db1;
}

.send-btn {
    background: linear-gradient(135deg, #478db1, #043353);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.send-btn:hover {
    transform: scale(1.05);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Shared context help styles (moved from _ContextHelpPartial) */
.help-section {
    margin-bottom: 1.5rem;
}

.help-section h6 {
    color: var(--blue-whale);
    border-bottom: 2px solid var(--malibu);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.help-tip {
    background: #f0f9ff;
    border-left: 4px solid var(--malibu);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
}

.help-tip i {
    color: var(--steel-blue);
}

.help-shortcut {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.help-shortcut kbd {
    background: #e5e7eb;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.help-video-placeholder {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: #6b7280;
}

/* Shared utility classes for inline-style migration */
.anim-delay-100 { animation-delay: 0.1s; }
.anim-delay-150 { animation-delay: 0.15s; }
.anim-delay-200 { animation-delay: 0.2s; }
.anim-delay-250 { animation-delay: 0.25s; }
.anim-delay-300 { animation-delay: 0.3s; }

.pre-wrap-text { white-space: pre-wrap; }
.z-index-toast { z-index: 9999; }
.progress-h-20 { height: 20px; }
.progress-width-0 { width: 0%; }
.scroll-y-200 { max-height: 200px; overflow-y: auto; }
.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Leads queue */
.lead-queue-page .lead-queue-card {
    transition: all 0.2s ease;
    border-width: 2px;
}

.lead-queue-page .lead-queue-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lead-queue-page .stat-card a {
    color: inherit;
}

.lead-queue-page .stat-card:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.lead-queue-page .nav-tabs .nav-link {
    color: #6c757d;
}

.lead-queue-page .nav-tabs .nav-link.active {
    font-weight: 600;
}

/* Leads pipeline */
.kanban-card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.kanban-column-scroll {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.lead-card-title-sm {
    font-size: 0.9rem;
}

.lead-priority-badge {
    font-size: 0.65rem;
}

/* Leads tenders */
.tenders-page .tender-saved-search-badge {
    background: rgba(0, 229, 200, 0.12);
    color: var(--core-teal);
    border: 1px solid rgba(0, 229, 200, 0.2);
    padding: 0.45em 0.9em;
    font-size: 0.82rem;
}

.tenders-page .tender-filter-icon,
.tenders-page .tender-digest-btn,
.tenders-page .tender-delete-search-btn {
    font-size: 0.75rem;
}

.tenders-page .tender-digest-btn-enabled {
    color: var(--core-teal);
}

.tenders-page .tender-digest-btn-disabled {
    color: var(--aura-grey);
}

.tenders-page .tender-save-search-name {
    width: 220px;
}

.tenders-page .tender-quick-search-badge,
.tenders-page .tender-free-badge,
.tenders-page .tender-summary-new,
.tenders-page .tender-summary-high-value {
    background: rgba(0, 229, 200, 0.12);
    color: var(--core-teal);
    border: 1px solid rgba(0, 229, 200, 0.2);
}

.tenders-page .tender-quick-search-badge {
    padding: 0.5em 1em;
    font-size: 0.85rem;
}

.tenders-page .tender-free-badge {
    background: rgba(0, 229, 200, 0.15);
}

.tenders-page .tender-summary-total,
.tenders-page .tender-summary-dismissed-link,
.tenders-page .tender-summary-expired-off {
    background: var(--surface-4);
    color: var(--aura-grey);
}

.tenders-page .tender-summary-total {
    color: white;
}

.tenders-page .tender-summary-expired-on {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.tenders-page .tender-bid-brief-panel {
    border-left-width: 4px;
    border-left-style: solid;
    border-left-color: var(--rec-colour, var(--core-teal));
}

.tenders-page .tender-rec-colour {
    color: var(--rec-colour, var(--core-teal));
}

.tenders-page .tender-rec-colour-bg {
    background: var(--rec-colour, var(--core-teal));
    color: #0B0F1A;
}

.tenders-page .tender-bid-recommendation-badge {
    color: #0B0F1A;
}

.tenders-page .tender-surface-pre {
    background: var(--surface-3);
    color: var(--white-90);
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: auto;
}

.tenders-page .tender-buyer-intel-panel {
    border-left: 4px solid var(--core-teal-2);
}

.tenders-page .tender-buyer-intel-icon {
    color: var(--core-teal-2);
}

.tenders-page .tender-surface-card {
    background: var(--surface-3);
}

.tenders-page .tender-teal-text,
.tenders-page .tender-restore-btn {
    color: var(--core-teal);
}

.tenders-page .tender-surface-pre-muted {
    background: var(--surface-3);
    color: var(--white-80);
    white-space: pre-wrap;
}

.tenders-page .tender-new-badge {
    background: var(--core-teal);
    color: #0B0F1A;
    font-size: 0.7rem;
}

.tenders-page .tender-ai-summary {
    color: var(--core-teal-2);
    font-style: italic;
}

.tenders-page .tender-bid-brief-btn {
    background: rgba(0, 229, 200, 0.12);
    color: var(--core-teal);
    border: 1px solid rgba(0, 229, 200, 0.25);
}

.tenders-page .tender-buyer-intel-btn {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Additional utility and settings classes for inline-style migration */
.anim-delay-350 { animation-delay: 0.35s; }
.anim-delay-400 { animation-delay: 0.4s; }
.anim-delay-450 { animation-delay: 0.45s; }
.anim-delay-500 { animation-delay: 0.5s; }
.anim-delay-550 { animation-delay: 0.55s; }

.integrations-slack-icon {
    color: #4A154B;
}

.integrations-slack-btn {
    background-color: #4A154B;
    color: white;
}

.stat-label-xs {
    font-size: 0.7rem;
}

.table-col-120 {
    width: 120px;
}

.vertical-select-card {
    cursor: pointer;
}

/* Public/support page migration classes */
.about-logo img {
    filter: drop-shadow(0 4px 12px rgba(4, 51, 83, 0.15));
}

.feature-item {
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.feature-item:hover {
    background: rgba(110, 208, 248, 0.1);
}

.bg-primary-subtle {
    background-color: rgba(71, 141, 177, 0.15);
}

.bg-success-subtle {
    background-color: rgba(34, 197, 94, 0.15);
}

.bg-info-subtle {
    background-color: rgba(110, 208, 248, 0.15);
}

.bg-warning-subtle {
    background-color: rgba(245, 158, 11, 0.15);
}

.text-purple {
    color: #8b5cf6;
}

.help-section {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 2rem;
}

.help-section:last-child {
    border-bottom: none;
}

.help-section h3 {
    color: #0d6efd;
    margin-bottom: 1rem;
}

.help-section h5 {
    color: #495057;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.landing-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.landing-hero-subtitle-wide {
    max-width: 700px;
    margin: 0 auto;
}

.landing-hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(4, 51, 83, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(4, 51, 83, 0.15);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--malibu), var(--steel-blue));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

.stat-card {
    border: none;
    border-radius: 16px;
}

.stat-icon {
    width: 75px;
    height: 75px;
    border-radius: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-soft {
    background: rgba(71, 141, 177, 0.1);
}

.bg-info-soft {
    background: rgba(13, 202, 240, 0.1);
}

.bg-success-soft {
    background: rgba(34, 197, 94, 0.1);
}

.bg-danger-soft {
    background: rgba(239, 68, 68, 0.1);
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.1);
}

.quick-action-card {
    transition: all 0.3s ease;
    color: var(--blue-whale);
}

.quick-action-card:hover {
    transform: translateY(-4px);
    border-color: var(--malibu);
}

.activity-timeline .activity-item {
    position: relative;
}

.activity-timeline .activity-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 36px;
    bottom: -12px;
    width: 2px;
    background: #e5e7eb;
}

.activity-icon {
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--steel-blue);
    flex-shrink: 0;
}

.pricing-plan-card {
    border-radius: 16px;
}

.pricing-plan-popular-header {
    border-radius: 16px 16px 0 0;
}

.solutions-overview-subtitle {
    max-width: 700px;
}

.vertical-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.vertical-card:hover {
    transform: translateY(-8px);
    border-color: var(--malibu);
    box-shadow: 0 12px 24px rgba(4, 51, 83, 0.15);
}

.vertical-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--malibu), var(--steel-blue));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
}

.signal-icon {
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    animation: vertical-hero-float 3s ease-in-out infinite;
}

@keyframes vertical-hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Onboarding page migration classes */
.onboarding-header .text-muted,
.onboarding-header .small.text-muted {
    color: rgba(255,255,255,0.65) !important;
}

.onboarding-body .text-muted,
.onboarding-body .small.text-muted {
    color: #6b7280 !important;
}

.onboarding-page {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #556070 0%, #6b7999 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.onboarding-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    overflow: hidden;
}

.onboarding-header {
    background: linear-gradient(135deg, #478db1, #556070);
    color: white;
    padding: 2rem;
    text-align: center;
}

.onboarding-body {
    padding: 2rem;
}

/* Force light appearance regardless of data-bs-theme on <html> */
[data-bs-theme] .onboarding-container {
    background: white;
    color: #1f2937;
    color-scheme: light;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: all 0.3s;
}

.step-dot.active {
    background: #478db1;
    width: 32px;
    border-radius: 6px;
}

.step-dot.completed {
    background: #22c55e;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.industry-card {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.industry-card:hover {
    border-color: #478db1;
    background: rgba(71, 141, 177, 0.05);
}

.industry-card.selected {
    border-color: #478db1;
    background: rgba(71, 141, 177, 0.1);
}

.industry-card i {
    font-size: 2rem;
    color: #478db1;
    margin-bottom: 0.5rem;
}

.signal-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.signal-option:hover {
    border-color: #478db1;
}

.signal-option.selected {
    border-color: #478db1;
    background: rgba(71, 141, 177, 0.1);
}

.signal-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
}

/* QuickStart page migration classes */
.quickstart-page {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #556070 0%, #6b7999 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.wizard-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
}

.wizard-header {
    background: linear-gradient(135deg, #00E5C8, #556070);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wizard-body {
    padding: 2rem;
}

.step-progress {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.vertical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .vertical-grid {
        grid-template-columns: 1fr;
    }
}

.vertical-card {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.vertical-card:hover {
    border-color: #00E5C8;
    background: rgba(71, 141, 177, 0.05);
    transform: translateY(-2px);
}

.vertical-card.selected {
    border-color: #00E5C8;
    background: rgba(71, 141, 177, 0.1);
    box-shadow: 0 4px 12px rgba(71, 141, 177, 0.2);
}

.vertical-card i {
    font-size: 2rem;
    color: #00E5C8;
    margin-bottom: 0.75rem;
}

.vertical-card h6 {
    margin-bottom: 0.25rem;
}

.vertical-card small {
    color: #6b7280;
}

.crm-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.75rem;
}

.crm-option:hover {
    border-color: #00E5C8;
}

.crm-option.selected {
    border-color: #00E5C8;
    background: rgba(71, 141, 177, 0.05);
}

.crm-option img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.crm-option .crm-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.preview-lead {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid #00E5C8;
    transition: all 0.2s;
}

.preview-lead:hover {
    transform: translateX(4px);
}

.preview-lead.ghost-job {
    border-left-color: #f59e0b;
}

.preview-lead.executive {
    border-left-color: #8b5cf6;
}

.preview-lead.tender {
    border-left-color: #22c55e;
}

.preview-lead h6 {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-lead .score-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.score-high {
    background: #dcfce7;
    color: #166534;
}

.score-medium {
    background: #fef3c7;
    color: #92400e;
}

.btn-bf {
    background: linear-gradient(135deg, #00E5C8, #556070);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-bf:hover {
    background: linear-gradient(135deg, #556070, #6b7999);
    color: white;
    transform: translateY(-1px);
}

.btn-skip {
    color: #6b7280;
    text-decoration: none;
}

.btn-skip:hover {
    color: #00E5C8;
}

.time-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.Signum-logo-sm {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6ed0f8, #478db1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.Signum-logo-sm i {
    font-size: 1rem;
    color: white;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: quickstart-pop 0.4s ease;
}

.success-checkmark i {
    font-size: 2.5rem;
    color: white;
}

@keyframes quickstart-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Training page migration classes */
[data-bs-theme="dark"] .modal-content {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .modal-body .bg-light,
[data-bs-theme="dark"] .modal-body .training-card {
    background-color: var(--bs-tertiary-bg) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] .modal-body .card,
[data-bs-theme="dark"] #trainingContent .card {
    background-color: var(--bs-tertiary-bg) !important;
    border-color: var(--bs-border-color) !important;
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] #trainingContent .card strong,
[data-bs-theme="dark"] #trainingContent .card small,
[data-bs-theme="dark"] #trainingContent strong {
    color: var(--bs-body-color) !important;
}

[data-bs-theme="dark"] #trainingContent .text-muted,
[data-bs-theme="dark"] #trainingContent small.text-muted {
    color: var(--bs-secondary-color) !important;
}

[data-bs-theme="dark"] .modal-body .border-bottom {
    border-color: var(--bs-border-color) !important;
}

[data-bs-theme="dark"] .table {
    color: var(--bs-body-color);
}

[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
    border-color: var(--bs-border-color);
}

[data-bs-theme="dark"] .alert a {
    color: inherit;
    text-decoration: underline;
}

[data-bs-theme="dark"] kbd {
    background-color: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
}

.training-info-card {
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

.training-info-card strong {
    color: var(--bs-body-color);
}

.training-info-card small {
    color: var(--bs-secondary-color);
}

.text-core-teal {
    color: var(--core-teal) !important;
}

.training-modal-progress-header {
    background-color: var(--bs-tertiary-bg);
}

.training-step-progress {
    height: 4px;
}

.training-action-btn {
    min-width: 120px;
}

.anim-delay-600 {
    animation-delay: 0.6s;
}

.anim-delay-700 {
    animation-delay: 0.7s;
}

.anim-delay-800 {
    animation-delay: 0.8s;
}

.anim-delay-900 {
    animation-delay: 0.9s;
}

/* Operational page migration classes */
.crm-card {
    border-width: 2px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.crm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(4, 51, 83, 0.15);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: crm-status-pulse 2s infinite;
}

.bg-success .status-dot,
.status-dot.bg-success {
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
}

@keyframes crm-status-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.15);
}

.no-license-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #043353 0%, #144a6d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-license-card {
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 560px;
    width: 100%;
}

.no-license-header {
    background: linear-gradient(135deg, #478db1, #043353);
}

.step {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1rem 1.25rem;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #478db1;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.oauth-callback-body {
    background: linear-gradient(135deg, #556070 0%, #6b7999 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callback-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top-color: #478db1;
    border-radius: 50%;
    animation: oauth-spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes oauth-spin {
    to { transform: rotate(360deg); }
}

.success-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: oauth-pop 0.4s ease;
}

.error-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

@keyframes oauth-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Auth/Admin standalone page migration classes */
.auth-standalone-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #043353 0%, #144a6d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.access-denied-card {
    border-radius: 24px;
    max-width: 450px;
}

.logout-card {
    border-radius: 24px;
    max-width: 400px;
}

.admin-reset-body {
    background: #0b0f1a;
    color: #e5e7eb;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-reset-card {
    background: #161b2e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 480px;
    width: 100%;
}

.profile-avatar-circle {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.profile-usage-progress {
    height: 8px;
}

/* Analytics page migration classes */
.analytics-score-progress {
    width: 100px;
}

.analytics-progress-h-6 {
    height: 6px;
}

.analytics-progress-h-8 {
    height: 8px;
}

.analytics-progress-h-24 {
    height: 24px;
}

.analytics-dot-icon {
    font-size: 8px;
}

.analytics-industry-progress {
    background: linear-gradient(90deg, var(--steel-blue), var(--malibu));
}

.analytics-velocity-height {
    height: 120px;
}

.analytics-velocity-bar {
    width: 6%;
}

/* API settings page migration classes */
.api-settings-page .api-config-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.api-settings-page .api-config-item:hover {
    border-color: var(--malibu);
    background: #fff;
}

.api-settings-page .toggle-password {
    border-left: none;
}

.api-settings-page .toggle-password:hover {
    background: #f3f4f6;
}

/* Marketplace landing page migration classes */
.marketplace-landing-body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #043353 0%, #144a6d 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.provision-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.provision-header {
    background: linear-gradient(135deg, #478db1, #043353);
    color: white;
    padding: 2rem;
    text-align: center;
}

.provision-body {
    padding: 2.5rem 2rem;
    text-align: center;
}

.spinner-ring {
    width: 56px;
    height: 56px;
    border: 5px solid #e5e7eb;
    border-top-color: #478db1;
    border-radius: 50%;
    animation: marketplace-spin 0.9s linear infinite;
    margin: 0 auto 1.5rem;
}

@keyframes marketplace-spin {
    to { transform: rotate(360deg); }
}

.badge-marketplace {
    background: #f0f9ff;
    border: 1px solid #6ed0f8;
    color: #043353;
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
}

.marketplace-logo-light {
    filter: brightness(0) invert(1);
}

@media (max-width: 480px) {
    .ai-panel {
        width: calc(100vw - 32px);
        right: -8px;
    }

    #notification-container {
        right: 12px;
        left: 12px;
        max-width: none;
    }
}
