/* styles.css */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --accent: #18181b;
  --border: #e4e4e7;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
.vx-wrap { max-width: 1080px; margin: 0 auto; padding: 32px 20px; }
.vx-nav { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.vx-brand { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.vx-nav-links { display: flex; gap: 18px; color: var(--muted); font-size: 0.95rem; }
.vx-hero { padding: 64px 0 40px; }
.vx-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #f4f4f5; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.vx-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin: 16px 0; }
.vx-hero p { color: var(--muted); max-width: 62ch; font-size: 1.05rem; }
.vx-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.vx-btn { padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; cursor: pointer; }
.vx-btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.vx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 32px; }
.vx-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.vx-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.vx-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.vx-footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.hp-page { padding: 8px 4px 32px; animation: hp-fade-in 0.2s ease; }
.hp-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hp-page-head h1 { margin: 0 0 4px; font-size: 1.65rem; letter-spacing: -0.02em; }
.hp-muted { color: var(--muted, #94a3b8); font-size: 0.92rem; margin: 0; }
.hp-card { background: var(--card, #131822); border: 1px solid var(--border, #262e3d); border-radius: 12px; padding: 18px; margin-bottom: 16px; }
.hp-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.hp-input, .hp-select, .hp-textarea { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border, #262e3d); background: var(--bg, #0b0e14); color: inherit; font: inherit; transition: border-color 0.15s ease; }
.hp-input:focus, .hp-select:focus, .hp-textarea:focus { outline: none; border-color: #60a5fa; }
.hp-btn { padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border, #262e3d); background: #1b2230; color: inherit; font-weight: 600; cursor: pointer; transition: 150ms ease; }
.hp-btn:hover { border-color: #3b4659; }
.hp-btn-primary { background: #60a5fa; border-color: #60a5fa; color: #0b0e14; }
.hp-btn-success { background: #34d399; border-color: #34d399; color: #0b0e14; }
.hp-btn-ghost { background: transparent; }
.hp-btn-sm { padding: 6px 10px; font-size: 0.85rem; }
.hp-status { padding: 12px; border-radius: 8px; background: #1b2230; margin-bottom: 12px; }
.hp-status-err { border: 1px solid #f87171; color: #fecaca; }
.hp-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.hp-tab { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border, #262e3d); background: transparent; cursor: pointer; }
.hp-tab-active { font-weight: 700; }
.hp-tab-tyt.hp-tab-active { border-color: #60a5fa; color: #60a5fa; }
.hp-tab-ayt.hp-tab-active { border-color: #a78bfa; color: #a78bfa; }
.hp-tyt { color: #60a5fa; }
.hp-ayt { color: #a78bfa; }
.hp-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.hp-pill-tyt { background: rgba(96,165,250,0.15); color: #60a5fa; }
.hp-pill-ayt { background: rgba(167,139,250,0.15); color: #a78bfa; }
.hp-repeat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hp-repeat-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 12px; }
.hp-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; }
.hp-net-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.hp-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hp-chart-bars { display: flex; align-items: flex-end; gap: 8px; min-height: 160px; padding-top: 8px; }
.hp-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 140px; justify-content: flex-end; }
.hp-bar-fill { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: #60a5fa; transition: height 0.25s ease; min-height: 4px; }
.hp-bar-fill.hp-exam-ayt { background: #a78bfa; }
.hp-bar-label { font-size: 0.7rem; color: var(--muted, #94a3b8); }
.hp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hp-table th, .hp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border, #262e3d); }
.hp-empty { padding: 24px; text-align: center; color: var(--muted, #94a3b8); }
.hp-stat-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.hp-ring-card { position: relative; width: 120px; height: 120px; }
.hp-ring { width: 120px; height: 120px; transform: rotate(-90deg); }
.hp-ring-bg { fill: none; stroke: #262e3d; stroke-width: 10; }
.hp-ring-fg { fill: none; stroke: #34d399; stroke-width: 10; stroke-dasharray: 326; transition: stroke-dashoffset 0.3s ease; }
.hp-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.8rem; }
.hp-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.hp-stat-pill strong { font-size: 1.35rem; display: block; margin-top: 4px; }
.hp-week-bars { display: flex; gap: 8px; align-items: flex-end; min-height: 120px; margin-top: 12px; }
.hp-week-col { flex: 1; text-align: center; font-size: 0.75rem; color: var(--muted, #94a3b8); }
.hp-week-fill { width: 100%; background: linear-gradient(180deg, #60a5fa, #1b2230); border-radius: 6px; min-height: 6px; transition: height 0.25s ease; }
.hp-progress-list { display: flex; flex-direction: column; gap: 10px; }
.hp-progress-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 10px; align-items: center; font-size: 0.9rem; }
.hp-progress-track { height: 8px; background: #1b2230; border-radius: 99px; overflow: hidden; }
.hp-progress-track span { display: block; height: 100%; background: #34d399; border-radius: 99px; transition: width 0.25s ease; }
.hp-check-line { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.hp-move-card { margin-top: 8px; }
@keyframes hp-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hp-app { display: flex; min-height: 100vh; background: #0b0e14; color: #f1f5f9; }
.hp-sidebar { width: 248px; flex-shrink: 0; border-right: 1px solid #262e3d; background: #131822; padding: 16px 12px; transition: width 0.2s ease; }
.hp-app-collapsed .hp-sidebar { width: 64px; }
.hp-sidebar-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; }
.hp-brand { font-weight: 700; color: #f1f5f9; text-decoration: none; font-size: 0.95rem; letter-spacing: -0.02em; }
.hp-sidebar-nav { display: flex; flex-direction: column; gap: 4px; }
.hp-nav-link { display: block; padding: 10px 12px; border-radius: 8px; color: #94a3b8; text-decoration: none; font-size: 0.88rem; transition: 150ms ease; }
.hp-nav-link:hover { background: #1b2230; color: #f1f5f9; }
.hp-nav-active { background: #1b2230; color: #60a5fa; font-weight: 600; }
.hp-main { flex: 1; min-width: 0; padding: 20px 24px; background: #0b0e14; }
.hp-cal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; }
.hp-cal-cell { text-align: left; padding: 10px; border-radius: 10px; border: 1px solid #262e3d; background: #131822; cursor: pointer; transition: 150ms ease; position: relative; }
.hp-cal-cell:hover { transform: translateY(-2px); border-color: #3b4659; }
.hp-cal-num { font-weight: 700; font-size: 1rem; display: block; }
.hp-cal-date { font-size: 0.72rem; color: #94a3b8; }
.hp-cal-pct { font-size: 0.8rem; display: block; margin-top: 4px; }
.hp-cal-mini { display: block; height: 4px; background: #1b2230; border-radius: 99px; margin-top: 6px; overflow: hidden; }
.hp-cal-mini span { display: block; height: 100%; background: #34d399; }
.hp-cal-done { border-color: #34d399; }
.hp-cal-partial { border-color: #fb923c; }
.hp-cal-missed { border-color: #f87171; }
.hp-cal-today { box-shadow: 0 0 0 1px #60a5fa; }
.hp-cal-wait { opacity: 0.85; }
.hp-cal-ayt { background: linear-gradient(180deg, rgba(167,139,250,0.08), #131822); }
.hp-cal-note { position: absolute; top: 8px; right: 8px; color: #fbbf24; }
.hp-drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 50; display: flex; justify-content: flex-end; animation: hp-fade-in 0.2s ease; }
.hp-drawer { width: min(440px, 100vw); height: 100vh; overflow: auto; background: #131822; border-left: 1px solid #262e3d; padding: 16px; animation: hp-slide-in 0.22s ease; }
.hp-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.hp-drawer-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.hp-task-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.hp-topic-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 8px; }
@keyframes hp-slide-in { from { transform: translateX(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 720px) { .hp-stat-hero { grid-template-columns: 1fr; } .hp-net-grid { grid-template-columns: repeat(2, 1fr); } .hp-app { flex-direction: column; } .hp-sidebar { width: 100%; } .hp-topic-row { grid-template-columns: 1fr; } }
