/* ===== Yemek Bursu Başvuru — Tasarım Sistemi ===== */

:root {
  --yb-primary: #0d9488;
  --yb-primary-dark: #0f766e;
  --yb-primary-light: #f0fdfa;
  --yb-success: #16a34a;
  --yb-success-light: #f0fdf4;
  --yb-danger: #dc2626;
  --yb-danger-light: #fef2f2;
  --yb-warning: #d97706;
  --yb-warning-light: #fffbeb;
  --yb-info: #0891b2;
  --yb-bg: #f8fafc;
  --yb-surface: #ffffff;
  --yb-border: #e2e8f0;
  --yb-text: #1e293b;
  --yb-text-muted: #64748b;
  --yb-radius-sm: 8px;
  --yb-radius: 14px;
  --yb-radius-lg: 20px;
  --yb-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --yb-shadow: 0 4px 16px rgba(15, 23, 42, .08);
  --yb-shadow-lg: 0 16px 40px rgba(15, 23, 42, .12);
  --yb-sidebar-bg: #1e1b4b;
  --yb-sidebar-bg-active: #322e81;
  --yb-sidebar-border: rgba(255, 255, 255, .08);
  --yb-sidebar-text: rgba(255, 255, 255, .65);
  --yb-sidebar-text-active: #ffffff;
  --yb-sidebar-width: 260px;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--yb-bg);
  color: var(--yb-text);
  margin-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--yb-primary);
}

.text-muted {
  color: var(--yb-text-muted) !important;
}

/* ---------- Layout shell ---------- */

.page-shell {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
}

.page-shell > main {
  flex: 1;
}

/* ---------- Navbar ---------- */

.navbar.yb-navbar {
  background: var(--yb-surface) !important;
  border-bottom: 1px solid var(--yb-border);
  box-shadow: var(--yb-shadow-sm);
  padding-top: .65rem;
  padding-bottom: .65rem;
}

.yb-navbar .navbar-brand {
  font-weight: 800;
  color: var(--yb-text) !important;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.yb-navbar .navbar-brand .bi {
  color: var(--yb-primary);
  font-size: 1.35rem;
}

.navbar-brand-uni {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--yb-text-muted);
  line-height: 1.2;
}

.navbar-brand-app {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.yb-navbar .nav-link {
  font-weight: 500;
  color: var(--yb-text-muted) !important;
  border-radius: var(--yb-radius-sm);
  padding: .5rem .85rem !important;
  transition: background-color .15s ease, color .15s ease;
}

.yb-navbar .nav-link:hover,
.yb-navbar .nav-link.active {
  color: var(--yb-primary) !important;
  background: var(--yb-primary-light);
}

/* ---------- Buttons ---------- */

.btn {
  font-weight: 600;
  border-radius: var(--yb-radius-sm);
  padding: .55rem 1.1rem;
}

.btn-lg {
  padding: .75rem 1.5rem;
  border-radius: var(--yb-radius-sm);
}

.btn-sm {
  border-radius: 7px;
}

.btn-primary {
  background: var(--yb-primary);
  border-color: var(--yb-primary);
}

.btn-primary:hover, .btn-primary:focus {
  background: var(--yb-primary-dark);
  border-color: var(--yb-primary-dark);
}

.btn-outline-primary {
  color: var(--yb-primary);
  border-color: var(--yb-primary);
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background: var(--yb-primary);
  border-color: var(--yb-primary);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus, .form-select:focus {
  box-shadow: 0 0 0 3px var(--yb-primary-light);
}

/* ---------- Cards & surfaces ---------- */

.yb-card {
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius);
  box-shadow: var(--yb-shadow-sm);
}

.yb-card-lg {
  border-radius: var(--yb-radius-lg);
  box-shadow: var(--yb-shadow);
}

.card {
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius);
}

/* ---------- Forms ---------- */

.form-label {
  font-weight: 600;
  font-size: .875rem;
  color: var(--yb-text);
  margin-bottom: .35rem;
}

.form-control, .form-select {
  border: 1.5px solid var(--yb-border);
  border-radius: var(--yb-radius-sm);
  padding: .6rem .85rem;
}

