/* TÜBİS — Enterprise Design System */
:root {
  --tuba-primary: #1e3a5f;
  --tuba-primary-hover: #2c5282;
  --tuba-bg: #f8fafc;
  --tuba-bg-subtle: #f1f5f9;
  --tuba-card: #ffffff;
  --tuba-text: #0f172a;
  --tuba-text-muted: #64748b;
  --tuba-border: #cbd5e1;
  --tuba-border-subtle: #e2e8f0;
  --tuba-radius: 12px;
  --tuba-radius-sm: 8px;
  --tuba-radius-lg: 16px;
  /* Enterprise shadows — soft, layered */
  --tuba-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --tuba-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --tuba-shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --tuba-shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  /* Transitions — Framer Motion–like easing */
  --tuba-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tuba-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --tuba-duration: 0.3s;
  --tuba-duration-slow: 0.5s;
  /* Hareket — ürün hissi (senior motion) */
  --tubis-motion-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --tubis-motion-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --tubis-motion-quick: 0.22s;
  --tubis-motion-medium: 0.45s;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 17px;
  }
}

/* Geniş ekran: gövde metni bir tık daha rahat */
@media (min-width: 1200px) {
  html {
    font-size: 17.5px;
  }
}

body {
  margin: 0;
  color: var(--tuba-text);
}

/* Sayfa içeriği — bloklar sırayla yükselir (FOUC yok; nth-child saf CSS) */
@keyframes tubis-reveal-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.tubis-page-content > * {
  animation: tubis-reveal-rise var(--tubis-motion-medium) var(--tubis-motion-enter) backwards;
}

.tubis-page-content > *:nth-child(1) {
  animation-delay: 0.02s;
}
.tubis-page-content > *:nth-child(2) {
  animation-delay: 0.07s;
}
.tubis-page-content > *:nth-child(3) {
  animation-delay: 0.12s;
}
.tubis-page-content > *:nth-child(4) {
  animation-delay: 0.17s;
}
.tubis-page-content > *:nth-child(5) {
  animation-delay: 0.22s;
}
.tubis-page-content > *:nth-child(6) {
  animation-delay: 0.27s;
}
.tubis-page-content > *:nth-child(7) {
  animation-delay: 0.32s;
}
.tubis-page-content > *:nth-child(8) {
  animation-delay: 0.37s;
}
.tubis-page-content > *:nth-child(9) {
  animation-delay: 0.41s;
}
.tubis-page-content > *:nth-child(10) {
  animation-delay: 0.44s;
}
.tubis-page-content > *:nth-child(11) {
  animation-delay: 0.47s;
}
.tubis-page-content > *:nth-child(12) {
  animation-delay: 0.5s;
}
.tubis-page-content > *:nth-child(13) {
  animation-delay: 0.53s;
}
.tubis-page-content > *:nth-child(14) {
  animation-delay: 0.56s;
}
.tubis-page-content > *:nth-child(15) {
  animation-delay: 0.59s;
}
.tubis-page-content > *:nth-child(16) {
  animation-delay: 0.62s;
}

/* Odak stilleri — erişilebilirlik */
.btn:focus-visible,
.form-control:focus-visible,
.form-select:focus-visible,
.form-check-input:focus-visible {
  outline: 2px solid var(--tuba-primary);
  outline-offset: 2px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tuba-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}

.tubis-tl-kurus-group .tubis-tl-input {
  flex: 1 1 auto;
  min-width: 0;
}

.tubis-tl-kurus-group .tubis-kurus-input {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  max-width: 2.75rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: center;
}

.tubis-tl-kurus-group > .input-group-text {
  flex: 0 0 auto;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.tubis-section-title {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--tuba-text);
  margin-bottom: 0.75rem;
}

.text-tuba { color: var(--tuba-primary); }
.bg-tuba { background-color: var(--tuba-primary); }

/* Modal açıkken bildirim/tooltip katmanları arkada kalmasın */
.toast-container,
.toast,
.tooltip,
.popover {
  z-index: 20000 !important;
}

