/* fs-admin-home.css — Unificado al Dark Skin (botones más grandes y centrados) */

:root{
  --fs-text:#E9EEF3;
  --fs-muted:#B8C2CC;
  --fs-invert:#0A0A0A;
  --fs-surface:#0F141A;
  --fs-surface-2:#121920;
  --fs-border:#1F2A33;
  --fs-radius:12px;
  --brand-primary:#0097CE;
  --brand-accent:#FF5B56;
  --fs-shadow:0 10px 28px rgba(0,0,0,.55);
  --fs-speed:240ms;
  --fs-ease:cubic-bezier(.16,1,.3,1);
}

/* ---------- CONTENEDOR ---------- */
#fs-admin-home{
  background: var(--fs-invert);
  color: var(--fs-text);
  padding:20px;
  border-radius: var(--fs-radius);
  box-sizing:border-box;
  border:1px solid var(--fs-border);
  box-shadow:0 6px 16px rgba(0, 96, 139,.24);
  font:14px "Poppins", system-ui;
}

.fsah-title{
  margin:8px 0 20px;
  color: var(--fs-text);
  font-weight:600;
  letter-spacing:.3px;
  font-size:26px;
  line-height:1.25;
}

.fsah-card{
  background: var(--fs-surface);
  border:1px solid var(--fs-border);
  border-radius: var(--fs-radius);
  padding:18px;
  margin-bottom:18px;
  box-shadow:0 6px 16px rgba(0, 96, 139,.24);
}

/* ---------- GRID ---------- */
.fsah-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:18px; }
.fsah-grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }

