/* =====================================================================
   FleetForce Brand Overrides
   Paleta:  #00144D navy  |  #01449B azul  |  #53DEF1 cyan  |  #FFFFFF
   Tipografia: Poppins (alternativa libre a Noopla)
   Este archivo se carga DESPUES de main.css para sobreescribir el tema.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root{
  --ff-navy:   #00144D;
  --ff-blue:   #01449B;
  --ff-cyan:   #53DEF1;
  --ff-white:  #FFFFFF;
  --ff-blue-dark: #012f6c;
  --ff-grad: linear-gradient(135deg, #01449B 0%, #00144D 100%);
  --ff-grad-bright: linear-gradient(135deg, #01449B 0%, #53DEF1 100%);
}

/* ---------- Tipografia ---------- */
body,
.btn, button, input, select, textarea,
p, a, span, li, td, th, label, div{
  font-family: 'Poppins', 'Montserrat', sans-serif;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6{
  font-family: 'Poppins', 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--ff-navy);
}

/* ---------- Enlaces ---------- */
a{ color: var(--ff-blue); }
a:hover, a:focus{ color: var(--ff-navy); }

/* ---------- Botones primarios (tema usa .btn-yellow) ---------- */
.btn-yellow,
.btn-primary{
  background: var(--ff-grad) !important;
  color: #fff !important;
  border: none !important;
}
.btn-yellow:hover,
.btn-primary:hover{
  background: var(--ff-cyan) !important;
  color: var(--ff-navy) !important;
}

/* Boton oscuro / secundario */
.btn-dark{
  background: var(--ff-navy) !important;
  color: #fff !important;
  border: none !important;
}
.btn-dark:hover{
  background: var(--ff-blue) !important;
  color: #fff !important;
}

/* Boton "Register" del header */
.nav-item.register > a.register,
a.nav-link.register{
  background: var(--ff-grad) !important;
  color: #fff !important;
  border-radius: 8px;
}
.nav-item.register > a.register:hover{
  background: var(--ff-cyan) !important;
  color: var(--ff-navy) !important;
}

/* ---------- Navegacion ---------- */
.navbar-nav .nav-item.active > .nav-link,
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus{
  color: var(--ff-blue) !important;
}

/* ---------- Foco de formularios ---------- */
.form-control:focus{
  border-color: var(--ff-blue) !important;
  box-shadow: 0 0 0 .15rem rgba(1, 68, 155, .20) !important;
}

/* ---------- Badges / etiquetas de acento ---------- */
.badge-primary, .bg-primary, .label-primary{
  background-color: var(--ff-blue) !important;
  color: #fff !important;
}
.text-primary{ color: var(--ff-blue) !important; }