.form-select {
  /* Ustteki kural sag padding'i Bootstrap'in ok isareti icin ayirdigi
     bosluktan daha dar birakiyordu, bu da ok isaretinin secili metnin
     uzerine binmesine sebep oluyordu. */
  padding-right: 2.25rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--yb-primary);
}

.text-danger {
  font-size: .825rem;
}

.alert {
  border: none;
  border-radius: var(--yb-radius);
}

.alert-danger {
  background: var(--yb-danger-light);
  color: #991b1b;
}

.alert-success {
  background: var(--yb-success-light);
  color: #166534;
}

.alert-info {
  background: #ecfeff;
  color: #155e75;
}

.validation-summary-errors ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

/* ---------- Tables ---------- */

.table {
  --bs-table-bg: transparent;
}

.yb-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--yb-text-muted);
  border-bottom: 2px solid var(--yb-border);
  font-weight: 700;
}

.yb-table td {
  vertical-align: middle;
  border-color: var(--yb-border);
}

/* ---------- Badges ---------- */

.badge {
  font-weight: 600;
  padding: .4em .75em;
  border-radius: 999px;
}

/* ---------- Admin nav ---------- */

.yb-admin-nav {
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius);
  padding: .4rem;
  gap: .25rem;
  display: inline-flex;
  box-shadow: var(--yb-shadow-sm);
}

.yb-admin-nav .nav-link {
  color: var(--yb-text-muted);
  font-weight: 600;
  font-size: .9rem;
  border-radius: var(--yb-radius-sm);
  padding: .5rem 1rem;
}

.yb-admin-nav .nav-link.active {
  background: var(--yb-primary);
  color: #fff;
}

/* ---------- Stat tiles (admin dashboard) ---------- */

.yb-stat {
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--yb-shadow-sm);
}

.yb-stat .yb-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.yb-stat .yb-stat-label {
  font-size: .8rem;
  color: var(--yb-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- Hero (home page) ---------- */

.yb-hero {
  background: linear-gradient(135deg, var(--yb-primary-dark) 0%, var(--yb-primary) 100%);
  border-radius: var(--yb-radius-lg);
  color: #fff;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.yb-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
}

.yb-hero::after {
  content: "";
  position: absolute;
  bottom: -70px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}

.yb-hero-icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.yb-hero-eyebrow {
  position: relative;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .8);
  margin-bottom: .5rem;
}

.yb-hero h1 {
  position: relative;
  font-size: 1.9rem;
  margin-bottom: 0;
}

.yb-hero p {
  position: relative;
  color: rgba(255, 255, 255, .85);
}

.yb-hero-lg {
  padding: 3.5rem 2rem 3rem;
}

.yb-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}

.yb-hero-lead {
  position: relative;
  max-width: 560px;
  margin: .5rem auto 0;
  font-size: 1rem;
}

/* ---------- Home page: left visual panel + right content ---------- */

.yb-home-split {
  display: flex;
  align-items: stretch;
  gap: 2rem;
}

.yb-home-visual {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-bottom: 0;
}

.yb-home-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .yb-home-split {
    flex-direction: column;
  }

  .yb-home-visual {
    flex-basis: auto;
    order: 1;
    padding: 1.75rem 1.5rem;
  }

  .yb-home-main {
    order: 2;
  }
}

/* ---------- Sorgulama sayfaları (başvuru görüntüle / sonuç sorgula) ---------- */

.yb-query {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-width: 960px;
  margin: 2.5rem auto 1rem;
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  box-shadow: var(--yb-shadow-lg);
  overflow: hidden;
}

.yb-query-side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--yb-primary-dark) 0%, var(--yb-primary) 100%);
  color: #fff;
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.yb-query-side::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.yb-query-side > * {
  position: relative;
}

.yb-query-side .yb-hero-pattern {
  position: absolute;
}

.yb-query-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--yb-radius);
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
}

.yb-query-side h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin-bottom: 0;
}

