1786 lines
33 KiB
CSS
1786 lines
33 KiB
CSS
/* Dark Mode Theme */
|
|
:root {
|
|
--bg-primary: #1a1a1a;
|
|
--bg-secondary: #2d2d2d;
|
|
--bg-tertiary: #3a3a3a;
|
|
--text-primary: #ffffff;
|
|
--text-secondary: #b3b3b3;
|
|
--accent-link: #ff9800;
|
|
--accent-link-visited: #551a8b;
|
|
--accent: #4a9eff;
|
|
--accent-hover: #3a8eef;
|
|
--success: #4caf50;
|
|
--warning: #ff9800;
|
|
--error: #f34c36;
|
|
--border: #444;
|
|
--dark: #151515;
|
|
--light: #f5f5f5;
|
|
--shadow: rgba(0, 0, 0, 0.3);
|
|
--font-size: 3rem;
|
|
--chat-section-height: 7vh;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
span .emoji :hover {
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
|
|
svg {
|
|
display: flex;
|
|
}
|
|
|
|
svg .gear {
|
|
fill-rule: evenodd;
|
|
fill: var(--light);
|
|
stroke: none;
|
|
}
|
|
|
|
svg .headphones {
|
|
fill: var(--light);
|
|
stroke: var(--light);
|
|
}
|
|
|
|
svg .phone {
|
|
fill: var(--light);
|
|
stroke: none;
|
|
}
|
|
|
|
svg .mic {
|
|
fill: var(--light);
|
|
stroke: none;
|
|
}
|
|
|
|
svg .headband {
|
|
stroke: var(--light);
|
|
}
|
|
|
|
svg .stand {
|
|
stroke: var(--light);
|
|
}
|
|
|
|
svg .slash {
|
|
stroke: var(--light);
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 25%, #0d1117 75%, #161b22 100%);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* App Layout with floating sidebar */
|
|
.app-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #0d1117 100%);
|
|
padding: 1rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Floating Rounded Sidebar */
|
|
.sidebar {
|
|
width: 280px;
|
|
background: rgba(45, 45, 45, 0.85);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 16px;
|
|
display: none;
|
|
/* Hidden by default */
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Show sidebar when connected */
|
|
.sidebar.visible {
|
|
display: flex;
|
|
}
|
|
|
|
/* Sidebar Sections */
|
|
.sidebar-section {
|
|
background: rgba(58, 58, 58, 0.3);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.05);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.users-section {
|
|
flex: 1;
|
|
/* Takes up most of the sidebar space */
|
|
min-height: 0;
|
|
}
|
|
|
|
.voice-controls-sidebar {
|
|
flex-shrink: 0;
|
|
/* Fixed size */
|
|
background: rgba(26, 26, 26, 0.9) !important;
|
|
/* Darker background for voice controls */
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
background: rgba(74, 158, 255, 0.1);
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Voice Controls in Sidebar */
|
|
.voice-controls-content {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.voice-controls-content .control-buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 0 auto;
|
|
gap: 0.6rem;
|
|
}
|
|
|
|
.voice-controls-content .voice-btn {
|
|
width: 50%;
|
|
padding: 0.5rem;
|
|
background: var(--bg-secondary);
|
|
border: none;
|
|
font-size: 0.5rem;
|
|
border-radius: 8px;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
/* Main Content with rounded corners */
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
/* flex-direction: column; */
|
|
/* overflow: hidden; */
|
|
/* background: rgba(26, 26, 26, 0.7); */
|
|
/* backdrop-filter: blur(10px); */
|
|
/* border-radius: 16px; */
|
|
/* border: 1px solid rgba(255, 255, 255, 0.05); */
|
|
/* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); */
|
|
}
|
|
|
|
main {
|
|
display: flex;
|
|
width: 100%;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
overflow: visible;
|
|
/* padding: 2rem; */
|
|
/* gap: 1.5rem; */
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
/* Section Headers */
|
|
.section-header {
|
|
margin-bottom: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-primary);
|
|
font-weight: 600;
|
|
}
|
|
|
|
.section-header p {
|
|
color: var(--text-secondary);
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
/* Enhanced sections to match floating theme */
|
|
.username-section,
|
|
.mic-section {
|
|
background: rgba(45, 45, 45, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
text-align: center;
|
|
}
|
|
|
|
.chat-section {
|
|
background: rgba(45, 45, 45, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 16px;
|
|
padding: 1.5rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Messages area fills remaining chat space */
|
|
.chat-messages {
|
|
flex: 1;
|
|
padding: 1.5rem;
|
|
overflow-y: auto;
|
|
background: rgba(16, 16, 16, 0.8);
|
|
backdrop-filter: blur(5px);
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
margin-bottom: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
min-height: 0;
|
|
}
|
|
|
|
.username-section .input-group {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
align-items: center;
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.username-section .input-group input {
|
|
flex: 1;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Chat Alerts for Join/Leave - Toned down */
|
|
.chat-alert {
|
|
margin: 0.5rem auto;
|
|
padding: 0.5rem 1rem;
|
|
border-radius: 1rem;
|
|
max-width: 250px;
|
|
text-align: center;
|
|
font-size: 0.85rem;
|
|
animation: alertAppear 0.5s ease-in forwards;
|
|
background: rgba(74, 158, 255, 0.08);
|
|
border: 1px solid rgba(74, 158, 255, 0.15);
|
|
color: var(--text-secondary);
|
|
backdrop-filter: blur(5px);
|
|
align-self: center;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
}
|
|
|
|
.chat-alert.fading,
|
|
[class*="chat-alert"].fading,
|
|
.fading.chat-alert {
|
|
animation: alertDisappear 0.3s ease-in forwards !important;
|
|
}
|
|
|
|
.chat-alert.timeout {
|
|
position: relative;
|
|
}
|
|
|
|
.chat-alert.timeout::after {
|
|
content: '';
|
|
position: absolute;
|
|
border-radius: inherit;
|
|
bottom: 0.2rem;
|
|
left: 0.75rem;
|
|
/* right: 1rem; */
|
|
height: 0.2rem;
|
|
background-color: currentColor;
|
|
opacity: 0.3;
|
|
animation: timeoutBar var(--timeout-duration, 0ms) linear forwards;
|
|
}
|
|
|
|
@keyframes timeoutBar {
|
|
from {
|
|
width: 90%;
|
|
}
|
|
|
|
to {
|
|
width: 0%;
|
|
}
|
|
}
|
|
|
|
.chat-alert-system_message_username_change {
|
|
background: rgba(7, 193, 255, 0.08);
|
|
border-color: rgba(7, 193, 255, 0.2);
|
|
color: rgba(7, 193, 255, 0.9);
|
|
}
|
|
|
|
.chat-alert-system_message_join {
|
|
background: rgba(76, 175, 80, 0.08);
|
|
border-color: rgba(76, 175, 80, 0.2);
|
|
color: rgba(76, 175, 80, 0.9);
|
|
}
|
|
|
|
.chat-alert-system_message_leave {
|
|
background: rgba(255, 152, 0, 0.08);
|
|
border-color: rgba(255, 152, 0, 0.2);
|
|
color: rgba(255, 152, 0, 0.9);
|
|
}
|
|
|
|
@keyframes alertAppear {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px) scale(0.95);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
@keyframes alertDisappear {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(-10px) scale(0.95);
|
|
}
|
|
}
|
|
|
|
.alert-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.alert-text {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.alert-time {
|
|
font-size: 0.75rem;
|
|
opacity: 0.7;
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Media Embeds */
|
|
|
|
/* Media Embeds - Base Styles */
|
|
.embedded-image {
|
|
max-width: 100%;
|
|
max-height: 300px;
|
|
border-radius: 8px;
|
|
margin: 0.5rem 0;
|
|
display: block;
|
|
object-fit: contain;
|
|
background: var(--bg-secondary, #f5f5f5);
|
|
}
|
|
|
|
/* Video Embeds */
|
|
.embedded-video {
|
|
max-width: 100%;
|
|
width: 100%;
|
|
border-radius: 8px;
|
|
margin: 0.5rem 0;
|
|
display: block;
|
|
background: #000;
|
|
}
|
|
|
|
.embedded-video:not(iframe) {
|
|
max-height: 300px;
|
|
}
|
|
|
|
/* Video iframes - Platform specific sizing */
|
|
.embedded-video.youtube,
|
|
.embedded-video.vimeo {
|
|
height: 315px;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.embedded-video.twitch {
|
|
height: 300px;
|
|
min-height: 200px;
|
|
}
|
|
|
|
.embedded-video.tiktok {
|
|
height: 500px;
|
|
max-width: 325px;
|
|
margin: 0.5rem auto;
|
|
}
|
|
|
|
/* Audio Embeds */
|
|
.embedded-audio {
|
|
width: 100%;
|
|
max-width: 500px;
|
|
margin: 0.5rem 0;
|
|
border-radius: 8px;
|
|
background: var(--bg-secondary, #f5f5f5);
|
|
}
|
|
|
|
.embedded-audio.spotify {
|
|
height: 152px;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.embedded-audio.soundcloud {
|
|
height: 166px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Social Media Embeds */
|
|
.twitter-tweet {
|
|
margin: 0.5rem auto !important;
|
|
max-width: 550px !important;
|
|
}
|
|
|
|
.instagram-media {
|
|
margin: 0.5rem auto !important;
|
|
max-width: 540px !important;
|
|
border-radius: 8px !important;
|
|
}
|
|
|
|
.reddit-embed-bq {
|
|
margin: 0.5rem 0;
|
|
max-width: 600px;
|
|
}
|
|
|
|
.discord-embed {
|
|
background: #5865f2;
|
|
color: white;
|
|
padding: 12px 16px;
|
|
border-radius: 8px;
|
|
margin: 0.5rem 0;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.discord-embed a {
|
|
color: white;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.discord-embed a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Code Embeds */
|
|
.embedded-code.codepen,
|
|
.embedded-code.jsfiddle {
|
|
width: 100%;
|
|
height: 300px;
|
|
border-radius: 8px;
|
|
margin: 0.5rem 0;
|
|
border: 1px solid var(--border-color, #ddd);
|
|
}
|
|
|
|
/* Document Embeds */
|
|
.embedded-document {
|
|
margin: 0.5rem 0;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.embedded-document.pdf,
|
|
.embedded-document.google-drive,
|
|
.embedded-document.dropbox {
|
|
width: 100%;
|
|
height: 400px;
|
|
border: 1px solid var(--border-color, #ddd);
|
|
}
|
|
|
|
.embedded-document.generic {
|
|
background: var(--bg-secondary, #f5f5f5);
|
|
border: 2px dashed var(--border-color, #ddd);
|
|
padding: 20px;
|
|
text-align: center;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.embedded-document.generic a {
|
|
color: var(--accent-color, #007acc);
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.embedded-document.generic a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
|
|
.embedded-video.youtube,
|
|
.embedded-video.vimeo {
|
|
height: 200px;
|
|
}
|
|
|
|
.embedded-video.tiktok {
|
|
height: 400px;
|
|
max-width: 280px;
|
|
}
|
|
|
|
.embedded-audio.spotify {
|
|
height: 80px;
|
|
/* Compact mode on mobile */
|
|
}
|
|
|
|
.embedded-document.pdf,
|
|
.embedded-document.google-drive,
|
|
.embedded-document.dropbox {
|
|
height: 300px;
|
|
}
|
|
|
|
.twitter-tweet {
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
.instagram-media {
|
|
max-width: 100% !important;
|
|
}
|
|
}
|
|
|
|
/* Loading States */
|
|
.embedded-image[src=""],
|
|
.embedded-video[src=""],
|
|
.embedded-audio[src=""] {
|
|
background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
|
|
background-size: 200% 100%;
|
|
animation: loading 1.5s infinite;
|
|
}
|
|
|
|
@keyframes loading {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
/* Auto-generated Links */
|
|
.auto-link {
|
|
color: var(--accent-link);
|
|
text-decoration: none;
|
|
word-break: break-word;
|
|
border-bottom: 1px solid transparent;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.auto-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.auto-link:visited {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
/* Dark Mode Support */
|
|
@media (prefers-color-scheme: dark) {
|
|
.embedded-image {
|
|
background: var(--bg-secondary-dark, #2a2a2a);
|
|
}
|
|
|
|
.embedded-audio {
|
|
background: var(--bg-secondary-dark, #2a2a2a);
|
|
}
|
|
|
|
.embedded-document.generic {
|
|
background: var(--bg-secondary-dark, #2a2a2a);
|
|
border-color: var(--border-color-dark, #444);
|
|
}
|
|
|
|
.embedded-document.pdf,
|
|
.embedded-document.google-drive,
|
|
.embedded-document.dropbox {
|
|
border-color: var(--border-color-dark, #444);
|
|
}
|
|
}
|
|
|
|
/* Modal Close Button Fix */
|
|
.modal-close {
|
|
background: none;
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
/* Voice Controls - Icon Only */
|
|
.voice-controls-content .voice-btn {
|
|
width: 50px;
|
|
height: 50px;
|
|
font-size: 1.4rem;
|
|
/* flex box*/
|
|
margin: 0 auto;
|
|
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 12px;
|
|
position: relative;
|
|
}
|
|
|
|
|
|
.join-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.75rem;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* Remove section headers and improve spacing */
|
|
.username-section,
|
|
.mic-section {
|
|
width: 50%;
|
|
background: rgba(45, 45, 45, 0.8);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
text-align: center;
|
|
}
|
|
|
|
.username-section .input-group {
|
|
display: flex;
|
|
gap: 1rem;
|
|
justify-content: center;
|
|
align-items: center;
|
|
max-width: 400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.chat-message {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 12px;
|
|
max-width: 85%;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
animation: messageAppear 0.3s ease;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
@keyframes messageAppear {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Enhance chat messages */
|
|
.chat-message.own {
|
|
background: linear-gradient(135deg, rgba(74, 158, 255, 0.9), rgba(58, 142, 239, 0.9));
|
|
backdrop-filter: blur(5px);
|
|
color: white;
|
|
align-self: flex-end;
|
|
margin-left: auto;
|
|
box-shadow: 0 2px 12px rgba(74, 158, 255, 0.3);
|
|
}
|
|
|
|
.chat-message.other {
|
|
background: rgba(58, 58, 58, 0.8);
|
|
backdrop-filter: blur(5px);
|
|
color: var(--text-primary);
|
|
align-self: flex-start;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* Message Header - Username and Timestamp Side by Side */
|
|
.chat-message-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: baseline;
|
|
margin-bottom: 0.5rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.chat-message .username {
|
|
font-weight: 600;
|
|
font-size: 0.85rem;
|
|
color: var(--accent);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chat-message.own .username {
|
|
color: rgba(255, 255, 255, 0.9);
|
|
}
|
|
|
|
.chat-message .timestamp {
|
|
font-size: 0.75rem;
|
|
opacity: 0.7;
|
|
font-weight: 400;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.chat-message.own .timestamp {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.chat-message .content {
|
|
font-size: 0.95rem;
|
|
line-height: 1.4;
|
|
word-break: break-word;
|
|
white-space: normal;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
/* Chat Input */
|
|
.chat-input-container {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
#chat-input {
|
|
flex: 1;
|
|
padding: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
font-family: inherit;
|
|
transition: border-color 0.3s ease;
|
|
resize: none;
|
|
height: var(--chat-section-height);
|
|
min-height: calc(var(--chat-section-height) * 2.1);
|
|
max-height: 50vh;
|
|
overflow-y: visible;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
#chat-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
#chat-input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.chat-input-buttons {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
grid-template-rows: repeat(2, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
#send-btn,
|
|
#scroll-btn,
|
|
#file-btn,
|
|
#emoji-btn {
|
|
padding: 1rem 1.75rem;
|
|
text-align: center;
|
|
border-radius: 8px;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
/*font-size: 1rem;*/
|
|
height: var(--chat-section-height);
|
|
min-height: var(--chat-section-height);
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
#send-btn {
|
|
grid-column: 1 / 4;
|
|
width: 100%;
|
|
}
|
|
|
|
|
|
#file-btn:hover:not(:disabled),
|
|
#send-btn:hover:not(:disabled),
|
|
#scroll-btn:hover:not(:disabled),
|
|
#emoji-btn:hover:not(:disabled) {
|
|
background-color: var(--accent);
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
#scroll-btn:disabled,
|
|
#send-btn:disabled,
|
|
#emoji-btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
/* Custom scrollbar for chat */
|
|
.chat-messages::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-track {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-thumb {
|
|
background: var(--border);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chat-messages::-webkit-scrollbar-thumb:hover {
|
|
background: var(--text-secondary);
|
|
}
|
|
|
|
/* Compact Users List */
|
|
.users-list {
|
|
flex: 1;
|
|
padding: 1rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
overflow-y: auto;
|
|
min-height: 0;
|
|
}
|
|
|
|
/* Enhance user cards for floating theme */
|
|
.user-card {
|
|
background: rgba(58, 58, 58, 0.6);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 12px;
|
|
padding: 0.75rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
transition: all 0.3s ease;
|
|
cursor: pointer;
|
|
position: relative;
|
|
backdrop-filter: blur(5px);
|
|
}
|
|
|
|
.user-card:hover {
|
|
background: rgba(74, 158, 255, 0.1);
|
|
border-color: rgba(74, 158, 255, 0.3);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(74, 158, 255, 0.2);
|
|
}
|
|
|
|
.user-card.current-user-card {
|
|
border-color: rgba(74, 158, 255, 0.5);
|
|
background: rgba(74, 158, 255, 0.15);
|
|
box-shadow: 0 0 16px rgba(74, 158, 255, 0.3);
|
|
}
|
|
|
|
.user-card.speaking {
|
|
border-color: rgba(76, 175, 80, 0.6) !important;
|
|
background: rgba(76, 175, 80, 0.2) !important;
|
|
box-shadow: 0 0 20px rgba(76, 175, 80, 0.4) !important;
|
|
animation: pulse 1.5s infinite;
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0% {
|
|
box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
|
|
background-color: rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
50% {
|
|
box-shadow: 0 0 30px rgba(76, 175, 80, 0.6);
|
|
background-color: rgba(76, 175, 80, 0.3);
|
|
}
|
|
|
|
100% {
|
|
box-shadow: 0 0 20px rgba(76, 175, 80, 0.4);
|
|
background-color: rgba(76, 175, 80, 0.2);
|
|
}
|
|
}
|
|
|
|
/* Compact Avatar */
|
|
.user-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: 50%;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-hover));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
color: white;
|
|
font-size: 0.9rem;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Compact User Info */
|
|
.user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-name {
|
|
font-weight: 500;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.25rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-status {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.user-status.speaking {
|
|
color: var(--success);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Compact Mute Button */
|
|
.mute-user-btn {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 4px;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border);
|
|
color: var(--text-primary);
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
opacity: 0.7;
|
|
padding: 0;
|
|
}
|
|
|
|
.mute-user-btn:hover {
|
|
opacity: 1;
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
color: white;
|
|
}
|
|
|
|
/* No Users State */
|
|
.no-users {
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-style: italic;
|
|
font-size: 0.85rem;
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
input[type="text"] {
|
|
flex: 1;
|
|
padding: 0.75rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
input[type="text"]:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
input[type="text"]::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
button {
|
|
padding: 0.75rem 1.5rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
background-color: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
button:hover:not(:disabled) {
|
|
background-color: var(--accent);
|
|
border-color: var(--accent);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.mic-button {
|
|
width: 100%;
|
|
max-width: 300px;
|
|
padding: 1rem;
|
|
font-size: 1.1rem;
|
|
background: linear-gradient(135deg, var(--accent), var(--accent-hover));
|
|
border: none;
|
|
color: white;
|
|
margin: 0 auto;
|
|
display: block;
|
|
}
|
|
|
|
.mic-status {
|
|
margin-top: 1rem;
|
|
padding: 0.5rem;
|
|
border-radius: 6px;
|
|
text-align: center;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.mic-status.granted {
|
|
background-color: rgba(76, 175, 80, 0.2);
|
|
color: var(--success);
|
|
}
|
|
|
|
.mic-status.denied {
|
|
background-color: rgba(244, 67, 54, 0.2);
|
|
color: var(--error);
|
|
}
|
|
|
|
#join-chat-btn {
|
|
background: linear-gradient(135deg, var(--success), #45a049);
|
|
color: white;
|
|
border: none;
|
|
min-width: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.voice-btn {
|
|
padding: 0.75rem;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.voice-btn.primary {
|
|
background: var(--bg-secondary);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.voice-btn.muted {
|
|
background: linear-gradient(135deg, var(--error), #d32f2f);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.voice-btn.unmuted {
|
|
background: var(--bg-secondary);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
.voice-btn.danger {
|
|
background: linear-gradient(135deg, var(--error), #d32f2f);
|
|
color: white;
|
|
border: none;
|
|
}
|
|
|
|
/* Modal Styles */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
animation: fadeIn 0.2s ease;
|
|
padding: 1rem;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border);
|
|
width: 100%;
|
|
max-width: 400px;
|
|
box-shadow: 0 10px 30px var(--shadow);
|
|
animation: slideUp 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
transform: translateY(50px);
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 1.5rem;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
margin: 0;
|
|
color: var(--text-primary);
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
|
|
.modal-close:hover {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.control-section {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.control-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.control-section h1 {
|
|
display: block;
|
|
margin-bottom: 0.75rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.volume-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 0.75rem;
|
|
background: var(--bg-tertiary);
|
|
padding: 1rem;
|
|
border-radius: 8px;
|
|
border: 1px solid var(--border);
|
|
}
|
|
|
|
.volume-control span {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
#user-volume-slider {
|
|
flex: 1;
|
|
height: 6px;
|
|
background: var(--bg-primary);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#user-volume-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
#user-volume-slider::-webkit-slider-thumb:hover {
|
|
background: var(--accent-hover);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
#user-volume-slider::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
background: var(--accent);
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
#volume-percentage {
|
|
min-width: 40px;
|
|
text-align: center;
|
|
font-weight: 500;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.audio-controls {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.control-btn {
|
|
flex: 1;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 8px;
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
font-size: 0.9rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
|
|
.modal-username {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
|
|
.control-btn:hover {
|
|
background: var(--accent);
|
|
border-color: var(--accent);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.control-btn.secondary {
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.control-btn.secondary:hover {
|
|
background: var(--bg-tertiary);
|
|
border-color: var(--text-secondary);
|
|
}
|
|
|
|
.control-btn.muted {
|
|
background: var(--error);
|
|
border-color: var(--error);
|
|
color: white;
|
|
}
|
|
|
|
.control-btn.muted:hover {
|
|
background: #d32f2f;
|
|
border-color: #d32f2f;
|
|
}
|
|
|
|
/* User card click cursor */
|
|
.user-card:not(.current-user-card) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.user-card:not(.current-user-card):hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
/* MOBILE RESPONSIVE DESIGN */
|
|
@media (max-width: 768px) {
|
|
|
|
/* Stack layout vertically on mobile */
|
|
.app-container {
|
|
flex-direction: column;
|
|
padding: 0.5rem;
|
|
gap: 0.5rem;
|
|
height: 100vh;
|
|
}
|
|
|
|
.sidebar.visible {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 200px;
|
|
order: -1;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
padding: 0.5rem;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Mobile sidebar - horizontal sections */
|
|
.sidebar {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 200px;
|
|
order: -1;
|
|
flex-shrink: 0;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.sidebar-section {
|
|
flex: 1;
|
|
}
|
|
|
|
.users-section {
|
|
flex: 2;
|
|
}
|
|
|
|
.voice-controls-sidebar {
|
|
flex: 1;
|
|
min-width: 150px;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 0.75rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Horizontal scrolling users list */
|
|
.users-list {
|
|
display: grid;
|
|
flex-direction: column;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
margin: 0 auto;
|
|
/*grid-template-rows: auto;*/
|
|
gap: 0.25rem;
|
|
padding: 0.5rem 0.25rem;
|
|
}
|
|
|
|
/* Compact mobile user cards */
|
|
.user-card {
|
|
flex-direction: row;
|
|
/* min-width: fit-content; */
|
|
/* min-height: fit-content; */
|
|
display: grid;
|
|
grid-auto-rows: minmax(5vw, auto);
|
|
/*overflow-x: scroll;*/
|
|
/*margin: 0 auto;*/
|
|
/*margin-bottom: 5vh;*/
|
|
/*margin-right: 5vw;*/
|
|
/*width: 60px;*/
|
|
/*padding: 0.5rem;*/
|
|
justify-content: center;
|
|
text-align: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-card .mute-user-btn {
|
|
display: none;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 0.8rem;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.user-info {
|
|
display: none;
|
|
}
|
|
|
|
.mute-user-btn {
|
|
position: static;
|
|
width: 16px;
|
|
height: 16px;
|
|
font-size: 8px;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
/* Mobile voice controls */
|
|
.voice-controls-content {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.voice-controls-content .control-buttons {
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
display: grid;
|
|
/*grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));*/
|
|
grid-template-columns: repeat(2, 1fr);
|
|
margin: 0 auto;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.voice-controls-content .voice-btn {
|
|
padding: 0.5rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
/* Mobile main content */
|
|
.main-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
main {
|
|
padding: 1rem;
|
|
gap: 1rem;
|
|
}
|
|
|
|
/* Mobile sections */
|
|
.username-section,
|
|
.mic-section,
|
|
.chat-section {
|
|
padding: 1rem;
|
|
border-radius: 12px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.section-header p {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Mobile input groups */
|
|
.username-section .input-group {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
max-width: none;
|
|
}
|
|
|
|
#join-chat-btn {
|
|
min-width: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* Mobile chat */
|
|
.chat-section {
|
|
flex: 1;
|
|
min-height: 250px;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.chat-messages {
|
|
padding: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.chat-message {
|
|
max-width: 90%;
|
|
padding: 0.5rem 0.75rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.chat-message .username {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.chat-message .timestamp {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
/* Mobile chat input */
|
|
.chat-input-container {
|
|
gap: 0.75rem;
|
|
min-width: 180px;
|
|
}
|
|
|
|
#chat-input {
|
|
padding: 0.75rem;
|
|
font-size: 16px;
|
|
min-width: 30vw;
|
|
/* Prevent zoom on iOS */
|
|
}
|
|
|
|
#file-btn,
|
|
#scroll-btn,
|
|
#send-btn,
|
|
#emoji-btn {
|
|
padding: 0.75rem 1rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* Mobile modal */
|
|
.modal {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.modal-content {
|
|
width: 100%;
|
|
max-width: 350px;
|
|
}
|
|
|
|
.modal-header,
|
|
.modal-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Mobile volume control */
|
|
.volume-control {
|
|
padding: 0.75rem;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.audio-controls {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
/* Hide hover effects on mobile */
|
|
.user-card:hover,
|
|
.control-btn:hover,
|
|
button:hover {
|
|
transform: none;
|
|
}
|
|
|
|
/* Mobile scrollbars */
|
|
.users-list::-webkit-scrollbar,
|
|
.chat-messages::-webkit-scrollbar {
|
|
height: 4px;
|
|
width: 4px;
|
|
}
|
|
}
|
|
|
|
/* Extra small mobile devices */
|
|
@media (max-width: 480px) {
|
|
.app-container {
|
|
padding: 0.25rem;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.sidebar {
|
|
max-height: 180px;
|
|
padding: 0.25rem;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.sidebar-header h3 {
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.users-list {
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.user-card {
|
|
min-width: 50px;
|
|
width: 50px;
|
|
padding: 0.25rem;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
main {
|
|
padding: 0.05rem;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.username-section,
|
|
.mic-section,
|
|
.chat-section {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.chat-messages {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.chat-message {
|
|
padding: 0.5rem;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
#chat-input {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
#send-btn,
|
|
#emoji-btn {
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
}
|
|
|
|
/* Landscape mobile orientation */
|
|
@media (max-width: 768px) and (orientation: landscape) {
|
|
.app-container {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.sidebar {
|
|
width: 200px;
|
|
height: 100vh;
|
|
max-height: none;
|
|
order: 0;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.sidebar-section {
|
|
flex: auto;
|
|
}
|
|
|
|
.users-section {
|
|
flex: 1;
|
|
}
|
|
|
|
.voice-controls-sidebar {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.users-list {
|
|
flex-direction: column;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.user-card {
|
|
width: auto;
|
|
min-width: auto;
|
|
flex-direction: row;
|
|
}
|
|
|
|
.user-info {
|
|
display: block;
|
|
}
|
|
|
|
.chat-section {
|
|
min-height: 200px;
|
|
}
|
|
}
|
|
|
|
/* Reconnection Notice */
|
|
.reconnection-notice {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: rgba(244, 67, 54, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
color: white;
|
|
z-index: 2000;
|
|
padding: 1rem;
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0.2);
|
|
animation: slideDown 0.3s ease;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
transform: translateY(-100%);
|
|
opacity: 0;
|
|
}
|
|
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.notice-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
max-width: 600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.spinner {
|
|
width: 24px;
|
|
height: 24px;
|
|
border: 3px solid rgba(255, 255, 255, 0.3);
|
|
border-top: 3px solid white;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
0% {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
100% {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.notice-text h3 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.notice-text p {
|
|
margin: 0;
|
|
font-size: 0.9rem;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* Scrollbar Styling */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: var(--accent);
|
|
}
|