/* UAE JobFit - Main Stylesheet */
:root {
  --primary: #0A1628;
  --primary-light: #1A2A4A;
  --accent: #2196F3;
  --accent-light: #64B5F6;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #868E96;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --success: #4CAF50;
  --warning: #FF9800;
  --danger: #F44336;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.3s ease;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--gray-800); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.hidden-input { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; }
.text-accent { color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border: none; border-radius: var(--radius); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; justify-content: center; white-space: nowrap; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #1976D2; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1.125rem; }
.btn-block { width: 100%; }
.btn-success { background: var(--success); color: var(--white); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { color: var(--accent); background: var(--gray-100); }
.install-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--primary); color: var(--white); padding: 12px 16px; animation: slideDown 0.3s ease; }
.install-banner-content { display: flex; align-items: center; gap: 12px; max-width: 1080px; margin: 0 auto; }
.install-banner-logo { width: 32px; height: 32px; border-radius: 8px; }
.install-banner-text { flex: 1; }
.install-banner-text strong { display: block; font-size: 0.875rem; }
.install-banner-text span { font-size: 0.75rem; opacity: 0.8; }
.install-banner-close { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 0 4px; }
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--gray-200); padding: 12px 0; }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { width: 36px; height: 36px; border-radius: 8px; }
.nav-logo-text { font-size: 1.125rem; font-weight: 700; color: var(--primary); }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 80px 0 60px; text-align: center; min-height: 70vh; display: flex; align-items: center; }
.hero-content { max-width: 600px; margin: 0 auto; }
.hero-title { font-size: 2.5rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-subtitle { font-size: 1.125rem; opacity: 0.9; margin-bottom: 32px; line-height: 1.6; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 0.875rem; opacity: 0.6; }
.section { padding: 60px 0; }
.section-title { font-size: 1.75rem; font-weight: 700; text-align: center; margin-bottom: 12px; color: var(--primary); }
.section-subtitle { text-align: center; color: var(--gray-600); margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.step-card { text-align: center; padding: 32px 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: var(--transition); }
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-number { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; margin-bottom: 16px; }
.step-icon { color: var(--accent); margin-bottom: 16px; }
.step-card h3 { font-size: 1.125rem; margin-bottom: 8px; color: var(--primary); }
.step-card p { color: var(--gray-600); font-size: 0.875rem; }
.benefits { background: var(--gray-50); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.benefit-card { padding: 32px 24px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: var(--transition); }
.benefit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.benefit-icon { width: 56px; height: 56px; border-radius: var(--radius); background: rgba(33,150,243,0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.benefit-card p { color: var(--gray-600); font-size: 0.875rem; }
.install-section { background: var(--white); }
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.install-card { text-align: center; padding: 32px; background: var(--gray-50); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }
.install-card-icon { color: var(--accent); margin-bottom: 16px; }
.install-card h3 { margin-bottom: 8px; color: var(--primary); }
.install-card p { color: var(--gray-600); font-size: 0.875rem; }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { position: relative; background: var(--white); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; animation: fadeUp 0.3s ease; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; color: var(--gray-500); cursor: pointer; }
.upload-step h2 { font-size: 1.5rem; color: var(--primary); margin-bottom: 8px; text-align: center; }
.upload-step > p { text-align: center; color: var(--gray-600); margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200); border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition); background: var(--white); }
.form-group input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,150,243,0.15); }
.form-note { text-align: center; font-size: 0.875rem; color: var(--gray-500); margin-top: 16px; }
.form-note a { color: var(--accent); text-decoration: none; }
.upload-progress-container { text-align: center; padding: 20px 0; }
.upload-icon-animated { color: var(--accent); animation: bounce 1s infinite; margin-bottom: 16px; }
.progress-bar { width: 100%; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; margin: 16px 0; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 4px; width: 0%; transition: width 0.3s ease; }
.progress-percent { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.processing-container { text-align: center; padding: 40px 0; }
.processing-spinner { width: 48px; height: 48px; border: 4px solid var(--gray-200); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 24px; }
.processing-msg { color: var(--gray-600); margin-top: 8px; }
.processing-dots { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.processing-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s infinite; }
.processing-dots span:nth-child(2) { animation-delay: 0.2s; }
.processing-dots span:nth-child(3) { animation-delay: 0.4s; }
.limit-container { text-align: center; padding: 20px 0; }
.limit-icon { color: var(--warning); margin-bottom: 16px; }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.score-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; text-align: center; border: 1px solid var(--gray-200); transition: var(--transition); }
.score-card:hover { box-shadow: var(--shadow); }
.score-circle { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; position: relative; }
.score-circle svg { transform: rotate(-90deg); }
.score-circle .score-value { position: absolute; font-size: 1.5rem; font-weight: 800; }
.score-label { font-size: 0.875rem; color: var(--gray-600); font-weight: 500; }
.score-red { color: var(--danger); }
.score-yellow { color: var(--warning); }
.score-green { color: var(--success); }
.insights-card { background: var(--gray-50); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.insight-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.insight-item:last-child { border-bottom: none; }
.insight-icon { width: 24px; height: 24px; min-width: 24px; border-radius: 50%; background: rgba(33,150,243,0.1); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; }
.insight-text { font-size: 0.875rem; color: var(--gray-700); }
.page-header { background: var(--primary); color: var(--white); padding: 24px 0; text-align: center; }
.page-header h1 { font-size: 1.5rem; margin-bottom: 4px; }
.page-header p { opacity: 0.8; font-size: 0.875rem; }
.dashboard-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; justify-content: center; }
.result-section { padding: 24px 0; }
.result-section h2 { font-size: 1.25rem; color: var(--primary); margin-bottom: 16px; }
.user-dashboard { padding: 24px 0; }
.cv-history { margin-top: 24px; }
.cv-history-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200); margin-bottom: 12px; }
.cv-history-info h4 { font-size: 0.875rem; color: var(--primary); }
.cv-history-info p { font-size: 0.75rem; color: var(--gray-500); }
.cv-history-score { font-size: 1.25rem; font-weight: 700; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--primary); }
.admin-login-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 400px; }
.admin-header { background: var(--primary); color: var(--white); padding: 20px 0; }
.admin-nav { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; border-bottom: 1px solid var(--gray-200); }
.admin-nav-item { padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; text-decoration: none; color: var(--gray-600); white-space: nowrap; cursor: pointer; border: none; background: none; }
.admin-nav-item.active { background: var(--accent); color: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 24px 0; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; border: 1px solid var(--gray-200); }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); }
.stat-card .stat-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; }
.chart-container { background: var(--white); border-radius: var(--radius); padding: 20px; margin: 16px 0; border: 1px solid var(--gray-200); }
.chart-container h3 { font-size: 1rem; color: var(--primary); margin-bottom: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; overflow-x: auto; display: block; }
.admin-table th, .admin-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.admin-table th { font-weight: 600; color: var(--gray-600); font-size: 0.75rem; text-transform: uppercase; }
.footer { background: var(--primary); color: var(--white); padding: 40px 0 20px; margin-top: 40px; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 24px; }
.footer-logo { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 8px; }
.footer-brand p { font-size: 0.875rem; opacity: 0.7; max-width: 300px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--white); opacity: 0.7; text-decoration: none; font-size: 0.875rem; }
.footer-links a:hover { opacity: 1; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }
.footer-bottom p { font-size: 0.75rem; opacity: 0.5; text-align: center; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; min-height: 60vh; }
  .hero-title { font-size: 2rem; }
  .steps-grid, .benefits-grid { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-content { padding: 24px; margin: 10px; }
  .section { padding: 40px 0; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .btn-lg { padding: 14px 24px; font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
}
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 32px; }
.pricing-card { background: var(--white); border-radius: var(--radius-lg); padding: 32px; text-align: center; border: 2px solid var(--gray-200); transition: var(--transition); }
.pricing-card.featured { border-color: var(--accent); position: relative; }
.pricing-card.featured::before { content: 'Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--white); padding: 4px 16px; border-radius: 20px; font-size: 0.75rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin: 16px 0; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.pricing-features { list-style: none; text-align: left; margin: 24px 0; }
.pricing-features li { padding: 8px 0; color: var(--gray-600); font-size: 0.875rem; display: flex; align-items: center; gap: 8px; }
.pricing-features li::before { content: '\2713'; color: var(--success); font-weight: 700; }
.tab-nav { display: flex; gap: 4px; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; overflow-x: auto; }
.tab-btn { padding: 12px 20px; border: none; background: none; font-size: 0.875rem; font-weight: 500; color: var(--gray-500); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }
