radchat/static/styles.css
2025-08-19 17:43:12 -05:00

1387 lines
23 KiB
CSS

/* Dark Mode Theme */
:root {
--bg-primary: #1a1a1a;
--bg-secondary: #2d2d2d;
--bg-tertiary: #3a3a3a;
--text-primary: #ffffff;
--text-secondary: #b3b3b3;
--accent: #4a9eff;
--accent-hover: #3a8eef;
--success: #4caf50;
--warning: #ff9800;
--error: #f34c36;
--border: #444;
--shadow: rgba(0, 0, 0, 0.3);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
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;
gap: 0.75rem;
}
.voice-controls-content .voice-btn {
width: 50%;
padding: 0.5rem;
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;
flex-direction: column;
flex: 1;
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;
}
/* Chat Alerts for Join/Leave - Toned down */
.chat-alert {
margin: 0.5rem auto;
padding: 0.5rem 1rem;
border-radius: 12px;
max-width: 250px;
text-align: center;
font-size: 0.85rem;
animation: alertAppear 0.3s ease;
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;
}
.chat-alert-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-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);
}
}
.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 */
.embedded-gif,
.embedded-image {
max-width: 100%;
max-height: 300px;
border-radius: 8px;
margin: 0.5rem 0;
display: block;
}
.embedded-video {
max-width: 100%;
max-height: 300px;
border-radius: 8px;
margin: 0.5rem 0;
display: block;
}
.embedded-video iframe {
width: 100%;
height: 200px;
}
/* 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;
display: flex;
align-items: center;
justify-content: center;
border-radius: 12px;
position: relative;
}
/* Remove section headers and improve spacing */
.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;
}
.username-section .input-group {
display: flex;
gap: 1rem;
justify-content: center;
align-items: center;
max-width: 400px;
margin: 0 auto;
}
/* Beautiful Message Styling */
.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;
min-height: 50px;
max-height: 120px;
overflow-y: auto;
line-height: 1.4;
}
#chat-input:focus {
outline: none;
border-color: var(--accent);
}
#chat-input::placeholder {
color: var(--text-secondary);
}
#send-btn {
padding: 1rem 1.75rem;
border: none;
border-radius: 8px;
background-color: var(--bg-tertiary);
color: var(--text-primary);
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid var(--border);
}
#send-btn:hover:not(:disabled) {
background-color: var(--accent);
border-color: var(--accent);
transform: translateY(-2px);
}
#send-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: 180px;
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 label {
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;
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;
}
.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 {
flex-direction: row;
overflow-x: auto;
overflow-y: hidden;
padding: 0.5rem;
gap: 0.5rem;
}
/* Compact mobile user cards */
.user-card {
flex-direction: column;
min-width: 60px;
width: 60px;
padding: 0.5rem;
text-align: center;
flex-shrink: 0;
}
.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 {
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;
}
#chat-input {
padding: 0.75rem;
font-size: 16px;
/* Prevent zoom on iOS */
}
#send-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.75rem;
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 {
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);
}