/* Tracker Header */
.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
}

/* Page Title */
.page-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.page-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 i {
    color: #4CAF50;
    font-size: 24px;
}

.page-title p {
    margin: 0;
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Back to Landing Page Button */
.back-to-landing {
    margin-left: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.back-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    color: white;
}

.back-btn i {
    font-size: 12px;
}

/* Base styles */
:root {
    --primary-color: #4CAF50;
    --primary-hover: #45a049;
    --text-color: #333;
    --text-light: #666;
    --background: #f5f5f5;
    --card-background: #ffffff;
    --border-color: #ddd;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --spacing-xs: clamp(4px, 1vw, 8px);
    --spacing-sm: clamp(8px, 2vw, 12px);
    --spacing-md: clamp(16px, 3vw, 20px);
    --spacing-lg: clamp(24px, 4vw, 32px);
    --font-size-xs: clamp(12px, 2.5vw, 13px);
    --font-size-sm: clamp(13px, 3vw, 14px);
    --font-size-md: clamp(14px, 3.5vw, 16px);
    --font-size-lg: clamp(16px, 4vw, 18px);
    --font-size-xl: clamp(20px, 5vw, 24px);
    --border-radius: 8px;
    --container-width: min(100%, 800px);
}

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

html {
    font-size: 16px;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

/* Container styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Card styles */
.job-tracker-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Enhanced Navigation Tabs */
.job-nav-tabs {
    display: flex;
    gap: 0;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.job-nav-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    pointer-events: auto !important;
    -webkit-user-select: none;
    user-select: none;
}

.job-nav-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.job-nav-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.job-nav-btn i {
    font-size: 18px;
}

/* Controls Container */
.add-job-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.job-controls-group {
    display: flex;
    gap: 10px;
}

/* Buttons */
.add-new-job-btn, .job-control-btn {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-new-job-btn {
    background-color: #28a745;
    color: white;
}

.add-new-job-btn:hover {
    background-color: #218838;
}

.job-control-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.job-control-btn:hover {
    background-color: #e2e6ea;
}

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

.job-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.job-table th,
.job-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.job-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.job-table tr:hover {
    background-color: #f5f5f5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close-modal:hover {
    color: #333;
}

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

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

/* Table Action Buttons */
.action-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: white;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.action-btn:hover {
    background-color: #f5f5f5;
    border-color: #d0d0d0;
}

.action-btn i {
    font-size: 13px;
}

.delete-btn {
    background-color: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.delete-btn:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

/* Group By Select */
.group-by-select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tracker-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .back-to-landing {
        margin-left: 0;
        order: -1;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }

    .add-job-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .job-controls-group {
        width: 100%;
        justify-content: space-between;
    }
    
    .add-new-job-btn {
        width: 100%;
    }
    
    .modal-content {
        margin: 20px;
        width: auto;
    }
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* Responsive tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-md);
}

th, td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

/* Navigation */
.nav {
    background: var(--card-background);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
    flex-wrap: wrap;
}

/* Typography */
h1 { font-size: var(--font-size-xl); }
h2 { font-size: calc(var(--font-size-xl) * 0.9); }
h3 { font-size: calc(var(--font-size-xl) * 0.8); }
h4 { font-size: calc(var(--font-size-xl) * 0.7); }

/* Utility classes */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(51, 51, 51, 0.95);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
    opacity: 1;
    transition: opacity 0.3s ease;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.success {
    background: rgba(76, 175, 80, 0.95);
}

.toast.error {
    background: rgba(244, 67, 54, 0.95);
}

.toast.info {
    background: rgba(33, 150, 243, 0.95);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* All remaining styles from the original file continue here... */
/* Adding the status bar and other complex components from the original CSS */

.job-status-bar {
    display: flex;
    width: 100%;
    max-width: 100vw;
    margin: 0 0 8px 0;
    padding: 0;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    background: #fff;
    overflow: hidden;
}

.status-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 38px;
    background: #fff;
    border-right: 1px solid #eee;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    border-radius: 0;
    margin: 0;
    position: relative;
    cursor: pointer;
}

.status-step:last-child {
    border-right: none;
}

.status-step.active {
    border-bottom: 3px solid #ffb84d;
    background: #fff8e1;
    z-index: 1;
}

.status-count {
    font-size: 1.1em;
    font-weight: bold;
    color: #222;
    margin-bottom: 0;
    margin-top: 0;
    line-height: 1.1;
}

.status-step:not(.active) .status-count {
    color: #aaa;
    font-weight: normal;
}

.status-label {
    font-size: 0.75em;
    color: #444;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.1;
    text-align: center;
    word-break: break-word;
}

.status-step:not(.active) .status-label {
    color: #888;
    font-weight: 500;
}

/* Job Action Bar Styles */
.job-action-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    margin: 12px 0 8px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    width: 100%;
    max-width: 100%;
    font-size: 15px;
    z-index: 10;
}

.action-bar-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #444;
    font-weight: 500;
    margin-right: 18px;
}