/* Bootstrap toast container modal üstünde sabit kalsın */
.toast-container {
  position: fixed !important;
  top: 1rem;
  right: 1rem;
}

/* Modal açıkken toast bildirimi modal içinde net görünsün */
.toast-container.tubis-toast-in-modal {
  position: absolute !important;
  top: 0.75rem;
  right: 0.75rem;
}

/* DataTables copy/info bildirimi modal üstünde net görünsün */
div.dt-button-info {
  z-index: 20001 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Login (sv-*) */
.sv-login-page {
  min-height: 100vh;
  margin: 0;
  background: #0b1326;
  color: #dae2fd;
  font-family: "Inter", sans-serif;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

.sv-login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.sv-login-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.477-27.14 47.008-27.14-47.008.83-.477L28.317 45.454 54.627 0zM28.317 60L1.177 12.992l-.83.477L28.317 60l27.97-46.531-.83-.477L28.317 60z' fill='%23dae2fd' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.sv-glow {
  position: absolute;
  border-radius: 50%;
  background: #c0001a;
  filter: blur(100px);
}

.sv-glow-left {
  width: 520px;
  height: 520px;
  left: -14%;
  bottom: -20%;
  opacity: 0.08;
}

.sv-glow-right {
  width: 460px;
  height: 460px;
  right: -12%;
  top: -16%;
  opacity: 0.05;
}

.sv-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 44px;
  background: rgba(11, 19, 38, 0.8);
  backdrop-filter: blur(16px);
}

.sv-brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  letter-spacing: 0.2px;
}

.sv-security-icon {
  color: #c0001a;
  font-variation-settings: "FILL" 1;
}

.sv-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 42px 16px 24px;
}

.sv-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.sv-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(6, 14, 32, 0.7);
  border: 1px solid rgba(92, 63, 61, 0.35);
  padding: 6px;
}

.sv-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  letter-spacing: 1px;
}

.sv-card {
  width: min(100%, 420px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px -15px rgba(192, 0, 26, 0.2);
  position: relative;
  overflow: hidden;
}

.sv-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #c0001a;
}

.sv-card-body {
  padding: 34px;
}

.sv-card-title {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
}

.sv-card-subtitle {
  margin: 0 0 20px;
  color: #e6bdb9;
  font-size: 0.86rem;
}

.sv-form {
  display: grid;
  gap: 18px;
}

.sv-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #e6bdb9;
  font-weight: 500;
}

.sv-input-wrap {
  position: relative;
}

.sv-input-icon,
.sv-input-icon-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #e6bdb9;
  font-size: 18px;
  pointer-events: none;
}

.sv-input-icon {
  left: 12px;
}

.sv-input-icon-right {
  right: 12px;
}

.sv-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #e6bdb9;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.sv-password-toggle:hover {
  color: #f1f5f9;
}

.sv-input {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(92, 63, 61, 0.5);
  background: rgba(6, 14, 32, 0.45);
  color: #dae2fd;
  padding: 10px 12px 10px 40px;
  font-size: 0.9rem;
}

.sv-input-password {
  padding-right: 40px;
}

.sv-input::placeholder {
  color: #ad8885;
}

.sv-input:focus {
  outline: none;
  border-color: rgba(192, 0, 26, 0.6);
  box-shadow: 0 0 0 2px rgba(192, 0, 26, 0.14);
}

.sv-forgot-wrap {
  display: flex;
  justify-content: flex-end;
}

.sv-remember-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  padding: 0.25rem 0.35rem;
  border-radius: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.sv-remember-check {
  width: 17px;
  height: 17px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(230, 189, 185, 0.65);
  border-radius: 5px;
  background: rgba(6, 14, 32, 0.5);
  display: inline-grid;
  place-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.sv-remember-check::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.16s ease;
  background: linear-gradient(180deg, #f2485f 0%, #c0001a 100%);
  box-shadow: 0 0 10px rgba(192, 0, 26, 0.45);
}

.sv-remember-check:checked {
  border-color: #c0001a;
  background: rgba(192, 0, 26, 0.14);
}

.sv-remember-check:checked::after {
  transform: scale(1);
}

.sv-remember-check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 0, 26, 0.28);
}

