@import url("https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:wght@300;400;500;600&family=Syne:wght@700;800&display=swap"); * { box-sizing: border-box; margin: 0; padding: 0; } html { overflow: hidden; } :root { --bg: #0d0f14; --surface: #141720; --surface2: #1c2030; --surface3: #222638; --border: rgba(255, 255, 255, 0.07); --border2: rgba(255, 255, 255, 0.12); --border3: rgba(255, 255, 255, 0.18); --text: #eeeaf2; --muted: #6b7091; --faint: #2e3248; --accent: #7c5cfc; --accent2: #a78bfa; --green: #22d3a0; --red: #f04b4b; --amber: #f59e0b; --blue: #38bdf8; --display: "Syne", sans-serif; --body: "DM Sans", sans-serif; --mono: "Space Mono", monospace; } body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 14px; touch-action: manipulation; } .app { display: grid; grid-template-columns: 210px 1fr; grid-template-rows: 52px 1fr; height: 100vh; min-height: 700px; } .topbar { grid-column: 1/-1; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; gap: 14px; } .logo { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -0.3px; color: var(--text); } .logo span { color: var(--accent2); } .topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; } .avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: white; } .notif-dot { width: 7px; height: 7px; background: var(--red); border-radius: 50%; } .sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 18px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; } .sidebar-label { font-size: 10px; font-weight: 500; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; padding: 10px 10px 6px; } .sitem { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 400; transition: all 0.12s; border: 1px solid transparent; user-select: none; } .sitem:hover { background: var(--surface2); color: var(--text); } .sitem.active { background: var(--surface2); color: var(--text); border-color: var(--border2); } .sicon { width: 16px; text-align: center; flex-shrink: 0; font-size: 13px; } .sbadge { margin-left: auto; background: var(--accent); color: white; font-size: 9px; font-weight: 600; padding: 2px 5px; border-radius: 8px; font-family: var(--mono); } .gpip { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .page { display: none; flex-direction: column; overflow-y: auto; height: 100%; background: var(--bg); } .page.active { display: flex; } .page-header { padding: 26px 30px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; } .page-title { font-family: var(--display); font-size: 21px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); margin-bottom: 3px; } .page-sub { font-size: 12px; color: var(--muted); } .content { padding: 22px 30px; display: flex; flex-direction: column; gap: 18px; } .sec-label { font-size: 10px; font-weight: 500; letter-spacing: 1.2px; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; } .pill { display: inline-flex; align-items: center; font-size: 10px; font-weight: 500; padding: 2px 8px; border-radius: 20px; } .pill.green { background: rgba(34, 211, 160, 0.12); color: var(--green); } .pill.amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); } .pill.red { background: rgba(240, 75, 75, 0.12); color: var(--red); } .pill.blue { background: rgba(56, 189, 248, 0.12); color: var(--blue); } .pill.purple { background: rgba(124, 92, 252, 0.12); color: var(--accent2); } .pill.muted { background: rgba(255, 255, 255, 0.05); color: var(--muted); } .source-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 4px; } .source-tag.system { background: rgba(56, 189, 248, 0.08); color: #5ba8d4; border: 1px solid rgba(56, 189, 248, 0.15); } .source-tag.admin { background: rgba(124, 92, 252, 0.08); color: #9b7cf7; border: 1px solid rgba(124, 92, 252, 0.15); } .source-tag.personal { background: rgba(245, 158, 11, 0.08); color: #c98f2a; border: 1px solid rgba(245, 158, 11, 0.15); } /* DASHBOARD */ .dash-main { display: flex; flex-direction: column; align-items: center; padding: 36px 24px; gap: 20px; overflow-y: auto; background: var(--bg); } .dash-col { width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 16px; } .user-hero { display: flex; align-items: center; gap: 16px; } .avatar-lg { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: white; font-family: var(--display); } .user-name { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); line-height: 1.1; } .user-groups { font-size: 12px; color: var(--muted); margin-top: 3px; } .hp-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 16px; padding: 20px 22px; } .hp-top-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; } .hp-number { font-family: var(--mono); font-size: 32px; font-weight: 700; color: var(--green); letter-spacing: -1.5px; line-height: 1; } .hp-number span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; } .hp-decay { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; } .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex-shrink: 0; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } } .bar-track { height: 8px; background: var(--bg); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 8px; } .bar-fill { height: 100%; border-radius: 6px; transition: width 0.5s ease; } .bar-fill.high { background: var(--green); } .bar-fill.mid { background: var(--amber); } .bar-fill.low { background: var(--red); } .hp-footer { display: flex; justify-content: space-between; font-size: 11px; font-family: var(--mono); color: var(--muted); } .deadline-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 14px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; } .deadline-day { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; } .deadline-month { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; } .deadline-divider { width: 1px; height: 36px; background: var(--border2); flex-shrink: 0; } .deadline-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; } .deadline-sub { font-size: 11px; color: var(--muted); } .deadline-reward { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--green); flex-shrink: 0; } .actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .action-btn { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: all 0.14s; text-align: left; } .action-btn:hover { background: var(--surface2); border-color: rgba(124, 92, 252, 0.4); transform: translateY(-1px); } .action-btn:active { transform: translateY(0); } .action-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; } .ic-green { background: rgba(34, 211, 160, 0.1); } .ic-blue { background: rgba(56, 189, 248, 0.1); } .ic-purple { background: rgba(124, 92, 252, 0.1); } .ic-amber { background: rgba(245, 158, 11, 0.1); } .action-label { font-size: 12px; font-weight: 500; color: var(--text); margin-bottom: 2px; } .action-hp { font-family: var(--mono); font-size: 11px; color: var(--green); font-weight: 700; } /* TASKS */ .task-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 12px; transition: border-color 0.12s; cursor: pointer; } .task-card:hover { border-color: rgba(124, 92, 252, 0.3); } .task-card.done { opacity: 0.45; pointer-events: none; } .chk { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid var(--border2); flex-shrink: 0; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all 0.15s; } .chk.on { background: var(--green); border-color: var(--green); } .chk.on::after { content: ""; display: block; width: 4px; height: 8px; border: 2px solid #04342c; border-top: none; border-left: none; transform: rotate(45deg) translate(-1px, -1px); } .task-body { flex: 1; min-width: 0; } .task-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 5px; } .task-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; } .task-hp { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--green); margin-left: auto; flex-shrink: 0; padding-left: 8px; } /* ASSIGNMENTS */ .assign-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 15px 17px; display: flex; flex-direction: column; gap: 10px; } .assign-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; } .assign-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 3px; } .assign-course { font-size: 11px; color: var(--muted); } .assign-footer { display: flex; align-items: center; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); } .assign-due { font-size: 11px; color: var(--muted); } .assign-due span { color: var(--text); font-weight: 500; } .assign-hp-val { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--green); margin-left: auto; } .btn { font-family: var(--body); font-size: 12px; font-weight: 500; padding: 6px 13px; border-radius: 7px; border: 1px solid var(--border2); background: transparent; color: var(--text); cursor: pointer; transition: all 0.12s; flex-shrink: 0; } .btn:hover { background: var(--accent); border-color: var(--accent); color: white; } .btn.done { background: rgba(34, 211, 160, 0.08); border-color: rgba(34, 211, 160, 0.2); color: var(--green); cursor: default; } .btn.done:hover { background: rgba(34, 211, 160, 0.08); border-color: rgba(34, 211, 160, 0.2); color: var(--green); } .btn.primary { background: var(--accent); border-color: var(--accent); color: white; } .btn.primary:hover { opacity: 0.85; } .btn.ghost { border-color: var(--border2); color: var(--muted); } .btn.ghost:hover { background: var(--surface2); color: var(--text); border-color: var(--border3); } .add-btn { display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, 0.1); background: transparent; color: var(--muted); font-size: 13px; font-family: var(--body); cursor: pointer; width: 100%; transition: all 0.12s; text-align: left; } .add-btn:hover { border-color: rgba(124, 92, 252, 0.4); color: var(--accent2); background: rgba(124, 92, 252, 0.05); } .add-btn .plus { width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; } .form-panel { background: var(--surface); border: 1px solid var(--border2); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; } .form-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; } .form-row { display: flex; flex-direction: column; gap: 5px; } .form-label { font-size: 11px; color: var(--muted); font-weight: 500; } .form-input { background: var(--bg); border: 1px solid var(--border2); border-radius: 8px; padding: 8px 11px; font-size: 13px; color: var(--text); font-family: var(--body); outline: none; width: 100%; transition: border-color 0.12s; } .form-input:focus { border-color: var(--accent); } .form-input::placeholder { color: var(--faint); } .form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .form-actions { display: flex; gap: 8px; justify-content: flex-end; padding-top: 4px; } /* GROUPS */ .member-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 13px 15px; display: flex; align-items: center; gap: 13px; } .m-av { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; font-family: var(--display); flex-shrink: 0; } .m-info { flex: 1; min-width: 0; } .m-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 1px; } .m-sub { font-size: 11px; color: var(--muted); } .m-hp { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; } .m-hp-val { font-family: var(--mono); font-size: 12px; font-weight: 700; } .m-bar { width: 90px; height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; } .m-bar-fill { height: 100%; border-radius: 3px; } .spip { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; } .on { background: var(--green); } .away { background: var(--amber); } .off { background: var(--faint); } .group-stat-row { display: flex; gap: 12px; } .gstat { background: var(--surface2); border-radius: 10px; padding: 12px 16px; flex: 1; text-align: center; } .gstat-val { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--text); } .gstat-label { font-size: 10px; color: var(--muted); margin-top: 2px; } .admin-task-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 12px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; } .admin-task-info { flex: 1; min-width: 0; } .admin-task-title { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; } .admin-task-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .toast { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(200px); background: var(--surface2); border: 1px solid var(--green); border-radius: 10px; padding: 8px 16px; font-size: 12px; font-weight: 500; color: var(--green); font-family: var(--body); transition: transform 0.22s ease; pointer-events: none; white-space: nowrap; z-index: 99; } .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } select.form-input { appearance: none; } /* Sidebar as anchor links */ a.sitem { text-decoration: none; } /* Utility: vertical card stack */ .card-list { display: flex; flex-direction: column; gap: 7px; } .card-list.faded { opacity: 0.45; } /* Source tag legend row */ .legend-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .legend-sep { margin-left: 10px; } /* Date / mono label in task meta */ .date-label { font-size: 11px; color: var(--muted); font-family: var(--mono); } .date-label.faint { color: var(--faint); } /* "(you)" annotation in member names */ .you-label { font-size: 11px; color: var(--muted); font-weight: 400; } /* "admin" badge inside a sidebar item */ .sitem-admin { font-size: 10px; color: var(--accent2); margin-left: auto; } /* "New Group" sidebar item */ .sitem-new { color: rgba(167, 139, 250, 0.6); border: 1px dashed rgba(167, 139, 250, 0.2) !important; margin-top: 4px; } /* Deadline card sub-elements */ .deadline-date { text-align: center; flex-shrink: 0; } .deadline-body { flex: 1; } /* Badge cluster on the right of assign-top */ .assign-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; } /* Page header secondary action button */ .page-header-action { flex-shrink: 0; margin-top: 4px; } /* Date inputs — browser dark colour-scheme */ .form-input[type="date"] { color-scheme: dark; } /* Mobile hamburger button */ .menu-btn { display: none; background: transparent; border: none; color: var(--text); font-size: 20px; cursor: pointer; padding: 2px 8px; border-radius: 6px; line-height: 1; flex-shrink: 0; } .menu-btn:hover { background: var(--surface2); } /* Sidebar overlay for mobile */ .sidebar-overlay { display: none; position: fixed; inset: 52px 0 0 0; background: rgba(0, 0, 0, 0.5); z-index: 49; cursor: pointer; } .sidebar-overlay.open { display: block; } @media (max-width: 640px) { .app { grid-template-columns: 1fr; min-height: 0; } .menu-btn { display: flex; align-items: center; justify-content: center; } .sidebar { position: fixed; top: 52px; left: 0; bottom: 0; width: 210px; height: auto; z-index: 50; transform: translateX(-100%); transition: transform 0.2s ease; } .sidebar.open { transform: translateX(0); } .dash-main { padding: 20px 16px; } .dash-col { max-width: 100%; } .page-header { padding: 18px 16px 12px; flex-wrap: wrap; } .content { padding: 16px; } .form-row-split { grid-template-columns: 1fr; } .group-stat-row { flex-wrap: wrap; } .gstat { min-width: 80px; } .m-bar { width: 60px; } .assign-top { flex-wrap: wrap; } .task-meta { row-gap: 4px; } }