/* =========================================================
   SYBIOCARE - PAGE: utilisateurs
   Path: ./assets/css/pages/utilisateurs.css
========================================================= */

/* Header fallback */
.app-header{
  display:flex;
  align-items:center;
  gap:15px;
}

.mobile-menu-btn{
  background:none;
  border:none;
  color:#fff;
  font-size:18px;
  cursor:pointer;
}

.app-title{
  font-weight:900;
  letter-spacing:.4px;
}

/* Page */
.users-page{
  padding:30px;
  display:block;
}

.users-page-section{
  width:100%;
}

/* Page header */
.page-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:30px;
  flex-wrap:wrap;
}

.page-header-text h1{
  font-size:24px;
  margin:0;
  font-weight:900;
  letter-spacing:-0.5px;
  color:#0f172a;
}

.page-header-text p{
  font-size:13px;
  color:#64748b;
  margin:6px 0 0 0;
  font-weight:600;
}

/* Filters */
.filters-bar{
  background:#fff;
  padding:15px;
  border-radius:12px;
  border:1px solid #e2e8f0;
  display:flex;
  gap:15px;
  align-items:center;
  margin-bottom:25px;
  flex-wrap:wrap;
}

.search-box{
  position:relative;
  flex:2;
  min-width:260px;
}

.search-box i{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#94a3b8;
}

.search-box input{
  width:100%;
  padding:10px 10px 10px 40px;
  border-radius:8px;
  border:1px solid #cbd5e1;
  outline:none;
  font-size:14px;
  box-sizing:border-box;
}

#users-role-filter{
  flex:1;
  min-width:220px;
  padding:10px;
  border-radius:8px;
  border:1px solid #cbd5e1;
  font-weight:600;
  color:#475569;
  background:#fff;
}

/* Stats */
.stats-row{
  display:flex;
  gap:15px;
  margin-bottom:25px;
  flex-wrap:wrap;
}

.stat-card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  min-width:240px;
  box-shadow:0 4px 6px rgba(0,0,0,0.02);
}

.stat-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
}

.stat-indigo{ background:#eef2ff; color:#4f46e5; }
.stat-green{ background:#ecfdf5; color:#16a34a; }
.stat-orange{ background:#fff7ed; color:#ea580c; }

.stat-label{
  font-weight:800;
  color:#334155;
  font-size:12px;
}

.stat-value{
  font-weight:900;
  color:#0f172a;
  font-size:22px;
  margin-top:2px;
}

.stat-content{
  display:flex;
  flex-direction:column;
}

/* Cards + tables */
.card{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 4px 6px rgba(0,0,0,0.02);
}

.table-card{
  margin-bottom:18px;
}

.card-head{
  padding:14px 16px;
  border-bottom:1px solid #e2e8f0;
  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}

.card-head-title{
  font-weight:900;
  color:#1e222d;
}

.card-head-meta{
  font-size:12px;
  color:#64748b;
  font-weight:700;
}

.table-wrap{
  overflow:auto;
}

.users-table{
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:14px;
}

.users-table thead{
  background:#f8fafc;
}

.users-table thead th{
  padding:15px;
  font-size:12px;
  color:#64748b;
  font-weight:800;
  letter-spacing:.2px;
}

.users-table tbody td{
  padding:15px;
  border-bottom:1px solid #f1f5f9;
  vertical-align:middle;
}

.th-right{
  text-align:right;
}

/* Utils */
.mt-18{ margin-top:18px; }

/* Buttons fallback */
.btn{
  border:none;
  cursor:pointer;
  border-radius:10px;
  font-weight:900;
  padding:12px 20px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn-primary{
  background:#1e222d;
  color:#fff;
}

/* Responsive */
@media (max-width: 900px){
  .users-page{ padding:20px; }
  .stat-card{ width:100%; }
  #users-role-filter{ width:100%; }
}