@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

:root{
  --primary:#156082;
  --secondary:#BFBFBF;
  --accent:#0C769E;
  --danger:#C00000;
  --bg:#fff;
  --text:#12212a;
  --muted:#6c7a86;
  --radius:14px;

  --app-max-width: 1800px;   /* wider layout */
  --app-side-padding: 5px;  /* more breathing room */
}

*{box-sizing:border-box}
html,body{height:100%}

body{
  font-family:Poppins,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  margin:0;
  background:#f3f4f6;
  color:var(--text);
}

/* =========================================================
   GLOBAL APP CONTAINER (ONE SOURCE OF TRUTH)
========================================================= */

.app-container{
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding: 30px var(--app-side-padding);
}

/* ========================================================= */

a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}

.header{
  background:#fff;
  border-bottom:1px solid #e7eaee;
  position:sticky;
  top:0;
  z-index:10;
}

.header .wrap{
  max-width: var(--app-max-width);
  margin: 0 auto;
  padding:14px var(--app-side-padding);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.brand{display:flex;align-items:center;gap:10px;font-weight:700;}
.brand img{height:26px}

.nav{display:flex;gap:28px;margin-left:auto;}
.nav a{text-decoration:none;font-size:14px;color:#0f172a;font-weight:600;}
.nav a:hover{color:#2563eb;}

.btn{
  display:inline-block;
  background:var(--primary);
  color:#fff;
  padding:10px 16px;
  border-radius:10px;
  border:0;
  cursor:pointer
}

.btn.secondary{background:var(--accent)}
.btn.ghost{background:#eaf3f8;color:var(--primary)}
.btn.danger{background:var(--danger)}

.input,select,textarea{
  width:100%;
  padding:10px 12px;
  border:1px solid #d7dce1;
  border-radius:10px;
  background:#fff
}

.label{font-size:12px;color:var(--muted);margin-bottom:6px}

.grid{display:grid;gap:16px}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0 8px
}

.table th,.table td{
  padding:12px 14px;
  text-align:left;
  background:#fff
}

.table th{
  position:sticky;
  top:0;
  background:#f9fbfd;
  border-bottom:1px solid #e7eaee
}

.row{
  background:#fff;
  border:1px solid #e7eaee;
  border-radius:12px
}

.toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  margin:12px 0
}

.searches{display:flex;gap:8px;flex-wrap:wrap}

.pagination{
  display:flex;
  gap:6px;
  align-items:center;
  justify-content:flex-end;
  margin-top:16px
}

.badge{
  padding:4px 8px;
  border-radius:100px;
  font-size:12px;
  border:1px solid #d7dce1;
  background:#fff
}

.card{
  background:#fff;
  border:1px solid #e7eaee;
  border-radius:16px;
  padding:16px
}

.tile-grid{
  display:grid;
  gap:16px;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr))
}

.tile{
  border:1px solid #e7eaee;
  border-radius:16px;
  padding:16px;
  background:#fff
}

.footer{
  text-align:center;
  padding:30px 0;
  color:var(--muted);
  border-top:1px solid #e7eaee;
  margin-top:60px
}

.table-wrap{overflow:auto;max-width:100%}

/* Remove legacy container usage */
.container,
.full-bleed,
.task-wrapper{
  max-width:100% !important;
  padding:0 !important;
}

/* ================= LOGIN PAGE ================= */

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* push panel to the right */
  padding-right: 10%;
  padding-left: 5%;

  /* Shift background image slightly left */
background: url('../images/login_bg.png') 15% center / cover no-repeat;


}

.login .hero {
  display: none;
}

.login .panel {
  width: 100%;
  max-width: 520px;   /* widened from 420px */
  background: rgba(255,255,255,0.96);
  padding: 42px 40px;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
