/* =========================================================
   Sivil Savunma Teşkilatı Başkanlığı
   Sınav Kayıt Sistemi - Arayüz Stili
   ========================================================= */

:root {
  /* Kurumsal renk paleti - lacivert / turkuaz */
  --navy-900: #0b1f3a;
  --navy-800: #10294b;
  --navy-700: #163461;
  --navy-600: #1d4278;
  --navy-500: #2a5798;

  --teal-600: #0d7d78;
  --teal-500: #12a19a;
  --teal-400: #1cbdb4;

  --amber-500: #d98324;

  --ink: #16202c;
  --ink-soft: #48586b;
  --muted: #7a8899;

  --line: #e2e8f0;
  --line-soft: #eef2f7;
  --surface: #ffffff;
  --canvas: #f1f5f9;
  --canvas-alt: #f8fafc;

  --danger: #c0392b;
  --danger-bg: #fdeceb;
  --danger-line: #f5c6c1;
  --success: #147a4b;
  --success-bg: #e7f6ee;
  --success-line: #bde3ce;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --sh-sm: 0 1px 2px rgba(15, 32, 55, .06), 0 1px 3px rgba(15, 32, 55, .04);
  --sh-md: 0 4px 16px rgba(15, 32, 55, .07);
  --sh-lg: 0 18px 45px rgba(11, 31, 58, .13);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-500); }

/* =========================================================
   Kurumsal üst başlık
   ========================================================= */

.site-header {
  position: relative;
  background:
    radial-gradient(1100px 380px at 12% -30%, rgba(28, 189, 180, .30), transparent 60%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--navy-500) 55%, var(--amber-500));
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 24px 30px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-emblem {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.header-emblem svg { width: 30px; height: 30px; display: block; }

/* ---------------------------------------------------------------------
   Kurum logosu yüklendiğinde
   Logo, arkasında beyaz kutu / çerçeve olmadan doğrudan gösterilir.
   Boyutu değiştirmek isterseniz aşağıdaki üç değeri düzenleyin.
   --------------------------------------------------------------------- */
.header-emblem.has-logo,
.admin-brand .admin-emblem.has-logo,
.login-emblem.has-logo {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
}

.header-emblem.has-logo              { width: 78px; height: 78px; }  /* Ana sayfa başlığı */
.admin-brand .admin-emblem.has-logo  { width: 46px; height: 46px; }  /* Yönetim paneli üst çubuğu */
.login-emblem.has-logo               { width: 92px; height: 92px; }  /* Yönetici giriş ekranı */

.header-emblem.has-logo img,
.admin-brand .admin-emblem.has-logo img,
.login-emblem.has-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.header-text .org-name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.25;
}

.header-text .org-sub {
  margin-top: 3px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .74);
  font-weight: 400;
}

/* =========================================================
   Yerleşim
   ========================================================= */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px 24px 70px;
}

.page-intro {
  margin-bottom: 22px;
}

.page-intro h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: -.2px;
}

.page-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  max-width: 70ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: 30px 34px 34px;
}

/* =========================================================
   Form
   ========================================================= */

.form-section {
  margin-bottom: 30px;
}

.form-section:last-of-type { margin-bottom: 8px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.section-num {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--navy-800);
  letter-spacing: .1px;
}

h2.form-title {
  margin: 0 0 24px;
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-800);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 26px;
}

.form-group { display: flex; flex-direction: column; min-width: 0; }
.form-group.full-width { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 620;
  margin-bottom: 7px;
  color: var(--ink);
  letter-spacing: .1px;
}

label .required { color: var(--danger); margin-left: 3px; }

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
select {
  padding: 11px 13px;
  border: 1px solid #d6dde6;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-family: inherit;
  background: var(--canvas-alt);
  color: var(--ink);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  width: 100%;
}

input::placeholder { color: #a3b0c0; }

input[type="text"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="password"]:hover,
select:hover { border-color: #bcc8d6; }

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
select:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy-500);
  box-shadow: 0 0 0 3.5px rgba(42, 87, 152, .14);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2348586b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 13px center;
  padding-left: 36px;
}

/* Dosya yükleme alanı */
.file-field {
  position: relative;
  border: 1.5px dashed #c3cfdd;
  border-radius: var(--r-md);
  background: var(--canvas-alt);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: border-color .16s ease, background .16s ease;
}

