:root{
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  --accent: #2563eb;
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;
}

*{ box-sizing: border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: Inter, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.app{
  height:100%;
  display:flex;
}

.sidebar{
  width: 260px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display:flex;
  flex-direction:column;
  min-height: 0;
  padding: 16px;
}

.brand{ margin-bottom: 16px; }
.brand-title{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-sub{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-top: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.nav-item{
  width:100%;
  text-align:left;
  border: 1px solid var(--border);
  background: #fbfdff;
  border-radius: 10px;
  padding: 12px 12px;
  font-size: 14px;
  cursor:pointer;
}

.nav-item:hover{ border-color: #cbd5e1; }
.nav-item.active{
  border-color: rgba(37,99,235,0.45);
  background: rgba(37,99,235,0.08);
}

.sidebar-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

.status-dot{
  width:10px;
  height:10px;
  border-radius: 99px;
  background: var(--warn);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.18);
}

.main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width: 0;
}

.topbar{
  height: 56px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 18px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.topbar-title{
  font-size: 16px;
  font-weight: 700;
}

.btn{
  border: 1px solid var(--border);
  background: #fbfdff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor:pointer;
  font-size: 14px;
}
.btn:hover{ border-color:#cbd5e1; }

.content{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}

.card{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-title{
  font-weight: 700;
  font-size: 15px;
}

.card-text{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.big-action{
  display:flex;
  flex-direction:column;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fbfdff;
  cursor:pointer;
  text-align:left;
}
.big-action:hover{ border-color:#cbd5e1; }
.big-action-title{ font-weight:700; }
.big-action-desc{ color: var(--muted); font-size: 13px; }

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