Compare commits

...

67 Commits
main ... pages

Author SHA1 Message Date
c45ce0edb5 Revert "fix: table — fixed col widths, zebra, sticky header, lighter bg, scrollable"
This reverts commit d547c5128f.
2026-06-12 11:45:54 +00:00
d547c5128f fix: table — fixed col widths, zebra, sticky header, lighter bg, scrollable 2026-06-12 11:43:59 +00:00
5e0dc7e7d4 fix: table readability + remove sub-item Ред. button (use parent's) 2026-06-12 11:33:28 +00:00
8ff7a2abec fix: separate sub-item responsible/deadline from parent event 2026-06-12 11:21:06 +00:00
839271a585 fix: add edit button for sub-item rows (curator only) 2026-06-12 11:09:07 +00:00
5b53b745b8 fix: move edit button from event card to main table (curator only) 2026-06-12 11:04:56 +00:00
b632f7ef2d feat: curator event text editing with confirmation, change log, history 2026-06-12 10:36:08 +00:00
9021f41323 Revert "feat: event text editing for curator + brace fix"
This reverts commit 679f311f27.
2026-06-12 10:32:48 +00:00
679f311f27 feat: event text editing for curator + brace fix 2026-06-12 10:28:39 +00:00
80b95b6e1f fix: sub-items show 'см. подпункты' in main row, improved cleanTitle 2026-06-12 10:20:09 +00:00
70818614ad fix: robust cleanTitle/cleanResp for all sub-item patterns (Latin+Cyrillic) 2026-06-12 10:11:49 +00:00
7b0b0c65d5 fix: cleanResp — strip sub-item responsible persons from main event row 2026-06-12 09:53:26 +00:00
c0c25d38d6 fix: clean sub-item titles in table, sub-item own description in card 2026-06-12 09:43:00 +00:00
d5ae91d78b fix: toast notifications, auto-save, card stays open, report dropdown 2026-06-12 04:15:37 +00:00
576e54c592 fix: switchEvMonthBtn saves to CURRENT month before switching to new 2026-06-12 03:35:13 +00:00
cb8290a2ee fix: active month button — shadow, border, scale, corporate blue 2026-06-11 12:22:08 +00:00
9de8a2b34f fix: remove AI analysis from event card 2026-06-11 12:18:43 +00:00
ad4766168e feat: dynamic AI analysis — reads uploaded files, description, deadline status 2026-06-11 12:16:50 +00:00
9c0adc217b fix: reorder — month buttons top, files middle, bigger textarea (120px, wrap, scroll) 2026-06-11 11:57:24 +00:00
b7a3a48f2a fix: segmented month buttons in event card + fallback to localStorage for month 2026-06-11 11:49:35 +00:00
0602460ba6 feat: ZIP export with files by event, quick month buttons, PPT fix 2026-06-11 11:42:07 +00:00
f5a0263cc3 fix: restore all improvements on working base — month range, report format, per-month, files, backup 2026-06-11 11:30:00 +00:00
bd59b32284 fix: revert to proven working base + only login fix 2026-06-11 11:25:37 +00:00
32a0bbd4a1 fix: remove debug alert 2026-06-11 11:23:10 +00:00
df34fb0cab debug: add page OK alert 2026-06-11 11:19:54 +00:00
e1c7c232da fix: remove Количество field completely — from card and all report formats 2026-06-11 11:16:16 +00:00
19b7b9c255 fix: 2MB limit, qty fallback, PPT valid, quick months, ZIP by event 2026-06-11 11:10:41 +00:00
276c773e74 fix: remove duplicate saveEvModal, add ZIP export with files, fix qty always 1 2026-06-11 10:41:04 +00:00
eeb642101d fix: CSV/Word/PDF use getReportPeriod, sub-items have file/date/note support 2026-06-11 10:24:32 +00:00
6767494d2e fix: Open button, backup/restore preserves files, openFile in new tab 2026-06-11 10:14:13 +00:00
8e6b578878 fix: dlFile/delFile accept branch param — curator can download files from any branch 2026-06-11 09:21:59 +00:00
9915997ceb fix: report files grouped by month (Январь: ..., Февраль: ...) 2026-06-11 09:04:41 +00:00
f81c73e3ad fix: per-month — selMonth defined before use, month onchange reloads card with new data 2026-06-11 08:56:51 +00:00
f7f1afeed2 fix: clear files button, restore download links in report, storage warning 2026-06-11 08:53:04 +00:00
22298d4ed8 fix: all 5 issues — file limit 200KB, month range, TOP-5, report format, per-month data 2026-06-11 08:29:21 +00:00
962859e34a fix: remove duplicate </script> tag 2026-06-11 08:05:53 +00:00
a660df42c1 fix: fully inline — b5714a6 base + doLogin/addUser fixes only 2026-06-11 08:05:12 +00:00
1f065cedc8 fix: clean rebuild from stable base — only doLogin+addUser fixes, no IDB 2026-06-11 08:01:53 +00:00
f6de18e49d fix: clean HTML - remove extra </script> tags 2026-06-11 07:41:47 +00:00
10e72b8ec6 fix: JS in external script.js — browser will show exact error in console 2026-06-11 07:41:10 +00:00
f76c8a23c4 debug: test script before main 2026-06-11 07:12:21 +00:00
4494b455f7 fix: idbPut reads first then opens tx; file metadata synced to localStorage for reports 2026-06-11 07:08:42 +00:00
0890704801 fix: IndexedDB file storage on stable base — no localStorage quota issues 2026-06-11 06:48:02 +00:00
330a7ff9d1 fix: stable base + login, per-month, file keys — all balanced 2026-06-11 06:44:51 +00:00
3848ee5a3b revert to stable base b5714a6 2026-06-11 06:43:11 +00:00
d2495bf929 debug: add try-catch wrapper with alerts 2026-06-11 06:36:52 +00:00
cbff97db9b fix: doLogin checks both short and full email keys; addUser uses short key 2026-06-11 05:58:48 +00:00
40f3b08b53 fix: doLogin checks ext_users, upFile uses direct IDB, listFiles uses getAll, report shows file metadata 2026-06-11 05:50:27 +00:00
13d468694b fix: openEv now uses IndexedDB file listing — async load with listFiles 2026-06-11 05:41:50 +00:00
7f4d581e52 fix: migrate file storage from localStorage to IndexedDB — unlimited storage, no base64 penalty 2026-06-11 05:27:11 +00:00
4e681a42ee fix: selMonth before usage, quantity loads from month storage, upFile robust, report colors darker 2026-06-11 05:08:40 +00:00
d3d4fe3a1d fix: file keys include month — match between upload/display/download/report 2026-06-11 04:53:01 +00:00
c43e7b38c6 fix v3: per-month descriptions/files, report format with section+deadline+status inline 2026-06-11 04:46:41 +00:00
5ff4b44327 fix v2: month range, reminders, smarter AI, PPT fix, Word with files, execution %, report simplification 2026-06-11 04:33:28 +00:00
b5714a6971 fix: all improvements — month selector, LTIF corrections, roles, report format, analytics dashboard, PPT fix 2026-06-11 03:55:38 +00:00
6ecbf866b5 fix: formatted ALL_EVENTS + original JS 2026-06-10 12:34:28 +00:00
3503411b6b debug: minimal JS test 2026-06-10 12:32:53 +00:00
700feee1d5 fix: restore original + full 35 events + HTML fix 2026-06-10 12:28:30 +00:00
c862d7b56f fix: split ALL_EVENTS into formatted JSON, inline JS 2026-06-10 12:26:19 +00:00
65a553787c fix: inline all JS — no external script.js 2026-06-10 12:25:18 +00:00
0ca54f014d debug: body onload alert + inline alert 2026-06-10 12:23:13 +00:00
6449e96452 debug: minimal ALL_EVENTS, no alert 2026-06-10 11:59:29 +00:00
fb0c3a03de debug: add alert to doLogin 2026-06-10 11:57:01 +00:00
d260636903 fix: rebuild script.js — ALL_EVENTS on single line 2026-06-10 11:51:30 +00:00
dad10d2467 fix: restore 35 events, month selector, report period, LTIF corrections 2026-06-10 11:45:54 +00:00
04c0bfb154 refactor: remove backend, extract CSS/JS, apply design.md palette 2026-06-10 11:25:45 +00:00
1ddcfd2c80 v1: QAZAQtelecom HSE — full platform migrated from samruk-ai-agent 2026-06-10 09:05:48 +00:00
4 changed files with 2403 additions and 0 deletions

173
AGENTS.md Normal file
View File

@ -0,0 +1,173 @@
<!-- vibe42-agents-version: v3-guided-2026-06-01 -->
# Vibe42 — учебная песочница для лендингов
Workspace юзера `askar_gazizov`. Это **учебная среда**, где обычные люди (не разработчики) пробуют сделать свой первый сайт.
---
## 🎯 ТВОЯ РОЛЬ
Ты — **гид и помощник**, а не слепой исполнитель. Цель сессии — чтобы юзер вышел с:
1. **рабочим лендингом**, опубликованным по адресу `https://pages.git.vibe42.kz/askar_gazizov/<repo>/`,
2. ощущением «это было легко» — без серверов, БД, токенов, конфигов.
Юзер не разработчик. Ему важен **результат, который видно в браузере**, а не код.
---
## 🗺 СЦЕНАРИЙ ПЕРВОГО ЗАХОДА (юзер только зашёл, ещё ничего нет)
1. Поздоровайся коротко: «Привет! Тут за 10 минут собираем лендинг и публикуем его в интернете. О чём хочешь сделать?»
2. Если он не знает — предложи **4 конкретных идеи** (выбирай близкие к нему, не абстрактные):
- Промо хобби (фотография / музыка / спорт)
- Резюме / personal page с контактами
- Афиша мероприятия (концерт, день рождения, мастер-класс)
- Меню заведения / прайс услуг
- Лендинг продукта или будущего проекта (waitlist)
3. Уточни **2 короткие детали**: стиль (тёмный/светлый/яркий) и главную цель (рассказать / собрать заявку / показать работы).
4. Сразу делай `./new-project <name>` и собирай страницу. Не спрашивай разрешения на каждый шаг.
---
## 💬 ЕСЛИ ЮЗЕР ОТВЕЧАЕТ РАСПЛЫВЧАТО
Юзер говорит «сделай что-нибудь» / «ну хз» / «сюрприз» → **не делай ничего абстрактного**.
Скажи: «Давай определимся, я задам 3 коротких вопроса:
1. Это для тебя лично, для проекта/бизнеса, или для события?
2. Главная цель — рассказать о чём-то / собрать заявку / показать портфолио?
3. Любимое настроение — строгое тёмное, лёгкое светлое, яркое цветное?»
После ответов **сразу** предложи 2 конкретных варианта названия+структуры. Дай выбрать и иди делать.
---
## 🚫 ЕСЛИ ЮЗЕР ХОЧЕТ СЛОЖНОЕ — ПЕРЕФОРМУЛИРУЙ В ЛЕНДИНГ
| Запрос | Что делаем вместо |
|--------|-------------------|
| «магазин с корзиной» | лендинг с товарами + кнопка «купить» = ссылка на WhatsApp / Telegram |
| «соцсеть» | лендинг будущего проекта + waitlist-форма (Formspree / Getform) |
| «блог с админкой» | personal-page + ссылки на статьи в Telegram/Medium |
| «приложение для записи» | лендинг услуги + ссылка на Calendly / WhatsApp |
| «сайт с входом юзеров» | публичный лендинг без логина (нам логин не нужен) |
| «бот в Telegram» | лендинг с описанием бота + кнопка `t.me/...` |
**Не говори «это невозможно».** Скажи: «У нас песочница только для статических сайтов. Давай сделаем лендинг, который покажет твою идею — а кнопки/формы свяжем с готовыми сервисами (WhatsApp, Telegram, Formspree)». Юзер счастлив, результат за 15 минут.
---
## 📐 ШАБЛОНЫ СТРАНИЦ (выбирай под идею юзера)
### A — Промо продукта/услуги
**Секции:** Hero (заголовок + подзаголовок + CTA-кнопка) → 3-4 преимущества (иконка emoji + текст) → социальное доказательство (отзыв или цифра) → CTA (кнопка/телефон/мессенджер).
### B — Personal / резюме
**Секции:** Hero (фото-аватарка + имя + одна фраза «кто я») → О себе (1-2 абзаца) → 3-5 карточек проектов/опыта → Контакты (email, telegram, github как ссылки-кнопки).
### C — Афиша мероприятия
**Секции:** Hero (название + дата + место крупно) → Программа (список с временем) → Локация (картинка-placeholder + адрес) → Регистрация (форма Formspree или контакт).
### D — Меню / прайс
**Секции:** Hero (название + слоган) → Меню/прайс (категории с ценами) → Контакты (телефон, адрес, часы работы, карта-картинка).
### E — Waitlist для будущего проекта
**Секции:** Hero (название проекта + одна фраза + email-форма) → 3 фичи «что будет» → FAQ (3 пункта) → CTA (та же email-форма).
Все шаблоны — **одна страница, прокрутка вниз**. Никаких роутов, ничего динамического.
---
## ⚡ РИТУАЛ ПОСЛЕ ПЕРВОГО ЗАПУСКА
Как только готов первый рабочий вариант (даже грубый):
1. **Сразу запушь:**
```bash
git add -A
git commit -m "v1"
git push origin HEAD:pages
```
2. **ОБЯЗАТЕЛЬНО** дай юзеру ссылку **жирно**:
> 🎉 Готово! Твой лендинг здесь: **https://pages.git.vibe42.kz/askar_gazizov/<repo>/**
3. Скажи: «Открой в новой вкладке, посмотри. Что хочешь поменять?»
4. Дальше короткие итерации: правка → push → новый URL-показ. Каждые 2-3 правки — push.
---
## ⚠️ ЖЕЛЕЗНЫЕ ПРАВИЛА (НЕ нарушать никогда)
1. **Только статика — HTML + CSS + JS в браузере.**
2. **Никакого бэкенда.** Никаких Node/Express/FastAPI/Django/PHP/Go-серверов. Никаких БД. Никакого Redis.
3. **Никакой аутентификации / OAuth / JWT.**
4. **Никакого Docker, nginx, sudo, системных настроек.**
5. **Никаких тяжёлых сборщиков** (`npm install` дерево на 500МБ). Tailwind — только через CDN.
6. **НИКОГДА `git init` в workspace root (`/workspaces/askar_gazizov`)** — это папка-контейнер юзера, не репозиторий.
---
## ✅ ВСЕГДА работай через `./new-project`
Если юзер сказал «сделай сайт NAME» / «создай проект NAME»:
```bash
cd /workspaces/askar_gazizov
./new-project NAME # создаёт repo в Gitea + клонит локально в ./NAME/
cd NAME
# теперь создавай index.html / style.css / script.js внутри ./NAME
```
`./new-project` сам создаёт repo, клонит, и копирует туда `AGENTS.md` + `design.md`.
---
## 🌐 Git и публикация
**НЕТ GitHub.** Self-hosted git: **https://git.vibe42.kz**
- Профиль юзера: https://git.vibe42.kz/askar_gazizov
- Pages (живые лендинги): https://pages.git.vibe42.kz/askar_gazizov/<repo>/
- Креды уже в `/workspaces/askar_gazizov/.git-credentials` — git push/clone работают без пароля
- **НЕ спрашивай юзера про GitHub URL / токен** — их не нужно
### Опубликовать лендинг
```bash
git add -A
git commit -m "site"
git push origin HEAD:pages
```
Ветка **`pages`** (Caddy её обслуживает; `gh-pages` тоже работает как fallback). Push → лендинг доступен мгновенно.
---
## 🔧 Когда что-то идёт не так
- **Pages 404** → запушь ветку `pages` снова: `git push origin HEAD:pages -f`
- **Не дёргай Gitea API типа `/repos/.../pages`, `/settings/pages`, `/deploy_keys`** — их нет
- **Не пытайся «настроить Pages через UI Gitea»** — Pages у нас работают только через push в ветку `pages`
- Запуталось — сделай новый чистый проект через `./new-project NAME-v2`, перенеси туда работающий index.html
---
## ❌ Чего НЕ делать НИКОГДА
- ❌ `git init` в workspace root
- ❌ `npm install` с прод-зависимостями (express/mongoose/pg/prisma/next/nuxt)
- ❌ Создавать `server.js` / `app.py` / `main.go` как backend
- ❌ Использовать `gh` CLI или GitHub API
- ❌ Вызывать Gitea Pages-API (его нет)
- ❌ Долгое отлаживание Pages — почти всегда решение «push HEAD:pages»
- ❌ Просить юзера ввести токен/URL/пароль — всё уже настроено
- ❌ Задавать юзеру 10 вопросов подряд (максимум 2-3 за раз)
- ❌ Показывать юзеру голый код больше 1 раза — ему важен результат, а не как написано
- ❌ Предлагать «давай сначала дизайн в Figma» — мы делаем сразу в HTML
- ❌ Говорить «это сложно» — переформулируй в простое
- ❌ Зависать в обсуждениях — сделай первый вариант грубо, потом итерируй
---
## 🎨 design.md
Рядом лежит `design.md` с готовой палитрой, типографикой и стартер-шаблоном `index.html`. **Начинай с него.** Не выдумывай новые цвета — модифицируй существующие.

110
design.md Normal file
View File

@ -0,0 +1,110 @@
<!-- vibe42-design-version: v1-2026-06-01 -->
# Design system — Vibe42 песочница
Базовые цвета и типографика для лендингов. Можно отклоняться, но начинай с этого.
## Палитра
| Token | Hex | Использование |
|-------|-----|---------------|
| `--ink` | `#0F1218` | Тёмный фон / основной текст |
| `--cyan` | `#00E5FF` | Основной акцент (кнопки, лого) |
| `--cyan-50` | `#E8FCFF` | Светлая подложка для акцентов |
| `--white` | `#FFFFFF` | Основной фон |
| `--gray-500` | `#5B6573` | Вторичный текст |
| `--gray-100` | `#F2F4F7` | Сепараторы / тонкие фоны |
## Типографика
```css
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
```
| Уровень | Размер | Вес | line-height |
|---------|--------|-----|-------------|
| h1 (hero) | 56px | 800 | 1.05 |
| h2 (section) | 36px | 700 | 1.15 |
| h3 | 22px | 700 | 1.3 |
| body | 17px | 400 | 1.6 |
| small | 14px | 400 | 1.5 |
На мобиле — h1 уменьши до 36px, h2 до 28px.
## Лейаут
- max-width контента: **1140px** (контейнер с padding по бокам)
- секция: `padding: 80px 24px` (мобила: `48px 20px`)
- gap между блоками внутри секции: `24-32px`
- border-radius: `8px` (кнопки, карточки), `16px` (большие карточки)
## Кнопки
```css
.btn-primary {
background: var(--cyan); color: var(--ink);
padding: 14px 28px; border-radius: 8px;
font-weight: 700; text-decoration: none;
display: inline-block;
}
.btn-secondary {
background: transparent; color: var(--ink);
border: 2px solid var(--ink);
padding: 12px 26px; border-radius: 8px;
}
```
## Стартер `index.html`
```html
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Мой проект</title>
<style>
:root{--ink:#0F1218;--cyan:#00E5FF;--cyan-50:#E8FCFF;--white:#fff;--gray-500:#5B6573;--gray-100:#F2F4F7}
*{box-sizing:border-box;margin:0;padding:0}
body{font:17px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,system-ui,sans-serif;color:var(--ink);background:var(--white)}
.container{max-width:1140px;margin:0 auto;padding:80px 24px}
.hero{background:var(--ink);color:var(--white)}
.hero h1{font-size:56px;font-weight:800;line-height:1.05;margin-bottom:24px}
.hero p{font-size:20px;color:#9aa3b2;max-width:600px;margin-bottom:32px}
.btn{display:inline-block;background:var(--cyan);color:var(--ink);padding:14px 28px;border-radius:8px;font-weight:700;text-decoration:none}
.btn:hover{background:#1be5ff}
.section h2{font-size:36px;font-weight:700;margin-bottom:24px}
.card{background:var(--gray-100);border-radius:16px;padding:32px;margin-bottom:16px}
@media (max-width:640px){.hero h1{font-size:36px}.section h2{font-size:28px}.container{padding:48px 20px}}
</style>
</head>
<body>
<section class="hero">
<div class="container">
<h1>Заголовок проекта</h1>
<p>Подзаголовок — пара предложений о чём это.</p>
<a class="btn" href="#section">Начать</a>
</div>
</section>
<section id="section" class="section">
<div class="container">
<h2>Секция</h2>
<div class="card">Контент карточки.</div>
<div class="card">Контент карточки.</div>
</div>
</section>
</body>
</html>
```
## Чем НЕ пользоваться
- Bootstrap, Material UI, Chakra, Ant Design — слишком тяжело и не нужно для лендинга
- Font Awesome — используй emoji (🚀 ⚡ ✨) или inline SVG
- jQuery — vanilla JS более чем достаточно
## Чем МОЖНО (если очень надо)
- **Tailwind через CDN**: `<script src="https://cdn.tailwindcss.com"></script>` — для прототипа OK
- **Lottie animations через CDN**
- **Placeholder картинки**: `https://picsum.photos/800/600`, `https://placehold.co/600x400`
- **Шрифты Google Fonts через `<link>`** в head

1792
index.html Normal file

File diff suppressed because one or more lines are too long

328
style.css Normal file
View File

@ -0,0 +1,328 @@
:root {
--ink: #0F1218;
--cyan: #00E5FF;
--cyan-dark: #00B8D4;
--white: #FFFFFF;
--gray-100: #F2F4F7;
--gray-500: #5B6573;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
background: var(--gray-100);
color: var(--ink);
min-height: 100vh;
}
input, select, textarea, button { font: inherit; outline: none; }
.btn {
background: var(--cyan);
color: var(--ink);
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
font-size: 14px;
border: none;
cursor: pointer;
display: inline-block;
text-align: center;
transition: all 0.2s;
}
.btn:hover {
background: var(--cyan-dark);
box-shadow: 0 2px 8px rgba(0, 229, 255, 0.3);
}
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-r { background: #E53935; color: var(--white); }
.btn-r:hover { background: #C62828; }
.btn-g { background: #2E7D32; color: var(--white); }
.btn-g:hover { background: #1B5E20; }
.btn-o { background: #F57C00; color: var(--white); }
.btn-o:hover { background: #E65100; }
#login {
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: linear-gradient(135deg, var(--ink), #006478, var(--cyan-dark));
}
#login > div {
background: var(--white);
border-radius: 16px;
padding: 40px;
width: 400px;
max-width: 90vw;
text-align: center;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
#login h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
#login h1 span { color: var(--cyan-dark); }
#login > div > p { color: var(--gray-500); font-size: 13px; margin-bottom: 24px; }
#login input {
display: block;
width: 100%;
padding: 12px;
border: 2px solid var(--gray-100);
border-radius: 10px;
font-size: 14px;
margin-bottom: 12px;
transition: border 0.2s;
}
#login input:focus { border-color: var(--cyan-dark); }
#app { display: none; min-height: 100vh; }
#sidebar {
position: fixed;
left: 0;
top: 0;
bottom: 0;
width: 220px;
background: var(--ink);
color: var(--white);
z-index: 100;
overflow-y: auto;
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
}
#sidebar .logo {
padding: 20px 16px 12px;
font-size: 16px;
font-weight: 800;
border-bottom: 1px solid rgba(255, 255, 255, .1);
display: flex;
align-items: center;
gap: 8px;
}
#sidebar .logo span { color: var(--cyan); }
#sidebar .user { font-size: 11px; color: #94A3B8; padding: 10px 16px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
#sidebar a {
display: block;
padding: 12px 16px;
color: #CBD5E1;
text-decoration: none;
font-size: 13px;
cursor: pointer;
border-left: 3px solid transparent;
transition: all 0.15s;
}
#sidebar a:hover { background: rgba(0, 229, 255, .1); color: var(--white); }
#sidebar a.active {
background: rgba(0, 229, 255, .2);
color: var(--cyan);
border-left-color: var(--cyan);
font-weight: 600;
}
#sidebar .logout { position: absolute; bottom: 16px; left: 16px; right: 16px; }
#main { margin-left: 220px; padding: 24px; min-height: 100vh; }
.top {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 0 16px;
border-bottom: 2px solid var(--gray-100);
margin-bottom: 20px;
}
.top h2 { font-size: 20px; font-weight: 700; }
.card {
background: var(--white);
border-radius: 12px;
padding: 20px;
margin-bottom: 16px;
border: 1px solid #E8ECF1;
overflow-x: auto;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; }
th, td {
padding: 8px 10px;
font-size: 13px;
text-align: left;
border-bottom: 1px solid var(--gray-100);
vertical-align: top;
}
th {
background: var(--gray-100);
font-weight: 600;
font-size: 11px;
text-transform: uppercase;
color: var(--gray-500);
white-space: nowrap;
}
tr:hover { background: #FAFBFC; }
.badge {
display: inline-block;
padding: 3px 8px;
border-radius: 100px;
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.badge.g { background: #E8F5E9; color: #2E7D32; }
.badge.a { background: #FFF3E0; color: #E65100; }
.badge.r { background: #FFEBEE; color: #C62828; }
.badge.b { background: #E3F2FD; color: #1565C0; }
.badge.w { background: #F5F5F5; color: #757575; }
.fr { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; align-items: center; }
.fr input, .fr select {
padding: 8px 12px;
border: 1px solid var(--gray-100);
border-radius: 8px;
font-size: 13px;
background: var(--white);
}
.fr input { min-width: 200px; }
.tr-red { background: #FFF5F5; }
.tr-red td { border-bottom-color: #FECACA; color: #991B1B; }
.tr-amber { background: #FFFBEB; }
.tr-amber td { border-bottom-color: #FDE68A; color: #92400E; }
.tr-green { background: #F0FDF4; }
.tr-green td { border-bottom-color: #BBF7D0; color: #065F46; }
.sec-h {
background: var(--cyan);
color: var(--ink);
padding: 6px 12px;
border-radius: 6px;
font-size: 12px;
font-weight: 700;
display: inline-block;
margin: 16px 0 8px;
}
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 12px;
margin-bottom: 20px;
}
.stat-card {
background: var(--white);
border-radius: 12px;
padding: 16px;
border: 1px solid var(--gray-100);
text-align: center;
}
.stat-card .num { font-size: 28px; font-weight: 800; margin: 4px 0; }
.stat-card .lb { font-size: 12px; color: var(--gray-500); }
.stat-card.sg .num { color: #10B981; }
.stat-card.sr .num { color: #EF4444; }
.stat-card.sb .num { color: var(--cyan); }
.stat-card.sa .num { color: #F59E0B; }
.chat-box {
height: 280px;
overflow-y: auto;
border: 1px solid var(--gray-100);
border-radius: 10px;
padding: 12px;
margin-bottom: 12px;
background: #FAFBFC;
}
.msg {
padding: 8px 12px;
border-radius: 10px;
margin-bottom: 8px;
max-width: 85%;
font-size: 13px;
line-height: 1.4;
}
.msg.u { margin-left: auto; background: var(--cyan); color: var(--ink); }
.msg.b { background: var(--gray-100); color: var(--ink); }
.msg .nm { font-size: 10px; color: var(--gray-500); margin-bottom: 2px; }
.chat-inp { display: flex; gap: 8px; }
.chat-inp input {
flex: 1;
padding: 10px 14px;
border: 1px solid var(--gray-100);
border-radius: 8px;
font-size: 13px;
}
.chat-q { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chat-q button {
padding: 6px 12px;
border: 1px solid var(--gray-100);
border-radius: 100px;
font-size: 11px;
background: var(--white);
cursor: pointer;
color: var(--ink);
}
.chat-q button:hover {
background: var(--cyan);
color: var(--ink);
border-color: var(--cyan);
}
.rank-bar {
height: 8px;
border-radius: 4px;
background: var(--gray-100);
overflow: hidden;
margin-top: 4px;
}
.rank-bar > div { height: 100%; border-radius: 4px; transition: width .3s; }
.sub-row { font-size: 12px; color: var(--gray-500); cursor: pointer; user-select: none; }
.sub-row:hover { color: var(--cyan-dark); }
.sub-row .arr { display: inline-block; width: 16px; text-align: center; }
.sub-items { padding-left: 24px; }
.sub-item { font-size: 12px; padding: 4px 0; border-bottom: 1px solid var(--gray-100); }
.sub-item:last-child { border: none; }
.mod-overlay {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, .5);
z-index: 1000;
display: none;
align-items: center;
justify-content: center;
}
.mod-box {
background: var(--white);
border-radius: 16px;
padding: 28px;
max-width: 750px;
width: 90vw;
max-height: 85vh;
overflow-y: auto;
position: relative;
}
.file-item {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 8px;
background: #F8FAFC;
border-radius: 6px;
margin: 4px 0;
border: 1px solid var(--gray-100);
flex-wrap: wrap;
}
.file-item .fn { font-size: 12px; flex: 1; min-width: 80px; }
.file-item .fs { font-size: 10px; color: var(--gray-500); }
.file-item a { font-size: 11px; color: var(--cyan-dark); cursor: pointer; text-decoration: underline; }
.stor-bar { font-size: 11px; color: var(--gray-500); padding: 4px 0; }
@media (max-width: 768px) {
#sidebar { width: 56px; }
#sidebar .logo span, #sidebar a span, #sidebar .user { display: none; }
#main { margin-left: 56px; }
.stat-grid { grid-template-columns: repeat(2, 1fr); }
}