/* =========================================================
   ClicTaxis Console – Base
   ========================================================= */

:root{
  --brand:#0b6fbf;
  --brand-dark:#075a9a;
  --brand-soft:rgba(11,111,191,0.12);

  --bg:#f5f6f8;
  --text:#2c2c2c;
  --muted:#6a6a6a;

  --border:#d0d3d8;
  --card:#ffffff;
  --shadow:0 8px 24px rgba(0,0,0,0.08);
}

*{
  box-sizing:border-box;
}

html,
body{
  margin:0;
  padding:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}

body{
  line-height:1.5;
}

a{
  color:inherit;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================================================
   ClicTaxis Console – Auth
   ========================================================= */

.auth-page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px 16px;
}

.auth-container{
  width:100%;
  max-width:460px;
}

.auth-card{
  background:var(--card);
  border-radius:14px;
  padding:32px 28px;
  box-shadow:var(--shadow);
}

.logo{
  text-align:center;
  margin-bottom:18px;
}

.logo img{
  width:170px;
  margin:0 auto;
}

h1{
  text-align:center;
  font-size:22px;
  margin:0 0 12px 0;
  color:var(--brand);
  text-transform:uppercase;
  letter-spacing:0.6px;
}

.intro{
  text-align:center;
  font-size:15px;
  color:var(--muted);
  margin-bottom:24px;
}

.field{
  margin-bottom:18px;
}

label{
  display:block;
  font-weight:700;
  font-size:14px;
  margin-bottom:8px;
}

input,
select,
textarea{
  width:100%;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid var(--border);
  font-size:15px;
  transition:all .2s;
  background:#fff;
  color:var(--text);
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 4px var(--brand-soft);
}

button{
  cursor:pointer;
}

.btn-primary{
  width:100%;
  padding:14px;
  border:none;
  border-radius:10px;
  font-size:16px;
  font-weight:700;
  background:var(--brand);
  color:white;
  transition:.2s;
  box-shadow:0 10px 18px rgba(11,111,191,0.18);
}

.btn-primary:hover{
  background:var(--brand-dark);
}

.alert{
  padding:14px;
  border-radius:10px;
  font-size:14px;
  margin-bottom:18px;
}

.alert-error{
  background:#fdecea;
  border:1px solid #f5c2c0;
  color:#a32020;
}

.footer{
  margin-top:16px;
  text-align:center;
  font-size:12px;
  color:#8a8a8a;
}

/* =========================================================
   ClicTaxis Console – Layout
   ========================================================= */

.console-body{
  min-height:100vh;
  background:var(--bg);
}

.console-nav-toggle-input{
  display:none;
}

.console-topbar{
  display:none;
  position:sticky;
  top:0;
  z-index:1200;
  height:72px;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(11,111,191,0.12);
  padding:0 16px;
  align-items:center;
  justify-content:space-between;
}

.console-topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.console-topbar-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
}

.console-topbar-brand img{
  width:132px;
}

.console-topbar-title{
  font-size:14px;
  font-weight:800;
  color:var(--brand);
  white-space:nowrap;
}

.console-burger{
  width:42px;
  height:42px;
  border-radius:10px;
  border:1px solid rgba(11,111,191,0.14);
  background:#fff;
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
}

.console-burger span{
  width:18px;
  height:2px;
  background:var(--brand);
  border-radius:999px;
}

.console-shell{
  display:flex;
  min-height:100vh;
}

