:root {
    --navy: #0A1A33;
    --navy-light: #1a2e4a;
    --gold: #B8975A;
    --gold-light: #d4b87a;
    --bg: #F8FAFC;
}

/* Sidebar */
.sidebar {
    background-color: var(--navy);
    width: 16rem;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    color: white;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 1.5rem;
    border-bottom: 1px solid var(--navy-light);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.sidebar-nav {
    padding: 1rem 0;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s;
}

.sidebar-link:hover {
    color: white;
    background-color: var(--navy-light);
}

.sidebar-link.active {
    color: white;
    background-color: var(--navy-light);
    border-left: 3px solid var(--gold);
    padding-left: calc(1.5rem - 3px);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--navy-light);
    font-size: 0.75rem;
    color: #64748b;
}

/* Main content */
.main-content {
    margin-left: 16rem;
    min-height: 100vh;
    background-color: var(--bg);
}

/* Cards */
.card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.card-gold-top {
    border-top: 3px solid var(--gold);
}

/* KPI cards */
.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.kpi-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-hot { background: #fef2f2; color: #dc2626; }
.badge-warm { background: #fff7ed; color: #ea580c; }
.badge-medium { background: #eff6ff; color: #2563eb; }
.badge-cold { background: #f1f5f9; color: #64748b; }

.badge-new { background: #f0fdf4; color: #16a34a; }
.badge-enriched { background: #eff6ff; color: #2563eb; }
.badge-contacted { background: #fefce8; color: #ca8a04; }
.badge-responded { background: #f0fdf4; color: #16a34a; }
.badge-diagnostic_booked { background: #faf5ff; color: #9333ea; }
.badge-email_generated { background: #ecfeff; color: #0891b2; }
.badge-won { background: #f0fdf4; color: #16a34a; }
.badge-lost { background: #fef2f2; color: #dc2626; }
.badge-disqualified { background: #f1f5f9; color: #64748b; }

.badge-sent { background: #eff6ff; color: #2563eb; }
.badge-draft { background: #f1f5f9; color: #64748b; }
.badge-approved { background: #f0fdf4; color: #16a34a; }
.badge-scheduled { background: #fefce8; color: #ca8a04; }
.badge-bounced { background: #fef2f2; color: #dc2626; }
.badge-opened { background: #f0fdf4; color: #16a34a; }

.badge-active { background: #f0fdf4; color: #16a34a; }
.badge-paused { background: #fefce8; color: #ca8a04; }
.badge-completed { background: #eff6ff; color: #2563eb; }

.badge-verified { background: #f0fdf4; color: #16a34a; }
.badge-catch_all { background: #fefce8; color: #ca8a04; }
.badge-unknown { background: #f1f5f9; color: #64748b; }
.badge-invalid { background: #fef2f2; color: #dc2626; }

/* Score badge */
.score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.875rem;
}

/* Signal type badges */
.badge-signal-hiring_backoffice { background: #dbeafe; color: #1d4ed8; }
.badge-signal-hiring_data_entry { background: #fce7f3; color: #be185d; }
.badge-signal-hiring_excel_reporting { background: #e0e7ff; color: #4338ca; }
.badge-signal-growth_mismatch { background: #d1fae5; color: #065f46; }
.badge-signal-negative_review { background: #fee2e2; color: #991b1b; }

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

tr:hover {
    background-color: #f8fafc;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}

.btn-primary {
    background-color: var(--gold);
    color: white;
}

.btn-primary:hover {
    background-color: var(--gold-light);
}

.btn-secondary {
    background-color: white;
    color: var(--navy);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background-color: #f8fafc;
}

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

/* Pagination */
.pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--navy);
}

.pagination a:hover {
    background-color: #e2e8f0;
}

.pagination .active {
    background-color: var(--navy);
    color: white;
}

/* Filter bar */
.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-bar select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background-color: white;
    color: var(--navy);
    cursor: pointer;
    appearance: auto;
}

/* Activity feed */
.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid #f1f5f9;
}

.activity-time {
    color: #94a3b8;
    white-space: nowrap;
    font-size: 0.75rem;
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}
.htmx-request.btn {
    opacity: 0.7;
    pointer-events: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
}

/* Dark Mode */
[data-theme="dark"] body {
    background-color: #0F172A;
    color: #E2E8F0;
}

[data-theme="dark"] .sidebar {
    background-color: #020617;
}

[data-theme="dark"] .sidebar-link {
    color: #64748b;
}

[data-theme="dark"] .sidebar-link:hover,
[data-theme="dark"] .sidebar-link.active {
    color: white;
    background-color: #0F172A;
}

[data-theme="dark"] .main-content {
    background-color: #0F172A;
}

[data-theme="dark"] .card {
    background: #1E293B;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

[data-theme="dark"] .kpi-value {
    color: #E2E8F0;
}

[data-theme="dark"] .kpi-label {
    color: #94A3B8;
}

[data-theme="dark"] table th {
    color: #94A3B8;
    border-bottom-color: #334155;
}

[data-theme="dark"] table td {
    border-bottom-color: #1E293B;
    color: #CBD5E1;
}

[data-theme="dark"] tr:hover {
    background-color: #1E293B;
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background-color: #1E293B;
    border-color: #334155;
    color: #E2E8F0;
}

[data-theme="dark"] .filter-bar select {
    background-color: #1E293B;
    color: #E2E8F0;
}

[data-theme="dark"] .btn-secondary {
    background-color: #1E293B;
    color: #E2E8F0;
    border-color: #334155;
}

[data-theme="dark"] .kanban-cards {
    background: #0F172A !important;
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: #1E293B;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3 {
    color: #E2E8F0;
}

[data-theme="dark"] .text-gray-400 {
    color: #64748b;
}

[data-theme="dark"] .text-gray-500 {
    color: #94a3b8;
}

[data-theme="dark"] .text-gray-600 {
    color: #94a3b8;
}

[data-theme="dark"] .text-gray-700 {
    color: #cbd5e1;
}
