@font-face {
    font-family: 'Source Sans Pro';
    src: url('fonts/SourceSansPro-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('fonts/SourceSansPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('fonts/SourceSansPro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source Sans Pro';
    src: url('fonts/SourceSansPro-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: linear-gradient(135deg, #13151a 0%, #1b0f27 100%);
    height: 100vh;
    color: #ffffff;
}

.screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.loginHead{
    float: left;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* Стили окна входа */
.login-container {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 440px;
    width: 90%;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 
        0 0 80px rgba(0, 243, 255, 0.1),
        0 0 40px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Заголовок */
.login-header {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.logo-wrapper {
    margin-bottom: 20px;
}

.menzzy-logo {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(0, 243, 255, 0.3));
}
.menzzy-logo2 {
    width: 3rem;
    height: 3rem;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
}
.appTitleContainer{
    margin-left: 1rem;
}

.app-title {
    font-size: 2.5em;
    font-weight: 200;
    background: linear-gradient(135deg, #00f3ff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.app-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
}

/* Группы ввода */
.input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-group input {
    width: 100%;
    padding: 16px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    text-align: center;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-bottom-color: #00f3ff;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    transform: translateY(-24px) scale(0.8);
    color: #00f3ff;
}

.input-group label {
    position: absolute;
    top: 16px;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f3ff, #8b5cf6);
    transition: width 0.3s ease;
}

.input-group input:focus ~ .input-border {
    width: 100%;
}

/* Опции формы */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-label input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background: #00f3ff;
    border-color: #00f3ff;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: #0f172a;
    font-size: 12px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.forgot-link:hover {
    color: #00f3ff;
}

/* Кнопка входа */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00f3ff, #8b5cf6);
    border: none;
    border-radius: 16px;
    color: #0f172a;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(0, 243, 255, 0.4),
        0 0 40px rgba(139, 92, 246, 0.3);
}

.btn-text {
    position: relative;
    z-index: 2;
    gap: .3rem;
    justify-content: center;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #0f172a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Сообщение об ошибке */
.error-message {
    color: #ff6b6b;
    text-align: center;
    margin-top: 16px;
    min-height: 20px;
    font-size: 1rem;
    font-weight: 400;
}

/* Футер входа */
.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.register-link {
    color: #00f3ff;
    text-decoration: none;
    font-weight: 500;
}

/* Статус системы */
.system-status {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online {
    background: #00f3ff;
    box-shadow: 0 0 10px #00f3ff;
}

.status-dot.secure {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

/* Адаптивность */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
        margin: 20px;
        width: auto;
        background: none;
        border: none;
        box-shadow: none;
    }
    
    .app-title {
        font-size: 2em;
        font-weight: 200;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .forgot-link{
        align-self: center;
    }
}
/* Исправление стилей автозаполнения */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(15, 23, 42, 0.8) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border-bottom: 1px solid #00f3ff !important;
}

/* Для современных браузеров */
.input-group input:autofill {
    background: transparent !important;
    color: white !important;
}

/* Дополнительно убираем белый фон при автозаполнении */
.input-group input:-webkit-autofill {
    -webkit-background-clip: text;
    -webkit-text-fill-color: white;
}
.aboutMe{
    transform: translateY(1rem);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-align: center;
}

.loginIcon{
    vertical-align: middle;
    width: 1.1rem;
    height: 1.1rem; 
    flex-shrink: 0;
}

label, .labelBtn {
    display: flex;
    align-items: center;
    gap: .3rem;
}

/* НОВЫЕ СТИЛИ ДЛЯ ЧАТА И ЗВОНКОВ (НЕ ТРОГАЕМ ВХОД) */

/* Основной интерфейс чата */
#chatScreen {
    display: flex;
    height: 100vh;
    background: rgba(19, 21, 26, 0.95);
}

/* Боковая панель контактов */
.contacts-sidebar {
    width: 350px;
    background: rgba(26, 26, 26, 0.95);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f3ff 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}

.user-info h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.user-status {
    font-size: 12px;
    color: #4CAF50;
}

.user-status.online::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 6px;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.search-container {
    padding: 15px 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box svg {
    position: absolute;
    left: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.search-box input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #00f3ff;
    background: rgba(255, 255, 255, 0.15);
}

.contacts-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 10px 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    position: relative;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-item.active {
    background: rgba(0, 243, 255, 0.1);
}

.contact-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f3ff 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-right: 12px;
}

.contact-info {
    flex: 1;
}

.contact-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-last-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.contact-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.unread-count {
    background: #00f3ff;
    color: #000;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.contact-call-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.contact-item:hover .contact-call-btn {
    opacity: 1;
}

.contact-call-btn:hover {
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
}

/* Основная область чата */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(19, 21, 26, 0.9);
}

.chat-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.back-to-contacts {
    display: none;
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-contacts:hover {
    background: rgba(255, 255, 255, 0.1);
}

.chat-partner-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chat-partner-details h2 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.chat-partner-details .user-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.chat-actions {
    display: flex;
    gap: 8px;
}

.chat-action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-action-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.chat-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-action-btn.call:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.empty-chat-icon {
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-chat-state h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.empty-chat-state p {
    font-size: 14px;
    max-width: 300px;
    line-height: 1.5;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message-incoming {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
}

.message-outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #00f3ff 0%, #a855f7 100%);
    border-bottom-right-radius: 4px;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #00f3ff;
}

.message-text {
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    text-align: right;
    margin-top: 5px;
    opacity: 0.7;
}

.chat-input-container {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: rgba(26, 26, 26, 0.9);
}

.input-attachment {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.input-attachment:hover {
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
}

.message-input-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.message-input-wrapper:focus-within {
    border-color: #00f3ff;
    background: rgba(255, 255, 255, 0.15);
}

.message-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    outline: none;
    font-family: inherit;
    line-height: 1.4;
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.send-button {
    background: linear-gradient(135deg, #00f3ff 0%, #a855f7 100%);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.3);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Экран звонков */
.call-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #13151a 0%, #1b0f27 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.call-container {
    text-align: center;
    padding: 40px;
    max-width: 400px;
    width: 100%;
}

.call-avatar.large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f3ff 0%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    margin: 0 auto 20px;
}

.caller-name {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.call-status {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.call-timer {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 30px;
    font-variant-numeric: tabular-nums;
}

.call-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.call-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.call-control-btn.decline {
    background: #ff6b6b;
    color: white;
}

.call-control-btn.decline:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.call-control-btn.accept {
    background: #4CAF50;
    color: white;
}

.call-control-btn.accept:hover {
    background: #45a049;
    transform: scale(1.05);
}

.call-control-btn.end-call {
    background: #ff6b6b;
    color: white;
}

.call-control-btn.end-call:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.call-control-btn.mute,
.call-control-btn.speaker {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.call-control-btn.mute:hover,
.call-control-btn.speaker:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Стили для видео звонка */
.video-call-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.remote-video-container {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.remote-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.local-video-container {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 25%;
    max-width: 200px;
    min-width: 120px;
    aspect-ratio: 9/16; /* Вертикальное соотношение */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.local-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-call-info {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    text-align: left;
}

.video-call-info .caller-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.video-call-info .call-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.video-call-info .call-timer {
    font-size: 16px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.video-call-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

/* Стили для кнопок видео звонка в списке контактов */
.contact-video-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.contact-item:hover .contact-video-btn {
    opacity: 1;
}

.contact-video-btn:hover {
    color: #00f3ff;
    background: rgba(0, 243, 255, 0.1);
}

.contact-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

/* Кнопка видео звонка в заголовке чата */
.chat-action-btn.video-call:hover:not(:disabled) {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

/* Состояния кнопок во время звонка */
.call-control-btn.video.disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
}

.call-control-btn.video:not(.disabled):hover {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.call-control-btn.switch-camera:hover {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}


/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contacts-sidebar {
        width: 100%;
        position: absolute;
        z-index: 10;
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
    
    .contacts-sidebar.hidden {
        transform: translateX(-100%);
    }
    
    .chat-main {
        width: 100%;
    }
    
    .back-to-contacts {
        display: flex;
    }
    
    .message {
        max-width: 85%;
    }
    
    .call-container {
        padding: 20px;
    }
    
    .call-avatar.large {
        width: 100px;
        height: 100px;
        font-size: 28px;
    }
    
    .caller-name {
        font-size: 20px;
    }
    
    .call-timer {
        font-size: 28px;
    }
    
    .call-control-btn {
        width: 50px;
        height: 50px;
    }

    .local-video-container {
        width: 30%;
        top: 10px;
        right: 10px;
    }
    
    .video-call-info {
        top: 10px;
        left: 10px;
        padding: 8px 16px;
    }
    
    .video-call-controls {
        bottom: 20px;
        gap: 10px;
        padding: 15px;
    }
    
    .call-control-btn {
        width: 50px;
        height: 50px;
    }

    .remote-video-container video {
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .call-controls {
        gap: 15px;
    }
    
    .call-control-btn {
        width: 45px;
        height: 45px;
    }

    .local-video-container {
        width: 35%;
        min-width: 100px;
    }
    
    .video-call-controls {
        gap: 8px;
        padding: 12px;
    }
    
    .call-control-btn {
        width: 45px;
        height: 45px;
    }
}

/* Полосы прокрутки */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message {
    animation: fadeIn 0.3s ease;
}

.contact-item {
    animation: fadeIn 0.2s ease;
}

/* Performance optimization */
.performance-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, #1e1b4b 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, #220c33 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, #0b2d41 0%, transparent 50%),
        #030712;
    z-index: -1;
    animation: colorShift 10s ease-in-out infinite;
}

@keyframes colorShift {
    0%, 100% { 
        filter: hue-rotate(0deg) brightness(0.9);
        background-position: 0% 0%, 100% 100%, 50% 50%;
    }
    50% { 
        filter: hue-rotate(30deg) brightness(1.1);
        background-position: 100% 100%, 0% 0%, 50% 50%;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #00f3ff;
    outline-offset: 2px;
}

/* Loading states */
.loading {
    pointer-events: none;
    opacity: 0.7;
}