/* ---------- BOTONES (Aumentados) ---------- */
.fsah-btn{
  appearance:none;
  border:1px solid var(--fs-border);
  background: var(--fs-surface-2);
  color: var(--fs-text);
  border-radius:16px;
  padding:14px 22px;
  cursor:pointer;
  font:600 15px/1.25 "Poppins";
  transition:
    transform var(--fs-speed) var(--fs-ease),
    background var(--fs-speed) var(--fs-ease),
    border-color var(--fs-speed) var(--fs-ease),
    box-shadow var(--fs-speed) var(--fs-ease);
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  text-align:center;
  letter-spacing:.25px;
  min-height:54px;
}
.fsah-btn:hover{ background:#1b252f; transform:translateY(-2px); }

/* Tamaño grande (se usaba fsah-btn-lg en HTML) */
.fsah-btn-lg{
  font-size:16px;
  padding:16px 26px;
  min-height:60px;
  border-radius:20px;
}

/* Variante bloque (ancho completo) */
.fsah-btn-block{
  width:100%;
  display:flex;
  justify-content:center; /* Cambia a flex-start si lo quieres alineado a la izquierda */
  align-items:center;
  text-align:center;
}

/* Utilidades de alineación (usa en HTML si quieres cambiar rápidamente) */
.fs-btn-left { justify-content:flex-start !important; text-align:left !important; }
.fs-btn-center { justify-content:center !important; text-align:center !important; }
.fs-btn-right { justify-content:flex-end !important; text-align:right !important; }

.fsah-btn-primary{
  background: linear-gradient(180deg,#11c5ff,#0097CE);
  color:#fff;
  border-color:#0097CE;
  box-shadow:0 8px 24px rgba(0,151,206,.35);
}
.fsah-btn-primary:hover{ background:#00a8e4; }

.fsah-btn-secondary{
  background: linear-gradient(180deg,#ff7a74,#FF5B56);
  color:#fff;
  border-color:#FF5B56;
  box-shadow:0 8px 24px rgba(255,91,86,.35);
}
.fsah-btn-secondary:hover{ background:#ff6d68; }

.fsah-btn-accent{
  background: linear-gradient(180deg,#121a22,#0F141A);
  color: var(--brand-primary);
  border-color: var(--fs-border);
  box-shadow:0 6px 16px rgba(0, 96, 139,.18);
}
.fsah-btn-sm{
  padding:8px 14px;
  font-size:13px;
  min-height:42px;
  border-radius:12px;
}

.fsah-btn-link{
  background:transparent;
  border:none;
  color: var(--brand-primary);
  padding:0 4px;
  font-weight:600;
  cursor:pointer;
  font-size:14px;
  min-height:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.fsah-btn-link:hover{ text-decoration:underline; }

/* ---------- LOGO ---------- */
.fsah-logo{
  width:34px; height:34px;
  object-fit:cover; border-radius:10px;
  background: var(--fs-surface-2);
  border:1px solid var(--fs-border);
}

/* ---------- TOOLBAR / INPUTS ---------- */
.fsah-toolbar{ margin:12px 0 18px; }
.fsah-toolbar input[type="text"],
.fsah-toolbar input[type="email"],
#fs-admin-home input[type="text"],
#fs-admin-home input[type="email"],
#fs-admin-home select{
  width:100%; max-width:460px;
  background:#0E1319;
  color:var(--fs-text);
  border:1px solid var(--fs-border);
  border-radius:12px;
  padding:12px 16px;
  font:14px "Poppins";
  transition:border-color var(--fs-speed) var(--fs-ease), box-shadow var(--fs-speed) var(--fs-ease);
}
.fsah-toolbar input:focus,
#fs-admin-home select:focus{
  outline:none; border-color:var(--brand-primary);
  box-shadow:0 0 0 4px rgba(0,151,206,.18);
}
.fsah-toolbar label{ display:block; color:var(--fs-muted); font-size:13px; margin-bottom:6px; }

/* ---------- TABLAS ---------- */
.fsah-table-wrap{
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--fs-border);
  background: var(--fs-surface-2);
  box-shadow:0 8px 20px rgba(0, 96, 139,.28);
}
.fsah-table{
  width:100%; border-collapse:collapse;
  color:var(--fs-text); background:transparent; font-size:13.5px;
}
.fsah-table th,.fsah-table td{
  border-bottom:1px solid var(--fs-border);
  padding:12px 14px;
  text-align:left; vertical-align:middle;
}
.fsah-table th{
  background: linear-gradient(180deg,#111923,#0F141A);
  color:#D8E7F1; font-weight:600; font-size:12.5px; letter-spacing:.25px;
}
.fsah-table tbody tr:hover{ background: rgba(255,255,255,.04); }

/* ---------- EMPTY ---------- */
.fsah-empty{
  padding:14px;
  color:var(--fs-muted);
  background: var(--fs-surface-2);
  border:1px solid var(--fs-border);
  border-radius:12px; font-size:13px;
}

/* ---------- MODAL ---------- */
#fsah-edit-overlay{
  position:fixed; inset:0;
  z-index:9999;
  display:flex; align-items:flex-start; justify-content:center;
  padding:40px 16px;
  background: rgba(10,15,20,0.6);
  backdrop-filter: blur(6px);
}
.fsah-modal{
  width:100%; max-width:780px;
  border-radius:16px;
  background: var(--fs-surface);
  border:1px solid var(--fs-border);
  box-shadow:0 10px 28px rgba(0, 96, 139,.30);
  padding:24px;
}

/* ---------- BREADCRUMB ---------- */
.fsah-path-nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:10px 0 22px;
}
.fsah-bc-text{
  font:600 22px/1.15 "Poppins";
  color: var(--fs-text);
  cursor:pointer;
  padding:0;
  background:transparent;
  border:none;
  letter-spacing:.3px;
}
.fsah-bc-text:hover{ color: var(--brand-primary); text-decoration:underline; }
.fsah-bc-sep{ color:var(--fs-muted); opacity:.75; }
.fsah-bc-course{
  display: inline-flex;              /* asegura la misma alineación que un botón */
  align-items: center;
  background: linear-gradient(180deg,#11c5ff,#0097CE);
  border:1px solid #0097CE;
  color:#fff;
  border-radius:999px;
  padding:8px 18px;
  font:600 13px/1 "Poppins";
  box-shadow:0 8px 20px rgba(0,151,206,.35);
}
.fsah-bc-course[aria-current="page"]{ cursor: default; }

@media (max-width:560px){
  .fsah-grid-2{ grid-template-columns:1fr; }
  .fsah-bc-text{ font-size:18px; }
  .fsah-btn{ padding:12px 18px; font-size:14px; min-height:50px; }
  .fsah-btn-lg{ padding:14px 22px; font-size:15px; min-height:56px; }
}

/* ---------- AVISO LOGIN ---------- */
.fs-login-required{
  background: linear-gradient(180deg,#16232B 0%, #121920 100%);
  border:1px solid rgba(0,151,206,0.35);
  color:#bfe9ff;
  padding:14px 20px;
  border-radius:14px;
  font:600 15px/1.35 "Poppins";
  box-shadow:0 8px 22px rgba(0,151,206,.20);
  margin:0 0 18px;
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.fs-login-required::before{
  content:'🔒';
  display:inline-flex;
  font-size:18px;
  vertical-align:middle;
}
.fs-login-required > div{
  flex:1;
  min-width:220px;
}

@media (max-width:560px){
  .fs-login-required{ font-size:14px; padding:12px 16px; }
}
#fsah-create .fsah-breadcrumbs,
#fsah-view  .fsah-breadcrumbs,
#fsah-step-course-names .fsah-breadcrumbs,
#fsah-step-course-numbers .fsah-breadcrumbs,
#fsah-step-employees .fsah-breadcrumbs {
  margin-bottom: 24px; /* Ajusta aquí la distancia */
}

/* Si quieres asegurarte de que el <h3> no elimine esa sensación de espacio por colapsar márgenes,
   puedes forzar un margin-top dentro del contenedor (opcional): */
#fsah-create h3,
#fsah-view h3 {
  margin-top: 0.25rem; /* Pequeño margen propio para evitar que colapse con el breadcrumb */
}

/* ======= Edit User Modal (ordenado) ======= */
.fsah-edit-title{
  margin:0 0 18px;
  font:600 22px/1.2 "Poppins",system-ui;
  letter-spacing:.3px;
  color:var(--fs-text);
}
.fsah-edit-form{ display:block; width:100%; }
.fsah-edit-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(200px,1fr));
  gap:18px 22px;
  align-items:start;
  margin:0 0 22px;
}
@media (max-width:640px){
  .fsah-edit-grid{ grid-template-columns:1fr; gap:16px; }
}
.fsah-field{ display:flex; flex-direction:column; gap:6px; font-size:13px; }
.fsah-label{
  font:600 12px/1 "Poppins";
  letter-spacing:.5px;
  text-transform:uppercase;
  color:var(--fs-muted);
}
.fsah-edit-grid input,
.fsah-edit-grid select{
  background:#0E1319;
  border:1px solid var(--fs-border);
  border-radius:10px;
  padding:10px 12px;
  color:var(--fs-text);
  font:14px "Poppins";
  transition:border-color var(--fs-speed) var(--fs-ease), box-shadow var(--fs-speed) var(--fs-ease);
  width:100%;
  box-sizing:border-box;
}
.fsah-edit-grid input:focus,
.fsah-edit-grid select:focus{
  outline:none;
  border-color:var(--brand-primary);
  box-shadow:0 0 0 4px rgba(0,151,206,.18);
}
.fsah-edit-grid input[disabled]{ opacity:.65; cursor:not-allowed; }
.fsah-edit-actions{
  display:flex;
  gap:14px;
  padding:14px 0 0;
  border-top:1px solid var(--fs-border);
  flex-wrap:wrap;
}
.fsah-edit-actions .fsah-btn-primary{ min-width:140px; }
.fsah-edit-actions .fsah-btn-link{ align-self:center; }

/* Ajusta botones dentro del modal */
.fsah-modal .fsah-btn{
  min-height:46px;
  border-radius:14px;
}