.yb-query-main {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.yb-query-main h2 {
  font-size: 1.3rem;
  margin-bottom: .35rem;
}

.yb-query-main .yb-query-sub {
  color: var(--yb-text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}

.yb-query-main .input-group-text {
  background: var(--yb-bg);
  border: 1.5px solid var(--yb-border);
  border-right: none;
  color: var(--yb-text-muted);
  border-radius: var(--yb-radius-sm) 0 0 var(--yb-radius-sm);
}

.yb-query-main .input-group .form-control {
  border-left: none;
}

.yb-query-main .input-group:focus-within .input-group-text {
  border-color: var(--yb-primary);
  color: var(--yb-primary);
}

.yb-query-note {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
  font-size: .8rem;
  color: var(--yb-text-muted);
}

.yb-result {
  margin-top: 1.75rem;
  border-radius: var(--yb-radius);
  border: 1.5px solid;
  padding: 1.25rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: yb-fade-in .25s ease;
}

.yb-result-success {
  background: var(--yb-success-light);
  border-color: #bbf7d0;
}

.yb-result-danger {
  background: var(--yb-danger-light);
  border-color: #fecaca;
}

.yb-result-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.yb-result-success .yb-result-icon { background: var(--yb-success); }
.yb-result-danger .yb-result-icon { background: var(--yb-danger); }

.yb-result-name {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--yb-text-muted);
}

.yb-result-status {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.yb-result-success .yb-result-status { color: #15803d; }
.yb-result-danger .yb-result-status { color: #b91c1c; }

.yb-result-text {
  font-size: .875rem;
  color: var(--yb-text);
  margin: .15rem 0 0;
}

/* ---------- Asil sonuc - belge teslim tarih araligi (Sonuc Sorgula) ---------- */

.yb-belge-teslim {
  margin-top: 1.5rem;
  border-radius: var(--yb-radius);
  border: 1px solid var(--yb-border);
  background: var(--yb-surface);
  padding: 1.25rem 1.35rem;
  animation: yb-fade-in .25s ease;
}

.yb-belge-teslim h5 {
  font-size: .95rem;
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ---------- Asil sonuc - teslim uyari banner'i (Sonuc Sorgula) ---------- */

.yb-teslim-uyari {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--yb-radius);
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1.5px solid #fbbf24;
  box-shadow: 0 6px 20px rgba(217, 119, 6, .2);
  overflow: hidden;
  animation: yb-fade-in .3s ease;
}

.yb-teslim-uyari::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: yb-sheen 3.5s ease-in-out infinite;
  pointer-events: none;
}

.yb-teslim-uyari-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yb-warning);
  color: #fff;
  font-size: 1.35rem;
  animation: yb-pulse-ring 1.8s ease-in-out infinite;
}

.yb-teslim-uyari-text {
  position: relative;
  z-index: 1;
  font-size: .95rem;
  line-height: 1.55;
  color: #78350f;
}

.yb-teslim-uyari-text strong {
  color: #92400e;
}

@keyframes yb-sheen {
  0% { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}

@keyframes yb-pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .45); }
  50% { box-shadow: 0 0 0 9px rgba(217, 119, 6, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .yb-teslim-uyari::before,
  .yb-teslim-uyari-icon {
    animation: none;
  }
}

@media (max-width: 767.98px) {
  .yb-query {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .yb-query-side {
    padding: 1.75rem 1.5rem;
  }

  .yb-query-side h1 {
    font-size: 1.45rem;
  }

  .yb-query-icon {
    margin-bottom: 1rem;
  }

  .yb-query-main {
    padding: 1.75rem 1.5rem;
  }
}

/* ---------- Action cards (home page) ---------- */

.yb-action-card {
  display: block;
  position: relative;
  text-decoration: none;
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  padding: 2rem;
  height: 100%;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.yb-action-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yb-primary), var(--yb-primary-dark));
  opacity: 0;
  transition: opacity .18s ease;
}

.yb-action-card.yb-action-info::before {
  background: linear-gradient(90deg, var(--yb-info), #0e7490);
}

.yb-action-card.yb-action-success::before {
  background: linear-gradient(90deg, var(--yb-success), #15803d);
}

.yb-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--yb-shadow-lg);
  border-color: var(--yb-primary);
}

.yb-action-card:hover::before {
  opacity: 1;
}

.yb-action-card .yb-action-step {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--yb-border);
  line-height: 1;
}

.yb-action-card .yb-action-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--yb-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.yb-action-card.yb-action-primary .yb-action-icon {
  background: var(--yb-primary-light);
  color: var(--yb-primary);
}

.yb-action-card.yb-action-info .yb-action-icon {
  background: #ecfeff;
  color: var(--yb-info);
}

