/* ================================================================
   CTECH SERVICE PLATFORM — BASE.CSS
   Reset, body, global animasiyalar, mobil app davranışı
   Heç bir komponent stili yoxdur — yalnız təməl qaydalar
   ================================================================ */

/* ===== RESET & BODY ===== */
* { box-sizing:border-box; }
a { text-decoration:none; color:inherit; }
html,body { height:100%; margin:0; -webkit-text-size-adjust:100%; text-size-adjust:100%; overscroll-behavior-y:contain; }
body { min-height:100vh; background:#F4F8FD; background-image:radial-gradient(circle at 12% 8%,rgba(59,130,246,.10),transparent 45%),radial-gradient(circle at 90% 90%,rgba(78,147,250,.10),transparent 45%); font-family:'Inter',Arial,sans-serif; }

/* ===== QLOBAL ANİMASİYALAR ===== */
@keyframes spin    { to{ transform:rotate(360deg); } }
@keyframes popIn   { 0%{ transform:scale(.4); opacity:0; } 100%{ transform:scale(1); opacity:1; } }
@keyframes pulse   { 0%{ box-shadow:0 0 0 0 rgba(63,203,120,.5); } 70%{ box-shadow:0 0 0 6px rgba(63,203,120,0); } 100%{ box-shadow:0 0 0 0 rgba(63,203,120,0); } }
@keyframes warnToastIn { from{ transform:translateY(-14px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
@keyframes ctdPulse { 0%{ box-shadow:0 0 0 0 rgba(84,214,138,.55); } 70%{ box-shadow:0 0 0 6px rgba(84,214,138,0); } 100%{ box-shadow:0 0 0 0 rgba(84,214,138,0); } }

/* ===== MOBİL APP DAVRANIŞI ===== */

/* 300ms tıklama gecikməsini aradan qaldırır */
button, a, .card-big, .card-small, .icon-btn, .menu-item,
.bs-home-btn, .rpt-icon-btn, .dash-tab, [onclick]{
  touch-action:manipulation;
}

/* Toxunanda boz-flaş highlight effektini söndürür */
button, a, [onclick], .card-big, .card-small, .icon-btn{
  -webkit-tap-highlight-color:transparent;
}

/* Uzun basanda native kontekst menyu çıxmasın */
button, .icon-btn, .card-big, .card-small, .bs-home-btn, .rpt-icon-btn{
  -webkit-touch-callout:none;
}

/* Düymə/kart mətnləri təsadüfən seçilməsin */
button, .icon-btn, .card-big, .card-small, .menu-item, .dash-tab,
.rpt-icon-btn, .bs-home-btn, .header, .rpt-header, .bs-header{
  -webkit-user-select:none;
  user-select:none;
}

/* iOS-da momentum scroll */
.modal-box, .dash-modal-results, .dash-modal-left, .dash-modal-right{
  -webkit-overflow-scrolling:touch;
}

@media (max-width:900px){
  html, body{ overscroll-behavior:none; }
  #busServiceView, #tvmServiceView, #busBulkView,
  #busReportView, #tvmReportView, #busDetailView, #tvmDetailView,
  #busDashboardView{
    -webkit-overflow-scrolling:touch;
  }
}

/* ===== GECƏ/GÜNDÜZ DÜYMƏSİ — YALNIZ MOBİL ===== */
/* toggleTheme() funksiyası yalnız mobil (≤900px) üçündür, desktop-da işləmir.
   Bu düymələr desktop-da gizlədilir. */
@media (min-width:901px){
  #rptThemeBtn, #ongThemeBtn, #tvmRptThemeBtn, #dashThemeBtn, #bkThemeBtn{
    display:none !important;
  }
}
