/* styles.css */
:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --muted:#64748b;
  --accent:#0b63ff;
  --accent-2:#0b9dff;
  --glass: rgba(11,99,255,0.08);
  --radius:12px;
  --maxw:1100px;
  font-size:16px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, #f3f6fb 0%, #eef2f7 100%);
  color:#0f172a;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 24px;
  max-width:var(--maxw);
  margin:20px auto;
  width:calc(100% - 48px);
}

.brand{
  font-weight:700;
  letter-spacing:0.06em;
  color:var(--muted);
}

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

.nav-link{
  color:var(--muted);
  text-decoration:none;
  font-weight:600;
  padding:8px 10px;
  border-radius:8px;
}

.btn{
  border:0;
  cursor:pointer;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  font-size:0.95rem;
}

.btn-primary{
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  color:white;
  box-shadow:0 6px 18px rgba(11,99,255,0.14);
}

.btn-secondary{
  background:#fff;
  color:#0f172a;
  border:1px solid #e6eefc;
  box-shadow: 0 2px 8px rgba(12,42,70,0.04);
}

.btn-outline{
  background:transparent;
  color:var(--muted);
  border:1px dashed #e2e8f0;
}

.btn-ghost{
  background:transparent;
  color:var(--muted);
  padding:8px 10px;
}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:20px;
  width:calc(100% - 40px);
}

.hero{
  background:linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.4));
  border-radius:16px;
  padding:28px;
  box-shadow: 0 10px 30px rgba(15,23,42,0.06);
}

.hero-title{
  margin:0 0 18px 0;
  font-size:clamp(20px, 3.6vw, 32px);
  line-height:1.1;
  letter-spacing: -0.02em;
  color:#0b2440;
  display:block;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
}

.hero-body{
  display:flex;
  gap:20px;
  align-items:flex-start;
}

/* Sidebar meta */
.meta{
  width:260px;
  min-width:200px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.card{
  background:var(--card);
  padding:14px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,0.04);
  box-shadow: 0 6px 18px rgba(11,99,255,0.03);
}

.small-card{padding:12px}

.muted{color:var(--muted);margin:0 0 6px 0;font-weight:600;font-size:0.95rem}
.small{font-size:0.85rem;color:#4b5563;margin:0}

/* Main content */
.content{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.content-scroll{
  background:var(--card);
  border-radius:12px;
  padding:18px;
  height:420px;
  overflow:auto;
  border:1px solid rgba(11,99,255,0.06);
  box-shadow: 0 8px 24px rgba(12,42,70,0.04);
  line-height:1.6;
  white-space:pre-wrap;
}

/* actions row */
.actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}

.progress{
  background:#eef2ff;
  border-radius:8px;
  height:10px;
  overflow:hidden;
  margin-top:8px;
}

.progress-bar{
  height:100%;
  background:linear-gradient(90deg,var(--accent),var(--accent-2));
  border-radius:8px 0 0 8px;
}

/* Footer */
.footer{
  max-width:var(--maxw);
  margin:18px auto;
  width:calc(100% - 48px);
  padding:8px 24px;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* small ui niceties */
.pulse{
  animation: pulse 0.9s ease;
}
@keyframes pulse{
  0%{transform:scale(1); box-shadow:0 6px 18px rgba(11,99,255,0.14)}
  50%{transform:scale(1.04); box-shadow:0 18px 36px rgba(11,99,255,0.18)}
  100%{transform:scale(1); box-shadow:0 6px 18px rgba(11,99,255,0.14)}
}

/* Responsive */
@media (max-width:880px){
  .hero-body{flex-direction:column}
  .meta{width:100%;display:flex;flex-direction:row;gap:10px;overflow:auto}
  .content-scroll{height:360px}
  .hero-title{white-space:normal}
}
@media (max-width:520px){
  .topbar{padding:12px}
  .brand{font-size:0.9rem}
  .nav{gap:8px}
  .content-scroll{height:300px;padding:12px}
}
