/* ==========================================================================
   YAKUP YILMAZ BORU - YENİ NESİL DEMİR ÇELİK İNTERAKTİF HESAPLAMA SİSTEMİ
   Aesthetics & Reaktif Dashboard Stilleri
   ========================================================================== */

:root {
  --calc-dark: #12181b;
  --calc-dark-card: #182226;
  --calc-dark-border: rgba(255, 255, 255, 0.12);
  --calc-brand: #0b5960;
  --calc-brand-light: #0e737c;
  --calc-brand-accent: #00a896;
  --calc-gold: #f0a500;
  --calc-gold-hover: #d99300;
  --calc-bg-light: #f8fafc;
  --calc-card-bg: #ffffff;
  --calc-border: #e2e8f0;
  --calc-text-main: #1e293b;
  --calc-text-muted: #64748b;
  --calc-radius-sm: 8px;
  --calc-radius-md: 12px;
  --calc-radius-lg: 16px;
  --calc-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --calc-shadow-dark: 0 15px 35px -5px rgba(0, 0, 0, 0.35);
}

/* Navigasyon Tab Çubuğu */
.steel-calc-tabs-wrapper {
  background: var(--calc-card-bg);
  border-radius: var(--calc-radius-md);
  padding: 8px;
  box-shadow: var(--calc-shadow);
  border: 1px solid var(--calc-border);
  margin-bottom: 24px;
}

.steel-calc-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steel-calc-nav-item {
  margin: 0;
}

.steel-calc-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  border-radius: var(--calc-radius-sm);
  color: var(--calc-text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.steel-calc-nav-link img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
  transition: transform 0.2s ease;
}

.steel-calc-nav-link:hover {
  background: #e2e8f0;
  color: var(--calc-brand);
  transform: translateY(-2px);
}

.steel-calc-nav-link:hover img {
  transform: scale(1.1);
}

.steel-calc-nav-link.active {
  background: var(--calc-brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(11, 89, 96, 0.35);
  border-color: var(--calc-brand-light);
}

.steel-calc-nav-link.active img {
  filter: brightness(0) invert(1);
}

/* Hero Bilgi & AI Snippet Kutusu */
.steel-ai-snippet-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 5px solid var(--calc-brand);
  border-radius: var(--calc-radius-md);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: var(--calc-shadow);
}

.steel-ai-snippet-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--calc-brand);
  margin-bottom: 8px;
}

.steel-ai-snippet-title i {
  color: var(--calc-gold);
  font-size: 1.25rem;
}

.steel-ai-snippet-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 14px;
}

.steel-ai-snippet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  font-size: 0.88rem;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: var(--calc-radius-sm);
  border: 1px solid var(--calc-border);
}

.steel-ai-snippet-grid div {
  color: var(--calc-text-main);
}

.steel-ai-snippet-grid strong {
  color: var(--calc-brand);
}

/* Ana Hesaplama Düzeni */
.steel-calc-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

@media (max-width: 991px) {
  .steel-calc-container {
    grid-template-columns: 1fr;
  }
}

/* Sol Form Kartı */
.steel-form-card {
  background: var(--calc-card-bg);
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--calc-shadow);
}

.steel-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--calc-border);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.steel-form-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--calc-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.steel-form-title i {
  color: var(--calc-brand);
}

.steel-btn-reset {
  background: transparent;
  border: none;
  color: var(--calc-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.steel-btn-reset:hover {
  color: #ef4444;
}

.steel-input-group {
  margin-bottom: 22px;
}

.steel-input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--calc-text-main);
  margin-bottom: 8px;
}

.steel-input-label span.note {
  font-size: 0.78rem;
  font-weight: normal;
  color: var(--calc-text-muted);
  margin-left: 4px;
}