.sv-remember-text {
  font-size: 0.8rem;
  color: #e6bdb9;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.sv-remember-wrap:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sv-remember-wrap:hover .sv-remember-text {
  color: #f3d8d4;
}

.sv-forgot-link {
  color: #94a3b8;
  font-size: 0.72rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.sv-forgot-link:hover {
  color: #f1f5f9;
  text-decoration: underline;
}

.sv-submit-btn {
  border: none;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(180deg, #c0001a 0%, #8a0013 100%);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 22px rgba(192, 0, 26, 0.3);
}

.sv-submit-btn:hover {
  box-shadow: 0 0 15px rgba(192, 0, 26, 0.4);
}

/* Footer */
.footer {
  position: relative;
  background: #0f172a;
  color: #cbd5e1;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-logo {
  height: 28px;
  width: auto;
  max-width: 150px;
}

.footer-copyright {
  color: #94a3b8;
}

.footer-info-item {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-contact-link {
  color: #93c5fd;
}

.footer-contact-link:hover {
  color: #bfdbfe;
}

.footer-social-icon {
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  transition: all 0.2s ease;
}

.footer-social-icon:hover {
  color: #fff;
  border-color: #93c5fd;
}

/* ——— Uygulama kabuğu — Aurora dock: kinetik gökyüzü + asimetrik cam panel ——— */
.sv-app-shell {
  --sv-app-accent: #c0001a;
  --sv-app-header-bg: rgba(11, 19, 38, 0.92);
  /* İçerik yüzeyi: hafif açık ton — ferah, okunaklı */
  --sv-app-surface-top: #f8fafc;
  --sv-app-surface-mid: #f2f5fb;
  --sv-app-surface-bottom: #ebf0f8;
  --tubis-panel-radius: 1.25rem;
}

body.tubis-body.sv-app-shell {
  --tubis-sticky-thead-offset: 4.5rem;
  position: relative;
  background-color: #030712;
  color: var(--tuba-text);
  line-height: 1.58;
}

@media (max-width: 991.98px) {
  body.tubis-body.sv-app-shell {
    --tubis-sticky-thead-offset: 5.75rem;
  }
}

/* Katman 1: yıldız tozu + yavaş akan aurora şeridi */
body.tubis-body.sv-app-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.35) 50%, transparent 52%),
    radial-gradient(1px 1px at 78% 65%, rgba(255, 255, 255, 0.2) 50%, transparent 52%),
    radial-gradient(1px 1px at 42% 88%, rgba(255, 255, 255, 0.28) 50%, transparent 52%),
    radial-gradient(1px 1px at 92% 38%, rgba(255, 255, 255, 0.18) 50%, transparent 52%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.477-27.14 47.008-27.14-47.008.83-.477L28.317 45.454 54.627 0zM28.317 60L1.177 12.992l-.83.477L28.317 60l27.97-46.531-.83-.477L28.317 60z' fill='%2389a8ff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E"),
    linear-gradient(
      125deg,
      rgba(6, 12, 28, 0.97) 0%,
      rgba(11, 22, 48, 0.92) 35%,
      rgba(20, 35, 65, 0.88) 55%,
      rgba(8, 18, 38, 0.95) 100%
    ),
    linear-gradient(
      105deg,
      transparent 0%,
      rgba(56, 189, 248, 0.09) 42%,
      rgba(192, 0, 26, 0.07) 58%,
      transparent 100%
    );
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    60px 60px,
    100% 100%,
    240% 240%;
  background-position:
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0 0,
    0% 50%;
  animation: tubis-shell-aurora-shift 28s ease-in-out infinite alternate;
}

/* Katman 2: yüzen renk orb’ları + vignette (dar çerçevede daha okunaklı kontrast) */
body.tubis-body.sv-app-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 42% at 8% 92%, rgba(192, 0, 26, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 48% 38% at 94% 8%, rgba(56, 189, 248, 0.2) 0%, transparent 52%),
    radial-gradient(ellipse 45% 35% at 72% 48%, rgba(99, 102, 241, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3, 7, 18, 0.42) 0%, transparent 22%, transparent 78%, rgba(3, 7, 18, 0.52) 100%);
  opacity: 1;
}

