/* BAHEM İTHALAT, SİPARİŞ, FİNANS VE YÖNETİM SİSTEMİ
   Kurumsal Stil Sayfası (Custom CSS) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bahem-navy: #0b1329;
  --bahem-navy-light: #162244;
  --bahem-gold: #c59b27;
  --bahem-gold-light: #f59e0b;
  --bahem-accent: #2563eb;
  --bahem-bg: #f8fafc;
  --bahem-card: #ffffff;
  --bahem-border: #e2e8f0;
  --bahem-text: #0f172a;
  --bahem-muted: #64748b;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f1f5f9;
  color: var(--bahem-text);
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Active Navigation */
.nav-link.active {
  background: linear-gradient(90deg, rgba(197, 155, 39, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
  color: #ffffff !important;
  border-left: 3px solid var(--bahem-gold);
}

.nav-link:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
}

/* 14-Stage Stepper Styles */
.stepper-container {
  display: flex;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  scrollbar-width: thin;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 95px;
  flex: 1;
}

.stepper-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #cbd5e1;
  z-index: 1;
}

.stepper-step.completed:not(:last-child)::after {
  background-color: #10b981;
}

.stepper-step.current:not(:last-child)::after {
  background-color: #cbd5e1;
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #64748b;
  z-index: 2;
  transition: all 0.2s ease;
}

.stepper-step.completed .stepper-circle {
  background-color: #10b981;
  border-color: #10b981;
  color: #ffffff;
}

.stepper-step.current .stepper-circle {
  background-color: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25);
  transform: scale(1.1);
}

.stepper-step.pending .stepper-circle {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #94a3b8;
}

.stepper-title {
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
  color: #64748b;
  line-height: 1.2;
}

.stepper-step.completed .stepper-title {
  color: #059669;
}

.stepper-step.current .stepper-title {
  color: #1d4ed8;
  font-weight: 700;
}

/* Financial Cards Gradient */
.kpi-card-sales {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.kpi-card-profit {
  background: linear-gradient(135deg, #065f46 0%, #047857 100%);
}
.kpi-card-cash {
  background: linear-gradient(135deg, #78350f 0%, #92400e 100%);
}
.kpi-card-due {
  background: linear-gradient(135deg, #881337 0%, #9f1239 100%);
}

/* Currency Badge Colors */
.badge-currency-try { background-color: #fee2e2; color: #991b1b; }
.badge-currency-usd { background-color: #dbeafe; color: #1e40af; }
.badge-currency-eur { background-color: #e0e7ff; color: #3730a3; }
.badge-currency-rmb { background-color: #fef3c7; color: #92400e; }

/* Pulse animation for active logistics */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.pulse-active {
  animation: pulse-ring 2s infinite;
}

/* Modal Transitions */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
}

/* Printable Statement (Cari Ekstre / Sipariş Raporu) */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  aside, header, #sidebar, #topbar, .no-print, .btn-action, .toast-container, button {
    display: none !important;
  }
  main, #main-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .print-only {
    display: block !important;
  }
  .print-break-inside {
    break-inside: avoid;
  }
  .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl {
    box-shadow: none !important;
  }
  .border {
    border-color: #cbd5e1 !important;
  }
}

.print-only {
  display: none;
}
