:root {
    --primary: #6366f1; /* Indigo */
    --secondary: #8b5cf6; /* Violet */
    --dark: #1e1b4b;
    --light: #f3f4f6;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Upload Section */
.container {
    text-align: center;
    width: 90%;
    max-width: 600px;
}

.hero-text h1 { color: var(--dark); font-size: 2.5rem; margin-bottom: 10px; }
.hero-text p { color: #666; margin-bottom: 30px; }
.hero-text i { color: var(--primary); }

.upload-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.input-group { margin-bottom: 20px; text-align: right; }
.input-group label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--dark); }
.input-group select {
    width: 100%; padding: 12px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 1rem;
    outline: none; transition: 0.3s;
}
.input-group select:focus { border-color: var(--primary); }

.drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}
.drop-zone:hover { border-color: var(--primary); background: #f8fafc; }
.drop-zone i { font-size: 3rem; color: #94a3b8; margin-bottom: 15px; }
.drop-zone input { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4); }

/* Loader Animation */
.loader-container {
    text-align: center;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.scanner {
    width: 80px; height: 80px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Dashboard Styles */
.dashboard {
    width: 100%; max-width: 1000px; padding: 20px;
    animation: fadeIn 0.8s ease;
}
header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px;
}
.logo { font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.btn-small { padding: 8px 20px; border-radius: 20px; border: 1px solid var(--primary); background: transparent; color: var(--primary); cursor: pointer; }

.grid-layout {
    display: grid; grid-template-columns: 1fr 2fr; gap: 20px;
}
.card {
    background: var(--white); padding: 20px; border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.card h3 { margin-bottom: 15px; color: var(--dark); font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }

/* Score Circle */
.score-card { text-align: center; grid-row: span 2; }
.circular-progress {
    position: relative; width: 150px; height: 150px; border-radius: 50%;
    background: conic-gradient(var(--primary) 0deg, #e0e0e0 0deg);
    display: flex; justify-content: center; align-items: center;
    margin: 20px auto;
}
.circular-progress::before {
    content: ""; position: absolute; width: 130px; height: 130px;
    border-radius: 50%; background: var(--white);
}
.progress-value { position: relative; font-size: 2rem; font-weight: bold; color: var(--dark); }

/* Skills Tags */
.tags-container { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
    background: #eff6ff; color: var(--primary); padding: 8px 15px;
    border-radius: 20px; font-size: 0.9rem; font-weight: 500;
}

/* Jobs List */
.jobs-card { grid-column: 2; grid-row: 1 / span 2; }
.job-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; border-bottom: 1px solid #f0f0f0; transition: 0.2s;
}
.job-item:last-child { border-bottom: none; }
.job-item:hover { background: #f9fafb; transform: translateX(-5px); }
.job-info h4 { color: var(--dark); font-size: 1rem; }
.job-info span { font-size: 0.85rem; color: #888; }
.match-badge {
    background: #dcfce7; color: #166534; padding: 5px 10px;
    border-radius: 10px; font-size: 0.8rem; font-weight: bold;
}

@media (max-width: 768px) {
    .grid-layout { grid-template-columns: 1fr; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }