/* ===== theme.css - پالت رنگی و طراحی مدرن برای پیمان‌یار ===== */

:root {
  /* پالت رنگی جدید و حرفه‌ای */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  --secondary-50: #f5f3ff;
  --secondary-100: #ede9fe;
  --secondary-200: #ddd6fe;
  --secondary-300: #c4b5fd;
  --secondary-400: #a78bfa;
  --secondary-500: #8b5cf6;
  --secondary-600: #7c3aed;
  --secondary-700: #6d28d9;
  --secondary-800: #5b21b6;
  --secondary-900: #4c1d95;
  
  --accent-50: #fffbeb;
  --accent-100: #fef3c7;
  --accent-200: #fde68a;
  --accent-300: #fcd34d;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-600: #d97706;
  --accent-700: #b45309;
  --accent-800: #92400e;
  --accent-900: #78350f;
  
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #6366f1;
  
  /* گرادینت‌ها */
  --gradient-primary: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent-500) 0%, var(--danger) 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  
  /* سایه‌ها */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
  
  /* کارت‌ها */
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.03), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 25px 35px -12px rgba(37, 99, 235, 0.15);
  
  /* انیمیشن */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* بردرها */
  --radius-sm: 6px;
  --radius-base: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

/* ===== فونت‌ها ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== استایل‌های پایه ===== */
body {
  font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

/* ===== عنوان‌ها ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.section-title:hover::after {
  width: 100px;
}

/* ===== کارت‌ها ===== */
.card-peymanyar {
  background: white;
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
  border: 1px solid rgba(0, 0, 0, 0.02);
  position: relative;
  overflow: hidden;
}

.card-peymanyar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
  transform-origin: right;
}

.card-peymanyar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-peymanyar:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== دکمه‌ها ===== */
.btn {
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.btn:active::after {
  width: 200px;
  height: 200px;
}

.btn-peymanyar {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 20px -6px var(--primary-600);
}

.btn-peymanyar:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px var(--primary-700);
  color: white;
}

.btn-employer {
  background: white;
  color: var(--primary-700);
  border: 1px solid var(--primary-100);
  box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.1);
}

.btn-employer:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
  border-color: var(--primary-200);
}

.btn-contractor {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: white;
  box-shadow: 0 8px 20px -6px var(--secondary-600);
}

.btn-contractor:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px -8px var(--secondary-700);
}

/* ===== فرم‌ها ===== */
.form-control, .form-select {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  background: white;
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  display: block;
}

/* ===== بج‌ها و نشان‌ها ===== */
.badge-modern {
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-700);
  border-color: rgba(37, 99, 235, 0.2);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #065f46;
  border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.2);
}

/* ===== هدر و ناوبری ===== */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.75rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 600;
  color: var(--gray-700);
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  background: var(--gray-100);
  color: var(--primary-600);
}

.nav-link.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

/* ===== فوتر ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  position: relative;
  margin-top: 5rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* ===== انیمیشن‌ها ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-gentle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes gradientMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-gentle {
  animation: pulse-gentle 2s ease-in-out infinite;
}

.animate-slide-up {
  animation: slideInUp 0.4s ease-out;
}

.animate-slide-right {
  animation: slideInRight 0.4s ease-out;
}

/* ===== اسکلتون لودینگ ===== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius-base);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ===== گلاس مورفیسم ===== */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== ابزارهای کمکی ===== */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
  margin: 2rem 0;
}

/* ===== استایل‌های صفحه اصلی ===== */

/* بهبود استایل متن و دکمه‌ها */
.hero-content-wrapper {
  max-width: 90%;
  margin-left: auto;
}

.hero-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 3.5rem;
  line-height: 1.2;
}

.hero-title .accent-text {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--accent-600);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 90%;
  line-height: 1.8;
}

/* دکمه‌ها با عرض یکسان */
.d-flex.gap-3 .btn {
  min-width: 180px;
  padding: 14px 24px;
  font-size: 1rem;
}

/* ===== اسلایدر ===== */
.hero-image-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.2);
}

.hero-slide {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  object-fit: cover;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-controls {
  position: absolute;
  bottom: 20px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  gap: 12px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.hero-slide-dot.active {
  background: white;
  transform: scale(1.3);
  box-shadow: 0 0 15px white;
}

/* دکمه راهنمای هوشمند */
.position-absolute.top-0.end-0.mt-4.me-4 {
  z-index: 20;
}

.position-absolute .btn-peymanyar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--primary-600);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.position-absolute .btn-peymanyar:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-3px);
}