.action-bar-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #007bff;
    margin-right: 4px;
}

/* All dropdowns and other complex styling continues... */

/* Status input container */
.status-input-container {
    display: none;
    padding: 2px;
    position: relative;
}

/* Editable status select */
.editable-status {
    width: 100% !important;
    padding: 4px 8px !important;
    border: 1px solid #197278 !important;
    border-radius: 4px;
    font-size: 13px;
    background-color: #fff !important;
    transition: all 0.2s ease;
    cursor: pointer;
}

.editable-status:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(25, 114, 120, 0.1);
}

/* Style the select options */
.editable-status option {
    padding: 8px;
    font-size: 13px;
}

.editable-status option:hover {
    background-color: #DEB887;
}

/* Status display styles */
.status-display {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    transition: all 0.2s ease;
}

.status-display.edited {
    animation: highlight-fade 1s ease-out;
}

/* Status colors */
.status-display.bookmarked { background-color: #C4A484; color: #000; }
.status-display.applying { background-color: #fff; color: #000; }
.status-display.applied { background-color: #DEB887; color: #000; }
.status-display.interviewing { background-color: #fff; color: #000; }
.status-display.negotiating { background-color: #fff; color: #000; }
.status-display.accepted { background-color: #fff; color: #000; }
.status-display.i-withdrew { background-color: #fff; color: #000; }
.status-display.not-selected { background-color: #fff; color: #000; }
.status-display.no-response { background-color: #fff; color: #000; }
.status-display.archived { background-color: #fff; color: #000; }

/* Make status cells look clickable */
.editable-status-cell {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.editable-status-cell:hover {
    background-color: #f0f7fb;
}

.editable-status-cell:hover::after {
    content: '\f044'; /* Font Awesome edit icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    color: #197278;
    font-size: 12px;
    opacity: 0.7;
    pointer-events: none;
}

/* Highlight fade animation */
@keyframes highlight-fade {
    0% { background-color: #DEB887; }
    100% { background-color: transparent; }
}

/* Toast Message Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #10b981;
    color: #065f46;
}

.toast.error {
    border-left-color: #ef4444;
    color: #991b1b;
}

.toast.info {
    border-left-color: #3b82f6;
    color: #1e40af;
}

.toast.warning {
    border-left-color: #f59e0b;
    color: #92400e;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@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;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

/* Responsive Design for Tracker Header */
@media (max-width: 768px) {
    .tracker-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .page-title {
        text-align: center;
        order: -1;
    }
    
    .page-title h1 {
        font-size: 24px;
        justify-content: center;
    }
    
    .page-title p {
        font-size: 14px;
    }
    
    .back-to-landing {
        margin-left: 0;
        order: 2;
    }
    
    .back-btn {
        width: 100%;
        justify-content: center;
    }
    
    .job-nav-tabs {
        margin: 15px 0;
        padding: 10px 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .job-nav-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* Tab Content */
.tab-content-container {
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

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

/* Tracker Controls */
.tracker-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 20px;
}

.search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-bar input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-bar i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Contact/Company Cards Grid */
.contacts-grid,
.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.contact-card,
.company-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-card:hover,
.company-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.contact-header,
.company-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-avatar,
.company-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.contact-info h3,
.company-info h3 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.contact-title,
.company-industry {
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.contact-company,
.company-location {
    color: #888;
    font-size: 13px;
    margin: 4px 0 0 0;
}

.contact-details,
.company-details {
    margin: 16px 0;
    font-size: 14px;
    color: #666;
}

.contact-details p,
.company-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-details i,
.company-details i {
    width: 20px;
    color: #667eea;
}

.contact-notes,
.company-notes {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 13px;
    color: #666;
}

.company-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.status-interested { background: #e3f2fd; color: #1976d2; }
.status-applied { background: #fff3e0; color: #f57c00; }
.status-interviewing { background: #f3e5f5; color: #7b1fa2; }
.status-offer { background: #e8f5e9; color: #388e3c; }
.status-rejected { background: #ffebee; color: #d32f2f; }

.contact-actions,
.company-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.btn-edit,
.btn-delete {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-edit {
    background: #e3f2fd;
    color: #1976d2;
}

.btn-edit:hover {
    background: #1976d2;
    color: white;
}

.btn-delete {
    background: #ffebee;
    color: #d32f2f;
}

.btn-delete:hover {
    background: #d32f2f;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

/* Modern Empty State */
.empty-state-modern {
    text-align: center;
    padding: 80px 40px;
    max-width: 500px;
    margin: 60px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.08);
}

.empty-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.empty-state-modern h3 {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-state-modern p {
    color: #666;
    font-size: 16px;
    margin-bottom: 32px;
}

.btn-add-first {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.btn-add-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
}

.btn-add-first i {
    margin-right: 8px;
}

/* Quick Action Status Dropdown */
.status-dropdown {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

.status-dropdown:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.status-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    min-height: 500px;
}

.kanban-column {
    flex: 0 0 280px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.kanban-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.kanban-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.kanban-cards {
    min-height: 400px;
    padding: 5px;
}

.kanban-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: move;
    transition: all 0.3s ease;
}

.kanban-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.kanban-card.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.kanban-card h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.kanban-card p {
    margin: 6px 0;
    font-size: 13px;
    color: #666;
}

.kanban-card .company {
    font-weight: 500;
    color: #444;
}

.kanban-card .location {
    color: #888;
}

.kanban-card .contact {
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kanban-card .date {
    color: #999;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-details-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    width: 100%;
    transition: all 0.3s ease;
}

.view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Job Details Modal */
.job-details-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.job-details-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.job-details-content h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.job-details-content h3 {
    margin: 24px 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #444;
}

.job-details-content p {
    margin: 10px 0;
    font-size: 15px;
    color: #666;
}

.job-details-content strong {
    color: #333;
    font-weight: 600;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-entry {
    position: relative;
    margin-bottom: 20px;
    padding-left: 10px;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

.timeline-content strong {
    display: block;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
}

.timeline-date {
    font-size: 13px;
    color: #888;
}

/* Responsive Kanban */
@media (max-width: 1024px) {
    .kanban-board {
        gap: 15px;
    }
    
    .kanban-column {
        flex: 0 0 240px;
    }
}

@media (max-width: 768px) {
    .kanban-board {
        flex-direction: column;
        gap: 20px;
    }
    
    .kanban-column {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .contacts-grid,
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .tracker-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar {
        max-width: 100%;
    }
}
/* Filters Bar */
.filters-bar {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

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

.filter-group label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
}

.filter-input, .filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-input:focus, .filter-select:focus {
    outline: none;
    border-color: #667eea;
}

.date-input {
    width: 120px;
}

.clear-filters-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

/* Active Filters */
.active-filters {
    margin-bottom: 15px;
    display: none;
}

.filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-count {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.filter-chip {
    padding: 6px 12px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Table improvements */
.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 15px;
}

.empty-message.error {
    color: #e74c3c;
}

.notes-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status Pipeline */
.status-pipeline {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    position: relative;
}

.status-stage {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.status-stage:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #ccc;
    z-index: 1;
}

.status-stage:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.status-stage.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.status-count {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.status-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Simplified Filter Bar */
.filter-input-main {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    max-width: 500px;
}

.filter-input-main:focus {
    outline: none;
    border-color: #667eea;
}

/* Follow-up Column */
.followup-cell {
    background: #fffbea;
}

.followup-date {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    width: 130px;
}

.followup-date:focus {
    outline: none;
    border-color: #667eea;
}

/* Excitement Column - Star Ratings */
.excitement-cell {
    text-align: center;
}

.star-rating {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.star-rating .star {
    color: #ddd;
    font-size: 18px;
    transition: color 0.2s;
}

.star-rating .star.filled {
    color: #ffc107;
}

.star-rating .star:hover,
.star-rating .star:hover ~ .star {
    color: #ffb300;
}

/* Top Control Bar (Group by, Columns, Menu) */
.top-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 20px;
}

.left-controls {
    display: flex;
    align-items: center;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.select-all-label input[type="checkbox"] {
    cursor: pointer;
}

.right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-dropdown-wrapper {
    position: relative;
}

.control-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.control-btn i.fa-chevron-down {
    font-size: 12px;
    margin-left: 4px;
}

/* Control Dropdowns */
.control-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 200px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 10000;
    padding: 8px 0;
}

.control-dropdown[style*="display: block"],
.control-dropdown[style*="display:block"] {
    display: block !important;
}

.dropdown-option {
    padding: 10px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-option:hover {
    background: #f5f5f5;
}

.dropdown-option i {
    width: 16px;
    font-size: 14px;
}

/* Columns Dropdown */
.columns-dropdown {
    max-width: 220px;
}

.columns-dropdown label {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
}

.columns-dropdown label:hover {
    background: #f5f5f5;
}

.columns-dropdown input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

/* Add New Job Button (updated) */
.add-new-job-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0d7377 0%, #14FFEC 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-new-job-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 115, 119, 0.3);
}

.add-new-job-btn i {
    font-size: 14px;
}