/* ---------- Footer en navy de marca ---------- */
.footerWrap{
  background: var(--ff-grad) !important;
  color: rgba(255,255,255,.85);
}
.footerWrap h5{ color: #fff !important; }
.footerWrap a{ color: rgba(255,255,255,.80) !important; }
.footerWrap a:hover{ color: var(--ff-cyan) !important; }
.footerWrap .quicklinks li.active > a{ color: var(--ff-cyan) !important; }
.copyright{ background: var(--ff-navy) !important; color: rgba(255,255,255,.70); }
.copyright a{ color: var(--ff-cyan) !important; }

/* ---------- Logo en header ---------- */
.header .logo svg{ height: 40px; width: auto; display: block; }
.footerWrap .ff-footer-logo svg{ height: 38px; width: auto; }

/* ---------- Marketplace split (home) ---------- */
.ff-marketplace{ padding: 48px 0; background: #f4f7fb; }
.ff-marketplace-head{ text-align: center; margin-bottom: 28px; }
.ff-marketplace-head h2{ color: var(--ff-navy); font-weight: 800; margin-bottom: 6px; }
.ff-marketplace-head p{ color: #5a6b85; font-size: 16px; margin: 0; }
.ff-marketplace-grid{ row-gap: 20px; }
.ff-mcard{
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid #e3e9f2; border-radius: 14px;
  padding: 24px 22px; text-decoration: none; transition: all .18s ease;
  box-shadow: 0 1px 3px rgba(0,20,77,.04);
}
.ff-mcard:hover{ transform: translateY(-3px); border-color: var(--ff-blue); box-shadow: 0 10px 24px rgba(1,68,155,.14); }
.ff-mcard .material-symbols-outlined{
  font-size: 38px; color: #fff; background: var(--ff-grad);
  width: 60px; height: 60px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.ff-mcard h3{ color: var(--ff-navy); font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.ff-mcard p{ color: #5a6b85; font-size: 14px; line-height: 1.5; margin: 0 0 16px; flex: 1; }
.ff-mcard-cta{ color: var(--ff-blue); font-weight: 600; font-size: 14px; }
.ff-mcard:hover .ff-mcard-cta{ color: var(--ff-navy); }

/* ---------- Checkbox groups (endorsements / equipment) ---------- */
.ff-checkgroup{ display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 6px 0; }
.ff-check{ display: inline-flex; align-items: center; gap: 6px; font-weight: 400; font-size: 14px; color: #334; margin: 0; cursor: pointer; }
.ff-check input{ width: auto; margin: 0; }
.ff-badges{ display: flex; flex-wrap: wrap; gap: 6px; }
.ff-badge{ display: inline-block; background: var(--ff-blue); color: #fff; font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 20px; }
.ff-badge.alt{ background: #e8eef8; color: var(--ff-navy); }
.ff-card-tags{ display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------- Driver match score badge ---------- */
.ff-score{ display:inline-flex; align-items:center; gap:5px; font-weight:700; font-size:12px; padding:3px 10px; border-radius:20px; line-height:1.4; }
.ff-score i{ font-size:11px; }
.ff-score.high{ background:#e6f7ee; color:#1FAE5A; }
.ff-score.mid{ background:#fef3c7; color:#92660a; }
.ff-score.low{ background:#fdecec; color:#c0392b; }

/* ---------- Recruiter-driver chat attachments ---------- */
.chat-attach{ margin-top:6px; }
.chat-attach a{ display:inline-flex; align-items:center; gap:6px; font-size:13px; font-weight:600; text-decoration:underline; }
.chat-attach-btn{ cursor:pointer; display:inline-flex; align-items:center; justify-content:center; color:var(--ff-blue); padding:0 8px; margin:0; font-size:16px; }
.chat-attach-btn:hover{ color:var(--ff-navy); }

/* ---------- Driver Application (DOT DQF) form ---------- */
.ff-da-intro{ background:#fff; border:1px solid #e3e9f2; border-radius:12px; padding:20px; margin-bottom:16px; }
.ff-da-intro h3{ color:var(--ff-navy); font-weight:800; margin:0 0 6px; }
.ff-da-card{ background:#fff; border:1px solid #e3e9f2; border-radius:12px; padding:20px; margin-bottom:16px; }
.ff-da-card h4{ color:var(--ff-navy); font-weight:700; margin:0 0 12px; font-size:17px; border-bottom:2px solid #f0f3f8; padding-bottom:8px; }
.ff-rep-row{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:8px; }
.ff-rep-row .form-control, .ff-rep-row select.form-control{ flex:1 1 120px; min-width:110px; }
.ff-rep-del{ background:#fdecec; color:#c0392b; border:none; border-radius:8px; width:34px; height:34px; font-size:18px; line-height:1; flex:0 0 auto; cursor:pointer; }
.ff-rep-add{ background:var(--ff-grad); color:#fff; border:none; border-radius:8px; padding:8px 16px; font-weight:600; font-size:14px; margin-top:6px; }
.ff-emp-block{ border:1px dashed #cfd8e6; border-radius:10px; padding:14px; margin-bottom:12px; }
.ff-emp-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.ff-qrow{ display:flex; justify-content:space-between; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid #f0f3f8; }
.ff-qrow span{ flex:1; font-size:14px; color:#334; }
.ff-yn{ max-width:130px; }
.ff-edu-label{ min-width:90px; font-weight:600; color:var(--ff-navy); }

/* ---------- Driver Application snapshot (read-only) ---------- */
.ff-snap{ background:#fff; }
.ff-snap-head h3{ color:var(--ff-navy); font-weight:800; margin:0 0 4px; }
.ff-snap h4{ color:var(--ff-navy); font-weight:700; font-size:16px; margin:18px 0 8px; border-bottom:2px solid #f0f3f8; padding-bottom:6px; }
.ff-snap-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
.ff-snap-grid > div{ display:flex; flex-direction:column; }
.ff-snap-grid span{ font-size:12px; color:#8a94a6; }
.ff-snap-grid strong{ color:#22324d; }
.ff-snap-table{ width:100%; border-collapse:collapse; font-size:13px; margin-bottom:8px; }
.ff-snap-table th,.ff-snap-table td{ border:1px solid #e3e9f2; padding:6px 8px; text-align:left; }
.ff-snap-table th{ background:#f4f7fb; color:var(--ff-navy); }
.ff-snap-q{ list-style:none; padding:0; margin:0 0 8px; }
.ff-snap-q li{ display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid #f0f3f8; }
.ff-snap-emp{ border:1px solid #e3e9f2; border-radius:8px; padding:10px 12px; margin-bottom:8px; }
.ff-snap-emp-meta{ font-size:12px; color:#5a6b85; margin-top:4px; }
.ff-snap-sign{ margin-top:18px; border-top:2px solid var(--ff-blue); padding-top:12px; }
@media print { .header,.footerWrap,.copyright,.sidebar,.ff-noprint,.navbar,.mobilenav{ display:none !important; } }

/* ---------- Hiring pipeline kanban (7 columnas) ---------- */
.ff-kanban{ display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.ff-kanban .column{ min-width: 250px; flex: 0 0 250px; background: #f4f7fb; border: 1px solid #e3e9f2; border-radius: 12px; padding: 12px; }
.ff-kanban .column h2{ font-size: 15px; font-weight: 700; color: var(--ff-navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ff-blue); }
.ff-kanban .task{ background: #fff; border: 1px solid #e3e9f2; border-radius: 10px; padding: 12px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,20,77,.05); }
.ff-kanban .task h3{ font-size: 15px; color: var(--ff-navy); margin: 0 0 4px; }
.ff-kanban .nodatabox{ text-align: center; color: #98a4b8; padding: 16px 0; }
.ff-kanban .nodatabox h4{ font-size: 13px; color: #98a4b8; }

/* ---------- Employer dashboard: hiring pipeline summary ---------- */
.ff-pipeline-card{ background:#fff; border:1px solid #e3e9f2; border-radius:12px; padding:20px; margin:20px 0; box-shadow:0 2px 10px rgba(0,20,77,.05); }
.ff-pipeline-head{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid #f0f3f8; }
.ff-pipeline-head h3{ margin:0; font-size:18px; color:var(--ff-navy); font-weight:700; }
.ff-pipeline-head h3 i{ color:var(--ff-blue); margin-right:6px; }
.ff-pipeline-total{ font-size:14px; color:#5a6b85; font-weight:600; }
.ff-pipeline-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:10px; }
@media (max-width:991px){ .ff-pipeline-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:575px){ .ff-pipeline-grid{ grid-template-columns:repeat(2,1fr); } }
.ff-pipeline-stage{ background:#f4f7fb; border-radius:10px; padding:14px 8px; text-align:center; border-top:3px solid var(--ff-blue); }
.ff-pipeline-count{ font-size:24px; font-weight:800; color:var(--ff-navy); line-height:1; }
.ff-pipeline-label{ font-size:11px; color:#5a6b85; margin-top:6px; line-height:1.3; }
.ff-stage-hired{ border-top-color:#1FAE5A; } .ff-stage-hired .ff-pipeline-count{ color:#1FAE5A; }
.ff-stage-rejected{ border-top-color:#E24B4A; } .ff-stage-rejected .ff-pipeline-count{ color:#E24B4A; }
.ff-pipeline-foot{ margin-top:14px; text-align:right; }
.ff-pipeline-foot a{ color:var(--ff-blue); font-weight:600; font-size:14px; }
