/* 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;
}

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

/* Navigation Tabs */
.job-nav-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;
}

.job-nav-btn {
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.job-nav-btn:hover {
    background-color: #f8f9fa;
    color: #333;
    border-color: #e0e0e0;
}

.job-nav-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.job-nav-btn i {
    margin-right: 8px;
}

/* 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;
    }
}