@keyframes tubis-shell-aurora-shift {
  0% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0% 40%;
  }
  100% {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      30px 20px,
      0 0,
      100% 60%;
  }
}

body.tubis-body.sv-app-shell > main.tubis-main {
  margin-top: clamp(0.65rem, 2vw, 1rem);
  margin-left: max(0.28rem, env(safe-area-inset-left));
  margin-right: max(0.28rem, env(safe-area-inset-right));
  position: relative;
  z-index: 1;
  background: linear-gradient(
    168deg,
    var(--sv-app-surface-top) 0%,
    var(--sv-app-surface-mid) 44%,
    var(--sv-app-surface-bottom) 100%
  );
  border-radius: var(--tubis-panel-radius);
  border: 1px solid rgba(255, 255, 255, 0.38);
  /* Dar şeritte çerçeve öne çıksın: koyu dış halka + ince vurgu */
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.85),
    0 0 0 3px rgba(56, 189, 248, 0.45),
    0 0 0 5px rgba(3, 7, 18, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.06) inset,
    0 -28px 70px -38px rgba(56, 189, 248, 0.38),
    0 -18px 44px -32px rgba(192, 0, 26, 0.26),
    0 -4px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  /* Üst boşluk (margin-top) + kabaca header yüksekliği */
  min-height: calc(100vh - 5.5rem - clamp(0.65rem, 2vw, 1rem));
}

body.tubis-body.sv-app-shell > main.tubis-main::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 4%;
  right: 4%;
  top: -5px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(192, 0, 26, 0.65) 18%,
    rgba(255, 255, 255, 0.72) 48%,
    rgba(56, 189, 248, 0.65) 72%,
    transparent 100%
  );
  filter: blur(2px);
  opacity: 0.92;
  pointer-events: none;
}

/* Panel yan boşlukları — dar tutarak ferah, geniş içerik / tablo alanı */
@media (min-width: 768px) {
  body.tubis-body.sv-app-shell > main.tubis-main {
    margin-left: max(0.55rem, env(safe-area-inset-left));
    margin-right: max(0.55rem, env(safe-area-inset-right));
  }
}

@media (min-width: 992px) {
  body.tubis-body.sv-app-shell > main.tubis-main {
    margin-left: max(0.85rem, env(safe-area-inset-left));
    margin-right: max(0.95rem, env(safe-area-inset-right));
    --tubis-panel-radius: 1.35rem;
  }
}

@media (min-width: 1200px) {
  body.tubis-body.sv-app-shell > main.tubis-main {
    margin-left: max(1.05rem, env(safe-area-inset-left));
    margin-right: max(1.25rem, env(safe-area-inset-right));
  }
}

@media (min-width: 1600px) {
  body.tubis-body.sv-app-shell > main.tubis-main {
    margin-left: max(1.3rem, env(safe-area-inset-left));
    margin-right: max(1.55rem, env(safe-area-inset-right));
    --tubis-panel-radius: 1.45rem;
  }
}

/* Çok geniş ekran: panel üst sınırı — daha geniş “ferah” düzen (üye listesi vb.) */
@media (min-width: 1400px) {
  body.tubis-body.sv-app-shell > main.tubis-main {
    max-width: 1680px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.tubis-body.sv-app-shell::before {
    animation: none !important;
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      50% 50% !important;
  }
}

body.tubis-body.sv-app-shell .tubis-main .tubis-page-content {
  position: relative;
  z-index: 1;
}

/* Kabuk içi: varsayılan container-xxl (~1320px) yerine panel ile uyumlu geniş içerik — üye listesi vb. */
@media (min-width: 1200px) {
  body.tubis-body.sv-app-shell > main.tubis-main .tubis-page-content.container-xxl {
    max-width: min(100%, 1640px);
  }
}

.sv-app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--sv-app-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition:
    box-shadow 0.4s var(--tubis-motion-soft),
    background 0.4s var(--tubis-motion-soft);
}

