/* =========================================================
   GENERAL
========================================================= */

body{
  font-family:Arial;
  background:#f4f6f8;
  padding:30px;
  margin:0;
}

.card{
  background:#fff;
  padding:20px;
  border-radius:8px;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  width:98%;
  box-sizing:border-box;
}


/* =========================================================
   CONNEXION
========================================================= */

.login-container{
  min-height:80vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-card{
  width:360px;
  max-width:90%;
  background:#fff;
  padding:30px;
  border-radius:12px;
  box-shadow:0 10px 35px rgba(0,0,0,0.12);
  box-sizing:border-box;
}

.login-card h2{
  margin-top:0;
  margin-bottom:25px;
  text-align:center;
}

.login-card label{
  display:block;
  margin-top:15px;
  margin-bottom:5px;
  font-size:14px;
  font-weight:bold;
}

.login-card input[type="text"],
.login-card input[type="password"]{
  width:100%;
  box-sizing:border-box;
  padding:10px;
  border:1px solid #ccc;
  border-radius:6px;
  font-size:15px;
}

.login-card input:focus{
  outline:none;
  border-color:#2c7be5;
  box-shadow:0 0 0 2px rgba(44,123,229,0.15);
}

.login-card button{
  width:100%;
  margin-top:25px;
}

.login-error{
  background:#f8d7da;
  color:#721c24;
  padding:10px;
  border-radius:6px;
  margin-bottom:15px;
  font-size:14px;
  text-align:center;
}


/* =========================================================
   BOUTONS
========================================================= */

button{
  margin-top:10px;
  padding:10px;
  background:#2c7be5;
  color:#fff;
  border:none;
  border-radius:6px;
  cursor:pointer;
}

button:hover{
  background:#1f6ad1;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 15px;
  height:38px;
  box-sizing:border-box;
  background:#2c7be5;
  color:#fff;
  border:none;
  border-radius:6px;
  cursor:pointer;
  text-decoration:none;
  font-family:Arial;
  font-size:14px;
  line-height:1;
}

.btn:hover{
  background:#1f6ad1;
}


/* =========================================================
   FORMULAIRES
========================================================= */

textarea{
  width:98%;
  height:90px;
  margin-top:3px;
  padding:1px;
}

input[type="datetime-local"]{
  padding:6px;
  margin-top:3px;
}

.clients{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:5px;
  margin-top:10px;
}


/* =========================================================
   TABLEAU TEMPS
========================================================= */

.header,
.row{
  display:grid;
  grid-template-columns:120px 160px 1fr 160px 160px 90px;
  gap:10px;
  padding:6px;
  align-items:center;
  font-size:12px;
}

.row{
  border-bottom:1px solid #eee;
}

.header div:nth-child(3),
.row div:nth-child(3){
  flex:3;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.row div:nth-child(3):hover{
  white-space:normal;
  position:absolute;
  background:#fff;
  padding:5px;
  z-index:999;
  box-shadow:0 2px 10px rgba(0,0,0,0.2);
}


/* =========================================================
   UTILISATEURS
========================================================= */

.row.alexia{
  border-left:4px solid #2c7be5;
  background:#f3f8ff;
}

.row.thomas{
  border-left:4px solid #28a745;
  background:#f3fff5;
}


/* =========================================================
   ACTIVITE LIVE
========================================================= */

.live{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:15px;
}

.live div{
  background:#fff;
  padding:10px;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,0.06);
  font-size:13px;
  font-weight:bold;
}

#live_alexia{
  border-left:4px solid #2c7be5;
}

#live_thomas{
  border-left:4px solid #28a745;
}


/* =========================================================
   RAPPORTS
========================================================= */

.rep{
  border-collapse:collapse;
  width:100%;
  font-size:12px;
}

.rep th{
  background:#f4f6f8;
  border:1px solid #ddd;
  padding:4px;
  text-align:center;
}

.rep td{
  border:1px solid #eee;
  padding:4px;
  text-align:center;
}

.rep tr:nth-child(even){
  background:#E7f9fc;
}

.rep tr:nth-child(odd){
  background:#ffffff;
}


/* =========================================================
   MESSAGES
========================================================= */

#msg{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  min-width:250px;
  max-width:80%;
  padding:15px 20px;
  border-radius:10px;
  text-align:center;
  font-family:Arial;
  font-size:15px;
  display:none;
  z-index:99999;
  box-shadow:0 10px 30px rgba(0,0,0,0.25);
  animation:pop .15s ease-out;
}

@keyframes pop{
  from{
    transform:translate(-50%,-50%) scale(0.8);
    opacity:0;
  }
  to{
    transform:translate(-50%,-50%) scale(1);
    opacity:1;
  }
}

/* =========================================================
   Nouveaux utilisateurs
========================================================= */


.users-table{
  width:100%;
  border-collapse:collapse;
  margin-top:15px;
  font-size:14px;
}

.users-table th,
.users-table td{
  border:1px solid #ddd;
  padding:8px 10px;
  text-align:left;
  vertical-align:middle;
}

.users-table th{
  background:#f4f6f8;
}

.users-table tr:nth-child(even){
  background:#E7f9fc;
}

.user-form{
  display:flex;
  align-items:center;
  gap:8px;
}

.user-form input{
  padding:8px;
  border:1px solid #ccc;
  border-radius:6px;
}

.btn-danger{
  background:#dc3545;
}

.btn-danger:hover{
  background:#c82333;
}

.btn-edit{
  background:#28a745;
}

.btn-edit:hover{
  background:#218838;
}

.success{
  background:#d4edda;
  color:#155724;
  padding:10px;
  border-radius:6px;
  margin:10px 0;
}

.error{
  background:#f8d7da;
  color:#721c24;
  padding:10px;
  border-radius:6px;
  margin:10px 0;
}

.small{
  font-size:12px;
  color:#666;
}
