:root {
  --ana: #1565c0;
  --ana-koyu: #0d47a1;
  --ana-acik: #42a5f5;
  --zemin: #f3f7fc;
  --vurgu: #bbdefb;
  --kart: #ffffff;
  --metin: #0f2744;
  --metin-soluk: #4a627c;
  --navbar: #1565c0;
  --bs-primary: #1565c0;
  --bs-primary-rgb: 21, 101, 192;
  --bs-body-bg: #f3f7fc;
  --bs-body-color: #0f2744;
  --bs-secondary-color: #4a627c;
  --bs-link-color: #1565c0;
  --bs-link-hover-color: #0d47a1;
  --bs-border-radius: 0.85rem;
}

html, body {
  background: var(--zemin);
  color: var(--metin);
}

body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

body.giris-sayfa {
  padding: 0;
  background: #0b2a55;
}

.navbar {
  background: linear-gradient(90deg, #0d47a1 0%, #1565c0 55%, #1e88e5 100%);
  box-shadow: 0 4px 18px rgba(13, 71, 161, .28);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #e3f2fd;
}

.marka-simge {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #90caf9, #e3f2fd);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .45);
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, .86);
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.navbar-nav .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, .2);
}

.nav-kullanici {
  display: inline-block;
  color: #e3f2fd;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 0, 0, .15);
  border-radius: 999px;
}

.btn-cikis {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
  background: transparent;
}

.btn-cikis:hover,
.btn-cikis:focus {
  color: #0d47a1;
  background: #fff;
  border-color: #fff;
}

.sayfa-baslik {
  margin-bottom: 1.1rem;
}

.sayfa-baslik h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  color: var(--ana-koyu);
}

.sayfa-baslik p {
  margin: 0.2rem 0 0;
  color: var(--metin-soluk);
  font-size: 0.9rem;
}

.card {
  background: var(--kart);
  border: 1px solid #d6e6f7;
  box-shadow: 0 8px 24px rgba(21, 101, 192, .06);
}

.form-label {
  font-weight: 700;
  color: var(--metin);
}

.text-secondary {
  color: var(--metin-soluk) !important;
}

.btn-primary {
  --bs-btn-bg: #1565c0;
  --bs-btn-border-color: #1565c0;
  --bs-btn-hover-bg: #0d47a1;
  --bs-btn-hover-border-color: #0d47a1;
  --bs-btn-active-bg: #0d47a1;
  --bs-btn-active-border-color: #0d47a1;
  --bs-btn-focus-shadow-rgb: 21, 101, 192;
}

.btn-outline-primary {
  --bs-btn-color: #1565c0;
  --bs-btn-border-color: #1565c0;
  --bs-btn-hover-bg: #1565c0;
  --bs-btn-hover-border-color: #1565c0;
  --bs-btn-hover-color: #fff;
}

.page-link {
  color: var(--ana);
}

.page-item.active .page-link {
  background-color: var(--ana);
  border-color: var(--ana);
}

.giris-ekran {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.giris-gorsel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #0d47a1;
}

.giris-gorsel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.giris-gorsel-yazi {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3.5rem 2.5rem 2.5rem;
  background: linear-gradient(180deg, transparent, rgba(8, 32, 72, .88) 55%);
  color: #fff;
}

.giris-ust {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .16);
  border-radius: 999px;
}

.giris-gorsel-yazi h1 {
  font-size: 2.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.giris-gorsel-yazi p:last-child {
  margin: 0;
  max-width: 28rem;
  color: #dbeafe;
}

.giris-form-alan {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(180deg, #f7fbff, #e8f1fb);
}

.giris-form-kutu {
  width: 100%;
  max-width: 24rem;
  background: #fff;
  border-radius: 1.1rem;
  padding: 2rem 1.75rem;
  box-shadow: 0 18px 40px rgba(13, 71, 161, .12);
}

.giris-merhaba {
  color: var(--ana);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.giris-form-kutu h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ana-koyu);
  margin-bottom: 0.35rem;
}

.son-gorusme {
  border-left: 5px solid var(--ana);
}

.son-gorusme .etiket {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ana);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 0.15rem;
}

.firma-liste {
  min-width: 78rem;
  background: #ffffff;
}

