:root {
  --gensa-bg: #070b12;
  --gensa-navy: #0b1220;
  --gensa-card: rgba(12, 18, 28, 0.78);
  --gensa-line: rgba(212, 175, 55, 0.28);
  --gensa-gold: #d4af37;
  --gensa-gold-2: #f0d78c;
  --gensa-text: #e8eef6;
  --gensa-muted: #9aa8b8;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--gensa-bg);
  color: var(--gensa-text);
}

body.authed {
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(30, 64, 120, 0.28), transparent 55%),
    var(--gensa-bg);
}

.app-watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("../img/gensalogin.png") center / cover no-repeat;
  opacity: 0.09;
  filter: saturate(0.7);
}

body.authed > nav,
body.authed > main,
body.authed > footer {
  position: relative;
  z-index: 1;
}

.navbar-gensa {
  background: rgba(6, 10, 16, 0.92);
  border-bottom: 1px solid var(--gensa-line);
  backdrop-filter: blur(12px);
}

.navbar-gensa .navbar-brand {
  color: var(--gensa-gold-2) !important;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.95rem;
}

.brand-sub {
  display: block;
  letter-spacing: 0.28em;
  font-size: 0.55rem;
  color: var(--gensa-muted);
  text-transform: uppercase;
}

.brand-mark {
  width: 10px;
  height: 28px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gensa-gold-2), var(--gensa-gold));
}

.navbar-gensa .nav-link {
  color: #c5d0dc !important;
  font-size: 0.92rem;
}

.navbar-gensa .nav-link:hover {
  color: var(--gensa-gold-2) !important;
}

.badge-role {
  background: transparent;
  border: 1px solid var(--gensa-line);
  color: var(--gensa-gold-2);
  font-weight: 500;
}

.btn-gold,
.btn-gensa {
  --bs-btn-color: #111;
  --bs-btn-bg: var(--gensa-gold);
  --bs-btn-border-color: var(--gensa-gold);
  --bs-btn-hover-bg: var(--gensa-gold-2);
  --bs-btn-hover-border-color: var(--gensa-gold-2);
  --bs-btn-hover-color: #111;
  font-weight: 600;
}

.btn-outline-gold {
  --bs-btn-color: var(--gensa-gold-2);
  --bs-btn-border-color: var(--gensa-gold);
  --bs-btn-hover-bg: var(--gensa-gold);
  --bs-btn-hover-color: #111;
}

.page-kicker {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gensa-gold);
}

.gensa-card {
  background: var(--gensa-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

.table-dark-gensa {
  --bs-table-bg: transparent;
  --bs-table-color: var(--gensa-text);
  --bs-table-border-color: rgba(255, 255, 255, 0.08);
  --bs-table-hover-bg: rgba(212, 175, 55, 0.08);
  color: var(--gensa-text);
}

.table-dark-gensa thead th {
  color: var(--gensa-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-control,
.form-select,
textarea.form-control {
  background: #e8eef5;
  border-color: #c3cedb;
  color: #121a24;
}

.form-control::placeholder,
.form-select::placeholder {
  color: #6d7c8c;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  background: #f6f8fb;
  border-color: var(--gensa-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.22);
  color: #121a24;
}

.form-control:disabled,
.form-select:disabled,
textarea.form-control:disabled {
  background: #cfd8e3;
  color: #3d4a58;
  opacity: 1;
}

.input-group-text {
  background: #d5dee8;
  border-color: #c3cedb;
  color: #1c2734;
  font-weight: 600;
}

.form-check-input {
  background-color: #e8eef5;
  border-color: #9aabbc;
}

.form-check-input:checked {
  background-color: var(--gensa-gold);
  border-color: var(--gensa-gold);
}

.login-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.login-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../img/gensalogin.png") center / cover no-repeat;
}

.login-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, 0.82) 0%, rgba(5, 8, 14, 0.35) 48%, rgba(5, 8, 14, 0.15) 100%),
    linear-gradient(180deg, rgba(5, 8, 14, 0.2), rgba(5, 8, 14, 0.55));
}

.login-hero__content {
  position: relative;
  z-index: 2;
}

.login-card {
  background: rgba(8, 12, 20, 0.62);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.login-kicker {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--gensa-gold-2);
}

.login-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.login-lead {
  color: var(--gensa-muted);
  margin-bottom: 0;
}

.login-input {
  border-radius: 0.65rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  display: inline-block;
}

.status-dot.offline {
  background: #f0a202;
}

.footer-muted {
  color: var(--gensa-muted);
}

.signature-pad {
  touch-action: none;
  background: #eef3f8;
  cursor: crosshair;
  border-color: #c3cedb !important;
}

