@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');
* {
box-sizing: border-box;
}
:root {
/* Палитра современной темной темы */
--bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
--component-bg: rgba(30, 30, 30, 0.6);
--glass-border: rgba(255, 255, 255, 0.08);
--primary: #9d4edd;
--primary-hover: #7b2cbf;
--secondary: #00b4d8;
--text-primary: #ffffff;
--text-secondary: #b0b0b0;
--msg-sent-bg: linear-gradient(135deg, #7b2cbf, #9d4edd);
--msg-received-bg: rgba(60, 60, 60, 0.6);
--input-bg: rgba(0, 0, 0, 0.3);
--shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
body {
background: var(--bg-gradient);
background-size: 400% 400%;
animation: gradientBG 15s ease infinite;
color: var(--text-primary);
font-family: 'Outfit', sans-serif;
margin: 0;
height: 100dvh; /* Использовать dvh для поддержки адресной строки мобильных */
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}
@keyframes gradientBG {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* Контейнер стекломорфизма */
.auth-container, .app-layout {
background: #1e1e1e;
border: 1px solid var(--glass-border);
border-radius: 20px;
box-shadow: var(--shadow);
width: 90%;
max-width: 1100px;
animation: fadeIn 0.8s ease-out;
display: flex;
overflow: hidden;
height: 85vh;
}
.auth-container {
padding: 3rem 2rem;
max-width: 420px;
display: block;
height: auto;
text-align: center;
}
.auth-container h2 {
margin: 0 0 2rem 0;
font-size: 1.8rem;
font-weight: 700;
letter-spacing: -0.5px;
}
.chat-container {
flex: 1;
display: flex;
flex-direction: column;
height: 100%;
background: transparent;
box-shadow: none; /* Сброс */
border: none;
border-radius: 0;
padding: 0;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
/* Стили боковой панели */
.sidebar {
width: 260px;
flex-shrink: 0;
background: #18191a !important; /* Принудительный настоящий черноватый фон */
border-right: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
flex-direction: column;
position: relative;
z-index: 10;
height: 100%;
margin-right: -1px; /* Перекрытие границы с областью чата для плавного выравнивания */
}
.sidebar-header {
height: 80px;
padding: 0 20px;
display: flex;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
background: #1e1f20;
flex-shrink: 0;
}
.sidebar-header h3 {
margin: 0;
font-size: 1.1rem;
font-weight: 700;
color: #fff;
text-transform: uppercase;
letter-spacing: 1px;
}
.rooms-list {
flex: 1;
overflow-y: auto;
padding: 10px;
}
.room-item {
padding: 12px 16px;
margin-bottom: 8px;
border-radius: 14px;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
color: rgba(255, 255, 255, 0.6) !important;
display: flex;
justify-content: space-between;
align-items: center;
border: 1px solid transparent;
background: rgba(255, 255, 255, 0.02);
}
.room-item:hover {
background: rgba(255, 255, 255, 0.08);
color: white !important;
transform: translateX(4px);
}
.room-item.active {
background: linear-gradient(135deg, #7b2cbf, #9d4edd);
color: #fff !important;
box-shadow: 0 8px 20px rgba(123, 44, 191, 0.3);
font-weight: 600;
}
.room-actions {
display: none;
gap: 8px;
}
.room-item:hover .room-actions {
display: flex;
}
.room-action-btn {
background: none;
border: none;
color: rgba(255,255,255,0.5);
cursor: pointer;
padding: 4px;
transition: color 0.2s;
font-size: 1rem;
}
.room-action-btn:hover { color: #fff; }
.create-room {
padding: 15px 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
display: flex;
gap: 10px;
background: transparent;
flex-shrink: 0;
}
.create-room input {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: white;
padding: 0 14px;
border-radius: 12px;
width: 100%;
font-size: 0.9rem;
height: 44px;
transition: all 0.2s;
outline: none;
}
.create-room input:focus {
background: rgba(255, 255, 255, 0.1);
border-color: var(--primary);
}
.create-room button {
height: 44px;
width: 44px;
border-radius: 12px;
background: var(--primary);
color: white;
border: none;
cursor: pointer;
font-weight: bold;
font-size: 1.2rem;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.create-room button:hover {
background: var(--primary-hover);
transform: scale(1.05);
}
.sidebar-profile-btn:hover {
background: rgba(157, 78, 221, 0.2) !important;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(157, 78, 221, 0.2);
}
.create-room input:focus {
border-color: var(--primary);
}
.create-room button {
width: 42px;
height: 42px;
padding: 0;
margin: 0;
display: flex;
justify-content: center;
align-items: center;
font-size: 1.4rem;
border-radius: 12px;
background: #fff; /* Белая кнопка как на скриншоте */
color: #000;
border: none;
cursor: pointer;
transition: transform 0.1s;
}
.create-room button:active {
transform: scale(0.95);
}
/* Заголовок чата */
.chat-header {
height: 80px;
padding: 0 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(0,0,0,0.2);
border-top-left-radius: 20px;
border-top-right-radius: 20px;
}
.chat-header h3 {
margin: 0;
font-weight: 500;
font-size: 1.2rem;
letter-spacing: 0.5px;
}
.logout-btn {
text-decoration: none;
color: #ff6b6b;
font-size: 0.9rem;
font-weight: 500;
transition: all 0.3s;
padding: 6px 12px;
border-radius: 8px;
}
.logout-btn:hover {
background: rgba(255, 107, 107, 0.1);
}
/* Область сообщений */
.messages-area {
flex: 1;
overflow-y: auto;
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 20px;
}
.message-row {
display: flex;
gap: 12px;
align-items: flex-end;
width: 100%;
margin-bottom: 5px;
}
.message-row.sent {
flex-direction: row-reverse;
justify-content: flex-start;
}
.avatar-container {
position: relative;
width: 36px;
height: 36px;
flex-shrink: 0;
}
.avatar-container .status-dot {
position: absolute;
bottom: -1px;
right: -1px;
width: 12px;
height: 12px;
border: 2px solid #1e1e1e;
margin: 0;
z-index: 5;
}
.msg-avatar {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
box-shadow: 0 2px 5px rgba(0,0,0,0.2);
border: 1px solid rgba(255,255,255,0.1);
}
.message {
max-width: 75%;
padding: 12px 18px;
border-radius: 18px;
font-size: 0.95rem;
line-height: 1.5;
position: relative;
word-break: break-word;
animation: messageIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
@keyframes messageIn {
from { opacity: 0; transform: scale(0.9) translateY(10px); }
to { opacity: 1; transform: scale(1) translateY(0); }
}
.message.sent {
background: var(--msg-sent-bg);
color: white;
border-bottom-right-radius: 4px;
}
.message.received {
background: var(--msg-received-bg);
color: var(--text-primary);
border-bottom-left-radius: 4px;
border: 1px solid var(--glass-border);
}
.user-name {
font-size: 0.75rem !important;
opacity: 0.8;
margin-bottom: 4px;
display: block;
}
.meta {
font-size: 0.7rem;
opacity: 0.6;
margin-top: 6px;
text-align: right;
}
/* Пользовательский аудиоплеер */
.custom-audio-player {
display: flex;
align-items: center;
gap: 12px;
background: rgba(0, 0, 0, 0.25);
padding: 8px 14px 8px 8px; /* Дополнительный отступ справа для времени */
border-radius: 50px;
margin-top: 6px;
width: 240px;
border: 1px solid var(--glass-border);
transition: background 0.3s;
}
.custom-audio-player:hover {
background: rgba(0, 0, 0, 0.35);
}
.audio-btn {
width: 36px;
height: 36px;
border-radius: 50%;
background: white;
border: none;
color: var(--primary);
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
flex-shrink: 0;
transition: transform 0.2s, background 0.2s;
box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.audio-btn:hover {
transform: scale(1.05);
background: #f0f0f0;
}
.audio-btn svg {
width: 14px;
height: 14px;
fill: currentColor;
margin-left: 2px; /* Визуальная настройка центра для иконки воспроизведения */
}
.audio-btn.playing svg {
margin-left: 0; /* Центрировать иконку паузы */
}
.audio-track {
flex-grow: 1;
height: 4px;
background: rgba(255, 255, 255, 0.15);
border-radius: 10px;
position: relative;
cursor: pointer;
overflow: hidden;
}
.audio-progress {
height: 100%;
background: white;
width: 0%;
border-radius: 10px;
transition: width 0.1s linear;
}
.audio-time {
font-size: 0.7rem;
font-family: monospace;
opacity: 0.8;
color: white;
min-width: 35px;
text-align: right;
}
/* Область ввода */
.input-area {
height: 96px;
padding: 0 2rem;
background: rgba(0,0,0,0.2);
border-top: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
gap: 12px;
align-items: center;
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
position: relative; /* Для индикатора набора текста и наложения записи */
}
.recording-overlay {
position: absolute;
left: 45px;
right: 120px; /* Место для кнопок */
height: 100%;
display: flex;
align-items: center;
color: #ff4757;
font-weight: 600;
pointer-events: none;
opacity: 0;
transition: opacity 0.3s;
z-index: 10;
}
.recording-overlay.visible {
opacity: 1;
}
.rec-dot {
width: 12px;
height: 12px;
background-color: #ff4757;
border-radius: 50%;
margin-right: 10px;
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
.input-area input {
flex-grow: 1;
background: var(--input-bg);
border: 1px solid var(--glass-border);
border-radius: 30px;
padding: 12px 20px;
color: white;
font-family: inherit;
transition: all 0.3s;
}
.input-area input.recording {
color: transparent;
background: rgba(40, 0, 0, 0.3);
border-color: rgba(255, 71, 87, 0.3);
}
.input-area input.recording::placeholder {
color: transparent;
}
.input-area input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 15px rgba(157, 78, 221, 0.2);
}
.icon-btn {
background: var(--primary);
border: none;
color: white;
width: 48px;
height: 48px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.icon-btn:hover {
transform: scale(1.1);
background: var(--primary-hover);
}
.icon-btn:active {
transform: scale(0.95);
}
#recordBtn {
background: #ff4757;
}
#recordBtn:hover {
background: #ff6b81;
}
#recordBtn.recording {
animation: pulseRecord 1s infinite;
background: #ff0000;
box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}
#photoBtn {
background: #0984e3;
}
#photoBtn:hover {
background: #74b9ff;
}
@keyframes pulseRecord {
0% { transform: scale(1); }
50% { transform: scale(1.15); }
100% { transform: scale(1); }
}
/* Индикатор набора текста */
.typing-indicator {
position: absolute;
top: -30px;
left: 40px;
font-size: 0.8rem;
color: var(--text-secondary);
font-style: italic;
animation: fadePulse 1.5s infinite;
}
.typing-indicator.hidden {
display: none;
}
@keyframes fadePulse {
0%, 100% { opacity: 0.5; }
50% { opacity: 1; }
}
/* Специфично для страниц авторизации */
.link {
text-align: center;
margin-top: 1.5rem;
}
.link a {
color: var(--secondary);
text-decoration: none;
font-weight: 600;
}
form button {
width: 100%;
padding: 14px;
border-radius: 12px;
background: var(--primary);
color: white;
border: none;
font-weight: 600;
margin-top: 1rem;
cursor: pointer;
transition: all 0.3s;
}
form button:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
form input {
background: rgba(0,0,0,0.2);
border: 1px solid var(--glass-border);
color: white;
padding: 14px 18px;
border-radius: 12px;
width: 100%;
margin-bottom: 15px;
text-align: left; /* Оставить текст по левому краю внутри полей ввода */
font-size: 0.95rem;
}
form label {
text-align: left;
display: block;
width: 100%;
}
/* Исправление для автозаполнения, вызывающего белые блоки */
form input:-webkit-autofill,
form input:-webkit-autofill:hover,
form input:-webkit-autofill:focus,
form input:-webkit-autofill:active {
-webkit-box-shadow: 0 0 0 30px #2a2a2a inset !important;
-webkit-text-fill-color: white !important;
border-radius: 10px;
transition: background-color 5000s ease-in-out 0s;
}
form input:focus {
border-color: var(--primary);
}
/* Полоса прокрутки */
::-webkit-scrollbar {
width: 6px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
/* Компоненты для мобильных */
.mobile-menu-btn { display: none; margin-right: 15px; background: transparent; border: none; color: #fff; cursor: pointer; }
.mobile-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.5); z-index: 90;
opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.mobile-overlay.active {
opacity: 1;
pointer-events: auto;
}
/* ... Адаптивные настройки для мобильных ... */
@media (max-width: 768px) {
body {
align-items: flex-start;
padding: 0;
height: 100dvh; /* Динамическая высота вьюпорта для исправления проблем UI на мобильных */
}
.auth-container {
width: 100%;
height: 100%;
border-radius: 0;
display: flex;
flex-direction: column;
justify-content: center;
padding: 2rem;
}
.app-layout {
width: 100%;
height: 100dvh;
max-width: 100%;
border-radius: 0;
border: none;
flex-direction: column;
}
/* Логика боковой панели вне экрана */
.sidebar {
position: fixed;
top: 0;
left: -100%;
width: 85%;
max-width: 300px;
height: 100dvh;
background: #18191a;
z-index: 100;
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
border-right: 1px solid rgba(255,255,255,0.1);
box-shadow: 10px 0 30px rgba(0,0,0,0.5);
padding-bottom: env(safe-area-inset-bottom);
}
.sidebar.active {
left: 0;
}
.mobile-menu-btn { display: flex; }
.sidebar-header {
padding: 20px;
}
.rooms-list {
padding: 10px;
}
.messages-area {
padding: 15px;
gap: 15px;
}
.message {
max-width: 85%;
padding: 10px 14px;
font-size: 0.9rem;
border-radius: 16px;
}
/* Очистка заголовка для мобильных */
.desktop-only { display: none !important; }
.header-controls { display: flex !important; margin-right: 0 !important; }
.welcome-text { display: none !important; }
.header-profile-badge { display: none !important; }
.header-user-info { margin-bottom: 0 !important; }
/* Компактные кнопки для мобильного заголовка */
#toggleBotBtn, #editRoomBtn {
padding: 6px 10px !important;
font-size: 0.7rem !important;
margin-right: 5px !important;
}
.mobile-only-controls { display: block !important; }
.msg-avatar {
width: 32px;
height: 32px;
}
.avatar-container {
width: 32px;
height: 32px;
}
.input-area {
padding: 12px;
gap: 8px;
background: #1a1a1a;
}
.input-area input {
padding: 12px 16px;
font-size: 16px;
border-radius: 20px;
}
.recording-overlay {
left: 20px;
right: 20px;
width: auto;
font-size: 0.85rem;
}
.custom-audio-player {
min-width: 160px;
max-width: 100%;
}
}
/* Reply Feature */
.reply-preview-bar {
background: #1e1e1e;
padding: 12px 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
position: absolute;
bottom: 100%;
left: 0;
width: 100%;
z-index: 10;
transform: translateY(100%);
opacity: 0;
transition: all 0.3s ease;
pointer-events: none;
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
border-top-left-radius: 16px;
border-top-right-radius: 16px;
}
.reply-preview-bar.visible {
transform: translateY(0);
opacity: 1;
pointer-events: auto;
}
.reply-info {
font-size: 0.9rem;
color: #e0e0e0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 85%;
display: flex;
flex-direction: column;
}
.reply-info strong {
color: #00b4d8; /* Secondary color (Blue) */
font-size: 0.75rem;
margin-bottom: 2px;
}
.close-reply {
cursor: pointer;
padding: 8px;
color: #a0a0a0;
transition: color 0.2s;
font-size: 1.2rem;
line-height: 1;
}
.close-reply:hover { color: #fff; }
.quote-block {
position: relative;
background: rgba(0, 0, 0, 0.2);
border-left: 4px solid #00b4d8;
border-radius: 8px;
padding: 8px 12px;
margin-bottom: 8px;
font-size: 0.85rem;
cursor: pointer;
display: flex;
flex-direction: column;
margin-top: 2px;
}
.quote-block strong {
color: #00b4d8;
font-size: 0.75rem;
margin-bottom: 2px;
font-weight: 600;
}
.quote-block span {
color: rgba(255, 255, 255, 0.9);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.message.sent .quote-block {
background: rgba(0, 0, 0, 0.15);
border-left-color: rgba(255, 255, 255, 0.5);
}
.message.sent .quote-block strong {
color: rgba(255, 255, 255, 0.8);
}
.message.replying {
animation: highlightPulse 1s;
}
@keyframes highlightPulse {
0% { transform: scale(1); }
50% { transform: scale(1.02); }
100% { transform: scale(1); }
}
/* Online Status */
.online-status {
font-size: 0.8rem;
margin-top: 4px;
opacity: 0.9;
transition: all 0.3s;
}
/* Sidebar Sidebar */
.room-action-btn {
background: transparent;
border: none;
color: rgba(255, 255, 255, 0.7);
font-size: 1.1rem;
padding: 4px;
cursor: pointer;
transition: color 0.2s;
line-height: 1;
}
.room-action-btn:hover {
color: #fff;
transform: scale(1.1);
}
.sidebar-footer {
opacity: 0.8 !important;
}
.create-room input::placeholder {
color: rgba(255, 255, 255, 0.6) !important;
}
/* Desktop Force Visibility */
@media (min-width: 769px) {
.sidebar {
position: relative !important;
left: 0 !important;
display: flex !important;
width: 260px !important;
}
.mobile-menu-btn, .mobile-overlay {
display: none !important;
}
}
.status-dot {
width: 8px;
height: 8px;
background-color: #bbb;
border-radius: 50%;
display: inline-block;
margin-right: 5px;
}
.status-dot.online {
background-color: #4cd137;
box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
}
/* Modal & Profile Styling */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(8px);
display: none;
align-items: center;
justify-content: center;
z-index: 2000;
animation: fadeIn 0.3s ease;
}
.profile-card {
background: #1e1e1e;
border: 1px solid var(--glass-border);
padding: 2.5rem;
border-radius: 24px;
width: 90%;
max-width: 400px;
text-align: center;
position: relative;
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
animation: cardSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes cardSlideUp {
from { opacity: 0; transform: translateY(30px) scale(0.95); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.close-modal {
position: absolute;
top: 15px;
right: 15px;
background: rgba(255, 255, 255, 0.05);
border: none;
color: #fff;
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 1.2rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s;
}
.close-modal:hover {
background: rgba(255, 69, 58, 0.2);
color: #ff453a;
}
.btn {
background: var(--primary);
color: white;
border: none;
padding: 12px 24px;
border-radius: 12px;
font-weight: 600;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s;
width: 100%;
display: block;
text-align: center;
text-decoration: none;
}
.btn:hover {
background: var(--primary-hover);
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(157, 78, 221, 0.3);
}
.profile-card h2 {
margin-top: 0;
margin-bottom: 1.5rem;
font-size: 1.5rem;
font-weight: 700;
}
/* Video Call Modal */
.video-call-modal {
display: none; /* Hidden by default */
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000;
z-index: 9999;
flex-direction: column;
align-items: center;
justify-content: center;
}
.video-call-container {
width: 100%;
height: 100%;
position: relative;
display: flex;
justify-content: center;
overflow: hidden;
}
.video-streams {
position: relative;
width: 100%;
height: 100%;
}
#remote-video {
width: 100%;
height: 100%;
object-fit: cover;
background: #1a1a1a;
}
#local-video {
position: absolute;
bottom: 120px;
right: 20px;
width: 120px;
height: 160px;
background: #000;
border: 2px solid rgba(255,255,255,0.2);
border-radius: 12px;
object-fit: cover;
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
z-index: 10;
}
.call-info {
position: absolute;
top: 40px;
left: 0;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
z-index: 5;
pointer-events: none;
}
.remote-user-badge {
display: flex;
align-items: center;
gap: 15px;
background: rgba(0,0,0,0.4);
backdrop-filter: blur(10px);
padding: 10px 20px;
border-radius: 50px;
margin-bottom: 15px;
}
#call-remote-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
border: 2px solid white;
}
.remote-user-details h3 {
margin: 0;
color: white;
font-size: 1.2rem;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
#call-status {
color: rgba(255,255,255,0.8);
font-size: 0.9rem;
}
.call-timer-badge {
background: rgba(255, 71, 87, 0.8);
color: white;
padding: 5px 12px;
border-radius: 20px;
font-weight: bold;
font-family: monospace;
font-size: 1rem;
box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.call-controls {
position: absolute;
bottom: 40px;
left: 0;
width: 100%;
display: flex;
justify-content: center;
gap: 20px;
z-index: 20;
padding-bottom: env(safe-area-inset-bottom);
}
.call-btn {
width: 60px;
height: 60px;
border-radius: 50%;
border: none;
font-size: 1.5rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
transition: transform 0.2s;
}
.call-btn:hover { transform: scale(1.1); }
.call-btn:active { transform: scale(0.95); }
.camera-on, .mic-on { background: rgba(255,255,255,0.2); color: white; backdrop-filter: blur(5px); }
.camera-off, .mic-off { background: white; color: #1e1e1e; }
.end-call { background: #ff4757; color: white; width: 70px; height: 70px; }
/* Incoming Call Notification */
.incoming-call-notification {
display: none; /* Hidden by default */
position: fixed;
top: 20px;
right: 20px;
background: rgba(30, 30, 30, 0.95);
backdrop-filter: blur(10px);
border: 1px solid rgba(255,255,255,0.1);
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
border-radius: 16px;
z-index: 9998;
width: 300px;
padding: 20px;
animation: slideInRight 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes slideInRight {
from { transform: translateX(120%); opacity: 0; }
to { transform: translateX(0); opacity: 1; }
}
.incoming-call-content {
display: flex;
flex-direction: column;
gap: 15px;
}
.caller-info {
display: flex;
align-items: center;
gap: 15px;
}
#caller-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--primary);
}
.caller-info h3 {
margin: 0;
font-size: 1.1rem;
color: white;
}
.caller-info p {
margin: 4px 0 0;
color: rgba(255,255,255,0.6);
font-size: 0.85rem;
}
.incoming-call-actions {
display: flex;
gap: 10px;
}
.accept-btn, .decline-btn {
flex: 1;
padding: 10px;
border-radius: 10px;
border: none;
font-weight: 600;
cursor: pointer;
transition: transform 0.2s;
}
.accept-btn {
background: #4cd137;
color: white;
}
.decline-btn {
background: #ff4757;
color: white;
}
.accept-btn:hover, .decline-btn:hover {
transform: translateY(-2px);
filter: brightness(1.1);
}
/* Mobile responsive for video call */
@media (max-width: 768px) {
.incoming-call-notification {
top: 10px;
left: 10px;
right: 10px;
width: auto;
}
#local-video {
width: 100px;
height: 130px;
bottom: 140px;
}
}