/* ============================================================ GRAMATON.PRO — PREMIUM THEME SYSTEM Old Money (Classic) & Deep Cyber (Neon) ============================================================ */ /* ---------- CSS CUSTOM PROPERTIES (THEME TOKENS) ---------- */ :root, [data-theme="old-money"] { /* 🎨 Old Money — классическая роскошь */ /* Backgrounds */ --bg-primary: #0a0516; --bg-secondary: #050112; --bg-card: rgba(18, 11, 34, 0.45); --bg-card-hover: rgba(30, 18, 50, 0.55); --bg-drawer: rgba(10, 5, 22, 0.85); --bg-overlay: rgba(0, 0, 0, 0.6); /* Glassmorphism */ --glass-bg: rgba(18, 11, 34, 0.55); --glass-blur: 25px; --glass-border: 1px solid rgba(122, 34, 166, 0.2); --glass-border-hover: 1px solid rgba(122, 34, 166, 0.4); /* Text */ --text-primary: #e0d5c1; --text-secondary: rgba(224, 213, 193, 0.7); --text-muted: rgba(224, 213, 193, 0.4); --text-accent: #d4a853; /* Accent colors */ --accent-purple: #7A22A6; --accent-purple-dark: #3B1154; --accent-gold: #FFB800; --accent-gold-dark: #4A3300; --accent-blue: #00A3FF; --accent-blue-dark: #002940; /* Gradients */ --gradient-purple: linear-gradient(135deg, #7A22A6, #3B1154); --gradient-gold: linear-gradient(135deg, #FFB800, #4A3300); --gradient-blue: linear-gradient(135deg, #00A3FF, #002940); /* Status colors */ --status-online: #22c55e; --status-away: #eab308; --status-offline: #6b7280; /* Borders */ --border-subtle: 1px solid rgba(122, 34, 166, 0.15); --border-accent: 1px solid rgba(122, 34, 166, 0.3); /* Shadows */ --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3); --shadow-glow-purple: 0 0 20px rgba(122, 34, 166, 0.2); --shadow-glow-gold: 0 0 20px rgba(255, 184, 0, 0.15); /* Typography */ --font-primary: 'Georgia', 'Times New Roman', serif; --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; /* Sizing */ --sidebar-width: 280px; --left-panel-width: 380px; --right-panel-width: 320px; --mobile-header-height: 56px; /* Transitions */ --transition-smooth: 350ms cubic-bezier(0.22, 1, 0.36, 1); --transition-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1); } /* ---------- Deep Cyber — неоновая эстетика ---------- */ [data-theme="deep-cyber"] { --bg-primary: #000000; --bg-secondary: #000c14; --bg-card: rgba(0, 20, 40, 0.55); --bg-card-hover: rgba(0, 30, 60, 0.65); --bg-drawer: rgba(0, 0, 0, 0.92); --bg-overlay: rgba(0, 0, 0, 0.75); --glass-bg: rgba(0, 15, 30, 0.6); --glass-border: 1px solid rgba(0, 255, 255, 0.15); --glass-border-hover: 1px solid rgba(0, 255, 255, 0.35); --text-primary: #e0f0ff; --text-secondary: rgba(224, 240, 255, 0.7); --text-muted: rgba(224, 240, 255, 0.35); --text-accent: #00ffff; --accent-purple: #00ffff; --accent-purple-dark: #008080; --accent-gold: #ff00ff; --accent-gold-dark: #800080; --accent-blue: #0088ff; --accent-blue-dark: #004488; --gradient-purple: linear-gradient(135deg, #00ffff, #008080); --gradient-gold: linear-gradient(135deg, #ff00ff, #800080); --gradient-blue: linear-gradient(135deg, #0088ff, #004488); --status-online: #00ff88; --status-away: #ff8800; --status-offline: #445566; --border-subtle: 1px solid rgba(0, 255, 255, 0.1); --border-accent: 1px solid rgba(0, 255, 255, 0.25); --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5); --shadow-glow-purple: 0 0 20px rgba(0, 255, 255, 0.15); --shadow-glow-gold: 0 0 20px rgba(255, 0, 255, 0.15); --font-primary: 'Inter', 'SF Pro Display', -apple-system, sans-serif; } /* ============================================================ GLOBAL STYLES ============================================================ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } body { font-family: var(--font-ui); background: var(--bg-primary); color: var(--text-primary); overflow: hidden; height: 100vh; height: 100dvh; width: 100vw; transition: background var(--transition-smooth), color var(--transition-smooth); } /* ---------- SCROLLBAR ---------- */ ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--accent-purple); border-radius: 4px; opacity: 0.3; } /* ============================================================ APP CONTAINER — Main layout ============================================================ */ #app { display: none; width: 100vw; height: 100vh; overflow: hidden; } /* ---------- LOGIN SCREEN ---------- */ #login-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; background: var(--bg-primary); gap: 20px; padding: 20px; } #login-screen .login-logo { font-family: var(--font-primary); font-size: 42px; font-weight: 700; letter-spacing: 4px; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 8px; } #login-screen .login-subtitle { font-size: 14px; color: var(--text-muted); font-family: var(--font-ui); margin-bottom: 16px; } #login-screen input { width: 300px; max-width: 90vw; padding: 14px 18px; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); border: var(--glass-border); border-radius: 12px; color: var(--text-primary); font-size: 15px; outline: none; transition: border var(--transition-fast); font-family: var(--font-ui); } #login-screen input:focus { border: var(--glass-border-hover); box-shadow: var(--shadow-glow-purple); } #login-screen button { width: 300px; max-width: 90vw; padding: 14px; background: var(--gradient-purple); border: none; border-radius: 12px; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast); font-family: var(--font-ui); } #login-screen button:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-purple); } /* ============================================================ MOBILE HEADER (< 768px) ============================================================ */ #mobile-header { display: none; height: var(--mobile-header-height); min-height: var(--mobile-header-height); padding: 0 16px; align-items: center; gap: 12px; background: var(--bg-drawer); backdrop-filter: blur(20px); border-bottom: var(--border-subtle); z-index: 100; } #mobile-header .app-title { font-family: var(--font-primary); font-size: 18px; font-weight: 600; letter-spacing: 2px; flex: 1; text-align: center; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* ============================================================ THREE-PANEL LAYOUT ============================================================ */ #app-container { display: flex; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; position: relative; } /* ---------- SIDEBAR (Desktop) ---------- */ #sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); height: 100%; background: var(--bg-card); backdrop-filter: blur(var(--glass-blur)); border-right: var(--border-accent); display: flex; flex-direction: column; z-index: 10; overflow-y: auto; overflow-x: hidden; transition: width var(--transition-smooth), min-width var(--transition-smooth), transform var(--transition-smooth); } #sidebar .sidebar-header { padding: 24px 20px 16px; font-family: var(--font-primary); font-size: 22px; font-weight: 700; letter-spacing: 3px; background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; border-bottom: var(--border-subtle); } #sidebar .sidebar-nav { flex: 1; padding: 12px 0; } #sidebar .sidebar-link { display: flex; align-items: center; gap: 14px; padding: 14px 20px; color: var(--text-secondary); text-decoration: none; font-size: 14px; font-family: var(--font-ui); cursor: pointer; transition: all var(--transition-fast); border-left: 3px solid transparent; } #sidebar .sidebar-link:hover { background: var(--bg-card-hover); color: var(--text-primary); } #sidebar .sidebar-link.active { color: var(--text-accent); border-left-color: var(--accent-purple); background: rgba(122, 34, 166, 0.1); } #sidebar .sidebar-link .icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; } #sidebar .sidebar-footer { padding: 16px 20px; border-top: var(--border-subtle); } #sidebar .sidebar-footer .user-info { display: flex; align-items: center; gap: 10px; } #sidebar .sidebar-footer .avatar-small { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-purple); display: flex; align-items: center; justify-content: center; font-size: 14px; color: #fff; font-weight: 600; } /* ---------- LEFT PANEL (Chat List) ---------- */ #left-panel { width: var(--left-panel-width); min-width: var(--left-panel-width); height: 100%; display: flex; flex-direction: column; border-right: var(--border-subtle); background: rgba(10, 5, 22, 0.3); overflow: hidden; transition: width var(--transition-fast), transform var(--transition-smooth); } #left-panel .panel-header { padding: 16px 16px 8px; border-bottom: var(--border-subtle); } #left-panel .panel-header h3 { font-family: var(--font-ui); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px; } #left-panel .search-box { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--glass-bg); border-radius: 10px; border: var(--border-subtle); margin-bottom: 8px; } #left-panel .search-box input { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 13px; font-family: var(--font-ui); outline: none; } #left-panel .search-box input::placeholder { color: var(--text-muted); } #left-panel .chat-list { flex: 1; overflow-y: auto; padding: 4px 0; } .chat-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background var(--transition-fast); border-bottom: 1px solid rgba(255, 255, 255, 0.03); } .chat-item:hover { background: var(--bg-card-hover); } .chat-item.active { background: rgba(122, 34, 166, 0.12); border-left: 3px solid var(--accent-purple); } .chat-item .avatar { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; background: var(--gradient-purple); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; color: #fff; position: relative; } .chat-item .avatar .status-dot { position: absolute; bottom: 2px; right: 2px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg-primary); } .chat-item .chat-info { flex: 1; min-width: 0; } .chat-item .chat-info .name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chat-item .chat-info .last-msg { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; } .chat-item .chat-meta { text-align: right; min-width: 40px; } .chat-item .chat-meta .time { font-size: 11px; color: var(--text-muted); } .chat-item .chat-meta .unread { background: var(--accent-purple); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 10px; margin-top: 4px; display: inline-block; } /* ---------- CENTER PANEL (Messages) ---------- */ #center-panel { flex: 1; height: 100%; display: flex; flex-direction: column; overflow: hidden; min-width: 0; position: relative; } #center-panel .chat-header { padding: 14px 20px; display: flex; align-items: center; gap: 12px; border-bottom: var(--border-subtle); background: var(--bg-card); backdrop-filter: blur(var(--glass-blur)); min-height: 64px; } #center-panel .chat-header .back-btn { display: none; width: 36px; height: 36px; background: var(--glass-bg); border: var(--border-subtle); border-radius: 8px; color: var(--text-primary); font-size: 18px; cursor: pointer; align-items: center; justify-content: center; } #center-panel .chat-header .chat-title { flex: 1; } #center-panel .chat-header .chat-title .name { font-size: 15px; font-weight: 600; } #center-panel .chat-header .chat-title .status { font-size: 12px; color: var(--status-online); } #center-panel .chat-header .chat-actions { display: flex; gap: 6px; } #center-panel .chat-header .chat-actions button { width: 36px; height: 36px; border-radius: 8px; background: var(--glass-bg); border: var(--border-subtle); color: var(--text-secondary); font-size: 16px; cursor: pointer; transition: all var(--transition-fast); display: flex; align-items: center; justify-content: center; } #center-panel .chat-header .chat-actions button:hover { background: var(--bg-card-hover); color: var(--text-primary); } /* ---------- MESSAGE AREA ---------- */ #messages-area { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; background: radial-gradient(ellipse at 20% 50%, rgba(122, 34, 166, 0.05) 0%, transparent 50%), radial-gradient(ellipse at 80% 50%, rgba(0, 163, 255, 0.03) 0%, transparent 50%); } .message { max-width: 75%; padding: 10px 16px; border-radius: 16px; font-size: 14px; line-height: 1.5; position: relative; animation: messageIn 200ms ease-out; } @keyframes messageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } .message.mine { align-self: flex-end; background: var(--gradient-purple); color: #fff; border-bottom-right-radius: 4px; } .message.other { align-self: flex-start; background: var(--glass-bg); backdrop-filter: blur(var(--glass-blur)); border: var(--border-subtle); color: var(--text-primary); border-bottom-left-radius: 4px; } .message .msg-user { font-size: 11px; opacity: 0.7; margin-bottom: 2px; font-weight: 600; } .message .msg-time { font-size: 10px; opacity: 0.5; margin-top: 4px; text-align: right; } .message .msg-status { display: inline-block; margin-left: 4px; } .message .msg-status.sent { color: rgba(255,255,255,0.4); } .message .msg-status.delivered { color: rgba(255,255,255,0.6); } .message .msg-status.read { color: var(--accent-blue); } .message.system { align-self: center; font-size: 12px; color: var(--text-muted); padding: 4px 12px; background: var(--glass-bg); border-radius: 8px; border: none; } /* ---------- INPUT AREA ---------- */ #input-area { display: flex; gap: 8px; padding: 12px 20px; background: var(--bg-card); backdrop-filter: blur(var(--glass-blur)); border-top: var(--border-subtle); align-items: flex-end; } #input-area .input-wrapper { flex: 1; display: flex; align-items: flex-end; gap: 8px; background: var(--glass-bg); border: var(--border-subtle); border-radius: 16px; padding: 6px 12px; transition: border var(--transition-fast); } #input-area .input-wrapper:focus-within { border: var(--glass-border-hover); box-shadow: var(--shadow-glow-purple); } #input-area .input-wrapper textarea { flex: 1; background: none; border: none; color: var(--text-primary); font-size: 14px; font-family: var(--font-ui); outline: none; resize: none; max-height: 120px; line-height: 1.4; padding: 4px 0; } #input-area .input-wrapper textarea::placeholder { color: var(--text-muted); } #input-area .input-wrapper .attach-btn, #input-area .input-wrapper .emoji-btn, #input-area .input-wrapper .voice-btn { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; transition: color var(--transition-fast); flex-shrink: 0; } #input-area .input-wrapper .attach-btn:hover, #input-area .input-wrapper .emoji-btn:hover, #input-area .input-wrapper .voice-btn:hover { color: var(--text-accent); } #input-area .send-btn { width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-purple); border: none; color: #fff; font-size: 18px; cursor: pointer; flex-shrink: 0; transition: transform var(--transition-fast), box-shadow var(--transition-fast); display: flex; align-items: center; justify-content: center; } #input-area .send-btn:hover { transform: scale(1.05); box-shadow: var(--shadow-glow-purple); } /* ---------- RIGHT PANEL ---------- */ #right-panel { width: var(--right-panel-width); min-width: var(--right-panel-width); height: 100%; border-left: var(--border-subtle); background: rgba(10, 5, 22, 0.3); overflow-y: auto; transition: width var(--transition-fast), transform var(--transition-smooth); display: flex; flex-direction: column; } #right-panel .profile-header { text-align: center; padding: 24px 20px 16px; border-bottom: var(--border-subtle); } #right-panel .profile-header .big-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--gradient-purple); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; font-weight: 600; } #right-panel .profile-header .display-name { font-size: 18px; font-weight: 700; font-family: var(--font-primary); } #right-panel .profile-header .user-status { font-size: 13px; color: var(--status-online); margin-top: 4px; } #right-panel .profile-section { padding: 16px 20px; border-bottom: var(--border-subtle); } #right-panel .profile-section h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 10px; } #right-panel .profile-section .shared-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; } #right-panel .profile-section .shared-media .media-thumb { aspect-ratio: 1; background: var(--glass-bg); border-radius: 6px; border: var(--border-subtle); display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--text-muted); cursor: pointer; } /* ============================================================ TABLET (768-1024px) ============================================================ */ @media (max-width: 1024px) and (min-width: 768px) { #sidebar { width: 64px; min-width: 64px; } #sidebar .sidebar-header, #sidebar .sidebar-link span, #sidebar .sidebar-footer .user-info span { display: none; } #sidebar .sidebar-link { justify-content: center; padding: 16px 0; } #sidebar .sidebar-footer .user-info { justify-content: center; } #right-panel { width: 280px; min-width: 280px; } #left-panel { width: 340px; min-width: 340px; } } /* ============================================================ MOBILE (< 768px) ============================================================ */ @media (max-width: 767px) { #mobile-header { display: flex; } #app-container { flex-direction: column; } /* Sidebar → hidden, becomes drawer */ #sidebar { position: fixed; top: 0; left: 0; width: 85%; max-width: 360px; min-width: auto; height: 100vh; height: 100dvh; z-index: 1000; transform: translate3d(-100%, 0, 0); } #sidebar.open { transform: translate3d(0, 0, 0); } /* Left panel → full screen */ #left-panel { position: fixed; top: var(--mobile-header-height); left: 0; width: 100vw; min-width: auto; height: calc(100vh - var(--mobile-header-height)); z-index: 50; transition: transform var(--transition-smooth); transform: translate3d(0, 0, 0); } #left-panel.slide-out { transform: translate3d(-100%, 0, 0); } /* Center panel → full screen */ #center-panel { position: fixed; top: var(--mobile-header-height); left: 0; width: 100vw; height: calc(100vh - var(--mobile-header-height)); z-index: 51; transform: translate3d(100%, 0, 0); transition: transform var(--transition-smooth); } #center-panel.slide-in { transform: translate3d(0, 0, 0); } #center-panel .chat-header .back-btn { display: flex; } /* Right panel → hidden */ #right-panel { display: none; } .message { max-width: 88%; font-size: 15px; } #input-area { padding: 10px 12px; } #input-area .input-wrapper { padding: 4px 10px; } } /* ============================================================ DRAWER OVERLAY ============================================================ */ #drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999; background: var(--bg-overlay); backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity var(--transition-smooth); } #drawer-overlay.open { opacity: 1; pointer-events: auto; } /* ============================================================ SWIPE ZONE ============================================================ */ .swipe-zone { position: fixed; top: 0; left: 0; width: 30px; height: 100vh; z-index: 500; background: transparent; } /* ============================================================ TOAST NOTIFICATIONS ============================================================ */ .toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; } .toast { padding: 12px 18px; background: var(--bg-card); backdrop-filter: blur(25px); border: var(--glass-border-hover); border-radius: 12px; color: var(--text-primary); font-size: 13px; font-family: var(--font-ui); box-shadow: var(--shadow-card); animation: toastIn 300ms ease-out; max-width: 360px; } @keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } } /* ============================================================ LANGUAGE SELECTOR ============================================================ */ .lang-selector { position: relative; } .lang-selector select { padding: 6px 10px; background: var(--glass-bg); border: var(--border-subtle); border-radius: 8px; color: var(--text-primary); font-size: 12px; font-family: var(--font-ui); outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 24px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e0d5c1' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; } .lang-selector select option { background: var(--bg-primary); color: var(--text-primary); } /* ============================================================ TYPING INDICATOR ============================================================ */ #typing-indicator { font-size: 12px; color: var(--text-muted); padding: 4px 20px; font-style: italic; min-height: 24px; } /* ============================================================ EMPTY STATE ============================================================ */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 16px; padding: 40px; text-align: center; } .empty-state .empty-icon { font-size: 64px; opacity: 0.3; } .empty-state h3 { font-family: var(--font-primary); font-size: 24px; color: var(--text-muted); } .empty-state p { font-size: 14px; color: var(--text-muted); max-width: 300px; }