.firma-liste-kart {
  background: #ffffff;
  border-color: #d6e6f7;
}

.firma-satir {
  display: grid;
  grid-template-columns: minmax(10rem, 2fr) minmax(7rem, 1.15fr) minmax(5.5rem, 0.85fr) minmax(5.5rem, 0.85fr) 4.5rem minmax(6.5rem, 1fr) minmax(7.5rem, 1.15fr) 6.75rem 4.75rem;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0.9rem;
  font-weight: 400;
  text-decoration: none;
  color: var(--metin);
  background: #ffffff;
  white-space: nowrap;
  border-bottom: 1px solid #dceaf6;
  border-left: 6px solid var(--vurgu);
}

.firma-satir .hucre {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.firma-satir .hucre-gun {
  text-align: right;
}

.firma-satir:last-child {
  border-bottom: 0;
}

a.firma-satir:nth-of-type(odd) {
  background: #ffffff;
}

a.firma-satir:nth-of-type(even) {
  background: #eef5fc;
}

a.firma-satir:hover,
a.firma-satir:focus {
  background: #dbeafe;
  color: var(--metin);
  border-left-color: var(--ana);
}

.firma-baslik {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0d47a1;
  background: #e3f2fd;
}

.sira-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.sira-link:hover,
.sira-link:focus {
  color: var(--ana);
  text-decoration: underline;
}

.sira-link.aktif {
  color: var(--ana-koyu);
}

.geciken-cok { border-left-color: #ff4646; }
.geciken-orta { border-left-color: #ff8040; }
.geciken-az { border-left-color: #e6c200; }

.sayfalama-bar {
  background: var(--zemin);
  margin-top: 1rem;
  padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0));
  box-shadow: 0 -6px 16px rgba(13, 71, 161, .08);
}

.table thead th {
  color: var(--ana-koyu);
  font-size: 0.85rem;
  background: #e3f2fd;
}

@media (max-width: 991.98px) {
  .giris-ekran {
    grid-template-columns: 1fr;
  }

  .giris-gorsel {
    min-height: 38vh;
  }

  .giris-gorsel-yazi {
    padding: 2.2rem 1.4rem 1.3rem;
  }

  .giris-gorsel-yazi h1 {
    font-size: 1.55rem;
  }

  .firma-liste-kart {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .firma-liste-kart .table-responsive {
    overflow: visible;
  }

  .firma-liste {
    min-width: 0;
    background: transparent;
  }

  .firma-baslik {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
    margin-bottom: 0.75rem;
    border: 1px solid #d6e6f7;
    border-left: 0;
    border-radius: 0.85rem;
    white-space: normal;
    box-shadow: 0 8px 24px rgba(21, 101, 192, .06);
  }

  .firma-baslik .sira-link {
    background: #fff;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #bbdefb;
    font-size: 0.75rem;
    text-decoration: none;
  }

  .firma-baslik .sira-link.aktif {
    background: var(--ana);
    border-color: var(--ana);
    color: #fff;
  }

  a.firma-satir {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.85rem;
    align-items: start;
    padding: 0.9rem 0.95rem;
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    white-space: normal;
    border: 1px solid #d6e6f7;
    border-left: 6px solid var(--vurgu);
    border-radius: 0.85rem;
    box-shadow: 0 8px 24px rgba(21, 101, 192, .06);
  }

  a.firma-satir:last-child {
    margin-bottom: 0;
    border-bottom: 1px solid #d6e6f7;
  }

  a.firma-satir .hucre {
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  a.firma-satir .hucre::before {
    content: attr(data-etiket);
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ana);
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 0.12rem;
  }

  a.firma-satir .hucre-firma {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--ana-koyu);
  }

  a.firma-satir .hucre-gun {
    font-weight: 700;
  }
}

@media (max-width: 767.98px) {
  html {
    font-size: 14px;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .h4 {
    font-size: 1.15rem;
  }

  .form-control,
  .form-select,
  .btn,
  .form-label,
  .form-check-label {
    font-size: 0.875rem;
  }

  .nav-kullanici {
    display: block;
    margin: 0.5rem 0;
  }
}

@media (min-width: 576px) {
  .sayfalama-bar {
    box-shadow: none;
    background: transparent;
    position: static;
  }
}
