/* ==========================================================================
   RAILLOG - Raylardan Dünyaya, Entegre Lojistik Çözümleri
   SAS RAILLOG Light & Corporate Stylesheet (Açık, Ferah ve Aydınlık Tema)
   ========================================================================== */

:root {
  --primary-bg: #f8fafc;
  --surface-white: #ffffff;
  --surface-card: #ffffff;
  --surface-border: #e2e8f0;
  --surface-hover: #f1f5f9;
  --accent-blue: #0284c7;
  --accent-light-blue: #0ea5e9;
  --raillog-blue: #00569e;
  --accent-navy: #0f172a;
  --accent-green: #059669;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--primary-bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Background Atmosphere - Aydınlık, Ferah ve Hafif Gradyan */
.bg-atmosphere {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: 
    radial-gradient(circle at 10% 10%, rgba(2, 132, 199, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(0, 86, 158, 0.04) 0%, transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #f8fafc 100%);
}

.bg-rail-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.035;
  pointer-events: none;
  background-image: 
    repeating-linear-gradient(45deg, #0f172a 0px, #0f172a 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(-45deg, #0f172a 0px, #0f172a 1px, transparent 1px, transparent 40px);
}

/* Beyaz, Temiz ve Zarif Kartlar */
.glass-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 20px 25px -5px rgba(2, 132, 199, 0.1), 0 8px 10px -6px rgba(2, 132, 199, 0.06);
  transform: translateY(-3px);
}

/* Dropdown Açılır Menü (Açık ve Net) */
.dropdown-group {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.dropdown-group:hover .dropdown-menu,
.dropdown-group:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: #334155;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  background: #f0f9ff;
  color: #00569e;
  transform: translateX(4px);
}

.dropdown-item .item-icon {
  width: 34px;
  height: 34px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Navigasyon Linkleri */
.nav-link {
  color: #334155;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: #00569e;
  background: #e0f2fe;
}

/* Durum Rozeti */
.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes pulse-ring {
  to {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

/* Butonlar */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #0284c7 0%, #00569e 100%);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 0.75rem;
  border: none;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.35);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #00437d 100%);
  box-shadow: 0 14px 26px -6px rgba(2, 132, 199, 0.5);
  transform: translateY(-2px);
  color: #ffffff !important;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #00569e;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Tipografi Vurguları */
.gradient-text {
  background: linear-gradient(135deg, #0f172a 20%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-accent {
  background: linear-gradient(135deg, #0284c7 0%, #00569e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Form Elemanları (Aydınlık & Net) */
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.85rem 1.1rem;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
  background: #ffffff;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
}

/* Özellik ve Bölüm Rozetleri */
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.5rem;
  color: #0284c7;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Demiryolu Özel Vurgu Kartı (Ferah Mavi Degrade) */
.rail-highlight-card {
  position: relative;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #eff6ff 100%);
  border: 2px solid #7dd3fc;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(2, 132, 199, 0.15);
}

/* Ray Ayracı */
.track-separator {
  position: relative;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.3), transparent);
  margin: 3.5rem 0;
  overflow: hidden;
}

.track-separator::after {
  content: "";
  position: absolute;
  top: 0;
  left: -20%;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #0284c7, transparent);
  animation: track-glow 3.5s infinite linear;
}

@keyframes track-glow {
  0% { left: -25%; }
  100% { left: 110%; }
}

/* Kaydırma Çubuğu */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
