From 0c8f4e98a75d198ec3fe11a491ff7ebde89a0e01 Mon Sep 17 00:00:00 2001 From: Sami20178 Date: Tue, 7 Apr 2026 18:48:47 +0200 Subject: [PATCH 1/2] Redesign home and add expanded menus with AI response module --- README.md | 18 +++- index.html | 142 +++++++++++++++++++++++++++++++ script.js | 119 ++++++++++++++++++++++++++ styles.css | 244 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 522 insertions(+), 1 deletion(-) create mode 100644 index.html create mode 100644 script.js create mode 100644 styles.css diff --git a/README.md b/README.md index 29c4e39..9d557f2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # Sami-App -Sami App entwickeln + +Sami App als **Samibookkonsole Frontend-Prototyp** mit mehr Menüs und AI-Antworten. + +## Features + +- Neues Home-Design im Stil einer Desktop/Konsole-Mischung. +- Mehr Menüs: Home, Spiele, Apps, KI/Modu, Start, Lernen, Einstellungen, Account, Abmelden. +- AI-Ansicht mit dynamischen Antworten (intent-basiert) für Code, Python, Lernplan, Social-Clones und Design-Fragen. +- Suchfeld mit Bereichs-Navigation. +- Quick-Tiles auf Home für schnellen Wechsel zwischen Modulen. +- Theme-Umschaltung (Dark/Light). + +## Start + +1. `index.html` im Browser öffnen. +2. Links Menü oder Home-Tiles benutzen. +3. In `KI / Modu` Fragen an Sami AI stellen. diff --git a/index.html b/index.html new file mode 100644 index 0000000..202a974 --- /dev/null +++ b/index.html @@ -0,0 +1,142 @@ + + + + + + Sami Ki / AI App - Samibookkonsole + + + +
+ + +
+
+
+

🤖 Sami Ki / AI App

+

Sami AI hilft mit Schreiben, Code und Sprachideen in der Samibookkonsole.

+
+ +
+ +
+ + +
+ +
+
+ + + + + + + + + + + + +
+
+ +
+
+

Echte AI Antworten (lokal intelligent)

+

Schreibe eine Frage. Die AI erkennt Absicht (Code, Lernen, Planung, Allgemein) und antwortet passend.

+
+

Sami AI: Hallo! Frag mich nach Code, Python, App-Ideen oder Lernplänen.

+
+
+ + +
+
+
+ +
+
+

🎮 Spiele Menü

+
    +
  • Quiz Arena
  • +
  • Snake Turbo
  • +
  • Memory Blitz
  • +
  • Racing Mini
  • +
+
+
+ +
+
+

🧩 Apps Menü

+
    +
  • Instagram Cloun
  • +
  • Facebook Cloun
  • +
  • Waapapp Cloun
  • +
  • Code Cloun
  • +
  • Pyphone Cloun
  • +
+
+
+ +
+
+

⭐ Start Center

+

Willkommen in der Samibookkonsole – Desktop + Konsole + Mobile in einem Design.

+
+
+ +
+
+

📘 Lernen

+

JS, Python, AI Builder, UI/UX und API Grundlagen.

+
+
+ +
+
+

⚙️ Einstellungen

+ + +
+
+ +
+
+

👤 Account

+

Name: Sami Soliman

+

Plan: Premium Alpha

+
+
+ +
+
+

🚪 Abmelden

+

Du wurdest erfolgreich abgemeldet (Demo).