.file-field:hover { border-color: var(--teal-500); background: #f4fbfb; }

.file-field input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.file-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(18, 161, 154, .11);
  color: var(--teal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-icon svg { width: 19px; height: 19px; }

.file-text { min-width: 0; }
.file-text .file-main { font-size: 13.8px; font-weight: 600; color: var(--ink); }
.file-text .file-sub { font-size: 12.3px; color: var(--muted); margin-top: 1px; }

.file-field.has-file { border-style: solid; border-color: var(--teal-500); background: #f2fbfa; }
.file-field.has-file .file-main { color: var(--teal-600); }

/* Cinsiyet seçimi - segment butonlar */
.segmented {
  display: flex;
  gap: 9px;
  padding-top: 1px;
}

.segmented label {
  flex: 1;
  margin: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10.5px 12px;
  border: 1px solid #d6dde6;
  border-radius: var(--r-sm);
  background: var(--canvas-alt);
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}

.segmented label:hover { border-color: #b6c3d3; background: #fff; }
.segmented input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }

.segmented input[type="radio"]:checked + span,
.segmented label:has(input:checked) {
  border-color: var(--navy-500);
  background: rgba(42, 87, 152, .07);
  color: var(--navy-700);
  font-weight: 650;
  box-shadow: 0 0 0 3px rgba(42, 87, 152, .1);
}

/* ---------------------------------------------------------------------
   Gönderim sırasında bekleme ekranı
   --------------------------------------------------------------------- */
.submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(11, 31, 58, .62);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.submit-overlay[hidden] { display: none; }

.submit-overlay-box {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 34px 38px;
  text-align: center;
  max-width: 380px;
}

.submit-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border: 4px solid var(--line);
  border-top-color: var(--teal-500);
  border-radius: 50%;
  animation: submit-spin .8s linear infinite;
}

@keyframes submit-spin { to { transform: rotate(360deg); } }

.submit-overlay-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}

.submit-overlay-text {
  font-size: 13.6px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Gönder düğmesi beklerken */
.btn.is-loading {
  opacity: .65;
  cursor: progress;
}

/* ---------------------------------------------------------------------
   Beyan onayı ve güvenlik doğrulaması
   --------------------------------------------------------------------- */
.captcha-section { margin-top: 4px; margin-bottom: 0; }

/* Bal küpü alanı: ekran okuyucular dışında görünmez */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Beyan onay kutusu */
.consent-check {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid #d6dde6;
  border-radius: var(--r-md);
  background: var(--canvas-alt);
  cursor: pointer;
  user-select: none;
  font-weight: 500;
  margin-bottom: 0;
  transition: border-color .15s ease, background .15s ease;
}

.consent-check:hover { border-color: #bcc8d6; background: #fff; }

.consent-check input { position: absolute; opacity: 0; pointer-events: none; }

.consent-box {
  width: 26px;
  height: 26px;
  border: 2px solid #bcc8d6;
  border-radius: 5px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: all .15s ease;
}

.consent-box svg { width: 16px; height: 16px; opacity: 0; color: #fff; transition: opacity .15s ease; }

.consent-check input:checked + .consent-box {
  background: var(--teal-600);
  border-color: var(--teal-600);
}

.consent-check input:checked + .consent-box svg { opacity: 1; }

.consent-check input:focus-visible + .consent-box {
  box-shadow: 0 0 0 3.5px rgba(42, 87, 152, .18);
}

.consent-check:has(input:checked) {
  border-color: var(--teal-500);
  background: #f2fbfa;
}

.consent-text { font-size: 14.8px; color: var(--ink); line-height: 1.45; }

.form-actions {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* =========================================================
   Butonlar
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 620;
  font-family: inherit;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, background .16s ease;
  text-decoration: none;
  line-height: 1.2;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  color: #fff;
  box-shadow: 0 3px 12px rgba(29, 66, 120, .3);
}

.btn-primary:hover {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-600));
  box-shadow: 0 6px 18px rgba(29, 66, 120, .36);
  color: #fff;
}

.btn-accent {
  background: linear-gradient(140deg, var(--teal-600), var(--teal-500));
  color: #fff;
  box-shadow: 0 3px 12px rgba(13, 125, 120, .28);
}

.btn-accent:hover { box-shadow: 0 6px 18px rgba(13, 125, 120, .34); color: #fff; }

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #d6dde6;
  box-shadow: var(--sh-sm);
}

.btn-secondary:hover { background: var(--canvas-alt); border-color: #bcc8d6; }

.btn-sm { padding: 8px 15px; font-size: 13.3px; }
.btn-block { width: 100%; }

/* =========================================================
   Uyarı ve bildirimler
   ========================================================= */

.alert {
  padding: 14px 17px;
  border-radius: var(--r-md);
  margin-bottom: 22px;
  font-size: 14.2px;
  border: 1px solid;
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border-color: var(--danger-line); }

.field-error {
  color: var(--danger);
  font-size: 12.6px;
  margin-top: 5px;
  font-weight: 500;
}

.hint {
  font-size: 12.4px;
  color: var(--muted);
  margin-top: 5px;
}

/* =========================================================
   Başarı sayfası
   ========================================================= */

.success-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  overflow: hidden;
  text-align: center;
}

.success-banner {
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  padding: 36px 24px 30px;
  color: #fff;
}

.success-check {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 2px solid rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .45s cubic-bezier(.2, .9, .3, 1.2);
}

.success-check svg { width: 30px; height: 30px; }

@keyframes pop {
  from { transform: scale(.6); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}

.success-banner h2 { margin: 0; font-size: 21px; font-weight: 700; }
.success-banner p  { margin: 7px 0 0; font-size: 14.5px; opacity: .92; }

.success-body { padding: 30px 32px 34px; }

.candidate-badge {
  display: inline-block;
  background: var(--canvas-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 34px;
  margin-bottom: 22px;
}

.candidate-badge .cb-label {
  font-size: 11.6px;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--muted);
  font-weight: 650;
}

.candidate-badge .cb-value {
  font-size: 29px;
  font-weight: 750;
  color: var(--navy-800);
  letter-spacing: .5px;
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Admin paneli
   ========================================================= */

.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }

.admin-topbar {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 0;
  border-bottom: 3px solid var(--teal-500);
}

.admin-topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-brand { display: flex; align-items: center; gap: 12px; }

.admin-brand .admin-emblem {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center;
}

.admin-brand .admin-emblem svg { width: 21px; height: 21px; }
.admin-brand .ab-org  { font-size: 14.5px; font-weight: 680; line-height: 1.25; }
.admin-brand .ab-sub  { font-size: 12.2px; color: rgba(255, 255, 255, .68); }

.admin-user { display: flex; align-items: center; gap: 14px; font-size: 13.6px; }
.admin-user .au-name { color: rgba(255, 255, 255, .82); }

.admin-user a.topbar-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  transition: color .15s ease;
}

.admin-user a.topbar-link:hover { color: #fff; text-decoration: underline; }

.admin-user a.logout {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  padding: 7px 15px;
  border-radius: var(--r-sm);
  transition: background .15s ease;
  font-weight: 550;
}

.admin-user a.logout:hover { background: rgba(255, 255, 255, .13); color: #fff; }

.admin-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 70px;
  width: 100%;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.admin-page-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-800);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.8px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 550;
}

.back-link:hover { color: var(--navy-600); }

/* Giriş ekranı */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  background:
    radial-gradient(900px 460px at 50% -8%, rgba(28, 189, 180, .22), transparent 62%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700) 60%, var(--navy-600));
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}