.yb-action-card.yb-action-success .yb-action-icon {
  background: var(--yb-success-light);
  color: var(--yb-success);
}

.yb-action-card h3 {
  color: var(--yb-text);
  font-size: 1.2rem;
}

.yb-action-card p {
  color: var(--yb-text-muted);
  margin-bottom: 0;
}

.yb-action-card .yb-action-link {
  display: inline-flex;
  align-items: center;
  transition: gap .15s ease;
}

.yb-action-card:hover .yb-action-link i {
  transform: translateX(3px);
  transition: transform .15s ease;
}

/* ---------- Info cards (home page) ---------- */

.yb-info-card {
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  padding: 1.6rem;
  height: 100%;
}

.yb-info-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--yb-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: .9rem;
}

.yb-info-card h5 {
  font-size: 1.05rem;
  margin-bottom: .8rem;
}

.yb-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.yb-info-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: .9rem;
  color: var(--yb-text);
}

.yb-info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yb-primary);
}

.yb-info-list-link {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--yb-primary);
  text-decoration: none;
}

.yb-info-list-link:hover {
  text-decoration: underline;
}

.yb-belge-madde-liste {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1.5rem;
}

@media (max-width: 767.98px) {
  .yb-belge-madde-liste {
    grid-template-columns: 1fr;
  }
}

.yb-belge-madde {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .9rem;
  color: var(--yb-text);
}

.yb-belge-madde-no {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--yb-warning-light);
  color: var(--yb-warning);
  font-weight: 700;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .05rem;
}

.yb-belge-madde-aciklama {
  background: var(--yb-warning-light);
  border: 1px solid rgba(217, 119, 6, .2);
  border-radius: var(--yb-radius);
  padding: .9rem 1.1rem;
  font-size: .85rem;
  color: var(--yb-text);
}

/* ---------- TC doğrulama satırı (başvuru formu) ---------- */

.yb-tc-verify {
  display: flex;
  align-items: stretch;
  gap: .5rem;
}

.yb-tc-verify .input-group {
  flex: 1 1 auto;
  min-width: 11ch;
}

.yb-tc-verify input[type="text"],
.yb-tc-verify input:not([type]) {
  min-width: 0;
  font-size: 1.15rem;
  letter-spacing: .03em;
}

@media (max-width: 767.98px) {
  .yb-tc-verify {
    flex-direction: column;
  }

  .yb-tc-verify .btn {
    width: 100%;
  }
}

/* ---------- Wizard (başvuru formu) ---------- */

.yb-wizard-steps {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.yb-wizard-steps li {
  flex: 1;
  text-align: center;
  position: relative;
  font-size: .85rem;
  font-weight: 600;
  color: var(--yb-text-muted);
}

.yb-wizard-steps li::before {
  content: attr(data-step-num);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yb-border);
  color: var(--yb-text-muted);
  font-weight: 700;
  margin: 0 auto .5rem;
  transition: background-color .2s ease, color .2s ease;
}

.yb-wizard-steps li::after {
  content: "";
  position: absolute;
  top: 17px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--yb-border);
  z-index: -1;
}

.yb-wizard-steps li:first-child::after {
  display: none;
}

.yb-wizard-steps li.active,
.yb-wizard-steps li.done {
  color: var(--yb-primary);
}

.yb-wizard-steps li.active::before,
.yb-wizard-steps li.done::before {
  background: var(--yb-primary);
  color: #fff;
}

.yb-wizard-steps li.done::before {
  content: "\2713";
}

.yb-wizard-steps li.done::after,
.yb-wizard-steps li.active::after {
  background: var(--yb-primary);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: yb-fade-in .25s ease;
}

@keyframes yb-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Sosyo-ekonomik anket ---------- */

