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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: #14a800;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    color: white;
    font-size: 1.25rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

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

/* Page Header */
.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    color: #333;
}

.badge {
    background: #e0e0e0;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #666;
}

.back-link {
    color: #14a800;
    text-decoration: none;
}

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

/* Tables */
.table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #fafafa;
    font-weight: 600;
    color: #666;
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background: #fafafa;
}

.table a {
    color: #14a800;
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

/* Priority Score */
.priority-score {
    background: #14a800;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pagination a {
    color: #14a800;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid #14a800;
    border-radius: 4px;
}

.pagination a:hover {
    background: #14a800;
    color: white;
}

.page-info {
    color: #666;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
    color: #666;
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* Job Detail */
.job-detail {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.job-detail h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.job-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.job-type {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.job-type.fixed {
    background: #e3f2fd;
    color: #1565c0;
}

.job-type.hourly {
    background: #fff3e0;
    color: #e65100;
}

.experience-level,
.posted-at {
    color: #666;
    font-size: 0.875rem;
}

/* Scores Grid */
.scores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.score-card {
    background: #fafafa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.score-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #14a800;
}

.score-label {
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Job Sections */
.job-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.job-section h2 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.description {
    white-space: pre-wrap;
    line-height: 1.8;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.25rem 0.75rem;
    border-radius: 16px;
    font-size: 0.875rem;
}

/* Client Info */
.client-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.info-row {
    display: flex;
    gap: 0.5rem;
}

.info-row .label {
    color: #666;
}

.info-row .value {
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: #14a800;
    color: white;
}

.btn-primary:hover {
    background: #108600;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    background: #f0f0f0;
    color: #333;
}

.btn-small:hover {
    background: #e0e0e0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-in_progress {
    background: #cce5ff;
    color: #004085;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

.status-skipped {
    background: #e2e3e5;
    color: #383d41;
}

/* Decision Badges */
.decision-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.decision-apply {
    background: #d4edda;
    color: #155724;
}

.decision-skip {
    background: #f8d7da;
    color: #721c24;
}

/* Analysis Status */
.analysis-status {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

/* Filters */
.filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    background: white;
    border: 1px solid #ddd;
    font-size: 0.875rem;
}

.filter-btn:hover {
    background: #f5f5f5;
}

.filter-btn.active {
    background: #14a800;
    color: white;
    border-color: #14a800;
}

/* Quiz */
.quiz-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quiz-container h1 {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.quiz-container h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.quiz-placeholder {
    padding: 2rem;
    background: #fafafa;
    border-radius: 8px;
    text-align: center;
}

.quiz-placeholder ul {
    list-style: none;
    margin: 1rem 0;
}

.quiz-placeholder li {
    padding: 0.25rem 0;
    color: #666;
}

.quiz-completed {
    text-align: center;
    padding: 2rem;
}

/* Voice AI Relevance Scores */
.vai-score {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.875rem;
}

.vai-high {
    background: #d4edda;
    color: #155724;
}

.vai-medium {
    background: #fff3cd;
    color: #856404;
}

.vai-low {
    background: #f8d7da;
    color: #721c24;
}

/* Voice AI Score Cards */
.vai-card-high {
    background: #d4edda !important;
}

.vai-card-high .score-value {
    color: #155724 !important;
}

.vai-card-medium {
    background: #fff3cd !important;
}

.vai-card-medium .score-value {
    color: #856404 !important;
}

.vai-card-low {
    background: #f8d7da !important;
}

.vai-card-low .score-value {
    color: #721c24 !important;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: #999;
    font-size: 0.875rem;
}

/* Job Code */
.job-code {
    font-family: monospace;
    font-weight: 600;
    color: #14a800;
}

.job-code-large {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: #14a800;
    background: #e8f5e9;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-right: 1rem;
}

.job-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.job-header h1 {
    margin: 0;
}

/* Description Status */
.description-status {
    margin-bottom: 0.5rem;
}

.status-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-loaded {
    background: #d4edda;
    color: #155724;
}

.status-preview {
    background: #fff3cd;
    color: #856404;
}

/* Description Form */
.description-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #ddd;
}

.description-form h3 {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.description-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    resize: vertical;
    margin-bottom: 0.75rem;
}

.description-form textarea:focus {
    outline: none;
    border-color: #14a800;
}

/* Import Page */
.import-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.875rem;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: #14a800;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Import Result */
.import-result {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.import-result h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.import-result h3 {
    font-size: 1rem;
    color: #666;
    margin: 1.5rem 0 0.75rem;
}

.result-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.result-stats .stat {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Alert warning */
.alert-warning {
    background: #fff3cd;
    color: #856404;
}

/* Quiz Styles */
.quiz-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quiz-header h1 {
    margin: 0;
    font-size: 1.25rem;
}

.quiz-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.quiz-info p {
    margin: 0.25rem 0;
}

.quiz-form h2 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.quiz-question {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.question-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.question-number {
    background: #14a800;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.question-type {
    background: #e0e0e0;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.question-text {
    font-weight: 500;
    margin-bottom: 1rem;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-label:hover {
    border-color: #14a800;
    background: #f0fff0;
}

.option-label input {
    margin: 0;
}

.option-label span {
    flex: 1;
}

/* Quiz Not Ready */
.quiz-not-ready {
    text-align: center;
    padding: 3rem;
}

.empty-icon {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.quiz-not-ready pre {
    background: #f5f5f5;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Quiz Results */
.quiz-result-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.result-score {
    font-size: 3rem;
    font-weight: 700;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.score-high {
    background: #d4edda;
    color: #155724;
}

.score-medium {
    background: #fff3cd;
    color: #856404;
}

.score-low {
    background: #f8d7da;
    color: #721c24;
}

.result-details p {
    margin: 0.25rem 0;
}

.score-text {
    font-size: 1.25rem;
    font-weight: 500;
}

.results-list h2 {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1rem;
}

.result-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #ddd;
}

.result-correct {
    border-left-color: #28a745;
}

.result-incorrect {
    border-left-color: #dc3545;
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.result-icon {
    font-size: 1.25rem;
    font-weight: bold;
}

.result-correct .result-icon {
    color: #28a745;
}

.result-incorrect .result-icon {
    color: #dc3545;
}

.result-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-option {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.option-correct {
    background: #d4edda;
    border-color: #28a745;
}

.option-selected {
    border-width: 2px;
    font-weight: 500;
}

.result-explanation {
    background: #e8f4fd;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.results-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
