:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --accent-cyan: #06b6d4;
  --accent-purple: #7c3aed;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  letter-spacing: -0.01em;
}

/* essigner Brand Styling */
.brand-title {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  color: var(--slate-900);
  text-transform: lowercase;
}

.brand-gradient,
/* Yeni arayüz logoları da klasikteki gibi geçişli: panel (ax), tanıtım (mk), giriş (au), tanıtımdaki telefon çizimi */
.ax-logo-text > span, .mk-logo span, .au-logo span, .mk-phone-top b {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Card Elevate & Transitions */
/* Global Minimal Corner Rounding & Clean Borders */
.card, .card-custom, .card-hero, .modal-content, .dropdown-menu {
  border-radius: 6px !important;
}

.btn, .btn-sm, .btn-lg, .form-control, .form-select, .input-group-text, .alert {
  border-radius: 4px !important;
}

.badge {
  border-radius: 4px !important;
}

.rounded-pill, .rounded-3, .rounded-4 {
  border-radius: 6px !important;
}

/* Card Elevate & Transitions */
.card-custom {
  border: 1px solid #e2e8f0;
  border-radius: 6px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
}

.card-custom:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
  border-color: #cbd5e1;
}

/* Başlık Altındaki Etiket Grubu - 1 Satırlık Temiz Boşluk */
.header-badges-row {
  margin-bottom: 1.15rem !important;
}

/* İş Akışları Havuzu - Çok Hafif Mavi Seçim */
#workflowList .list-group-item.active {
  background-color: #f0f7ff !important;
  border-color: #bfdbfe !important;
  border-left: 4px solid #3b82f6 !important;
  color: #0f172a !important;
}
#workflowList .list-group-item.active h6 {
  color: #0f172a !important;
}
#workflowList .list-group-item.active p {
  color: #475569 !important;
}
#workflowList .list-group-item.active .badge.bg-light {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}
#workflowList .list-group-item {
  border-left: 4px solid transparent;
  transition: all 0.15s ease-in-out;
}
#workflowList .list-group-item:hover:not(.active) {
  background-color: #f8fafc;
}

/* Tam Genişlik Başlık Bandı (Sağ, Sol ve Üste Birleşik - Çerçevesiz) */
.page-header-band {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12) !important;
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
  width: 100%;
}

.card-hero {
  border-radius: 6px !important;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(79, 70, 229, 0.12) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.03);
}

.btn-hero-action {
  background-color: #ffffff !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.38rem 0.85rem;
  border-radius: 4px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}

.btn-hero-workflow {
  color: #b45309 !important;
  border: 1px solid #f59e0b !important;
}
.btn-hero-workflow:hover {
  background-color: #f59e0b !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
}

.btn-hero-batch {
  color: #7c3aed !important;
  border: 1px solid #7c3aed !important;
}
.btn-hero-batch:hover {
  background-color: #7c3aed !important;
  color: #ffffff !important;
  border-color: #7c3aed !important;
}

.btn-hero-pdf {
  color: #dc2626 !important;
  border: 1px solid #ef4444 !important;
}
.btn-hero-pdf:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
}

.btn-hero-data {
  color: #0284c7 !important;
  border: 1px solid #0284c7 !important;
}
.btn-hero-data:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
  border-color: #0284c7 !important;
}

.btn-hero-file {
  color: #475569 !important;
  border: 1px solid #64748b !important;
}
.btn-hero-file:hover {
  background-color: #64748b !important;
  color: #ffffff !important;
  border-color: #64748b !important;
}

.btn-hero-verify {
  color: #16a34a !important;
  border: 1px solid #22c55e !important;
}
.btn-hero-verify:hover {
  background-color: #16a34a !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.btn-hero-api {
  color: #475569 !important;
  border: 1px solid #94a3b8 !important;
}
.btn-hero-api:hover {
  background-color: #475569 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}

/* Modern Bridge Status Badge */
.bridge-pill {
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px !important;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.bridge-pill.connected {
  background-color: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  box-shadow: 0 1px 2px rgba(16, 185, 129, 0.08);
}

.bridge-pill.disconnected {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.online {
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

.pulse-dot.offline {
  background-color: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 2s infinite;
}

@@keyframes pulse-green {
  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 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Nav Item Tweaks */
.nav-link.active-studio {
  color: var(--primary-color) !important;
  font-weight: 700;
  background-color: var(--primary-light);
  border-radius: 4px !important;
}

/* Code Snippet Box (Açık Zemin) */
.code-box {
  background: #f8fafc;
  color: #334155;
  border-radius: 6px !important;
  padding: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.85rem;
  border: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}

/* Test sunucusu şeridi (ASPNETCORE_ENVIRONMENT=Staging) */
.test-environment-banner {
  background: #b45309;
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
}

/* Sayfa açılışında FocusOnNavigate odağı ilk başlığa taşır (ekran okuyucu için); başlık tıklanabilir değil, çerçeve gösterilmez.
   Yeni tasarımın odak halkası (essigner-ui.css :focus-visible gölgesi) da başlıkta kapalı. */
h1:focus, h2:focus, h1:focus-visible, h2:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Raporlar (/Raporlar): ince sütunlar, tabana oturan 4px yuvarlak uç; çizgiler / eksen sönük */
.report-bars {
  height: 140px;
  border-bottom: 1px solid #e2e8f0;
}
.report-bar-slot {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 1px;
  cursor: default;
}
.report-bar {
  width: 100%;
  max-width: 36px;
  background-color: #0d6efd;
  border-radius: 4px 4px 0 0;
}
.report-bar-slot:hover .report-bar {
  background-color: #0a58ca;
}
.report-hbar {
  height: 10px;
  background-color: #0d6efd;
  border-radius: 0 4px 4px 0;
}

/* Hukuk metinleri (KVKK aydınlatma metni, Services/LegalTexts) */
.lg-doc { font-size: 15px; line-height: 1.6; }
.lg-doc h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.lg-doc .lg-meta { font-size: 13px; color: #6b7280; }
.lg-doc .lg-table { font-size: 14px; }
.lg-doc .lg-table td, .lg-doc .lg-table th { vertical-align: top; }
.lg-doc ul ul { margin-top: 4px; }
@media (max-width: 575.98px) {
    .lg-doc .lg-table thead { display: none; }
    .lg-doc .lg-table tr { display: block; border-top: 1px solid #e5e7eb; padding: 8px 0; }
    .lg-doc .lg-table td { display: block; border: 0; padding: 2px 0; }
}

/* İletişim formu: bal tuzağı alanı ekran dışında (botlar doldurur, kişi görmez) */
.ct-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