.console-sidebar{
  width:270px;
  min-width:270px;
  background:linear-gradient(180deg, #0b6fbf 0%, #075a9a 100%);
  padding:26px 18px 20px 18px;
  color:#fff;
  position:sticky;
  top:0;
  height:100vh;
  box-shadow:18px 0 40px rgba(7,90,154,0.10);
}

.console-sidebar-brand{
  text-align:center;
  margin-bottom:26px;
}

.console-sidebar-logo-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.console-sidebar-brand img{
  width:170px;
  margin:0 auto;
}

.console-nav{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.console-nav-link{
  display:flex;
  align-items:center;
  min-height:46px;
  padding:12px 14px;
  border-radius:12px;
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:700;
  transition:background-color .18s ease, transform .08s ease, box-shadow .18s ease;
  border:1px solid rgba(255,255,255,0.06);
  background:rgba(255,255,255,0.04);
}

.console-nav-link:hover{
  background:rgba(255,255,255,0.12);
  box-shadow:0 10px 18px rgba(0,0,0,0.10);
}

.console-nav-link:active{
  transform:scale(0.99);
}

.console-nav-link-danger{
  margin-top:8px;
  background:rgba(255,255,255,0.08);
}

.console-main{
  flex:1;
  min-width:0;
  padding:32px 28px;
}

.console-overlay{
  display:none;
}

/* =========================================================
   ClicTaxis Console – Dashboard
   ========================================================= */

.dashboard-page{
  width:100%;
  max-width:1200px;
  margin:0 auto;
}

.dashboard-head{
  margin-bottom:24px;
}

.dashboard-head-text{
  width:100%;
}

.dashboard-title{
  text-align:left;
  font-size:28px;
  line-height:1.2;
  margin:0 0 8px 0;
  color:var(--brand);
  text-transform:uppercase;
  letter-spacing:0.6px;
}

.dashboard-subtitle{
  margin:0;
  color:var(--muted);
  font-size:15px;
  line-height:1.5;
}

.dashboard-stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
  margin-bottom:22px;
}

.dashboard-stat-card{
  background:var(--card);
  border-radius:14px;
  padding:22px 20px;
  box-shadow:var(--shadow);
  border:1px solid rgba(11,111,191,0.08);
  min-width:0;
}

.dashboard-stat-label{
  font-size:14px;
  font-weight:700;
  color:var(--muted);
  margin-bottom:10px;
}

.dashboard-stat-value{
  font-size:34px;
  font-weight:800;
  color:var(--brand);
  line-height:1;
  margin-bottom:10px;
  word-break:break-word;
}

.dashboard-stat-value--small{
  font-size:24px;
}

.dashboard-stat-note{
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}

.dashboard-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.dashboard-card{
  background:var(--card);
  border-radius:14px;
  padding:24px 22px;
  box-shadow:var(--shadow);
  min-width:0;
}

.dashboard-card-title{
  margin:0 0 12px 0;
  font-size:18px;
  color:var(--brand);
  text-transform:none;
  letter-spacing:0;
  text-align:left;
  line-height:1.3;
}

.dashboard-card-text{
  margin:0;
  color:var(--text);
  font-size:15px;
  line-height:1.6;
  word-break:break-word;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px){
  .console-sidebar{
    width:240px;
    min-width:240px;
    padding:22px 14px 18px 14px;
  }

  .console-sidebar-brand img{
    width:150px;
  }

  .console-main{
    padding:24px 18px;
  }

  .dashboard-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid{
    grid-template-columns:1fr;
  }

  .dashboard-title{
    font-size:24px;
  }
}

@media (max-width: 840px){
  .console-topbar{
    display:flex;
  }

  .console-shell{
    display:block;
    min-height:auto;
  }

  .console-sidebar{
    position:fixed;
    top:72px;
    left:0;
    bottom:0;
    z-index:1300;
    width:min(84vw, 320px);
    min-width:0;
    height:auto;
    transform:translateX(-100%);
    transition:transform .22s ease;
    border-top-right-radius:16px;
    padding-top:20px;
  }

  .console-main{
    padding:18px 14px 24px 14px;
  }

  .console-nav-toggle-input:checked ~ .console-shell .console-sidebar{
    transform:translateX(0);
  }

  .console-nav-toggle-input:checked ~ .console-overlay{
    display:block;
    position:fixed;
    inset:72px 0 0 0;
    background:rgba(0,0,0,0.24);
    z-index:1200;
  }

  .dashboard-stats{
    grid-template-columns:1fr;
    gap:14px;
    margin-bottom:16px;
  }

  .dashboard-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .dashboard-title{
    font-size:22px;
  }

  .dashboard-subtitle{
    font-size:14px;
  }

  .dashboard-stat-card{
    padding:18px 16px;
    border-radius:12px;
  }

  .dashboard-card{
    padding:18px 16px;
    border-radius:12px;
  }

  .dashboard-card-title{
    font-size:17px;
    margin-bottom:10px;
  }

  .dashboard-card-text{
    font-size:14px;
  }
}

@media (max-width: 480px){
  .auth-card{
    padding:24px 20px;
  }

  h1{
    font-size:20px;
  }

  .console-topbar{
    height:64px;
    padding:0 12px;
  }

  .console-topbar-brand img{
    width:118px;
  }

  .console-topbar-title{
    max-width:120px;
    font-size:13px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .console-sidebar{
    top:64px;
    width:min(88vw, 300px);
  }

  .console-main{
    padding:16px 12px 22px 12px;
  }

  .console-nav-link{
    min-height:44px;
    font-size:14px;
    padding:11px 12px;
  }
}

@media (max-width: 380px){
  .dashboard-title{
    font-size:20px;
  }

  .dashboard-stat-value{
    font-size:26px;
  }

  .dashboard-stat-value--small{
    font-size:20px;
  }
}

/* =========================================================
   Fix topbar mobile / burger responsive
   ========================================================= */

.console-topbar{
  display:none;
  position:sticky;
  top:0;
  z-index:1200;
  height:64px;
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(11,111,191,0.12);
  padding:0 12px;
  align-items:center;
  justify-content:space-between;
}

.console-topbar-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  flex:1;
}

.console-topbar-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  min-width:0;
  margin-left:12px;
}

.console-topbar-brand{
  display:flex;
  align-items:center;
  text-decoration:none;
  min-width:0;
}

.console-topbar-brand img{
  width:120px;
  max-width:100%;
  height:auto;
  display:block;
}

.console-topbar-title{
  font-size:13px;
  font-weight:800;
  color:var(--brand);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:120px;
}

.console-burger{
  width:40px;
  height:40px;
  min-width:40px;
  border-radius:10px;
  border:1px solid rgba(11,111,191,0.14);
  background:#fff;
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:4px;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
  padding:0;
}

.console-burger span{
  width:18px;
  height:2px;
  background:var(--brand);
  border-radius:999px;
  display:block;
}

/* Mobile */
@media (max-width: 840px){
  .console-topbar{
    display:flex;
  }

  .console-sidebar{
    top:64px;
  }

  .console-nav-toggle-input:checked ~ .console-overlay{
    inset:64px 0 0 0;
  }
}

/* Très petits écrans */
@media (max-width: 480px){
  .console-topbar{
    height:60px;
    padding:0 10px;
  }

  .console-topbar-left{
    gap:8px;
  }

  .console-burger{
    width:38px;
    height:38px;
    min-width:38px;
  }

  .console-burger span{
    width:16px;
  }

  .console-topbar-brand img{
    width:102px;
  }

  .console-topbar-title{
    font-size:12px;
    max-width:92px;
  }

  .console-sidebar{
    top:60px;
  }

  .console-nav-toggle-input:checked ~ .console-overlay{
    inset:60px 0 0 0;
  }
}