Files
chat/assets/css/cyberchat.css
T
Ty Clifford 33a176f18e v2.0.0
2026-06-08 12:26:08 -04:00

987 lines
22 KiB
CSS

/* ─── CyberChat CSS v3.0 — Cyberpunk Dark Theme ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');
/* ─── Variables ──────────────────────────────────────────────────────────── */
:root {
--g: #00ff9f; /* neon green */
--b: #00b8ff; /* neon blue */
--p: #ff2d78; /* neon pink */
--o: #ff9f00; /* neon orange */
--r: #ff3c3c; /* neon red */
--v: #bf5fff; /* neon violet */
--c: #00ffff; /* neon cyan */
--bg0: #05080d;
--bg1: #080c12;
--bg2: #0c1118;
--bg3: #101820;
--bgp: #090d14;
--bgi: #0b101a;
--bd: #182030;
--bdg: rgba(0,255,159,0.18);
--t0: #c8e6ff;
--t1: #4d6a88;
--t2: #1e2e40;
--mono: 'Share Tech Mono', monospace;
--ui: 'Rajdhani', sans-serif;
--disp: 'Orbitron', monospace;
--glowg: 0 0 8px #00ff9f99, 0 0 22px #00ff9f33;
--glowb: 0 0 8px #00b8ff99, 0 0 22px #00b8ff33;
--glowp: 0 0 8px #ff2d7899, 0 0 22px #ff2d7833;
--glowr: 0 0 8px #ff3c3c99, 0 0 22px #ff3c3c33;
--r1: 3px;
--r2: 6px;
--ease: 0.14s ease;
}
/* ─── Light mode overrides ───────────────────────────────────────────────── */
body.cc-light {
--bg0: #edf1f7;
--bg1: #f4f7fc;
--bg2: #ffffff;
--bg3: #e8edf5;
--bgp: #f0f4fa;
--bgi: #ffffff;
--bd: #ccd7e6;
--bdg: rgba(0,138,220,0.25);
--t0: #1a2a3c;
--t1: #4a6888;
--t2: #aabcce;
}
/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; }
input, button { font-family: inherit; }
/* ─── Root container (embed-ready) ──────────────────────────────────────── */
#cyberchat-root {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
min-height: 360px;
background: var(--bg0);
color: var(--t0);
font-family: var(--ui);
font-size: 14px;
line-height: 1.5;
border: 1px solid var(--bd);
border-radius: var(--r2);
overflow: hidden;
position: relative;
-webkit-font-smoothing: antialiased;
}
/* CRT scanline overlay */
#cyberchat-root::after {
content: '';
position: absolute;
inset: 0;
background: repeating-linear-gradient(
to bottom,
transparent,
transparent 3px,
rgba(0,0,0,0.035) 3px,
rgba(0,0,0,0.035) 4px
);
pointer-events: none;
z-index: 999;
}
/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bgp); }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,184,255,0.4); }
/* ─── Header ─────────────────────────────────────────────────────────────── */
.cc-header {
display: flex;
align-items: center;
padding: 0 12px;
height: 46px;
background: var(--bgp);
border-bottom: 1px solid var(--bd);
position: relative;
z-index: 10;
flex-shrink: 0;
gap: 8px;
}
.cc-header::after {
content: '';
position: absolute;
bottom: 0; left: 0; right: 0; height: 1px;
background: linear-gradient(90deg, transparent 0%, var(--g) 25%, var(--b) 50%, var(--p) 75%, transparent 100%);
opacity: 0.55;
}
.cc-logo {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.cc-logo-glyph {
font-size: 18px;
color: var(--g);
text-shadow: var(--glowg);
animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
0%,100% { opacity: 1; }
50% { opacity: 0.6; }
}
.cc-logo-text {
font-family: var(--disp);
font-size: 12px;
font-weight: 900;
letter-spacing: 3px;
background: linear-gradient(90deg, var(--g), var(--b));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
line-height: 1.2;
}
.cc-logo-sub {
font-family: var(--mono);
font-size: 8px;
color: var(--t1);
letter-spacing: 1.5px;
line-height: 1;
}
.cc-header-center {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
font-family: var(--mono);
font-size: 11px;
}
.cc-online-num {
color: var(--g);
font-weight: 600;
}
.cc-online-label {
color: var(--t1);
}
.cc-conn-dot {
display: inline-block;
width: 7px; height: 7px;
border-radius: 50%;
background: var(--g);
box-shadow: var(--glowg);
animation: dot-blink 2s ease-in-out infinite;
flex-shrink: 0;
}
.cc-conn-dot.offline { background: var(--r); box-shadow: var(--glowr); animation: none; }
.cc-conn-dot.online { background: var(--g); box-shadow: var(--glowg); }
@keyframes dot-blink {
0%,100% { opacity: 1; }
50% { opacity: 0.35; }
}
.cc-header-right { flex-shrink: 0; }
.cc-theme-btn {
width: 28px; height: 28px;
background: none;
border: 1px solid var(--bd);
border-radius: var(--r1);
color: var(--t1);
font-size: 13px;
display: flex; align-items: center; justify-content: center;
transition: all var(--ease);
}
.cc-theme-btn:hover {
border-color: var(--b);
color: var(--b);
box-shadow: var(--glowb);
}
/* ─── Body area ──────────────────────────────────────────────────────────── */
.cc-body {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
position: relative;
z-index: 1;
}
/* ─── TOAST NOTIFICATIONS ────────────────────────────────────────────────── */
.cc-toast-area {
position: absolute;
top: 54px;
left: 50%;
transform: translateX(-50%);
z-index: 500;
display: flex;
flex-direction: column;
gap: 5px;
pointer-events: none;
width: 88%;
max-width: 320px;
}
.cc-toast {
background: var(--bg1);
border: 1px solid var(--bd);
border-radius: var(--r1);
padding: 8px 12px;
font-family: var(--mono);
font-size: 11px;
letter-spacing: 0.3px;
text-align: center;
animation: toastIn 0.18s ease;
transition: opacity 0.32s, transform 0.32s;
}
.cc-toast.error { border-color: var(--r); color: var(--r); }
.cc-toast.success { border-color: var(--g); color: var(--g); }
.cc-toast.info { border-color: var(--b); color: var(--b); }
.cc-toast-fade { opacity: 0; transform: translateY(-8px); }
@keyframes toastIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
/* ──────────────────────────────────────────────────────────────────────────
AUTH SCREEN
────────────────────────────────────────────────────────────────────────── */
.cc-auth-wrap {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
padding: 20px 16px;
overflow-y: auto;
background: radial-gradient(ellipse at 50% 30%, rgba(0,184,255,0.04) 0%, transparent 70%),
var(--bg0);
}
.cc-auth-panel {
width: 100%;
max-width: 340px;
background: var(--bg1);
border: 1px solid var(--bd);
border-radius: var(--r2);
overflow: hidden;
box-shadow: 0 0 40px rgba(0,0,0,0.5);
animation: panelIn 0.25s ease;
}
@keyframes panelIn {
from { opacity: 0; transform: translateY(12px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.cc-auth-brand {
display: flex;
align-items: center;
gap: 10px;
padding: 16px 20px 0;
font-family: var(--disp);
font-size: 9px;
letter-spacing: 3px;
color: var(--b);
text-transform: uppercase;
}
.cc-auth-brand-line {
flex: 1;
height: 1px;
background: linear-gradient(90deg, transparent, var(--b));
opacity: 0.4;
}
.cc-auth-brand-line:last-child {
background: linear-gradient(90deg, var(--b), transparent);
}
/* Tabs */
.cc-auth-tabs {
display: grid;
grid-template-columns: 1fr 1fr;
margin: 14px 20px 0;
border: 1px solid var(--bd);
border-radius: var(--r1);
overflow: hidden;
}
.cc-auth-tab {
padding: 9px 6px;
background: none;
border: none;
color: var(--t1);
font-family: var(--ui);
font-size: 11px;
font-weight: 700;
letter-spacing: 1.5px;
text-transform: uppercase;
transition: all var(--ease);
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
}
.cc-auth-tab:not(:last-child) {
border-right: 1px solid var(--bd);
}
.cc-auth-tab .cc-tab-icon {
font-size: 9px;
opacity: 0.7;
}
.cc-auth-tab.active {
background: var(--g);
color: #000;
}
.cc-auth-tab:not(.active):hover {
background: var(--bg3);
color: var(--t0);
}
/* Forms */
.cc-auth-form {
display: none;
padding: 18px 20px 20px;
}
.cc-auth-form.active {
display: block;
animation: formSlide 0.18s ease;
}
@keyframes formSlide {
from { opacity: 0; transform: translateX(6px); }
to { opacity: 1; transform: translateX(0); }
}
.cc-form-hint {
font-family: var(--mono);
font-size: 10px;
color: var(--t1);
letter-spacing: 0.5px;
margin-bottom: 16px;
line-height: 1.5;
}
.cc-field {
margin-bottom: 13px;
}
.cc-field-label {
display: block;
font-family: var(--mono);
font-size: 9px;
color: var(--t1);
letter-spacing: 1.5px;
text-transform: uppercase;
margin-bottom: 5px;
}
.cc-field-note {
color: var(--t2);
font-size: 8px;
letter-spacing: 0.5px;
text-transform: lowercase;
}
.cc-input {
width: 100%;
background: var(--bgi);
border: 1px solid var(--bd);
border-radius: var(--r1);
color: var(--t0);
font-family: var(--mono);
font-size: 13px;
padding: 8px 11px;
outline: none;
transition: border-color var(--ease), box-shadow var(--ease);
}
.cc-input:focus {
border-color: var(--b);
box-shadow: 0 0 0 2px rgba(0,184,255,0.15);
}
.cc-input::placeholder { color: var(--t2); }
/* Buttons */
.cc-btn {
display: block;
width: 100%;
padding: 10px;
border: none;
border-radius: var(--r1);
font-family: var(--disp);
font-size: 10px;
font-weight: 700;
letter-spacing: 2.5px;
text-transform: uppercase;
transition: all var(--ease);
margin-top: 6px;
position: relative;
overflow: hidden;
}
.cc-btn::before {
content: '';
position: absolute;
inset: 0;
opacity: 0;
transition: opacity var(--ease);
background: rgba(255,255,255,0.08);
}
.cc-btn:hover::before { opacity: 1; }
.cc-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.cc-btn:disabled::before { display: none; }
.cc-btn-register {
background: var(--g);
color: #000;
box-shadow: 0 0 15px rgba(0,255,159,0.25);
}
.cc-btn-register:hover:not(:disabled) {
box-shadow: var(--glowg);
}
.cc-btn-login {
background: var(--b);
color: #000;
box-shadow: 0 0 15px rgba(0,184,255,0.2);
}
.cc-btn-login:hover:not(:disabled) {
box-shadow: var(--glowb);
}
.cc-btn-inner { pointer-events: none; }
/* Error */
.cc-auth-error {
font-family: var(--mono);
font-size: 10px;
color: var(--r);
text-align: center;
padding: 0 20px 14px;
min-height: 0;
max-height: 0;
overflow: hidden;
opacity: 0;
transition: all 0.18s ease;
letter-spacing: 0.3px;
}
.cc-auth-error.visible {
max-height: 40px;
opacity: 1;
}
/* ──────────────────────────────────────────────────────────────────────────
CHAT SCREEN
────────────────────────────────────────────────────────────────────────── */
/* User bar */
.cc-userbar {
display: flex;
align-items: center;
justify-content: space-between;
padding: 5px 12px;
background: var(--bgp);
border-bottom: 1px solid var(--bd);
flex-shrink: 0;
gap: 8px;
}
.cc-userbar-left {
display: flex;
align-items: center;
gap: 7px;
min-width: 0;
}
.cc-you-label {
font-family: var(--mono);
font-size: 9px;
color: var(--t1);
letter-spacing: 1px;
flex-shrink: 0;
}
.cc-you-name {
font-family: var(--mono);
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 2px;
border: 1px solid currentColor;
flex-shrink: 0;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cc-day-tag {
font-family: var(--mono);
font-size: 9px;
color: var(--t1);
letter-spacing: 0.5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.cc-userbar-right { flex-shrink: 0; }
.cc-logout-btn {
background: none;
border: 1px solid var(--r);
color: var(--r);
font-family: var(--mono);
font-size: 9px;
letter-spacing: 1px;
padding: 3px 9px;
border-radius: var(--r1);
text-transform: uppercase;
transition: all var(--ease);
}
.cc-logout-btn:hover {
background: var(--r);
color: #000;
box-shadow: var(--glowr);
}
/* Messages */
.cc-messages {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
padding: 6px 0 4px;
scroll-behavior: smooth;
}
.cc-msg {
display: flex;
align-items: baseline;
padding: 2px 12px;
font-family: var(--mono);
font-size: 13px;
line-height: 1.65;
flex-shrink: 0;
transition: background var(--ease);
}
.cc-msg:hover { background: rgba(255,255,255,0.02); }
.cc-msg-time {
font-size: 9px;
color: var(--t2);
min-width: 44px;
flex-shrink: 0;
margin-right: 7px;
padding-top: 2px;
letter-spacing: 0.5px;
}
.cc-msg-user {
font-size: 12px;
font-weight: 600;
flex-shrink: 0;
min-width: 0;
max-width: 86px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cc-msg-sep {
color: var(--t2);
margin: 0 7px;
flex-shrink: 0;
}
.cc-msg-text {
color: var(--t0);
word-break: break-word;
flex: 1;
min-width: 0;
}
.cc-msg-own .cc-msg-text { color: #ddeeff; }
.cc-voice-message {
display: inline-flex;
align-items: center;
gap: 8px;
width: min(100%, 390px);
}
.cc-voice-label {
color: var(--b);
font-size: 9px;
letter-spacing: 1px;
flex-shrink: 0;
}
.cc-voice-message audio {
width: min(280px, 100%);
height: 30px;
accent-color: var(--g);
}
.cc-msg-voice-playing {
background: rgba(0,255,159,0.06);
box-shadow: inset 2px 0 0 var(--g);
}
/* New message animation */
.cc-msg-new {
animation: msgIn 0.2s ease;
}
@keyframes msgIn {
from { opacity: 0; transform: translateX(-5px); }
to { opacity: 1; transform: translateX(0); }
}
/* Loading / empty states */
.cc-loading-msg {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 14px;
color: var(--t1);
font-family: var(--mono);
font-size: 10px;
letter-spacing: 2px;
}
.cc-spin {
width: 22px; height: 22px;
border: 2px solid var(--bd);
border-top-color: var(--g);
border-radius: 50%;
animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cc-empty-day {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
font-family: var(--mono);
font-size: 10px;
color: var(--t2);
letter-spacing: 2px;
padding: 20px;
text-align: center;
}
/* Scroll-to-bottom */
.cc-scroll-to-bottom {
position: absolute;
bottom: 56px;
right: 12px;
width: 27px; height: 27px;
background: var(--bg1);
border: 1px solid var(--b);
color: var(--b);
border-radius: 50%;
display: none;
align-items: center;
justify-content: center;
font-size: 13px;
z-index: 20;
box-shadow: var(--glowb);
transition: all var(--ease);
}
.cc-body.cc-has-voice .cc-scroll-to-bottom { bottom: 100px; }
.cc-scroll-to-bottom.visible { display: flex; }
.cc-scroll-to-bottom:hover { background: var(--b); color: #000; }
/* Voice compose */
.cc-voice-compose {
display: flex;
align-items: center;
gap: 8px;
min-height: 40px;
padding: 5px 10px;
background: var(--bg1);
border-top: 1px solid var(--bd);
flex-shrink: 0;
font-family: var(--mono);
}
.cc-voice-record {
display: inline-flex;
align-items: center;
gap: 6px;
height: 28px;
padding: 0 9px;
background: transparent;
border: 1px solid var(--p);
border-radius: var(--r1);
color: var(--p);
font-family: var(--mono);
font-size: 9px;
letter-spacing: 1px;
}
.cc-voice-record:hover,
.cc-voice-record.recording {
background: rgba(255,45,120,0.12);
box-shadow: var(--glowp);
}
.cc-voice-record:disabled {
opacity: 0.45;
cursor: wait;
}
.cc-voice-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
}
.cc-voice-record.recording .cc-voice-dot {
animation: dot-blink 0.8s ease-in-out infinite;
}
.cc-voice-status {
color: var(--t1);
font-size: 9px;
letter-spacing: 0.5px;
white-space: nowrap;
}
.cc-voice-queue {
display: inline-flex;
align-items: center;
gap: 5px;
height: 28px;
padding: 0 8px;
background: transparent;
border: 1px solid var(--b);
border-radius: var(--r1);
color: var(--b);
font-family: var(--mono);
font-size: 8px;
letter-spacing: 0.7px;
white-space: nowrap;
}
.cc-voice-queue span {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 8px;
background: rgba(0,184,255,0.14);
}
.cc-voice-queue:hover:not(:disabled),
.cc-voice-queue.blocked {
background: rgba(0,184,255,0.1);
box-shadow: var(--glowb);
}
.cc-voice-queue.playing {
border-color: var(--g);
color: var(--g);
}
.cc-voice-queue:disabled {
opacity: 0.35;
cursor: default;
}
.cc-voice-autoplay {
display: inline-flex;
align-items: center;
gap: 5px;
margin-left: auto;
color: var(--t1);
font-size: 9px;
white-space: nowrap;
cursor: pointer;
}
.cc-voice-autoplay input { accent-color: var(--g); }
.cc-voice-review {
display: flex;
align-items: center;
gap: 5px;
min-width: 0;
}
.cc-voice-review[hidden] { display: none; }
.cc-voice-review audio { width: 170px; height: 28px; accent-color: var(--g); }
.cc-voice-action {
height: 27px;
padding: 0 7px;
border: 1px solid var(--t1);
border-radius: var(--r1);
background: transparent;
color: var(--t1);
font-family: var(--mono);
font-size: 8px;
}
.cc-voice-action.send { border-color: var(--g); color: var(--g); }
.cc-voice-action:disabled { opacity: 0.35; cursor: not-allowed; }
/* Compose bar */
.cc-compose {
display: flex;
align-items: center;
gap: 7px;
padding: 7px 10px;
background: var(--bgp);
border-top: 1px solid var(--bd);
flex-shrink: 0;
position: relative;
}
.cc-compose::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; height: 1px;
background: linear-gradient(90deg, transparent, rgba(0,184,255,0.45), transparent);
}
.cc-compose-input {
flex: 1;
background: var(--bgi);
border: 1px solid var(--bd);
border-radius: var(--r1);
color: var(--t0);
font-family: var(--mono);
font-size: 13px;
padding: 7px 10px;
outline: none;
height: 36px;
transition: border-color var(--ease), box-shadow var(--ease);
}
.cc-compose-input:focus {
border-color: var(--g);
box-shadow: 0 0 0 2px rgba(0,255,159,0.1);
}
.cc-compose-input::placeholder { color: var(--t2); }
.cc-compose-counter {
font-family: var(--mono);
font-size: 10px;
color: var(--t2);
min-width: 34px;
text-align: right;
flex-shrink: 0;
transition: color var(--ease);
}
.cc-compose-counter.warn { color: var(--o); }
.cc-compose-counter.danger { color: var(--r); }
.cc-compose-send {
width: 36px; height: 36px;
background: none;
border: 1px solid var(--g);
color: var(--g);
border-radius: var(--r1);
display: flex; align-items: center; justify-content: center;
font-size: 15px;
flex-shrink: 0;
transition: all var(--ease);
}
.cc-compose-send:hover {
background: var(--g);
color: #000;
box-shadow: var(--glowg);
}
.cc-compose-send:disabled {
opacity: 0.25;
cursor: not-allowed;
}
/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 420px) {
.cc-logo-sub { display: none; }
.cc-day-tag { display: none; }
.cc-msg-time { min-width: 36px; font-size: 8px; }
.cc-msg-user { max-width: 66px; font-size: 11px; }
.cc-auth-panel { max-width: 100%; }
.cc-auth-wrap { padding: 12px 10px; }
.cc-auth-form { padding: 14px 14px 16px; }
.cc-voice-compose { flex-wrap: wrap; }
.cc-voice-status { flex: 1; }
.cc-voice-queue { order: 3; }
.cc-voice-autoplay { margin-left: 0; }
.cc-voice-review { width: 100%; }
.cc-voice-review audio { flex: 1; min-width: 100px; }
.cc-voice-message { align-items: flex-start; flex-direction: column; gap: 3px; }
}
@media (max-height: 380px) {
.cc-header { height: 36px; }
.cc-logo-sub { display: none; }
.cc-auth-wrap { align-items: flex-start; }
}
/* ─── Full-page (index.html) embed ───────────────────────────────────────── */
html, body {
width: 100%; height: 100%;
margin: 0; padding: 0;
overflow: hidden;
}
#app {
width: 100%; height: 100%;
}