/* Preset / Hazır Ölçü Butonları */
.steel-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.steel-preset-btn {
  padding: 8px 6px;
  background: #f8fafc;
  border: 1px solid var(--calc-border);
  border-radius: var(--calc-radius-sm);
  color: var(--calc-text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.steel-preset-btn:hover {
  border-color: var(--calc-brand);
  background: #f0fdfa;
  color: var(--calc-brand);
  transform: translateY(-1px);
}

.steel-preset-btn.active {
  background: var(--calc-brand);
  border-color: var(--calc-brand);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(11, 89, 96, 0.25);
}

/* Form Alanları */
.steel-field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.steel-field-col {
  display: flex;
  flex-direction: column;
}

.steel-field-col label {
  font-size: 0.8rem;
  color: var(--calc-text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.steel-input,
.steel-select {
  width: 100%;
  height: 44px;
  padding: 8px 12px;
  border-radius: var(--calc-radius-sm);
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--calc-text-main);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.steel-input:focus,
.steel-select:focus {
  border-color: var(--calc-brand);
  box-shadow: 0 0 0 3px rgba(11, 89, 96, 0.15);
}

/* Adet Artır / Azalt Butonları */
.steel-qty-control {
  display: flex;
  align-items: center;
  max-width: 200px;
}

.steel-qty-btn {
  width: 44px;
  height: 44px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--calc-radius-sm);
  color: var(--calc-text-main);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.steel-qty-btn:hover {
  background: #e2e8f0;
  color: var(--calc-brand);
}

.steel-qty-input {
  flex: 1;
  height: 44px;
  text-align: center;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border: 1px solid #cbd5e1;
  margin: 0 -1px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--calc-text-main);
  box-sizing: border-box;
}

/* SAĞ TARAF: CANLI DARK DASHBOARD KARTI */
.steel-dashboard-card {
  position: sticky;
  top: 90px;
  background: var(--calc-dark);
  color: #fcfbf9;
  border-radius: var(--calc-radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--calc-shadow-dark);
  border: 1px solid var(--calc-dark-border);
  overflow: hidden;
}

.steel-dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--calc-brand-accent), var(--calc-gold));
}

.steel-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--calc-dark-border);
  padding-bottom: 12px;
}

.steel-dash-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--calc-gold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.steel-dash-material {
  font-size: 0.78rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ana Rakam Kartları */
.steel-hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.steel-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--calc-dark-border);
  border-radius: var(--calc-radius-md);
  padding: 16px 14px;
}

.steel-stat-box.highlight {
  background: rgba(11, 89, 96, 0.25);
  border-color: rgba(0, 168, 150, 0.4);
}

.steel-stat-label {
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.steel-stat-box.highlight .steel-stat-label {
  color: var(--calc-gold);
}

.steel-stat-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.steel-stat-value {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.steel-stat-unit {
  font-size: 0.95rem;
  color: var(--calc-gold);
  font-weight: 700;
}

.steel-stat-subnote {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

.steel-stat-box.highlight .steel-stat-subnote {
  color: #cbd5e1;
}

/* İkincil Metrikler */
.steel-secondary-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.steel-metric-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: var(--calc-radius-sm);
}

.steel-metric-name {
  font-size: 0.72rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 2px;
}

.steel-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

/* Lojistik ve Araç Kapasite Analizi */
.steel-logistics-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--calc-dark-border);
  border-radius: var(--calc-radius-md);
  padding: 14px;
  margin-bottom: 20px;
}

.steel-logistics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.steel-logistics-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.steel-logistics-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.steel-logistics-status.warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.steel-logistics-status.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.steel-progress-row {
  margin-bottom: 8px;
}

.steel-progress-row:last-child {
  margin-bottom: 0;
}

.steel-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #94a3b8;
  margin-bottom: 3px;
}

.steel-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.steel-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.steel-fill-van { background: #4ade80; }
.steel-fill-truck { background: var(--calc-gold); }
.steel-fill-semi { background: #38bdf8; }

/* Aksiyon Butonları */
.steel-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--calc-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-align: center;
  box-sizing: border-box;
}

.steel-btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff !important;
}

.steel-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff !important;
}

.steel-btn-wa {
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.steel-btn-wa:hover {
  background: #20ba5a;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.steel-btn-prices {
  background: var(--calc-gold);
  color: #12181b !important;
  box-shadow: 0 4px 14px rgba(240, 165, 0, 0.3);
}

.steel-btn-prices:hover {
  background: var(--calc-gold-hover);
  color: #12181b !important;
  transform: translateY(-1px);
}

/* Toast Bildirim */
.steel-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--calc-radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  border-left: 4px solid #22c55e;
}

.steel-toast.show {
  opacity: 1;
  transform: translateY(0);
}
