/* imilaad Portal UI — Polished Light Dashboard */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600;700;800;900&display=swap");

:root{
  --bg: #EEF2F7;
  --surface: rgba(255,255,255,0.92);
  --surface2: rgba(255,255,255,0.78);
  --text: #0B1220;
  --muted: #62708A;

  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 55px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.09);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;

  --blue: #2563EB;
  --teal: #06B6D4;
  --green: #22C55E;
  --orange: #F97316;
  --red: #EF4444;

  --focus: 0 0 0 4px rgba(37, 99, 235, .18);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 20% 0%, rgba(37,99,235,.16), transparent 60%),
    radial-gradient(900px 500px at 85% 10%, rgba(34,197,94,.12), transparent 60%),
    radial-gradient(900px 500px at 60% 100%, rgba(6,182,212,.12), transparent 60%),
    linear-gradient(180deg, #E9EEF6, var(--bg));
  overflow-x:hidden;
}

a{ color: inherit; text-decoration:none; }
button{ font-family: inherit; }

/* App container */
.shell{
  min-height: 100vh;
  padding: 22px;
}

.frame{
  min-height: calc(100vh - 44px);
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow:hidden;
  display:grid;
  grid-template-columns: 86px 1fr;
}

@media (max-width: 980px){
  .shell{ padding: 14px; }
  .frame{ grid-template-columns: 1fr; }
}

/* Sidebar (icon rail like the sample) */
.sidebar{
  background: rgba(255,255,255,0.65);
  border-right: 1px solid var(--border);
  padding: 16px 10px;
  display:flex;
  flex-direction: column;
  align-items:center;
  gap: 12px;
}

@media (max-width: 980px){
  .sidebar{
    flex-direction: row;
    justify-content: space-between;
    border-right:0;
    border-bottom: 1px solid var(--border);
  }
}

.brand{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: var(--shadow-sm);
}

.brand img{ width: 28px; height: 28px; }

.nav{
  margin-top: 8px;
  display:flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items:center;
}

@media (max-width: 980px){
  .nav{
    flex-direction: row;
    margin-top: 0;
    width: auto;
  }
}

.nav-btn{
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(15,23,42,.55);
  cursor: pointer;
  transition: .18s ease;
}

.nav-btn:hover{
  background: rgba(255,255,255,.8);
  border-color: rgba(15,23,42,.08);
  transform: translateY(-1px);
}

.nav-btn.active{
  background: rgba(37,99,235,.10);
  border-color: rgba(37,99,235,.18);
  color: rgba(15,23,42,.9);
}

.nav-ico{
  width: 20px; height: 20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}

/* Main */
.main{
  padding: 22px 26px 26px;
}

@media (max-width: 980px){
  .main{ padding: 18px; }
}

.topbar{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 10px 18px;
}

.h1{
  margin:0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.4px;
}

.sub{
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.actions{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  font-weight: 800;
  font-size: 13px;
}

.pill .dot{
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.92);
  font-weight: 900;
  cursor:pointer;
  transition: .18s ease;
}

.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:focus{ outline:none; box-shadow: var(--focus); }

.btn.primary{
  border-color: rgba(37,99,235,.22);
  background: linear-gradient(135deg, rgba(37,99,235,.14), rgba(34,197,94,.10));
}

/* Hero action cards (like sample) */
.hero-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 10px 10px;
}

@media (max-width: 980px){
  .hero-row{ grid-template-columns: 1fr; }
}

.hero-card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: .18s ease;
}

.hero-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

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

.hero-icon{
  width: 50px;
  height: 50px;
  border-radius: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(37,99,235,.95), rgba(6,182,212,.72));
}

.hero-icon.orange{
  background: linear-gradient(135deg, rgba(249,115,22,.95), rgba(37,99,235,.55));
}

.hero-title{
  margin:0;
  font-weight: 900;
}

.hero-desc{
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.arrow{
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.85);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
}

/* Cards grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 10px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  cursor:pointer;
  transition: .18s ease;
}

.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.badge .dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.badge .dot.warn{ background: var(--orange); box-shadow: 0 0 0 4px rgba(249,115,22,.12); }
.badge .dot.bad{ background: var(--red); box-shadow: 0 0 0 4px rgba(239,68,68,.12); }

.card h3{
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 900;
}
.card p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* Details panel */
.details{
  margin: 10px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.details-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}

.details-title{
  font-weight: 900;
  margin-top: 6px;
}

.kv{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}

.kv .line{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.kv .line b{
  color: var(--text);
  font-weight: 900;
}

.hidden{ display:none !important; }
