:root {
  --cbyp-primary: #3B5BFD;
  --cbyp-primary-dark: #2A41C9;
  --cbyp-ink: #14182B;
  --cbyp-muted-bg: #F4F6FB;
  --cbyp-border: #E6E9F2;
  --cbyp-success: #1AA672;
  --cbyp-danger: #E4483A;
  --bs-primary: var(--cbyp-primary);
  --bs-primary-rgb: 59, 91, 253;
}

body {
  background: var(--cbyp-muted-bg);
  color: var(--cbyp-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ---- Misafir (auth) sayfaları ---- */
.cbyp-guest-body { background: linear-gradient(180deg, #EEF1FE 0%, var(--cbyp-muted-bg) 320px); }
.cbyp-logo {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--cbyp-primary);
}
.cbyp-card { border-radius: 18px; }

.cbyp-type-card {
  display: block;
  border: 1px solid var(--cbyp-border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease;
  min-height: 44px;
}
.cbyp-type-card:hover, .cbyp-type-card:focus-visible {
  border-color: var(--cbyp-primary);
  transform: translateY(-1px);
}
.cbyp-type-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--cbyp-muted-bg);
  color: var(--cbyp-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ---- Uygulama (app) layout ---- */
.cbyp-navbar {
  background: #fff;
  border-bottom: 1px solid var(--cbyp-border);
}
.cbyp-badge-soft {
  background: var(--cbyp-muted-bg);
  color: var(--cbyp-ink);
  font-weight: 500;
}
.cbyp-main {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 96px; /* bottom nav için boşluk */
}
@media (min-width: 768px) {
  .cbyp-main { padding-bottom: 32px; }
}

/* ---- Bottom Navigation (mobil) ---- */
.cbyp-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--cbyp-border);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  z-index: 1030;
}
.cbyp-bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border: none;
  background: transparent;
  color: #8A8FA3;
  font-size: 0.68rem;
  border-radius: 10px;
  text-decoration: none;
}
.cbyp-bottom-nav__item i { font-size: 1.25rem; }
.cbyp-bottom-nav__item.is-active { color: var(--cbyp-primary); }
.cbyp-bottom-nav__item--disabled { color: #C2C5D6; }
.cbyp-bottom-nav__item:active:not(.cbyp-bottom-nav__item--disabled) { background: var(--cbyp-muted-bg); }

.cbyp-more-menu { border-radius: 18px 18px 0 0; }

/* ---- Dashboard kartları ---- */
.cbyp-quick-entry .form-control[disabled] { background: #fff; color: #A1A6BA; }
.cbyp-stat-card {
  background: #fff;
  border: 1px solid var(--cbyp-border);
  border-radius: 14px;
  padding: 14px;
  height: 100%;
}
.cbyp-stat-card__label { font-size: .72rem; color: #8A8FA3; margin-bottom: 4px; }
.cbyp-stat-card__value { font-size: 1.3rem; font-weight: 700; }

.cbyp-approval-card {
  background: #fff;
  border: 1px solid var(--cbyp-border);
  border-radius: 14px;
  padding: 16px;
}

/* ---- Erişilebilirlik: tüm tıklanabilirlerde min 44px dokunma alanı ---- */
.btn, .form-control, .nav-link, a.cbyp-type-card {
  min-height: 44px;
}
.btn-sm { min-height: 38px; }

/* Görünür odak halkası (klavye/erişilebilirlik için) */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--cbyp-primary);
  outline-offset: 2px;
}