.yb-anket-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--yb-primary-light);
  border: 1px solid rgba(13, 148, 136, .18);
  border-radius: var(--yb-radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.yb-anket-intro-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--yb-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.yb-anket-liste {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.yb-anket-soru {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius);
  padding: 1rem 1.1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.yb-anket-soru:focus-within,
.yb-anket-soru:has(.btn-check:checked) {
  border-color: rgba(13, 148, 136, .35);
  box-shadow: var(--yb-shadow-sm);
}

.yb-anket-numara {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--yb-primary-light);
  color: var(--yb-primary-dark);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yb-anket-govde {
  flex: 1 1 auto;
  min-width: 0;
}

.yb-anket-baslik {
  font-weight: 600;
  margin-bottom: .6rem;
}

.yb-anket-secenekler {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.yb-anket-secenek {
  cursor: pointer;
  user-select: none;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1.5px solid var(--yb-border);
  color: var(--yb-text-muted);
  font-size: .88rem;
  font-weight: 500;
  background: var(--yb-bg);
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.yb-anket-secenek:hover {
  border-color: var(--yb-primary);
  color: var(--yb-primary-dark);
}

.btn-check:checked + .yb-anket-secenek {
  background: var(--yb-primary);
  border-color: var(--yb-primary);
  color: #fff;
}

.btn-check:focus-visible + .yb-anket-secenek {
  outline: 2px solid var(--yb-primary);
  outline-offset: 2px;
}

.yb-belge-row {
  border: 1.5px solid var(--yb-border);
  border-radius: var(--yb-radius);
  padding: 1rem 1.2rem;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.yb-belge-row.has-file {
  border-color: var(--yb-success);
  background: var(--yb-success-light);
}

/* ---------- Print view ---------- */

.yb-print-card {
  background: var(--yb-surface);
  border: 1px solid var(--yb-border);
  border-radius: var(--yb-radius-lg);
  box-shadow: var(--yb-shadow);
  padding: 2rem;
}

@media print {
  .d-print-none { display: none !important; }
  body { background: #fff; }
  .yb-print-card { box-shadow: none; border: none; }
}

/* ---------- Footer ---------- */

.yb-footer {
  border-top: 1px solid var(--yb-border);
  color: var(--yb-text-muted);
  font-size: .85rem;
  padding: 1.5rem 0;
  margin-top: 3rem;
}

/* ---------- Admin shell (sidebar layout) ---------- */

.yb-app-shell {
  display: flex;
  min-height: 100vh;
}

.yb-sidebar {
  width: var(--yb-sidebar-width);
  flex: 0 0 var(--yb-sidebar-width);
  background: var(--yb-sidebar-bg);
  color: var(--yb-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.yb-sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--yb-sidebar-text-active);
  padding: .5rem .6rem 1.2rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--yb-sidebar-border);
}

.yb-sidebar-brand .yb-sidebar-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--yb-radius-sm);
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.yb-sidebar-brand-uni {
  display: block;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.2;
}

.yb-sidebar-brand-app {
  display: block;
  font-size: .78rem;
  color: var(--yb-sidebar-text);
  line-height: 1.2;
}

.yb-sidebar-section {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .4);
  padding: 1rem .7rem .4rem;
}

.yb-sidebar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yb-sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--yb-sidebar-text);
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem .7rem;
  border-radius: var(--yb-radius-sm);
  margin-bottom: .15rem;
  transition: background .15s ease, color .15s ease;
}

.yb-sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--yb-sidebar-text-active);
}

.yb-sidebar-nav .nav-link.active {
  background: var(--yb-sidebar-bg-active);
  color: var(--yb-sidebar-text-active);
}

.yb-sidebar-nav .nav-link .bi {
  font-size: 1.05rem;
  width: 1.2rem;
  text-align: center;
}

.yb-sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--yb-sidebar-border);
}

.yb-sidebar-user {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--yb-sidebar-text);
  font-size: .8rem;
  padding: 0 .7rem .6rem;
  word-break: break-all;
}

.yb-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.yb-topbar {
  background: var(--yb-surface);
  border-bottom: 1px solid var(--yb-border);
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.yb-topbar h1 {
  font-size: 1.3rem;
  margin: 0;
}

.yb-content-body {
  flex: 1;
  padding: 1.75rem;
}

/* ---------- Standalone auth page (login) ---------- */

.yb-auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yb-sidebar-bg);
  padding: 1.5rem;
}

.yb-auth-card {
  background: var(--yb-surface);
  border-radius: var(--yb-radius-lg);
  box-shadow: var(--yb-shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.yb-auth-icon {
  color: var(--yb-sidebar-bg);
  font-size: 2.5rem;
  margin: 0 auto .75rem;
}

.yb-auth-back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: .875rem;
  color: var(--yb-text-muted);
  text-decoration: none;
}

.yb-auth-back:hover {
  color: var(--yb-primary);
}