/* ===== نوار آمار ===== */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: white;
  border-radius: 60px;
  padding: 16px 32px;
  margin-top: 40px;
  box-shadow: 0 15px 35px -10px rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  width: 100%;
}

.stats-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--secondary-500), var(--accent-500));
  animation: gradientMove 3s infinite;
}

.stat-box {
  text-align: center;
  padding: 8px 24px;
  position: relative;
  flex: 1;
}

.stat-box:not(:last-child)::after {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 35px;
  background: linear-gradient(180deg, transparent, var(--gray-300), transparent);
}

.stat-box .stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  margin-bottom: 4px;
  font-feature-settings: "tnum";
  direction: ltr;
}

.stat-box .stat-label {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== اعداد و آمار (قدیمی - برای سازگاری) ===== */
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
  line-height: 1.2;
  font-feature-settings: "tnum";
}

.stat-label {
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1200px) {
  .hero-image-slider {
    height: 500px;
  }
}

@media (max-width: 992px) {
  .hero-content-wrapper {
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }
  
  .hero-title .gradient-text {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    max-width: 100%;
  }
  
  .d-flex.gap-3 {
    justify-content: center;
  }
  
  .hero-image-slider {
    height: 450px;
  }
  
  .stats-row {
    flex-wrap: wrap;
    border-radius: 40px;
    padding: 20px;
  }
  
  .stat-box {
    flex: 0 0 50%;
    padding: 12px;
  }
  
  .stat-box:not(:last-child)::after {
    display: none;
  }
  
  .stat-box:nth-child(1),
  .stat-box:nth-child(2) {
    border-bottom: 1px solid var(--gray-200);
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .card-peymanyar {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .btn {
    padding: 0.625rem 1.5rem;
  }
  
  .hero-image-slider {
    height: 400px;
  }
  
  .stat-box .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .card-peymanyar {
    padding: 1.25rem;
    border-radius: 18px;
  }
}

@media (max-width: 576px) {
  .hero-title .gradient-text {
    font-size: 2.2rem;
  }
  
  .hero-title .accent-text {
    font-size: 1.4rem;
  }
  
  .d-flex.gap-3 {
    flex-direction: column;
  }
  
  .d-flex.gap-3 .btn {
    width: 100%;
  }
  
  .hero-image-slider {
    height: 350px;
    border-radius: 24px;
  }
  
  .stats-row {
    border-radius: 30px;
    padding: 16px;
    flex-direction: column;
  }
  
  .stat-box {
    flex: 0 0 100%;
    padding: 8px;
    width: 100%;
  }
  
  .stat-box:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  
  .stat-box .stat-value {
    font-size: 1.8rem;
  }
}

/* ===== دارک مود ===== */
@media (prefers-color-scheme: dark) {
  body {
    background: var(--gray-900);
    color: var(--gray-200);
  }
  
  h1, h2, h3, h4, h5, h6 {
    color: white;
  }
  
  .card-peymanyar {
    background: var(--gray-800);
    border-color: var(--gray-700);
  }
  
  .form-control, .form-select {
    background: var(--gray-800);
    border-color: var(--gray-700);
    color: white;
  }
  
  .navbar {
    background: rgba(15, 23, 42, 0.8);
  }
  
  .nav-link {
    color: var(--gray-300);
  }
  
  .nav-link:hover {
    background: var(--gray-800);
  }
  
  .stats-row {
    background: var(--gray-800);
    border-color: var(--gray-700);
  }
  
  .stat-box .stat-value {
    color: white;
  }
  
  .stat-box .stat-label {
    color: var(--gray-400);
  }
  
  .stat-box:not(:last-child)::after {
    background: linear-gradient(180deg, transparent, var(--gray-700), transparent);
  }
  
  .stat-box:nth-child(1),
  .stat-box:nth-child(2) {
    border-bottom-color: var(--gray-700);
  }
  
  .hero-subtitle {
    color: var(--gray-400);
  }
  
  .btn-employer {
    background: var(--gray-800);
    color: var(--primary-400);
    border-color: var(--gray-700);
  }
  
  .btn-employer:hover {
    background: var(--gray-700);
  }
}
.tab-pane {
  min-height: 400px;
}

.card-peymanyar.h-100 {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.log-container {
  flex: 1;
  overflow-y: auto;
}