/* FIBRE MANAGER V5 - styles complémentaires (Tailwind fait le reste) */

:root {
  --fm-blue: #2563eb;
  --fm-dark: #0f172a;
}

html, body { height: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }

/* Scrollbar discrète */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Cartes Leaflet */
#map, .map-box { border-radius: 0.75rem; z-index: 0; }

/* Animation d'apparition */
.fade-in { animation: fadeIn .25s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Statut badges */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 9999px; font-size: .75rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-installed { background: #dcfce7; color: #166534; }
.badge-noninstalled { background: #fee2e2; color: #991b1b; }

/* Tableaux */
.fm-table { width: 100%; border-collapse: collapse; }
.fm-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: #64748b; padding: .6rem .75rem; border-bottom: 2px solid #e2e8f0; white-space: nowrap; }
.fm-table td { padding: .6rem .75rem; border-bottom: 1px solid #f1f5f9; font-size: .875rem; }
.fm-table tbody tr:hover { background: #f8fafc; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border-radius: .5rem; font-weight: 600; font-size: .875rem; cursor: pointer; transition: all .15s; border: none; }
.btn-primary { background: var(--fm-blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost { background: #f1f5f9; color: #334155; }
.btn-ghost:hover { background: #e2e8f0; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: flex; align-items: flex-start; justify-content: center; padding: 2rem 1rem; overflow-y: auto; z-index: 1000; }
.modal-panel { background: #fff; border-radius: 1rem; width: 100%; max-width: 720px; box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); }

/* Champs de formulaire */
.fm-label { display: block; font-size: .8rem; font-weight: 600; color: #475569; margin-bottom: .3rem; }
.fm-input { width: 100%; padding: .5rem .7rem; border: 1px solid #cbd5e1; border-radius: .5rem; font-size: .875rem; outline: none; }
.fm-input:focus { border-color: var(--fm-blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

/* Sidebar nav */
.nav-item { display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem; border-radius: .5rem; color: #cbd5e1; font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active { background: var(--fm-blue); color: #fff; }

/* Print */
@media print {
  .no-print { display: none !important; }
}
