/* assets/css/style.css */
/* Simple, clean, responsive layout inspired by gov portal vibe.
   Single stylesheet for all pages. */

/* RESET & BASE */
*{box-sizing:border-box;margin:0;padding:0}
:root{
  --primary:#0b5cff;
  --muted:#6b7280;
  --bg:#f5f7fb;
  --card:#ffffff;
  --glass: rgba(255,255,255,0.65);
  --shadow: 0 8px 30px rgba(2,6,23,0.08);
  --radius:10px;
  --maxw:1100px;
  --accent:#0288d1;
  --text:#0f172a;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}
html,body{height:100%}
body{
  background:linear-gradient(180deg,#f8fbff 0%,var(--bg) 100%);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

/* LAYOUT */
.container{max-width:var(--maxw);margin:22px auto;padding:0 16px}
.header{
  background:linear-gradient(90deg,var(--primary),#03a9f4);
  color:#fff;padding:12px 16px;border-radius:0 0 12px 12px;box-shadow:var(--shadow);
  position:sticky;top:0;z-index:50;
}
.header-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:12px;padding:6px 16px}
.brand{display:flex;align-items:center;gap:12px}
.logo{width:44px;height:44px;border-radius:8px;background:#fff2;display:grid;place-items:center;font-weight:800;color:#fff;border:1px solid rgba(255,255,255,0.12)}
.site-title{font-weight:700;font-size:16px}
.header-right{margin-left:auto;display:flex;gap:10px;align-items:center}
.lang-select{padding:8px;border-radius:8px;border:none;background:rgba(255,255,255,0.12);color:#fff;font-weight:600}

/* NAV (horizontal on desktop) */
.nav{display:flex;gap:12px}
.nav a{color:rgba(255,255,255,0.95);text-decoration:none;font-weight:600;padding:8px;border-radius:8px}
.nav a.active{background:rgba(0,0,0,0.12)}

/* HERO / SEARCH */
.hero{background:var(--card);padding:18px;border-radius:var(--radius);box-shadow:var(--shadow);margin-top:18px;display:grid;grid-template-columns:1fr 300px;gap:18px;align-items:start}
.hero h1{font-size:20px;margin-bottom:8px}
.search-card{background:linear-gradient(180deg,#fff,#fbfdff);padding:12px;border-radius:8px;border:1px solid #eef6ff}
.search-row{display:flex;gap:8px}
.search-row input[type="text"], .search-row select{
  padding:10px;border-radius:8px;border:1px solid #e6eefc;flex:1;font-size:14px
}
.search-row button{background:var(--primary);color:#fff;padding:10px 12px;border-radius:8px;border:none;font-weight:700;cursor:pointer}

/* ASIDE CARDS */
.card{background:var(--card);padding:12px;border-radius:10px;box-shadow:var(--shadow);margin-bottom:12px}
.aside{display:flex;flex-direction:column;gap:12px}

/* GRID for quick widgets */
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}
.stat{background:linear-gradient(180deg,#fff,#f7fbff);padding:12px;border-radius:8px;text-align:center}

/* LISTS */
.list{margin-top:10px}
.list li{padding:10px;border-radius:8px;border:1px solid #f0f4ff;margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}

/* FOOTER */
.footer{margin-top:18px;padding:18px;color:var(--muted);font-size:13px;text-align:center;border-radius:8px}

/* TABLE (for search results) */
.table{width:100%;border-collapse:collapse;margin-top:12px}
.table th,.table td{padding:10px;border:1px solid #eef4ff;text-align:left;font-size:14px}

/* RESPONSIVE */
@media(max-width:980px){
  .hero{grid-template-columns:1fr}
  .grid3{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .header-inner{padding:8px}
  .nav{display:none}
  .grid3{grid-template-columns:1fr}
  .logo{width:40px;height:40px}
  .site-title{font-size:14px}
  .hero{padding:14px}
  .header{border-radius:0}
  .search-row{flex-direction:column}
  .search-row button{width:100%}
}

/* small helpers */
.btn-ghost{background:transparent;border:1px solid #e6eefc;padding:8px 10px;border-radius:8px;cursor:pointer}
.link{color:var(--primary);text-decoration:none;font-weight:600}
.kv{font-size:12px;color:var(--muted)}
