/* ===== منصة التحسين المستمر - وزارة العمل ===== */
/* الألوان: الأحمر العماني (#CC0000)، الأزرق (#0369A1)، البرتقالي (#F59E0B) */

:root {
  --red-omani: #CC0000;
  --red-dark: #B22222;
  --red-light: #FFE5E5;
  --blue-primary: #0369A1;
  --blue-dark: #0C4A6E;
  --blue-light: #E0F2FE;
  --orange-primary: #F59E0B;
  --orange-dark: #D97706;
  --orange-light: #FEF3C7;
  --white: #FFFFFF;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-heading: 'Lexend', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* Glass Card */
.glass-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.glass-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  border: none; cursor: pointer; transition: var(--transition);
}
.btn-primary { background: var(--red-omani); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204,0,0,0.3); }
.btn-secondary { background: var(--blue-primary); color: var(--white); }
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 2px solid var(--red-omani); color: var(--red-omani); }
.btn-outline:hover { background: var(--red-omani); color: var(--white); }
.btn-orange { background: var(--orange-primary); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* Badge */
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 500; }
.badge-red { background: var(--red-light); color: var(--red-dark); }
.badge-blue { background: var(--blue-light); color: var(--blue-dark); }
.badge-orange { background: var(--orange-light); color: var(--orange-dark); }
.badge-green { background: #DCFCE7; color: #166534; }

/* Status */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 500; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-active .status-dot { background: #22C55E; }
.status-pending .status-dot { background: var(--orange-primary); }
.status-completed .status-dot { background: var(--blue-primary); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }

/* Skeleton */
.skeleton { background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%); background-size: 200% 100%; animation: pulse 1.5s ease infinite; border-radius: var(--radius-sm); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Toast */
.toast-container { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 24px; border-radius: var(--radius-sm); color: var(--white); font-weight: 500; box-shadow: var(--shadow-lg); animation: fadeIn 0.3s ease; min-width: 280px; text-align: center; }
.toast-success { background: #16A34A; }
.toast-error { background: #DC2626; }
.toast-info { background: var(--blue-primary); }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Section Title */
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--text-primary); margin-bottom: 12px; text-align: center; }
.section-subtitle { font-size: 1.05rem; color: var(--text-secondary); text-align: center; max-width: 700px; margin: 0 auto 48px; line-height: 1.8; }

/* Progress Bar */
.progress-bar-container { display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; height: 8px; background: #E2E8F0; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--red-omani), #FF4444); border-radius: 4px; transition: width 1s ease; }
.progress-text { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); min-width: 36px; }

/* Page Hero */
.page-hero-sm { background: linear-gradient(135deg, #0F172A, #1E293B); padding: 120px 0 48px; text-align: center; }
.page-hero-sm h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--white); margin-bottom: 8px; }
.page-hero-sm p { color: #94A3B8; font-size: 1.05rem; }

/* Modal Overlay */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-content { background: var(--white); border-radius: var(--radius-lg); width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.modal-header h3 { font-size: 1.1rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); padding: 4px 8px; border-radius: 4px; transition: var(--transition); }
.modal-close:hover { background: var(--red-light); color: var(--red-omani); }
.modal-body { padding: 24px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border-color); }

/* Form */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.88rem; font-weight: 500; }
.form-input { padding: 12px 16px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; transition: var(--transition); }
.form-input:focus { outline: none; border-color: var(--red-omani); box-shadow: 0 0 0 3px rgba(204,0,0,0.1); }
.form-textarea { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; resize: vertical; transition: var(--transition); }
.form-textarea:focus { outline: none; border-color: var(--blue-primary); box-shadow: 0 0 0 3px rgba(3,105,161,0.1); }

@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 48px 0; } }