.glass-alert {
  backdrop-filter: blur(8px);
}

code {
  font-size: 0.85em;
  color: var(--gensa-gold-2);
}

@media (max-width: 991.98px) {
  .login-hero__veil {
    background: linear-gradient(180deg, rgba(5, 8, 14, 0.35), rgba(5, 8, 14, 0.88) 55%);
  }
  .login-card {
    margin: 0 0.5rem 2rem;
  }
}

.app-watermark {
  opacity: 0.05;
}

.form-block {
  background: #182230;
  border: 1px solid rgba(240, 215, 140, 0.12);
  border-radius: 0.75rem;
  margin-bottom: 1.15rem;
  overflow: hidden;
}

.form-block__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 1rem;
  background: #0a1018;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-block__head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: #d4af37;
  color: #111;
  font-size: 0.8rem;
}

.form-block__body {
  padding: 1rem 1.1rem 1.15rem;
}

.subsplit {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .subsplit {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .subsplit > div {
    padding: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    background: #0c131c;
  }
}

.subsplit__title,
.check-col__title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #d4af37;
  margin-bottom: 0.7rem;
}

.check-col {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  .check-col:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 0;
  }
}

.check-item {
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.check-item:last-child {
  border-bottom: 0;
}

.gauge-bar {
  padding: 1rem 1.1rem 1.2rem;
  background: #0c131c;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sign-col {
  padding: 0.5rem 0.25rem;
}

@media (min-width: 768px) {
  .sign-col + .sign-col {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.25rem;
  }
}

.excel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  white-space: nowrap;
}

.excel-hd__btn {
  border: 0;
  background: transparent;
  color: #c5d0dc;
  padding: 0 0.15rem;
  line-height: 1;
}

.excel-hd__btn.is-on,
.excel-hd__btn:hover {
  color: #d4af37;
}

.excel-menu {
  position: absolute;
  z-index: 40;
  width: 220px;
  max-height: 280px;
  overflow: auto;
  padding: 0.6rem;
  background: #121a24;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.35rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.excel-menu label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.excel-menu__all {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.4rem;
  margin-bottom: 0.4rem;
}

.choice-card {
  display: block;
  max-width: 17.5rem;
  margin-inline: auto;
  padding: 0;
  background: #eef2f6;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1.15rem;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
  box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.28);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.choice-card img {
  display: block;
  width: 100%;
  height: auto;
}

.choice-card:hover {
  border-color: #f0d78c;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.36);
}

.mat-del {
  padding: 0.2rem 0.45rem;
}

.archive-toolbar {
  border: 1px solid rgba(240, 215, 140, 0.16);
}

.archive-table {
  border: 1px solid rgba(240, 215, 140, 0.14);
}

.archive-table thead th {
  background: rgba(8, 14, 22, 0.72);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.archive-table tbody td {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.archive-table tbody tr {
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.archive-table tbody tr[data-no]:hover {
  background: rgba(212, 175, 55, 0.1) !important;
}

.archive-no {
  color: var(--gensa-gold-2);
  font-variant-numeric: tabular-nums;
}

.excel-hd__btn {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.3rem;
  background: rgba(255, 255, 255, 0.06);
}

.excel-hd__btn.is-on {
  background: rgba(212, 175, 55, 0.22);
  color: #f0d78c;
}

.status-pill {
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.status-pill--taslak {
  background: #6d7682;
  color: #f3f5f7;
  border-color: #8a93a0;
}

.status-pill--gonderildi {
  background: #e4c44a;
  color: #1a1608;
  border-color: #c9ab2e;
}

.status-pill--incelendi {
  background: #7eb6e6;
  color: #0c2438;
  border-color: #5a9ad4;
}

.status-pill--tamamlandi {
  background: #3bb86a;
  color: #062414;
  border-color: #2d9a56;
}

.archive-actions .btn {
  min-width: 2.4rem;
}

.excel-menu {
  background: #1a2432;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.status-quick {
  min-width: 8.6rem;
  width: auto;
  max-width: 11rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.status-quick:focus {
  box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.25);
}

.status-quick--taslak,
.status-quick--taslak:focus {
  background: #6d7682;
  border-color: #8a93a0;
  color: #f3f5f7;
}

.status-quick--gonderildi,
.status-quick--gonderildi:focus {
  background: #e4c44a;
  border-color: #c9ab2e;
  color: #1a1608;
}

.status-quick--incelendi,
.status-quick--incelendi:focus {
  background: #7eb6e6;
  border-color: #5a9ad4;
  color: #0c2438;
}

.status-quick--tamamlandi,
.status-quick--tamamlandi:focus {
  background: #3bb86a;
  border-color: #2d9a56;
  color: #062414;
}