.sv-app-header.sv-app-header--scrolled {
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.38);
  background: rgba(6, 12, 26, 0.97);
  border-bottom-color: rgba(148, 163, 184, 0.16);
}

.sv-app-header-accent {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(192, 0, 26, 0.4) 18%,
    #e0203a 50%,
    rgba(192, 0, 26, 0.4) 82%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: tubis-accent-sheen 7s ease-in-out infinite;
}

@keyframes tubis-accent-sheen {
  0%,
  100% {
    background-position: 0% 50%;
    opacity: 0.9;
  }
  50% {
    background-position: 100% 50%;
    opacity: 1;
  }
}

.sv-app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0.65rem 1.25rem;
  margin: 0 auto;
  max-width: 1680px;
}

.sv-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #f1f5f9;
  transition:
    transform 0.4s var(--tubis-motion-enter),
    opacity 0.2s ease,
    color 0.2s ease;
  min-width: 0;
}

.sv-app-brand:hover {
  color: #f8fafc;
  opacity: 0.98;
  transform: translateY(-1px);
}

.sv-app-brand:hover .sv-app-brand-sub {
  color: #cbd5e1;
}

.sv-app-brand-logo {
  height: 42px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
  transition: transform 0.45s var(--tubis-motion-enter);
}

.sv-app-brand:hover .sv-app-brand-logo {
  transform: scale(1.04);
}

.sv-app-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
}

.sv-app-brand-mark {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.sv-app-brand-sub {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #94a3b8;
  line-height: 1.2;
  max-width: 14rem;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .sv-app-brand-sub {
    letter-spacing: 0.12em;
    font-size: 0.58rem;
  }
}

.sv-app-toggler {
  display: none;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(248, 250, 252, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  line-height: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sv-app-toggler:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(192, 0, 26, 0.45);
  color: #fff;
}

.sv-app-toggler .material-symbols-outlined {
  font-size: 1.5rem;
}

.sv-app-header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.sv-app-nav-collapse {
  flex: 1;
  min-width: 0;
}

.sv-app-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.15rem;
  justify-content: center;
}

.sv-app-link {
  padding: 0.45rem 0.85rem;
  border-radius: 10px;
  color: #d1dae6;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  white-space: nowrap;
}

.sv-app-link:hover {
  color: #ffffff;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.22) 0%,
    rgba(14, 165, 233, 0.14) 100%
  );
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
  transform: translateY(-1px);
}

