: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 {
  background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
  -webkit-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;
}