.login-card-head {
  padding: 30px 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

.login-emblem {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(29, 66, 120, .28);
}

.login-emblem svg { width: 29px; height: 29px; }

.login-card-head .lc-org {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.3;
}

.login-card-head .lc-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.login-card-body { padding: 26px 32px 30px; }

/* İstatistik kartları */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  box-shadow: var(--sh-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .18s ease, transform .18s ease;
}

.stat-card:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }

.stat-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}

.stat-icon svg { width: 21px; height: 21px; }
.stat-icon.blue { background: rgba(42, 87, 152, .1);  color: var(--navy-600); }
.stat-icon.teal { background: rgba(18, 161, 154, .12); color: var(--teal-600); }

.stat-card .stat-value {
  font-size: 25px;
  font-weight: 750;
  color: var(--navy-800);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label { font-size: 12.6px; color: var(--muted); font-weight: 550; }

/* Filtre çubuğu */
.filters-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}

/* Filtre alanlari arttikca kendiliginden satira boluner */
.filters-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.filters-bar .form-group { margin: 0; min-width: 0; }

/* Arama kutusu iki sutun genisliginde dursun */
.filters-bar .form-group.search-field { grid-column: span 2; }

.filters-bar .filter-actions {
  display: flex;
  gap: 9px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 2px;
}

/* Liste araç çubuğu (Excel'e aktar / Yazdır) */
.list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.list-toolbar-info {
  font-size: 13.2px;
  color: var(--ink-soft);
}

.list-toolbar-info strong { color: var(--navy-700); }

.list-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Tablo */
.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.6px;
}

