/* ================================================
   SN TECH — thème professionnel File Browser
   ================================================ */

:root {
  --blue: #f26a1b;
  --dark-blue: #d9480f;
}

* { -webkit-font-smoothing: antialiased; }

/* Barres de défilement discrètes */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(242, 106, 27, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(242, 106, 27, 0.6); }

/* --- Barre supérieure --- */
header {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 12px rgba(0, 0, 0, 0.25);
}
header img {
  height: 2.4em;
  filter: drop-shadow(0 1px 3px rgba(217, 72, 15, 0.35));
}
#search { border-radius: 10px; }

/* --- Menu latéral --- */
nav .action {
  border-radius: 10px;
  margin: 0.15em 0.6em;
  transition: background 0.15s, color 0.15s;
}
nav .action:hover { background: rgba(242, 106, 27, 0.12); color: #f26a1b; }
nav .action:hover i { color: #f26a1b; }

/* Jauge d'espace utilisé → orange (styles inline à surcharger) */
.vue-simple-progress {
  background: rgba(242, 106, 27, 0.18) !important;
  border-radius: 6px !important;
}
.vue-simple-progress-bar {
  background: linear-gradient(90deg, #f7931e, #d9480f) !important;
  border-radius: 6px !important;
}
.credits { font-size: 0.85em; opacity: 0.85; }
.credits a { color: #f26a1b; }

/* White-label : on remplace la mention File Browser par la signature SN TECH */
p.credits { font-size: 0; padding-left: 1.4em; }
p.credits span { display: none; }
p.credits::after {
  content: "SN TECH Cloud © 2026";
  font-size: 12px;
  opacity: 0.55;
  letter-spacing: 0.06em;
}

/* --- Liste des fichiers --- */
#listing.list .item { border-radius: 10px; transition: background 0.12s; }
#listing .item:hover { background: rgba(242, 106, 27, 0.08); }
#listing.list .header span {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85em;
}

/* État vide */
.message { opacity: 0.75; }
.message i { color: #f26a1b; }

/* --- Boutons --- */
.button { border-radius: 8px; }

/* --- Page de connexion --- */
#login {
  background: radial-gradient(60em 30em at 50% -10%, rgba(242, 106, 27, 0.18), transparent 60%);
}
#login img {
  width: 8.5em;
  height: 8.5em;
  filter: drop-shadow(0 6px 24px rgba(217, 72, 15, 0.35));
}
#login h1 {
  color: #f26a1b;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.6em;
}
#login form {
  padding: 2em 1.8em;
  border-radius: 16px;
  border: 1px solid rgba(242, 106, 27, 0.25);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
#login input.input { border-radius: 10px; padding: 0.75em 1em; }
#login input.input:focus {
  border-color: #f26a1b;
  box-shadow: 0 0 0 3px rgba(242, 106, 27, 0.25);
}
#login .button {
  border-radius: 10px;
  padding: 0.8em;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #f7931e, #e8590c);
  border: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
#login .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 72, 15, 0.4);
}

/* ---------------------------------------------------
   Bouton flottant « Aide » — UNIQUEMENT sur la page de connexion
   (injecté par le proxy nginx via sub_filter ; masqué dans l'app)
   --------------------------------------------------- */
#sntech-aide { display: none; }
body:has(#login) #sntech-aide {
  display: inline-flex; align-items: center; gap: 7px;
  position: fixed; right: 22px; bottom: 22px; z-index: 99999;
  background: linear-gradient(135deg, #f7931e, #e8590c);
  color: #fff; text-decoration: none;
  font-family: "Segoe UI", system-ui, sans-serif; font-weight: 700; font-size: 14px;
  padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(217, 72, 15, 0.45);
  transition: transform 0.14s, box-shadow 0.14s, filter 0.14s;
}
body:has(#login) #sntech-aide:hover {
  transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: 0 14px 32px rgba(217, 72, 15, 0.55);
}
body:has(#login) #sntech-aide svg { width: 17px; height: 17px; }
