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

:root {
    --bg: #f8f9fa;
    --sidebar-bg: #ffffff;
    --border: #e5e7eb;
    --text: #111827;
    --text-light: #6b7280;
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --high-fit: #2563eb;
    --medium-fit: #6b7280;
    --low-fit: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 32px;
}

.logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.logo-subtitle {
    font-size: 12px;
    color: var(--text-light);
}

.nav-section {
    flex: 1;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    margin-bottom: 4px;
    transition: background 0.2s;
}

.nav-item:hover {
    background: #f3f4f6;
}

.nav-item.active {
    background: #eff6ff;
    color: var(--primary);
    font-weight: 500;
}

.nav-icon {
    font-size: 18px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
}

.user-email {
    font-size: 12px;
    color: var(--text-light);
}

/* Main Content */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 40px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 13px;
    color: var(--text-light);
}

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

.table-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.table-container {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

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

.jobs-table thead {
    background: #f9fafb;
}

.jobs-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.jobs-table td {
    padding: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

.jobs-table tbody tr {
    cursor: pointer;
    transition: background 0.2s;
}

.jobs-table tbody tr:hover {
    background: #f9fafb;
}

.empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-light);
}

.job-title {
    font-weight: 500;
    color: var(--text);
}

.job-company {
    color: var(--text-light);
    font-size: 13px;
}

.fit-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.fit-high {
    background: #dbeafe;
    color: var(--high-fit);
}

.fit-medium {
    background: #f3f4f6;
    color: var(--medium-fit);
}

.fit-low {
    background: #fee2e2;
    color: var(--low-fit);
}

.status-select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    font-size: 13px;
}

.verdict-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.verdict-apply {
    background: #dbeafe;
    color: var(--primary);
}

.verdict-skip {
    background: #fee2e2;
    color: var(--danger);
}

.verdict-referral_only {
    background: #fef3c7;
    color: #d97706;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-icon:hover {
    background: #f3f4f6;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-back {
    background: none;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-delete {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Forms */
.form-container, .upload-container {
    max-width: 700px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.status-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

.status-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

.status-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Job Detail */
.detail-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.detail-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.capability-list, .strength-list, .weakness-list {
    list-style: none;
}

.capability-list li, .strength-list li, .weakness-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.capability-list li:last-child, .strength-list li:last-child, .weakness-list li:last-child {
    border-bottom: none;
}

.strength-list li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
    margin-right: 8px;
}

.weakness-list li::before {
    content: "⚠ ";
    color: var(--warning);
    font-weight: 700;
    margin-right: 8px;
}