+
+
+
+
+ + + + diff --git a/script.js b/script.js new file mode 100644 index 0000000..e607686 --- /dev/null +++ b/script.js @@ -0,0 +1,119 @@ +const navButtons = document.querySelectorAll('.nav-item'); +const views = document.querySelectorAll('.view'); +const quickTiles = document.querySelectorAll('.quick-tile'); + +const themeToggle = document.getElementById('theme-toggle'); +const darkSwitch = document.getElementById('dark-switch'); + +const aiInput = document.getElementById('ai-input'); +const aiSend = document.getElementById('ai-send'); +const aiMessages = document.getElementById('ai-messages'); + +const globalSearch = document.getElementById('global-search'); +const searchBtn = document.getElementById('search-btn'); + +function setActiveView(viewName) { + views.forEach((view) => { + view.classList.toggle('active', view.dataset.view === viewName); + }); + + navButtons.forEach((button) => { + button.classList.toggle('active', button.dataset.view === viewName); + }); +} + +function smartAnswer(question) { + const q = question.toLowerCase(); + + if (q.includes('python')) { + return 'Python Tipp: Starte mit Funktionen, Listen und kleinen CLI-Projekten. Soll ich dir eine Übung erstellen?'; + } + + if (q.includes('code') || q.includes('javascript') || q.includes('js')) { + return 'Code-Modus: Ich empfehle eine Komponenten-Struktur (HTML/CSS/JS getrennt) und dann Schritt für Schritt Features.'; + } + + if (q.includes('instagram') || q.includes('facebook') || q.includes('whatsapp')) { + return 'Social-Clone Plan: 1) UI 2) State-Management 3) Auth 4) Realtime Chat/Feed 5) Backend API.'; + } + + if (q.includes('lernen') || q.includes('kurs') || q.includes('plan')) { + return 'Lernplan: 30 Min pro Tag — 10 Min Theorie, 15 Min Coden, 5 Min Reflektion + Notizen.'; + } + + if (q.includes('samibook') || q.includes('konsole') || q.includes('design')) { + return 'Samibookkonsole Design: Kombiniere Dock-Icons, linke Sidebar, Fensterkarten und ein Such-Launcher wie bei Desktop-OS.'; + } + + return 'Gute Frage! Ich kann dir bei App-Planung, UI, Python, JS und Feature-Ideen helfen. Sag mir dein Ziel in 1 Satz.'; +} + +function addAiMessage(author, text) { + if (!aiMessages) return; + const msg = document.createElement('p'); + msg.innerHTML = `${author}: ${text}`; + aiMessages.append(msg); + aiMessages.scrollTop = aiMessages.scrollHeight; +} + +navButtons.forEach((button) => { + button.addEventListener('click', () => { + setActiveView(button.dataset.view); + }); +}); + +quickTiles.forEach((tile) => { + tile.addEventListener('click', () => { + setActiveView(tile.dataset.jump); + }); +}); + +if (themeToggle) { + themeToggle.addEventListener('click', () => { + document.body.classList.toggle('light'); + if (darkSwitch) darkSwitch.checked = !document.body.classList.contains('light'); + }); +} + +if (darkSwitch) { + darkSwitch.addEventListener('change', () => { + document.body.classList.toggle('light', !darkSwitch.checked); + }); +} + +if (aiSend && aiInput) { + aiSend.addEventListener('click', () => { + const question = aiInput.value.trim(); + if (!question) return; + + addAiMessage('Du', question); + const answer = smartAnswer(question); + addAiMessage('Sami AI', answer); + aiInput.value = ''; + }); +} + +if (searchBtn && globalSearch) { + searchBtn.addEventListener('click', () => { + const query = globalSearch.value.toLowerCase(); + + if (!query) { + setActiveView('home'); + return; + } + + const map = [ + ['spiel', 'games'], + ['app', 'apps'], + ['ai', 'ai'], + ['ki', 'ai'], + ['lern', 'learn'], + ['einst', 'settings'], + ['konto', 'account'], + ['start', 'start'] + ]; + + const found = map.find(([key]) => query.includes(key)); + setActiveView(found ? found[1] : 'home'); + }); +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..1446ae8 --- /dev/null +++ b/styles.css @@ -0,0 +1,244 @@ +:root { + --bg: #06080f; + --surface: #0c121d; + --text: #f0f6ff; + --muted: #9fb4ca; + --accent: #2dbbff; + --line: rgba(74, 156, 224, 0.45); +} + +* { + box-sizing: border-box; +} + +body { + margin: 0; + font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif; + color: var(--text); + background: radial-gradient(circle at top, #101829 0, #05070d 60%); +} + +body.light { + --bg: #eaf4ff; + --surface: #ffffff; + --text: #1b2834; + --muted: #496175; + --line: rgba(37, 111, 167, 0.35); + background: linear-gradient(180deg, #f4faff, #deefff); +} + +.app-shell { + display: grid; + grid-template-columns: 250px 1fr; + min-height: 100vh; +} + +.sidebar { + background: #030509; + border-right: 1px solid var(--line); + padding: 1rem 0.8rem; +} + +body.light .sidebar { + background: #edf6ff; +} + +.profile-card.compact { + display: flex; + flex-direction: column; + gap: 0.3rem; + border: 1px solid var(--line); + border-radius: 16px; + background: var(--surface); + padding: 0.9rem; + margin-bottom: 0.9rem; +} + +.avatar.yellow { + width: 48px; + height: 48px; + border-radius: 999px; + background: #ffe539; +} + +.profile-card h1 { + margin: 0; + font-size: 1.65rem; +} + +.username { + margin: 0; + color: var(--muted); +} + +.nav-item { + width: 100%; + text-align: left; + margin: 0.25rem 0; + border: 0; + border-radius: 10px; + padding: 0.72rem 0.7rem; + background: linear-gradient(90deg, #081b2b, #12283c); + color: #eff7ff; + cursor: pointer; +} + +.nav-item.active { + background: linear-gradient(90deg, #2eb8ff, #1c5f8d); +} + +.content { + padding: 1rem; + background: linear-gradient(180deg, rgba(4, 9, 15, 0.9), rgba(3, 6, 11, 0.98)); +} + +body.light .content { + background: transparent; +} + +.hero { + border: 1px solid var(--line); + border-radius: 18px; + background: var(--surface); + padding: 1rem; + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; +} + +.hero h2 { + margin: 0; + font-size: 2rem; +} + +.hero p { + margin: 0.35rem 0 0; + color: var(--muted); +} + +#theme-toggle, +#search-btn, +#ai-send { + border: 0; + border-radius: 10px; + padding: 0.64rem 0.85rem; + background: linear-gradient(90deg, #081d2e, #1a3248); + color: #e8f5ff; + cursor: pointer; +} + +.search-wrap { + margin-top: 0.75rem; + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; +} + +input { + width: 100%; + border: 1px solid var(--line); + border-radius: 10px; + padding: 0.75rem 0.8rem; + background: #050b15; + color: #cde8ff; +} + +body.light input { + background: #f7fbff; + color: #0e2638; +} + +.quick-grid { + margin-top: 0.9rem; + display: grid; + grid-template-columns: repeat(4, minmax(110px, 1fr)); + gap: 0.7rem; +} + +.quick-tile { + border: 1px solid var(--line); + border-radius: 14px; + background: var(--surface); + color: var(--text); + min-height: 95px; + display: grid; + place-items: center; + align-content: center; + gap: 0.35rem; + font-size: 1.65rem; + cursor: pointer; +} + +.quick-tile span { + font-size: 0.92rem; +} + +.view { + display: none; + margin-top: 0.8rem; +} + +.view.active { + display: block; +} + +.panel { + border: 1px solid var(--line); + border-radius: 16px; + background: var(--surface); + padding: 1rem; +} + +.panel h3 { + margin-top: 0; +} + +.panel ul { + margin: 0; + padding-left: 1.2rem; +} + +.muted { + color: var(--muted); +} + +.ai-messages { + border: 1px solid var(--line); + border-radius: 12px; + padding: 0.8rem; + min-height: 170px; + max-height: 300px; + overflow: auto; + background: rgba(5, 12, 20, 0.75); +} + +.chat-send { + margin-top: 0.6rem; + display: grid; + grid-template-columns: 1fr auto; + gap: 0.5rem; +} + +.row { + display: flex; + align-items: center; + justify-content: space-between; + border-top: 1px solid var(--line); + padding: 0.55rem 0; +} + +@media (max-width: 980px) { + .app-shell { + grid-template-columns: 1fr; + } + + .sidebar { + border-right: 0; + border-bottom: 1px solid var(--line); + } + + .quick-grid { + grid-template-columns: repeat(2, minmax(120px, 1fr)); + } +} From ce1988e64b99073b4dc3eea942a37732b640c2bb Mon Sep 17 00:00:00 2001 From: Sami20178 Date: Tue, 7 Apr 2026 20:29:44 +0200 Subject: [PATCH 2/2] Expand Samibookkonsole with A-Z launcher, menus, and features --- README.md | 13 +-- index.html | 81 +++++++----------- script.js | 87 +++++++++++-------- styles.css | 242 ++++++++++------------------------------------------- 4 files changed, 131 insertions(+), 292 deletions(-) diff --git a/README.md b/README.md index 9d557f2..2220fb3 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,19 @@ # Sami-App -Sami App als **Samibookkonsole Frontend-Prototyp** mit mehr Menüs und AI-Antworten. +Sami App als **Samibookkonsole Frontend-Prototyp** mit mehr Menüs, A-Z Launcher und AI-Antworten. ## Features - Neues Home-Design im Stil einer Desktop/Konsole-Mischung. -- Mehr Menüs: Home, Spiele, Apps, KI/Modu, Start, Lernen, Einstellungen, Account, Abmelden. +- Große Navigation: Home, A-Z Apps, Spiele, Apps, Tools, Media, KI/Modu, Start, Lernen, Store, Einstellungen, Account, Hilfe, Abmelden. +- A-Z App Launcher mit alphabetischer Filterung. - AI-Ansicht mit dynamischen Antworten (intent-basiert) für Code, Python, Lernplan, Social-Clones und Design-Fragen. -- Suchfeld mit Bereichs-Navigation. -- Quick-Tiles auf Home für schnellen Wechsel zwischen Modulen. +- Suchfeld mit Bereichs-Navigation und Schnellkacheln. - Theme-Umschaltung (Dark/Light). ## Start 1. `index.html` im Browser öffnen. -2. Links Menü oder Home-Tiles benutzen. -3. In `KI / Modu` Fragen an Sami AI stellen. +2. Menü oder Schnellkacheln nutzen. +3. In `KI / Modu` Fragen stellen. +4. In `A-Z Apps` per Buchstaben filtern. diff --git a/index.html b/index.html index 202a974..4e3c05c 100644 --- a/index.html +++ b/index.html @@ -17,13 +17,18 @@

Sami Soliman

@@ -49,16 +54,24 @@

🤖 Sami Ki / AI App

- + - + - + +
+
+

🔤 A-Z App Launcher

+
+
    +
    +
    +

    Echte AI Antworten (lokal intelligent)

    @@ -73,44 +86,19 @@

    Echte AI Antworten (lokal intelligent)

    -
    -
    -

    🎮 Spiele Menü

    -
      -
    • Quiz Arena
    • -
    • Snake Turbo
    • -
    • Memory Blitz
    • -
    • Racing Mini
    • -
    -
    -
    +

    🎮 Spiele Menü

    • Quiz Arena
    • Snake Turbo
    • Memory Blitz
    • Racing Mini
    • Galaxy Shooter
    -
    -
    -

    🧩 Apps Menü

    -
      -
    • Instagram Cloun
    • -
    • Facebook Cloun
    • -
    • Waapapp Cloun
    • -
    • Code Cloun
    • -
    • Pyphone Cloun
    • -
    -
    -
    +

    🧩 Apps Menü

    • Instagram Cloun
    • Facebook Cloun
    • Waapapp Cloun
    • Code Cloun
    • Pyphone Cloun
    -
    -
    -

    ⭐ Start Center

    -

    Willkommen in der Samibookkonsole – Desktop + Konsole + Mobile in einem Design.

    -
    -
    +

    🛠️ Tools

    • Rechner
    • Datei Explorer
    • Clipboard Manager
    • Screenshot Hub
    -
    -
    -

    📘 Lernen

    -

    JS, Python, AI Builder, UI/UX und API Grundlagen.

    -
    -
    +

    🎬 Media

    • Music Player
    • Video Hub
    • Wallpaper Engine
    + +

    ⭐ Start Center

    Willkommen in der Samibookkonsole – Desktop + Konsole + Mobile in einem Design.

    + +

    📘 Lernen

    JS, Python, AI Builder, UI/UX und API Grundlagen.

    + +

    🛒 Store

    • Premium Themes
    • Mini-Module Packs
    • Pro Tools Bundle
    @@ -120,20 +108,11 @@

    ⚙️ Einstellungen

    -
    -
    -

    👤 Account

    -

    Name: Sami Soliman

    -

    Plan: Premium Alpha

    -
    -
    +

    👤 Account

    Name: Sami Soliman

    Plan: Premium Alpha

    -
    -
    -

    🚪 Abmelden

    -

    Du wurdest erfolgreich abgemeldet (Demo).

    -
    -
    +

    ❓ Hilfe

    Tipps: Nutze A-Z, Suche und KI / Modu für schnelle Navigation.

    + +

    🚪 Abmelden

    Du wurdest erfolgreich abgemeldet (Demo).

    diff --git a/script.js b/script.js index e607686..3e79d4e 100644 --- a/script.js +++ b/script.js @@ -12,6 +12,17 @@ const aiMessages = document.getElementById('ai-messages'); const globalSearch = document.getElementById('global-search'); const searchBtn = document.getElementById('search-btn'); +const azFilter = document.getElementById('az-filter'); +const azList = document.getElementById('az-list'); + +const appNames = [ + 'AI Studio', 'App Center', 'Browser Pro', 'Cloud Sync', 'Code Cloun', 'Design Lab', + 'Explorer', 'Facebook Cloun', 'File Guard', 'Game Hub', 'Help Center', 'Instagram Cloun', + 'JavaScript Learn', 'Keyboard Studio', 'Launcher', 'Media Deck', 'Notes', 'Optimizer', + 'Pyphone Cloun', 'Quick Share', 'Recorder', 'Settings+', 'Theme Maker', 'Updater', + 'Video Mix', 'Waapapp Cloun', 'X-Tools', 'YouStudio', 'Zen Mode' +]; + function setActiveView(viewName) { views.forEach((view) => { view.classList.toggle('active', view.dataset.view === viewName); @@ -25,25 +36,11 @@ function setActiveView(viewName) { function smartAnswer(question) { const q = question.toLowerCase(); - if (q.includes('python')) { - return 'Python Tipp: Starte mit Funktionen, Listen und kleinen CLI-Projekten. Soll ich dir eine Übung erstellen?'; - } - - if (q.includes('code') || q.includes('javascript') || q.includes('js')) { - return 'Code-Modus: Ich empfehle eine Komponenten-Struktur (HTML/CSS/JS getrennt) und dann Schritt für Schritt Features.'; - } - - if (q.includes('instagram') || q.includes('facebook') || q.includes('whatsapp')) { - return 'Social-Clone Plan: 1) UI 2) State-Management 3) Auth 4) Realtime Chat/Feed 5) Backend API.'; - } - - if (q.includes('lernen') || q.includes('kurs') || q.includes('plan')) { - return 'Lernplan: 30 Min pro Tag — 10 Min Theorie, 15 Min Coden, 5 Min Reflektion + Notizen.'; - } - - if (q.includes('samibook') || q.includes('konsole') || q.includes('design')) { - return 'Samibookkonsole Design: Kombiniere Dock-Icons, linke Sidebar, Fensterkarten und ein Such-Launcher wie bei Desktop-OS.'; - } + if (q.includes('python')) return 'Python Tipp: Starte mit Funktionen, Listen und kleinen CLI-Projekten. Soll ich dir eine Übung erstellen?'; + if (q.includes('code') || q.includes('javascript') || q.includes('js')) return 'Code-Modus: Ich empfehle eine Komponenten-Struktur (HTML/CSS/JS getrennt) und dann Schritt für Schritt Features.'; + if (q.includes('instagram') || q.includes('facebook') || q.includes('whatsapp')) return 'Social-Clone Plan: 1) UI 2) State-Management 3) Auth 4) Realtime Chat/Feed 5) Backend API.'; + if (q.includes('lernen') || q.includes('kurs') || q.includes('plan')) return 'Lernplan: 30 Min pro Tag — 10 Min Theorie, 15 Min Coden, 5 Min Reflektion + Notizen.'; + if (q.includes('samibook') || q.includes('konsole') || q.includes('design')) return 'Samibookkonsole Design: Kombiniere Dock-Icons, linke Sidebar, Fensterkarten und ein Such-Launcher wie bei Desktop-OS.'; return 'Gute Frage! Ich kann dir bei App-Planung, UI, Python, JS und Feature-Ideen helfen. Sag mir dein Ziel in 1 Satz.'; } @@ -56,16 +53,40 @@ function addAiMessage(author, text) { aiMessages.scrollTop = aiMessages.scrollHeight; } -navButtons.forEach((button) => { - button.addEventListener('click', () => { - setActiveView(button.dataset.view); +function renderAZ(letter = 'ALL') { + if (!azList) return; + azList.innerHTML = ''; + + const filtered = appNames.filter((name) => letter === 'ALL' || name.toUpperCase().startsWith(letter)); + + filtered.forEach((name) => { + const li = document.createElement('li'); + li.textContent = name; + azList.append(li); }); +} + +function initAZFilter() { + if (!azFilter) return; + + const letters = ['ALL', ...'ABCDEFGHIJKLMNOPQRSTUVWXYZ']; + letters.forEach((letter) => { + const button = document.createElement('button'); + button.textContent = letter; + button.className = 'az-btn'; + button.addEventListener('click', () => renderAZ(letter)); + azFilter.append(button); + }); + + renderAZ(); +} + +navButtons.forEach((button) => { + button.addEventListener('click', () => setActiveView(button.dataset.view)); }); quickTiles.forEach((tile) => { - tile.addEventListener('click', () => { - setActiveView(tile.dataset.jump); - }); + tile.addEventListener('click', () => setActiveView(tile.dataset.jump)); }); if (themeToggle) { @@ -87,8 +108,7 @@ if (aiSend && aiInput) { if (!question) return; addAiMessage('Du', question); - const answer = smartAnswer(question); - addAiMessage('Sami AI', answer); + addAiMessage('Sami AI', smartAnswer(question)); aiInput.value = ''; }); } @@ -103,17 +123,14 @@ if (searchBtn && globalSearch) { } const map = [ - ['spiel', 'games'], - ['app', 'apps'], - ['ai', 'ai'], - ['ki', 'ai'], - ['lern', 'learn'], - ['einst', 'settings'], - ['konto', 'account'], - ['start', 'start'] + ['a-z', 'a-z'], ['spiel', 'games'], ['app', 'apps'], ['tool', 'tools'], ['media', 'media'], + ['ai', 'ai'], ['ki', 'ai'], ['lern', 'learn'], ['store', 'store'], ['hilfe', 'help'], + ['einst', 'settings'], ['konto', 'account'], ['start', 'start'] ]; const found = map.find(([key]) => query.includes(key)); setActiveView(found ? found[1] : 'home'); }); } + +initAZFilter(); diff --git a/styles.css b/styles.css index 1446ae8..0dbc3f6 100644 --- a/styles.css +++ b/styles.css @@ -7,9 +7,7 @@ --line: rgba(74, 156, 224, 0.45); } -* { - box-sizing: border-box; -} +* { box-sizing: border-box; } body { margin: 0; @@ -19,7 +17,6 @@ body { } body.light { - --bg: #eaf4ff; --surface: #ffffff; --text: #1b2834; --muted: #496175; @@ -27,218 +24,63 @@ body.light { background: linear-gradient(180deg, #f4faff, #deefff); } -.app-shell { - display: grid; - grid-template-columns: 250px 1fr; - min-height: 100vh; -} - -.sidebar { - background: #030509; - border-right: 1px solid var(--line); - padding: 1rem 0.8rem; -} - -body.light .sidebar { - background: #edf6ff; -} - -.profile-card.compact { - display: flex; - flex-direction: column; - gap: 0.3rem; - border: 1px solid var(--line); - border-radius: 16px; - background: var(--surface); - padding: 0.9rem; - margin-bottom: 0.9rem; -} - -.avatar.yellow { - width: 48px; - height: 48px; - border-radius: 999px; - background: #ffe539; -} - -.profile-card h1 { - margin: 0; - font-size: 1.65rem; -} +.app-shell { display: grid; grid-template-columns: 255px 1fr; min-height: 100vh; } +.sidebar { background: #030509; border-right: 1px solid var(--line); padding: 1rem 0.8rem; overflow: auto; } +body.light .sidebar { background: #edf6ff; } -.username { - margin: 0; - color: var(--muted); -} +.profile-card.compact { display: flex; flex-direction: column; gap: 0.3rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 0.9rem; margin-bottom: 0.9rem; } +.avatar.yellow { width: 48px; height: 48px; border-radius: 999px; background: #ffe539; } +.profile-card h1 { margin: 0; font-size: 1.6rem; } +.username { margin: 0; color: var(--muted); } .nav-item { - width: 100%; - text-align: left; - margin: 0.25rem 0; - border: 0; - border-radius: 10px; - padding: 0.72rem 0.7rem; - background: linear-gradient(90deg, #081b2b, #12283c); - color: #eff7ff; - cursor: pointer; + width: 100%; text-align: left; margin: 0.25rem 0; border: 0; border-radius: 10px; + padding: 0.72rem 0.7rem; background: linear-gradient(90deg, #081b2b, #12283c); color: #eff7ff; cursor: pointer; } +.nav-item.active { background: linear-gradient(90deg, #2eb8ff, #1c5f8d); } -.nav-item.active { - background: linear-gradient(90deg, #2eb8ff, #1c5f8d); -} +.content { padding: 1rem; background: linear-gradient(180deg, rgba(4, 9, 15, 0.9), rgba(3, 6, 11, 0.98)); } +body.light .content { background: transparent; } -.content { - padding: 1rem; - background: linear-gradient(180deg, rgba(4, 9, 15, 0.9), rgba(3, 6, 11, 0.98)); -} +.hero { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; } +.hero h2 { margin: 0; font-size: 2rem; } +.hero p { margin: 0.35rem 0 0; color: var(--muted); } -body.light .content { - background: transparent; +#theme-toggle, #search-btn, #ai-send, .az-btn { + border: 0; border-radius: 10px; padding: 0.64rem 0.85rem; + background: linear-gradient(90deg, #081d2e, #1a3248); color: #e8f5ff; cursor: pointer; } -.hero { - border: 1px solid var(--line); - border-radius: 18px; - background: var(--surface); - padding: 1rem; - display: flex; - align-items: center; - justify-content: space-between; - gap: 1rem; -} - -.hero h2 { - margin: 0; - font-size: 2rem; -} - -.hero p { - margin: 0.35rem 0 0; - color: var(--muted); -} - -#theme-toggle, -#search-btn, -#ai-send { - border: 0; - border-radius: 10px; - padding: 0.64rem 0.85rem; - background: linear-gradient(90deg, #081d2e, #1a3248); - color: #e8f5ff; - cursor: pointer; -} - -.search-wrap { - margin-top: 0.75rem; - display: grid; - grid-template-columns: 1fr auto; - gap: 0.5rem; -} - -input { - width: 100%; - border: 1px solid var(--line); - border-radius: 10px; - padding: 0.75rem 0.8rem; - background: #050b15; - color: #cde8ff; -} - -body.light input { - background: #f7fbff; - color: #0e2638; -} - -.quick-grid { - margin-top: 0.9rem; - display: grid; - grid-template-columns: repeat(4, minmax(110px, 1fr)); - gap: 0.7rem; -} +.search-wrap { margin-top: 0.75rem; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; } +input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem 0.8rem; background: #050b15; color: #cde8ff; } +body.light input { background: #f7fbff; color: #0e2638; } +.quick-grid { margin-top: 0.9rem; display: grid; grid-template-columns: repeat(4, minmax(110px, 1fr)); gap: 0.7rem; } .quick-tile { - border: 1px solid var(--line); - border-radius: 14px; - background: var(--surface); - color: var(--text); - min-height: 95px; - display: grid; - place-items: center; - align-content: center; - gap: 0.35rem; - font-size: 1.65rem; - cursor: pointer; -} - -.quick-tile span { - font-size: 0.92rem; + border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); + min-height: 95px; display: grid; place-items: center; align-content: center; gap: 0.35rem; font-size: 1.65rem; cursor: pointer; } +.quick-tile span { font-size: 0.92rem; } -.view { - display: none; - margin-top: 0.8rem; -} +.view { display: none; margin-top: 0.8rem; } +.view.active { display: block; } -.view.active { - display: block; -} +.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 1rem; } +.panel h3 { margin-top: 0; } +.panel ul { margin: 0; padding-left: 1.2rem; } +.muted { color: var(--muted); } -.panel { - border: 1px solid var(--line); - border-radius: 16px; - background: var(--surface); - padding: 1rem; -} +.ai-messages { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem; min-height: 170px; max-height: 300px; overflow: auto; background: rgba(5, 12, 20, 0.75); } +.chat-send { margin-top: 0.6rem; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; } +.row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding: 0.55rem 0; } -.panel h3 { - margin-top: 0; -} - -.panel ul { - margin: 0; - padding-left: 1.2rem; -} - -.muted { - color: var(--muted); -} - -.ai-messages { - border: 1px solid var(--line); - border-radius: 12px; - padding: 0.8rem; - min-height: 170px; - max-height: 300px; - overflow: auto; - background: rgba(5, 12, 20, 0.75); -} - -.chat-send { - margin-top: 0.6rem; - display: grid; - grid-template-columns: 1fr auto; - gap: 0.5rem; -} - -.row { - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--line); - padding: 0.55rem 0; -} +.az-filter { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.75rem; } +.az-btn { padding: 0.4rem 0.55rem; min-width: 40px; } +.az-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; } +.az-list li { border: 1px solid var(--line); border-radius: 10px; padding: 0.45rem 0.6rem; background: rgba(11, 26, 41, 0.5); } @media (max-width: 980px) { - .app-shell { - grid-template-columns: 1fr; - } - - .sidebar { - border-right: 0; - border-bottom: 1px solid var(--line); - } - - .quick-grid { - grid-template-columns: repeat(2, minmax(120px, 1fr)); - } + .app-shell { grid-template-columns: 1fr; } + .sidebar { border-right: 0; border-bottom: 1px solid var(--line); } + .quick-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); } }