Enhance UI and functionality across multiple components

- Updated styles in style.css to improve overall design consistency and introduced CSS variables for better theming.
- Refined ChatWindow.vue with improved no-conversation styling and adjusted image borders for a cleaner look.
- Enhanced HistoryView.vue and InboxView.vue with new panel styles for better user experience and readability.
- Revamped LoginForm.vue to provide a more engaging user interface with a landing page layout and cookie-based profile persistence.
- Improved MenuBar.vue and SearchView.vue with active state indicators and refined item displays for better navigation.
- Added logout functionality in chat store and server routes to manage user sessions effectively.
- Introduced a new mockup view route for design previews.

These changes collectively enhance the user experience and visual appeal of the application.
This commit is contained in:
Torsten Schulz (local)
2026-03-19 15:01:59 +01:00
parent 8f3cbc16b8
commit 0205352ae9
15 changed files with 2432 additions and 350 deletions

View File

@@ -1,16 +1,26 @@
<template>
<div class="chat-container">
<header class="header">
<h1>SingleChat</h1>
<div class="app-brand">
<span class="app-brand-mark">S</span>
<div class="app-brand-copy">
<span class="app-brand-eyebrow">SingleChat</span>
<h1>Chat</h1>
</div>
</div>
<div v-if="chatStore.isLoggedIn" class="header-status">
<span class="header-status-chip">{{ chatStore.userName }}</span>
<span v-if="chatStore.isoCountryCode" class="header-status-chip">{{ chatStore.isoCountryCode }}</span>
</div>
</header>
<MenuBar />
<MenuBar v-if="chatStore.isLoggedIn" />
<div class="horizontal-box">
<UserList />
<div class="horizontal-box" :class="{ 'horizontal-box-login': !chatStore.isLoggedIn, 'horizontal-box-app': chatStore.isLoggedIn }">
<UserList v-if="chatStore.isLoggedIn" />
<div class="content">
<div v-if="!chatStore.isLoggedIn" class="login-form">
<div v-if="!chatStore.isLoggedIn" class="login-screen">
<LoginForm />
</div>
@@ -46,11 +56,14 @@
</table>
</div>
</div>
<div v-else-if="chatStore.currentConversation && currentUserInfo" :class="['chat-header', 'chat-header-gender-' + currentUserInfo.gender]">
<h2>{{ chatStore.currentConversation }} ({{ currentUserInfo.gender }})</h2>
<div class="chat-header-info">
<span v-if="currentUserInfo">{{ currentUserInfo.age }}</span>
<span v-if="currentUserInfo">{{ currentUserInfo.country }}</span>
<div v-else-if="chatStore.currentConversation && currentUserInfo" class="chat-header">
<span :class="['chat-header-accent', 'chat-header-accent-' + currentUserInfo.gender]"></span>
<div class="chat-header-main">
<h2>{{ chatStore.currentConversation }}</h2>
<div class="chat-header-info">
<span v-if="currentUserInfo">{{ currentUserInfo.country }}</span>
<span v-if="currentUserInfo">{{ currentUserInfo.age }} · {{ currentUserInfo.gender }}</span>
</div>
</div>
</div>
<ChatWindow />
@@ -67,7 +80,6 @@
<script setup>
import { onMounted, computed } from 'vue';
import { useChatStore } from '../stores/chat';
import { useI18n } from 'vue-i18n';
import MenuBar from '../components/MenuBar.vue';
import UserList from '../components/UserList.vue';
import LoginForm from '../components/LoginForm.vue';
@@ -79,24 +91,12 @@ import HistoryView from '../components/HistoryView.vue';
import ImprintContainer from '../components/ImprintContainer.vue';
const chatStore = useChatStore();
const { t } = useI18n();
const currentUserInfo = computed(() => {
if (!chatStore.currentConversation) return null;
return chatStore.users.find(u => u.userName === chatStore.currentConversation);
});
function formatGender(gender) {
const genderMap = {
'F': t('gender_female'),
'M': t('gender_male'),
'P': t('gender_pair'),
'TF': t('gender_trans_mf'),
'TM': t('gender_trans_fm')
};
return genderMap[gender] || gender;
}
onMounted(async () => {
// Versuche Session wiederherzustellen
const sessionRestored = await chatStore.restoreSession();
@@ -123,6 +123,24 @@ onMounted(async () => {
height: 100%;
}
.login-screen {
flex: 1;
min-height: 0;
padding: 28px;
display: flex;
align-items: center;
justify-content: center;
overflow: auto;
background:
radial-gradient(circle at left top, rgba(61, 134, 84, 0.2), transparent 24%),
radial-gradient(circle at right bottom, rgba(36, 92, 58, 0.12), transparent 26%),
linear-gradient(180deg, rgba(231, 241, 234, 0.95) 0%, rgba(237, 242, 238, 0.96) 48%, rgba(227, 236, 229, 0.98) 100%);
}
.horizontal-box-login {
display: block;
}
.chat-content {
display: flex;
flex-direction: column;
@@ -133,62 +151,79 @@ onMounted(async () => {
}
.chat-header {
padding: 0.5em 1em;
padding: 0.7rem 1rem;
flex-shrink: 0;
border-bottom: 1px solid #999;
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
gap: 0.85rem;
background: linear-gradient(180deg, rgba(225, 239, 229, 0.92) 0%, rgba(247, 250, 248, 0.9) 100%);
}
.chat-header-gender-M {
background-color: #0066CC;
.chat-header-accent {
width: 0.6rem;
height: 2.4rem;
border-radius: 999px;
flex-shrink: 0;
}
.chat-header-gender-F {
background-color: #FF4081;
.chat-header-accent-M {
background: linear-gradient(180deg, #5a94d2 0%, #467bb2 100%);
}
.chat-header-gender-P {
background-color: #FFC107;
.chat-header-accent-F {
background: linear-gradient(180deg, #ff7eaa 0%, #d85f8c 100%);
}
.chat-header-gender-TF {
background-color: #8E24AA;
.chat-header-accent-P {
background: linear-gradient(180deg, #e0ab46 0%, #c78a2c 100%);
}
.chat-header-gender-TM {
background-color: #90caf9;
.chat-header-accent-TF {
background: linear-gradient(180deg, #a37ac8 0%, #8b60af 100%);
}
.chat-header-accent-TM {
background: linear-gradient(180deg, #79b8d0 0%, #5fa2bf 100%);
}
.chat-header-main {
min-width: 0;
}
.chat-header h2 {
margin: 0 0 0.3em 0;
font-size: 1.5em;
color: #fff;
margin: 0;
font-size: 1rem;
line-height: 1.2;
color: var(--color-text-strong);
}
.chat-header-info {
font-size: 0.75em;
color: #fff;
margin-top: 0.18rem;
font-size: 0.75rem;
color: var(--color-text-muted);
display: flex;
flex-direction: row;
gap: 0.8em;
gap: 0.8rem;
align-items: center;
}
.error-message {
padding: 1em;
background-color: #ffebee;
color: #c62828;
border: 1px solid #ef5350;
margin: 1em;
border-radius: 4px;
padding: 0.9rem 1rem;
background-color: #fff1f1;
color: #a83f3f;
border: 1px solid #efc3c3;
margin: 0.9rem;
border-radius: 10px;
text-align: center;
font-weight: bold;
}
.command-table-container {
margin: 0.8em;
border: 1px solid #ccc;
border-radius: 6px;
background: #fff;
margin: 0.9rem;
border: 1px solid var(--color-border);
border-radius: 12px;
background: var(--color-surface);
overflow: hidden;
}
@@ -196,17 +231,17 @@ onMounted(async () => {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.6em 0.8em;
background: #f4f6f8;
border-bottom: 1px solid #ddd;
padding: 0.7rem 0.85rem;
background: var(--color-surface-subtle);
border-bottom: 1px solid var(--color-border);
}
.command-table-close {
border: 1px solid #bbb;
background: #fff;
padding: 0.2em 0.6em;
border: 1px solid var(--color-border);
background: var(--color-surface);
padding: 0.35rem 0.7rem;
cursor: pointer;
border-radius: 4px;
border-radius: 8px;
}
.command-table-scroll {
@@ -222,15 +257,14 @@ onMounted(async () => {
.command-table th,
.command-table td {
padding: 0.45em 0.6em;
border-bottom: 1px solid #eee;
padding: 0.5rem 0.65rem;
border-bottom: 1px solid #edf1ee;
text-align: left;
}
.command-table th {
background: #fafafa;
background: #f9fbfa;
position: sticky;
top: 0;
}
</style>

View File

@@ -0,0 +1,992 @@
<template>
<div class="mockup-page">
<header class="mockup-page-header">
<div>
<p class="mockup-page-eyebrow">SingleChat Redesign</p>
<h1>Mockup-Vergleich</h1>
</div>
<p class="mockup-page-copy">
Zwei jetzt klarer getrennte Richtungen: A bleibt kompakt und direkt, B arbeitet sichtbarer mit Farbflaechen und moderneren Layern. Beide zeigen staerkere Identifikationsfarben und eine schmalere Userliste.
</p>
</header>
<div class="mockup-compare">
<section class="mockup-column mockup-column-single">
<div class="mockup-column-header">
<div>
<p class="mockup-variant-label">Zielrichtung</p>
<h2>Polished Compact</h2>
</div>
<p>
Grundlage ist das modernere Design der zweiten Version, aber mit direkterer Sprache wie in Variante A, staerkerem Gruen im Header und einer einzeiligen, deutlich kompakteren Userliste.
</p>
</div>
<div class="mockup-shell mockup-shell-polished">
<header class="mockup-topbar">
<div class="mockup-brand">
<div class="mockup-brand-mark">S</div>
<div>
<p class="mockup-eyebrow">Design Preview</p>
<h3>SingleChat</h3>
</div>
</div>
<div class="mockup-session">
<span class="mockup-chip">09:24 online</span>
<span class="mockup-chip mockup-chip-accent">Inbox 3</span>
</div>
</header>
<nav class="mockup-toolbar">
<button class="mockup-tool-button">Chat</button>
<button class="mockup-tool-button mockup-tool-button-active">Suche</button>
<button class="mockup-tool-button">Postfach</button>
<button class="mockup-tool-button">Verlauf</button>
<div class="mockup-toolbar-meta">
<span>Mara aktiv</span>
<span>04:18</span>
</div>
</nav>
<div class="mockup-layout">
<aside class="mockup-sidebar">
<div class="mockup-sidebar-header">
<h4>Online</h4>
<span>2.184</span>
</div>
<div class="mockup-user-list">
<button class="mockup-user mockup-user-active">
<span class="mockup-flag">DE</span>
<span class="mockup-user-copy">
<strong>Mara</strong>
<em>27 · F</em>
</span>
</button>
<button class="mockup-user">
<span class="mockup-flag">NL</span>
<span class="mockup-user-copy">
<strong>AlexWave</strong>
<em>29 · TM</em>
</span>
</button>
<button class="mockup-user">
<span class="mockup-flag">CH</span>
<span class="mockup-user-copy">
<strong>couple.sun</strong>
<em>31 · P</em>
</span>
</button>
<button class="mockup-user">
<span class="mockup-flag">FR</span>
<span class="mockup-user-copy">
<strong>lina.n</strong>
<em>25 · TF</em>
</span>
</button>
</div>
</aside>
<main class="mockup-main">
<section class="mockup-chat-header">
<div class="mockup-chat-identity">
<span class="mockup-chat-accent mockup-chat-accent-f"></span>
<div>
<h4>Mara</h4>
<p>27 Jahre · Deutschland</p>
</div>
</div>
<div class="mockup-chat-meta">
<span class="mockup-badge">Online</span>
</div>
</section>
<section class="mockup-chat-window">
<article class="mockup-message mockup-message-other">
<p class="mockup-message-author">Mara</p>
<div class="mockup-bubble">
Hey, dein Profil ist mir gerade in der Liste aufgefallen.
</div>
<time>14:02</time>
</article>
<article class="mockup-message mockup-message-self">
<p class="mockup-message-author">Du</p>
<div class="mockup-bubble">
Die Farben wirken ruhiger und die Flaechen deutlich geordneter.
</div>
<time>14:03</time>
</article>
<article class="mockup-message mockup-message-other">
<p class="mockup-message-author">Mara</p>
<div class="mockup-bubble">
Ja, es bleibt vertraut, aber fuehlt sich praeziser an.
</div>
<time>14:04</time>
</article>
</section>
<section class="mockup-input-bar">
<button class="mockup-icon-button" aria-label="Smileys">:-)</button>
<input type="text" value="Nachricht senden oder /Befehl eingeben" readonly />
<button class="mockup-icon-button" aria-label="Bild">+</button>
<button class="mockup-send-button">Senden</button>
</section>
<footer class="mockup-footer">
<a href="#">Impressum</a>
<a href="#">Datenschutz</a>
</footer>
</main>
</div>
</div>
<div class="mockup-mobile-device mockup-mobile-device-polished">
<div class="mockup-mobile-top">
<span>SingleChat</span>
<span class="mockup-mobile-pill">3</span>
</div>
<div class="mockup-mobile-chat-header">
<strong>Mara</strong>
<small>27 · DE</small>
</div>
<div class="mockup-mobile-messages">
<div class="mockup-mobile-bubble mockup-mobile-bubble-other">Kompakter, wirkt moderner.</div>
<div class="mockup-mobile-bubble mockup-mobile-bubble-self">Genau das ist hier die Richtung.</div>
</div>
<div class="mockup-mobile-input">
<span>Nachricht...</span>
<button>Senden</button>
</div>
</div>
</section>
</div>
</div>
</template>
<style scoped>
.mockup-page {
min-height: 100vh;
overflow: auto;
background:
radial-gradient(circle at top left, rgba(61, 134, 84, 0.14), transparent 26%),
linear-gradient(180deg, #f6f8f6 0%, #edf1ee 100%);
color: #18201b;
padding: 28px;
}
.mockup-page-header {
max-width: 1360px;
margin: 0 auto 20px;
display: flex;
justify-content: space-between;
gap: 20px;
align-items: flex-end;
}
.mockup-page-eyebrow,
.mockup-variant-label,
.mockup-eyebrow {
margin: 0 0 4px;
font-size: 11px;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #6a766e;
}
.mockup-page-header h1,
.mockup-column-header h2,
.mockup-brand h3,
.mockup-sidebar-header h4,
.mockup-chat-identity h4 {
margin: 0;
}
.mockup-page-header h1 {
font-size: 28px;
}
.mockup-page-copy {
max-width: 620px;
margin: 0;
font-size: 14px;
line-height: 1.5;
color: #5d695f;
}
.mockup-compare {
max-width: 1360px;
margin: 0 auto;
display: block;
}
.mockup-column {
min-width: 0;
}
.mockup-column-single {
max-width: 1100px;
}
.mockup-column-header {
margin-bottom: 14px;
padding: 0 4px;
}
.mockup-column-header h2 {
font-size: 22px;
margin-bottom: 6px;
}
.mockup-column-header p:last-child {
margin: 0;
font-size: 14px;
line-height: 1.5;
color: #5d695f;
}
.mockup-shell {
overflow: hidden;
}
.mockup-shell-calm {
border: 1px solid #d7dfd9;
border-radius: 18px;
background: rgba(255, 255, 255, 0.94);
box-shadow: 0 24px 60px rgba(31, 50, 39, 0.08);
}
.mockup-shell-polished {
border: 1px solid rgba(201, 213, 203, 0.9);
border-radius: 20px;
background:
linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 250, 248, 0.94) 100%);
box-shadow:
0 28px 70px rgba(31, 50, 39, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.mockup-topbar {
height: 58px;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #dde5df;
}
.mockup-shell-calm .mockup-topbar {
background: rgba(255, 255, 255, 0.88);
}
.mockup-shell-polished .mockup-topbar {
background:
linear-gradient(180deg, rgba(208, 232, 216, 0.98) 0%, rgba(235, 245, 238, 0.94) 55%, rgba(247, 250, 248, 0.92) 100%);
}
.mockup-brand {
display: flex;
align-items: center;
gap: 12px;
}
.mockup-brand-mark {
width: 32px;
height: 32px;
border-radius: 9px;
display: grid;
place-items: center;
background: linear-gradient(180deg, #3d8654 0%, #245c3a 100%);
color: #fff;
font-weight: 700;
}
.mockup-shell-polished .mockup-brand-mark {
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.mockup-brand h3 {
font-size: 18px;
line-height: 1;
}
.mockup-session {
display: flex;
gap: 8px;
}
.mockup-chip {
display: inline-flex;
align-items: center;
min-height: 26px;
padding: 0 10px;
border-radius: 999px;
font-size: 11px;
color: #4e5a52;
}
.mockup-shell-calm .mockup-chip {
background: #eef2ef;
border: 1px solid #dde5df;
}
.mockup-shell-calm .mockup-chip-accent {
background: #e7f1ea;
color: #245c3a;
border-color: #c8dbc9;
}
.mockup-shell-polished .mockup-chip {
background: rgba(241, 245, 242, 0.95);
border: 1px solid #d8e0da;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.mockup-shell-polished .mockup-chip-accent {
background: linear-gradient(180deg, #edf7f0 0%, #e1efe5 100%);
color: #245c3a;
border-color: #cadecf;
}
.mockup-toolbar {
min-height: 42px;
padding: 5px 12px;
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid #dde5df;
}
.mockup-shell-calm .mockup-toolbar {
background: #f8faf8;
}
.mockup-shell-polished .mockup-toolbar {
background: rgba(247, 250, 248, 0.92);
}
.mockup-tool-button {
height: 30px;
padding: 0 12px;
border-radius: 8px;
border: 1px solid transparent;
background: transparent;
color: #425047;
font-size: 12px;
font-weight: 600;
}
.mockup-shell-calm .mockup-tool-button-active {
background: #e7f1ea;
border-color: #c8dbc9;
color: #245c3a;
}
.mockup-shell-polished .mockup-tool-button-active {
background: linear-gradient(180deg, #dceee1 0%, #cfe6d6 100%);
border-color: #b8d4bf;
color: #1f4f32;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.mockup-toolbar-meta {
margin-left: auto;
display: flex;
gap: 16px;
font-size: 11px;
color: #627067;
}
.mockup-layout {
display: grid;
grid-template-columns: 188px minmax(0, 1fr);
min-height: 620px;
}
.mockup-sidebar {
padding: 10px 8px;
border-right: 1px solid #dde5df;
}
.mockup-shell-calm .mockup-sidebar {
background: #f7f9f7;
}
.mockup-shell-polished .mockup-sidebar {
background:
linear-gradient(180deg, rgba(247, 250, 247, 0.95) 0%, rgba(242, 246, 243, 0.92) 100%);
}
.mockup-sidebar-header {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 12px;
}
.mockup-sidebar-header h4 {
font-size: 15px;
}
.mockup-sidebar-header span {
font-size: 12px;
color: #68756d;
}
.mockup-user-list {
display: flex;
flex-direction: column;
gap: 4px;
}
.mockup-user {
width: 100%;
min-height: 30px;
border-radius: 8px;
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
gap: 6px;
align-items: center;
padding: 4px 6px;
text-align: left;
}
.mockup-shell-calm .mockup-user {
border: 1px solid transparent;
background: transparent;
}
.mockup-shell-calm .mockup-user-active {
background: #ffffff;
border-color: #d9e2db;
box-shadow: 0 6px 14px rgba(35, 54, 42, 0.05);
}
.mockup-shell-polished .mockup-user {
border: 1px solid rgba(217, 225, 218, 0.8);
background: rgba(255, 255, 255, 0.7);
}
.mockup-shell-polished .mockup-user-active {
background: linear-gradient(180deg, rgba(236, 246, 239, 0.98) 0%, rgba(226, 239, 231, 0.96) 100%);
box-shadow:
0 8px 18px rgba(35, 54, 42, 0.06),
inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.mockup-user-accent-f {
background: #d85f8c;
}
.mockup-user-accent-m {
background: #467bb2;
}
.mockup-user-accent-p {
background: #c78a2c;
}
.mockup-user-accent-tf {
background: #8b60af;
}
.mockup-user-accent-tm {
background: #5fa2bf;
}
.mockup-flag {
width: 28px;
height: 20px;
border-radius: 5px;
display: grid;
place-items: center;
font-size: 11px;
font-weight: 700;
color: #506057;
}
.mockup-shell-calm .mockup-flag {
background: #e9eeea;
border: 1px solid #d7dfd9;
}
.mockup-shell-polished .mockup-flag {
background: linear-gradient(180deg, #f0f4f1 0%, #e7ede8 100%);
border: 1px solid #d5ded7;
}
.mockup-user-copy {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
min-width: 0;
}
.mockup-user-copy strong {
font-size: 12px;
font-weight: 600;
color: #1c251f;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.mockup-user-copy em {
font-style: normal;
font-size: 11px;
font-weight: 600;
color: #536159;
text-align: right;
white-space: nowrap;
}
.mockup-main {
display: flex;
flex-direction: column;
min-width: 0;
}
.mockup-shell-calm .mockup-main {
background: linear-gradient(180deg, #fbfcfb 0%, #f4f7f4 100%);
}
.mockup-shell-polished .mockup-main {
background:
radial-gradient(circle at top right, rgba(61, 134, 84, 0.08), transparent 26%),
linear-gradient(180deg, #fbfdfb 0%, #f3f7f4 100%);
}
.mockup-chat-header {
min-height: 68px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 20px;
border-bottom: 1px solid #dde5df;
}
.mockup-shell-calm .mockup-chat-header {
background: rgba(255, 255, 255, 0.7);
}
.mockup-shell-polished .mockup-chat-header {
background:
linear-gradient(180deg, rgba(235, 244, 237, 0.9) 0%, rgba(248, 251, 248, 0.8) 100%);
}
.mockup-chat-identity {
display: flex;
align-items: center;
gap: 14px;
}
.mockup-chat-accent {
width: 10px;
height: 38px;
border-radius: 999px;
}
.mockup-chat-accent-f {
background: linear-gradient(180deg, #ff6f9f 0%, #d85f8c 100%);
}
.mockup-chat-identity h4 {
margin-bottom: 4px;
font-size: 18px;
}
.mockup-chat-identity p {
margin: 0;
font-size: 13px;
color: #627067;
}
.mockup-badge {
display: inline-flex;
align-items: center;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
}
.mockup-shell-calm .mockup-badge {
background: #edf5ef;
border: 1px solid #d3e3d5;
color: #2f6f46;
}
.mockup-shell-polished .mockup-badge {
background: linear-gradient(180deg, #e4f2e8 0%, #d4e7da 100%);
border: 1px solid #c0d7c7;
color: #2a6440;
}
.mockup-chat-window {
flex: 1;
min-height: 0;
padding: 18px 20px;
display: flex;
flex-direction: column;
gap: 12px;
}
.mockup-message {
display: flex;
flex-direction: column;
gap: 4px;
max-width: 72%;
}
.mockup-message-self {
align-self: flex-end;
}
.mockup-message-other {
align-self: flex-start;
}
.mockup-message-system {
align-self: center;
max-width: 100%;
}
.mockup-message-author,
.mockup-message time {
font-size: 11px;
color: #748077;
}
.mockup-bubble {
padding: 10px 12px;
border-radius: 10px;
line-height: 1.45;
font-size: 14px;
}
.mockup-shell-calm .mockup-bubble {
border: 1px solid #dce3de;
background: #ffffff;
}
.mockup-shell-calm .mockup-message-self .mockup-bubble {
background: #edf5ef;
border-color: #d4e3d7;
}
.mockup-shell-polished .mockup-bubble {
border: 1px solid rgba(217, 226, 219, 0.9);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 247, 0.96) 100%);
box-shadow: 0 10px 18px rgba(35, 54, 42, 0.05);
}
.mockup-shell-polished .mockup-message-self .mockup-bubble {
background: linear-gradient(180deg, #dff0e4 0%, #d2e7d9 100%);
border-color: #c5dbcce8;
}
.mockup-input-bar {
min-height: 68px;
padding: 12px 16px;
display: grid;
grid-template-columns: 40px minmax(0, 1fr) 40px 96px;
gap: 8px;
border-top: 1px solid #dde5df;
}
.mockup-shell-calm .mockup-input-bar {
background: rgba(255, 255, 255, 0.9);
}
.mockup-shell-polished .mockup-input-bar {
background:
linear-gradient(180deg, rgba(238, 245, 240, 0.92) 0%, rgba(247, 250, 248, 0.88) 100%);
}
.mockup-footer {
min-height: 34px;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: center;
gap: 18px;
border-top: 1px solid #dde5df;
background: rgba(255, 255, 255, 0.94);
flex-shrink: 0;
}
.mockup-footer a {
font-size: 11px;
font-weight: 500;
color: #54635a;
text-decoration: none;
}
.mockup-input-bar input {
width: 100%;
height: 40px;
border-radius: 8px;
padding: 0 12px;
color: #647068;
}
.mockup-shell-calm .mockup-input-bar input {
border: 1px solid #d7dfd9;
background: #f9fbf9;
}
.mockup-shell-polished .mockup-input-bar input {
border: 1px solid #d7dfd9;
background: linear-gradient(180deg, #fcfefc 0%, #f0f6f2 100%);
}
.mockup-icon-button,
.mockup-send-button {
height: 40px;
border-radius: 8px;
font-weight: 600;
}
.mockup-shell-calm .mockup-icon-button {
border: 1px solid #d7dfd9;
background: #f7faf7;
color: #3f4c44;
}
.mockup-shell-polished .mockup-icon-button {
border: 1px solid #d7dfd9;
background: linear-gradient(180deg, #fdfefd 0%, #edf4ef 100%);
color: #3f4c44;
}
.mockup-send-button {
color: #fff;
}
.mockup-shell-calm .mockup-send-button {
border: 1px solid #2d6944;
background: linear-gradient(180deg, #3d8654 0%, #2f6f46 100%);
}
.mockup-shell-polished .mockup-send-button {
border: 1px solid #295f3d;
background: linear-gradient(180deg, #4a8d61 0%, #2c6240 100%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}
.mockup-mobile-device {
width: 300px;
margin-top: 18px;
border-radius: 28px;
padding: 14px;
}
.mockup-mobile-device-calm {
border: 1px solid #d7dfd9;
background: #fcfdfc;
box-shadow: 0 18px 40px rgba(31, 50, 39, 0.08);
}
.mockup-mobile-device-polished {
border: 1px solid #d7dfd9;
background: linear-gradient(180deg, #fefefe 0%, #f5f8f6 100%);
box-shadow: 0 22px 48px rgba(31, 50, 39, 0.1);
}
.mockup-mobile-top {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
font-size: 13px;
font-weight: 600;
}
.mockup-mobile-pill {
min-width: 24px;
height: 24px;
border-radius: 999px;
display: grid;
place-items: center;
background: #e7f1ea;
color: #245c3a;
}
.mockup-shell-calm .mockup-user:nth-child(1) {
background-image: linear-gradient(90deg, rgba(216, 95, 140, 0.16), transparent 72%);
}
.mockup-shell-calm .mockup-user:nth-child(2) {
background-image: linear-gradient(90deg, rgba(70, 123, 178, 0.14), transparent 72%);
}
.mockup-shell-calm .mockup-user:nth-child(3) {
background-image: linear-gradient(90deg, rgba(199, 138, 44, 0.16), transparent 72%);
}
.mockup-shell-calm .mockup-user:nth-child(4) {
background-image: linear-gradient(90deg, rgba(139, 96, 175, 0.14), transparent 72%);
}
.mockup-shell-polished .mockup-user:nth-child(1) {
background-image: linear-gradient(90deg, rgba(216, 95, 140, 0.26), rgba(255, 255, 255, 0.68) 72%);
}
.mockup-shell-polished .mockup-user:nth-child(2) {
background-image: linear-gradient(90deg, rgba(70, 123, 178, 0.22), rgba(255, 255, 255, 0.68) 72%);
}
.mockup-shell-polished .mockup-user:nth-child(3) {
background-image: linear-gradient(90deg, rgba(199, 138, 44, 0.24), rgba(255, 255, 255, 0.68) 72%);
}
.mockup-shell-polished .mockup-user:nth-child(4) {
background-image: linear-gradient(90deg, rgba(139, 96, 175, 0.22), rgba(255, 255, 255, 0.68) 72%);
}
.mockup-mobile-chat-header,
.mockup-mobile-input {
display: grid;
align-items: center;
padding: 10px 12px;
border-radius: 12px;
}
.mockup-mobile-chat-header {
grid-template-columns: 1fr auto;
margin-bottom: 10px;
}
.mockup-mobile-device-calm .mockup-mobile-chat-header,
.mockup-mobile-device-calm .mockup-mobile-input {
background: #f2f6f3;
border: 1px solid #dbe3dd;
}
.mockup-mobile-device-polished .mockup-mobile-chat-header,
.mockup-mobile-device-polished .mockup-mobile-input {
background: linear-gradient(180deg, #f8fbf9 0%, #f0f5f2 100%);
border: 1px solid #dbe3dd;
}
.mockup-mobile-chat-header small {
color: #637068;
}
.mockup-mobile-messages {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 10px;
}
.mockup-mobile-bubble {
max-width: 82%;
padding: 10px 12px;
border-radius: 10px;
font-size: 13px;
}
.mockup-mobile-device-calm .mockup-mobile-bubble-other {
background: #fff;
border: 1px solid #dce3de;
}
.mockup-mobile-device-calm .mockup-mobile-bubble-self {
align-self: flex-end;
background: #edf5ef;
border: 1px solid #d4e3d7;
}
.mockup-mobile-device-polished .mockup-mobile-bubble-other {
background: linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
border: 1px solid #dce3de;
}
.mockup-mobile-device-polished .mockup-mobile-bubble-self {
align-self: flex-end;
background: linear-gradient(180deg, #eff7f1 0%, #e5f0e8 100%);
border: 1px solid #d4e3d7;
}
.mockup-mobile-input {
grid-template-columns: 1fr auto;
gap: 8px;
color: #68756d;
font-size: 13px;
}
.mockup-mobile-input button {
height: 32px;
padding: 0 12px;
border: none;
border-radius: 8px;
background: #2f6f46;
color: #fff;
font-size: 12px;
font-weight: 600;
}
@media (max-width: 820px) {
.mockup-page {
padding: 16px;
}
.mockup-page-header {
flex-direction: column;
align-items: flex-start;
}
.mockup-layout {
grid-template-columns: 1fr;
}
.mockup-sidebar {
border-right: none;
border-bottom: 1px solid #dde5df;
}
.mockup-toolbar {
flex-wrap: wrap;
}
.mockup-toolbar-meta {
width: 100%;
margin-left: 0;
}
}
@media (max-width: 640px) {
.mockup-topbar {
height: auto;
padding: 14px;
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.mockup-session {
flex-wrap: wrap;
}
.mockup-input-bar {
grid-template-columns: 40px minmax(0, 1fr) 84px;
}
.mockup-input-bar .mockup-icon-button:last-of-type {
display: none;
}
.mockup-message {
max-width: 100%;
}
}
</style>