/* Mass Video Downloader: personalizzazioni sopra Bootstrap 5.3 */

/* ---- layout a tutta altezza: sopra restano ferme intestazione/form/schede, sotto scorre solo il contenuto ---- */
.app {
  max-width: 960px;
  height: 100vh;
  height: 100dvh;
}
.tab-content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tab-content > .tab-pane.active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.pane-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
@media (max-height: 640px) {
  .app { height: auto; }
  .pane-scroll { overflow: visible; }
}

/* ---- elenco download ---- */
.job-title { word-break: break-word; }
/* barra di progresso con la percentuale all'interno */
.job-progress { position: relative; height: 1.35rem; font-size: .75rem; }
.job-progress-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--bs-body-color); pointer-events: none;
}
/* copia bianca del testo, ritagliata sulla parte colorata: leggibile sia sul riempimento sia sullo sfondo */
.job-progress-label.on-fill { color: #fff; }
.job-progress-label.on-fill.dark { color: #212529; }
.job .fname { word-break: break-all; }
.empty-state { color: var(--bs-secondary-color); text-align: center; padding: 1.75rem 0; }

/* ---- selettore cartelle ---- */
#fbList { min-height: 8rem; }
#fbList .list-group-item { cursor: pointer; }

/* ---- splash screen (sempre scura, come quella dell'app desktop) ---- */
#splash {
  position: fixed; inset: 0; z-index: 2000;
  background: #121218;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .45s ease;
}
#splash.out { opacity: 0; pointer-events: none; }
.sp-box {
  width: min(480px, 92vw);
  background: #121218;
  border: 1px solid #6366f1;
  opacity: 0;
  animation: sp-in .5s ease forwards;
}
.sp-box img { display: block; width: 100%; height: auto; }
.sp-bottom { padding: 8px 16px 12px; }
.sp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: #8c95a3; }
.sp-bar { height: 4px; background: #1c1c26; margin-top: 6px; }
.sp-bar i { display: block; height: 100%; width: 0; background: #6366f1; transition: width .35s ease; }
@keyframes sp-in { from { opacity: 0; } to { opacity: 1; } }

/* ---- dettagli ---- */
.app code {
  color: var(--bs-emphasis-color);
  background: var(--bs-tertiary-bg);
  padding: .1rem .4rem;
  border-radius: .25rem;
}
.tabs-compact .nav-link { white-space: nowrap; }
@media (max-width: 575.98px) {
  .tabs-compact .nav-link { padding: .5rem .6rem; font-size: .875rem; }
}
