:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;
    --text-main: #111827;
    --text-muted: #6B7280;
    --border: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    padding-bottom: 3rem;
}

.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navbar h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.025em;
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
}

.card {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input[type="text"] {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-main);
    transition: border-color 0.15s ease-in-out;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    background-color: #F9FAFB;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.dropzone:hover {
    border-color: var(--primary);
    background-color: #F3F4F6;
}

.dropzone p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.file-list-container {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #F9FAFB;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.file-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-file-btn {
    background: none;
    border: none;
    color: #EF4444;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.remove-file-btn:hover {
    background-color: #FEE2E2;
}

.btn {
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border);
    width: auto;
}

.btn-outline:hover {
    background-color: #F9FAFB;
}

.table-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th {
    background-color: #F9FAFB;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

td {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

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

.candidate-email {
    color: var(--text-muted);
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }
}

.hidden {
    display: none !important;
}

.progress-track {
    width: 100%;
    height: 8px;
    background-color: var(--border);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.4s ease;
    background-image: linear-gradient(
        45deg,
        rgba(255,255,255,0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
    animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
    from { background-position: 1rem 0; }
    to { background-position: 0 0; }
}

.hidden-input {
    display: none;
}

.dropzone-icon {
    width: 24px;
    height: 24px;
    color: #9CA3AF;
    margin: 0 auto;
    display: block;
}

.loading-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-align: center;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }

.loading-title {
    margin-bottom: 1rem;
    color: var(--text-main);
    text-align: center;
}

.result-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
}

.btn-spacing {
    margin-right: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.blank-state-cell {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

.blank-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem auto;
    opacity: 0.5;
    display: block;
}

.blank-state-subtext {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-box {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.skill-badge {
    display: inline-block;
    background-color: #E0E7FF;
    color: #3730A3;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0.15rem;
    text-transform: capitalize;
}

.max-w-250 {
    max-width: 250px;
}