.sv-app-link.active {
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(180deg, #d8112c 0%, #9a0016 100%);
  box-shadow:
    0 0 0 2px rgba(255, 180, 190, 0.45),
    0 4px 18px rgba(192, 0, 26, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
}

.sv-app-link.active:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #e81836 0%, #b0001c 100%);
  box-shadow:
    0 0 0 2px rgba(255, 200, 208, 0.55),
    0 6px 22px rgba(192, 0, 26, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.sv-app-link i {
  opacity: 0.95;
  font-size: 0.92em;
}

.sv-app-link.active i {
  opacity: 1;
}

.sv-app-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.45rem;
}

.sv-app-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(248, 250, 252, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sv-app-user-btn:hover,
.sv-app-user-btn:focus,
.sv-app-user-btn.show {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(192, 0, 26, 0.45);
  color: #f8fafc;
}

.sv-app-user-btn::after {
  margin-left: 0.2rem;
  vertical-align: 0.12em;
  border-top-color: rgba(226, 232, 240, 0.75);
}

.sv-app-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c0001a 0%, #8a0013 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sv-app-user-label {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sv-app-user-menu {
  min-width: 220px;
  padding: 0.5rem;
  border-radius: 12px;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sv-app-user-menu-label {
  color: #94a3b8 !important;
}

.sv-app-dropdown-divider {
  border-color: rgba(148, 163, 184, 0.2);
}

.sv-app-dropdown-item {
  color: #e2e8f0 !important;
  border-radius: 8px;
  font-size: 0.9rem;
}

.sv-app-dropdown-item:hover,
.sv-app-dropdown-item:focus {
  background: rgba(192, 0, 26, 0.15) !important;
  color: #fff !important;
}

.sv-app-user-menu .dropdown-item-text {
  padding: 0.35rem 0.75rem;
}

/* Bootstrap collapse: geniş ekranda yatay menü */
@media (min-width: 992px) {
  .sv-app-toggler {
    display: none !important;
  }

  #tubisNavCollapse.collapse {
    display: flex !important;
    flex: 1;
    visibility: visible;
    height: auto !important;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  #tubisNavCollapse .sv-app-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 991.98px) {
  .sv-app-header-end {
    margin-left: auto;
  }

  .sv-app-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .sv-app-nav-collapse {
    width: 100%;
    flex-basis: 100%;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
  }

  .sv-app-nav-collapse .sv-app-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .sv-app-link {
    white-space: normal;
    padding: 0.6rem 0.85rem;
  }
}

@media (max-width: 992px) {
  .sv-topbar {
    padding: 18px 16px;
  }

  .sv-brand {
    font-size: 1.5rem;
  }

  .sv-main {
    padding-top: 24px;
  }

  .sv-card-body {
    padding: 24px 18px;
  }
}

/* ——— Ürün kalitesi: mikro-etkileşimler & derinlik (ana gövde) ——— */
body.tubis-body.sv-app-shell .tubis-main .btn:not(.dropdown-toggle) {
  transition:
    transform var(--tubis-motion-quick) var(--tubis-motion-enter),
    box-shadow 0.22s var(--tubis-motion-soft),
    background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

body.tubis-body.sv-app-shell .tubis-main .btn:active:not(:disabled):not(.disabled):not(.dropdown-toggle) {
  transform: scale(0.98);
}

body.tubis-body.sv-app-shell .tubis-main .card:not(.tubis-table-card) {
  transition:
    transform 0.4s var(--tubis-motion-enter),
    box-shadow 0.4s var(--tubis-motion-soft),
    border-color 0.3s ease;
}

body.tubis-body.sv-app-shell .tubis-main .card:not(.tubis-table-card):hover {
  transform: translate3d(0, -3px, 0);
  box-shadow:
    0 16px 40px -12px rgba(15, 23, 42, 0.14),
    0 6px 16px -6px rgba(15, 23, 42, 0.08);
}

body.tubis-body.sv-app-shell .tubis-main .tubis-welcome {
  transition:
    transform 0.4s var(--tubis-motion-enter),
    box-shadow 0.4s var(--tubis-motion-soft);
}

body.tubis-body.sv-app-shell .tubis-main .tubis-welcome:hover {
  transform: translate3d(0, -2px, 0);
}

body.tubis-body.sv-app-shell .tubis-main .form-control,
body.tubis-body.sv-app-shell .tubis-main .form-select {
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.sv-app-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.85);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .tubis-page-content > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .sv-app-header-accent {
    animation: none !important;
    background-size: 100% 100%;
    opacity: 1;
  }

  .sv-app-header,
  .sv-app-brand,
  .sv-app-brand-logo,
  body.tubis-body.sv-app-shell .tubis-main .btn,
  body.tubis-body.sv-app-shell .tubis-main .card:not(.tubis-table-card),
  body.tubis-body.sv-app-shell .tubis-main .tubis-welcome {
    transition-duration: 0.01ms !important;
  }

  .sv-app-link:hover {
    transform: none !important;
  }

  .sv-app-brand:hover,
  .sv-app-brand:hover .sv-app-brand-logo {
    transform: none !important;
  }

  body.tubis-body.sv-app-shell .tubis-main .card:not(.tubis-table-card):hover,
  body.tubis-body.sv-app-shell .tubis-main .tubis-welcome:hover {
    transform: none !important;
  }

  body.tubis-body.sv-app-shell .tubis-main .btn:active:not(:disabled) {
    transform: none !important;
  }

  .tubis-table-card .table:not(.tubis-table-premium) tbody tr:hover {
    transform: none !important;
  }

  .tubis-table-card .table.tubis-table-premium tbody tr,
  .tubis-table-card .table.tubis-table-premium tbody tr:hover {
    transform: none !important;
  }

  .sv-app-header {
    transition: none !important;
  }
}
