/* =========================================================
   PERF MODU (Animasyon / Geçişleri Kapat)
   Amaç: FPS drop yaşamamak, arayüzü “fişek” yapmak.

   Not:
   - Tailwind "transition"/"duration" sınıfları kalsa bile aşağıdaki
     global override sayesinde hiçbir animasyon/geçiş çalışmaz.
   - Smooth scroll kapalı.
   ========================================================= */

/* Smooth scroll kapat */
html { scroll-behavior: auto !important; }

/* Tüm animasyon ve geçişleri kapat */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

/* Tarayıcı motion tercihini de saygıyla ez */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* İsteğe bağlı: bazı tarayıcılarda "smooth" scroll JS ile açılmışsa bile
   anlık kaydırma için */
body { scroll-behavior: auto !important; }

/* =========================================================
   KIOSK MODU (Tam ekran / Büyük yazı)
   ========================================================= */

.status-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 9999px;
  background: rgba(255,255,255,0.85);
  color: rgba(0,0,0,0.75);
}
.status-chip b{ color: rgba(0,0,0,0.85); }
.status-chip.chip-ok{ border-color: rgba(16,185,129,0.35); background: rgba(16,185,129,0.10); }
.status-chip.chip-warn{ border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.10); }

body.kiosk-mode{
  background-image: none !important;
  background: #f8fafc !important;
  font-size: 18px;
}

/* İç container tam genişlik */
body.kiosk-mode .max-w-7xl{
  max-width: 100% !important;
}

/* Header sabit kalsın */
body.kiosk-mode .app-header{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px !important;
}

/* Büyük hızlı giriş */
body.kiosk-mode #quickPlateInput{
  font-size: 26px;
  padding-top: 14px;
  padding-bottom: 14px;
}
body.kiosk-mode #quickStatusRow{
  font-size: 14px;
}

/* Kiosk'ta gereksiz menüleri biraz sadeleştir */
body.kiosk-mode details{
  display: none !important;
}
body.kiosk-mode #raporlarDropdownToggle,
body.kiosk-mode #issuesDashboardButton{
  display: none !important;
}

/* Kartları büyüt */
body.kiosk-mode #vehicleList{
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  gap: 10px !important;
}
body.kiosk-mode .vehicle-card{
  padding: 14px !important;
}
body.kiosk-mode .vehicle-card h3{
  font-size: 26px !important;
}
.btn{
  font-size: 18px !important;
  padding: 12px 20px !important;
}

/* =========================================================
   ÜST MENÜ BUTONLARI - .btn-github
   (Yeni Kayıt / Raporlar / Sorunlar / Takip Formu / Çıkış)
   ========================================================= */
.btn-github {
  cursor: pointer;
  display: flex;
  gap: 0.5rem;
  border: none;
  white-space: normal;
  overflow-wrap: anywhere;
  flex-shrink: 1;
  min-width: 0;

  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  border-radius: 100px;
  font-weight: 800;
  place-content: center;

  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.1;

  background-color: #000000;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.btn-github:hover {
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 0 0 1px rgba(252, 232, 3, 0.24);
  color: #fce803;
  transform: translate(0, -0.25rem);
  background-color: #020617;
}

.report-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.1;
  min-height: 2.4rem;
  white-space: nowrap;
  transition: background-color 150ms ease, transform 150ms ease;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.report-action-btn:hover {
  transform: translateY(-1px);
}

.copyRowBtn {
  background: #059669;
  color: #ffffff;
}

.copyExcelBtn {
  background: #10b981;
  color: #ffffff;
}

.reprintBtn {
  background: #2563eb;
  color: #ffffff;
}

.deleteRowBtn {
  background: #dc2626;
  color: #ffffff;
}

.selectRowChk {
  width: 1rem;
  height: 1rem;
  accent-color: #2563eb;
}

/* Keep action buttons inline and avoid wrapping */
#tbody td > .flex {
  flex-wrap: nowrap;
}

/* =========================================================
   SESSION EXPIRED MODAL - Merkezi, Büyük, Unescapable
   ========================================================= */
.session-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Override perf mode animations for modal */
  animation: fadeInModal 300ms ease-out !important;
  transition: opacity 300ms ease-out !important;
}

@keyframes fadeInModal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.session-modal-box {
  background: white;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  animation: slideUpModal 300ms ease-out !important;
  transition: transform 300ms ease-out !important;
}

@keyframes slideUpModal {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.session-modal-icon {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1;
}

.session-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.session-modal-text {
  font-size: 16px;
  color: #64748b;
  margin: 0 0 30px 0;
  line-height: 1.6;
  font-weight: 400;
}

.session-modal-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  transition: all 300ms ease-out !important;
  min-width: 200px;
}

.session-modal-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
  transform: translateY(-2px);
}

.session-modal-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Responsiveness */
@media (max-width: 640px) {
  .session-modal-box {
    padding: 30px 20px;
    max-width: 90vw;
  }
  
  .session-modal-title {
    font-size: 20px;
  }
  
  .session-modal-text {
    font-size: 14px;
  }
  
  .session-modal-btn {
    font-size: 14px;
    padding: 12px 24px;
    min-width: auto;
    width: 100%;
  }
}
