/* public/css/style.css
   Style simple, propre et responsive pour une app de gestion de projets.
   Remplace le fichier CSS existant.
*/
:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --muted:#6b7280;
  --primary:#2563eb;
  --primary-600:#1e40af;
  --accent:#06b6d4;
  --danger:#ef4444;
  --radius:8px;
  --max-width:1100px;
  --container-pad:16px;
  --shadow:0 6px 18px rgba(16,24,40,0.06);
  --text:#0f172a;
  --mono: "Helvetica Neue", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--mono);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:15px;
}

/* Layout */
.container{
  max-width:var(--max-width);
  margin:20px auto;
  padding:0 var(--container-pad);
}

/* Header / nav */
.app-header{
  background:linear-gradient(90deg,#ffffff, #fbfdff);
  border-bottom:1px solid rgba(15,23,42,0.04);
  position:sticky;
  top:0;
  z-index:50;
}
.app-header .wrap{
  max-width:var(--max-width);
  margin:0 auto;
  padding:12px var(--container-pad);
  display:flex;
  align-items:center;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}
.brand .logo{
  width:38px;height:38px;border-radius:8px;background:linear-gradient(135deg,var(--primary),var(--accent));
  display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;
}
.brand .title{font-weight:700;font-size:16px}
.nav{
  display:flex;
  gap:8px;
  margin-left:18px;
  align-items:center;
  flex:1;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:8px;
  font-size:14px;
}
.nav a:hover{ background: rgba(37,99,235,0.06); color:var(--primary-600) }
.nav a.active{ background:var(--primary); color:#fff }

/* Right side (user actions) */
.header-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.user-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:14px;
}
.btn{
  display:inline-block;
  background:var(--primary);
  color:#fff;
  padding:8px 12px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  border:none;
  cursor:pointer;
}
.btn.secondary{
  background:#f3f4f6;
  color:var(--text);
  border:1px solid rgba(15,23,42,0.04);
}
.btn.ghost{ background:transparent; color:var(--primary); padding:6px 8px; font-weight:600; border-radius:6px; }
.btn.danger{ background:var(--danger); }

/* Cards */
.card{
  background:var(--card);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow);
  margin-bottom:16px;
  border:1px solid rgba(15,23,42,0.03);
}

/* Top area in dashboard */
.topbar{ display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; gap:10px; }
.topbar h2{ margin:0;font-size:20px }
.meta{ color:var(--muted); font-size:13px }

/* Tables */
table{ width:100%; border-collapse:collapse; font-size:14px; }
table thead th{ text-align:left; padding:10px 8px; color:var(--muted); font-weight:600; font-size:13px; border-bottom:1px solid rgba(15,23,42,0.04); }
table tbody td{ padding:12px 8px; border-bottom:1px solid rgba(15,23,42,0.04); vertical-align:middle; }
.progress{ background:#eef2ff; border-radius:8px; height:10px; overflow:hidden; }

/* Forms */
label{ display:block; font-weight:600; margin-bottom:6px; font-size:13px; color:var(--muted); }
input[type="text"], input[type="password"], textarea, select{ width:100%; padding:10px 12px; border-radius:8px; border:1px solid rgba(15,23,42,0.06); background:#fff; font-size:14px; color:var(--text); box-shadow:none; }
textarea{ min-height:120px; resize:vertical; }

/* Small screens */
@media (max-width:720px){
  .nav{ display:none }
  .app-header .wrap{ justify-content:space-between }
  .container{ padding:0 12px }
}

/* Utilities */
.right{ margin-left:auto }
.help{ font-size:13px; color:var(--muted) }
.flash{ padding:10px; border-radius:8px; margin-bottom:12px; font-weight:600; }
.flash.info{ background:#eef2ff; color:#03365a }
.flash.success{ background:#e6ffef; color:#06583a }
.flash.warning{ background:#fff3cd; color:#6a4a00 }
.flash.danger{ background:#ffecec; color:#7a1a1a }