table.data-table th {
  background: var(--canvas-alt);
  font-weight: 650;
  color: var(--navy-800);
  white-space: nowrap;
  text-align: right;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12.6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

table.data-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line-soft);
  text-align: right;
  color: var(--ink-soft);
}

table.data-table td.name-cell { color: var(--ink); font-weight: 600; }
table.data-table tbody tr { transition: background .12s ease; }
table.data-table tbody tr:hover { background: #f7fafd; }
table.data-table tbody tr:last-child td { border-bottom: none; }

.mono { font-variant-numeric: tabular-nums; letter-spacing: .3px; }

.empty-row {
  text-align: center !important;
  color: var(--muted);
  padding: 42px 20px !important;
  font-size: 14px;
}

.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 30px;
  font-size: 12.2px;
  font-weight: 620;
  background: rgba(42, 87, 152, .09);
  color: var(--navy-700);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge-teal { background: rgba(18, 161, 154, .12); color: var(--teal-600); }
.badge-soft { background: var(--line-soft); color: var(--ink-soft); font-weight: 550; }

/* Detay ekranı */
.detail-section { margin-bottom: 28px; }
.detail-section:last-child { margin-bottom: 0; }

.detail-section-title {
  font-size: 12.4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--teal-600);
  margin-bottom: 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px 30px;
}

.detail-item .label {
  font-size: 11.7px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 650;
}

.detail-item .value {
  font-size: 15.2px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 3px;
  word-break: break-word;
}

.doc-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Belge görüntüleme ekranı */
.doc-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.doc-viewer {
  background: var(--canvas-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
  overflow: auto;
}

.doc-viewer img {
  max-width: 100%;
  max-height: 74vh;
  height: auto;
  border-radius: 4px;
  box-shadow: var(--sh-md);
  background: #fff;
  image-orientation: from-image;
}

/* Detay ekranındaki vesikalık */
.candidate-photo {
  float: left;
  width: 104px;
  margin: 0 20px 12px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  padding: 4px;
  box-shadow: var(--sh-sm);
  display: block;
  transition: box-shadow .16s ease;
}

.candidate-photo:hover { box-shadow: var(--sh-md); }

.candidate-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  /* Telefonla çekilen fotoğrafların EXIF yön bilgisi uygulansın
     (modern tarayıcılarda varsayılan, eski sürümler için açıkça belirtildi) */
  image-orientation: from-image;
}

.detail-section::after { content: ""; display: table; clear: both; }

/* Sayfalama */
.pagination {
  display: flex;
  gap: 7px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination a, .pagination span {
  min-width: 38px;
  padding: 8px 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13.4px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  transition: all .14s ease;
}

.pagination a:hover { background: var(--canvas-alt); border-color: #c3cfdd; color: var(--navy-700); }

.pagination .active {
  background: linear-gradient(140deg, var(--navy-700), var(--navy-500));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(29, 66, 120, .26);
}

/* =========================================================
   Alt bilgi
   ========================================================= */

.site-footer {
  text-align: center;
  padding: 26px 20px 34px;
  font-size: 12.8px;
  color: var(--muted);
}

.site-footer strong { color: var(--ink-soft); font-weight: 620; }

/* =========================================================
   Duyarlı (responsive) düzen
   ========================================================= */

@media (max-width: 900px) {
  .filters-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters-bar .form-group.search-field { grid-column: 1 / -1; }
  .filters-bar .filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .header-inner { padding: 20px 18px 24px; gap: 13px; }
  .header-emblem { width: 46px; height: 46px; border-radius: 12px; }
  .header-emblem svg { width: 25px; height: 25px; }
  .header-emblem.has-logo { width: 58px; height: 58px; }
  .login-emblem.has-logo  { width: 74px; height: 74px; }
  .header-text .org-name { font-size: 16.5px; }
  .header-text .org-sub  { font-size: 12.5px; }

  .container { padding: 24px 16px 56px; }
  .card { padding: 22px 19px 26px; border-radius: var(--r-md); }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .filters-bar { grid-template-columns: 1fr; }
  .filters-bar .form-group.search-field { grid-column: 1 / -1; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }
  .admin-container { padding: 22px 16px 56px; }
  .success-body { padding: 24px 20px 28px; }
  .candidate-badge { padding: 14px 24px; width: 100%; }
  .candidate-badge .cb-value { font-size: 25px; }
  .doc-actions .btn { width: 100%; }
}

@media print {
  .site-header, .admin-topbar, .form-actions, .filters-card, .pagination, .doc-actions, .back-link { display: none !important; }
  body { background: #fff; }
  .card, .table-card { box-shadow: none; border: none; }
}
