html {
  font-size: 12px;
}

@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.navbar {
  padding-top: env(safe-area-inset-top);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

input[type="date"] {
  box-sizing: border-box;
  max-width: 100%;
}

/* ── Global Mobil Dokunma Geri Bildirimi ── */
/* .touching class JS ile touchstart anında eklenir, touchend'de 180ms sonra kaldırılır */
.touching,
button.touching,
a.touching,
.dashboard-card.touching,
.company-link.touching,
.nav-item.touching,
.menu-item.touching,
.btn.touching,
.back-btn.touching,
.modal-btn.touching,
.select-all-btn.touching,
.settings-link.touching,
.save-btn.touching,
.hamburger-btn.touching {
  transform: scale(0.93) !important;
  opacity: 0.80 !important;
  transition: transform 0.07s ease, opacity 0.07s ease !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
}


/* ── Global Resim Lightbox (img-zoomable) ───────────────────────────── */
/* Kullanım: <img class="img-zoomable" src="..."> */
.img-zoomable {
  cursor: zoom-in;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.img-zoomable:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
}

/* Overlay */
#imgLightboxOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lbFadeIn 0.22s ease;
}
#imgLightboxOverlay.open {
  display: flex;
}
#imgLightboxOverlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  object-fit: contain;
  animation: lbZoomIn 0.26s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}
#imgLightboxClose {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 100000;
  transition: background 0.15s;
}
#imgLightboxClose:hover { background: rgba(255,255,255,0.28); }

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes lbZoomIn {
  from { transform: scale(0.78); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
