body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.message-area {
    height: 70vh;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.message {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn {
    border-radius: 20px;
}

.form-control {
    border-radius: 20px;
}

.badge {
    font-size: 0.75em;
}

.modal-content {
    border-radius: 15px;
}

.list-group-item {
    border: none;
    border-radius: 10px;
    margin-bottom: 5px;
    transition: all 0.3s;
}

.list-group-item:hover {
    background-color: #e9ecef;
    transform: translateX(5px);
}

.alert {
    border-radius: 10px;
    border: none;
}

/* Voice chat styles */
#voiceParticipants {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.participant-item {
    padding: 2px 5px;
    margin: 2px 0;
    border-radius: 3px;
    background-color: #e9ecef;
}

.participant-item.connected {
    background-color: #d4edda;
    color: #155724;
}

.participant-item.connecting {
    background-color: #fff3cd;
    color: #856404;
}

.audio-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.audio-indicator.speaking {
    background-color: #28a745;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.sidebar {
    min-height: 100vh;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.message-area {
    height: 70vh;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.message {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn {
    border-radius: 20px;
}

.form-control {
    border-radius: 20px;
}

/* Voice chat status indicators */
.text-success { color: #198754 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
.text-muted { color: #6c757d !important; }

.message-delete-animation {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(20px); }
}


/* Модальное окно для медиа */
#mediaModal .modal-content {
    background-color: rgba(0, 0, 0, 0.9);
    border: none;
}
#mediaModal .btn-close-white {
    opacity: 0.8;
}
#mediaModal .btn-close-white:hover {
    opacity: 1;
}
#modalMediaContent img, #modalMediaContent video {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }

    .message-area {
        height: 60vh;
    }
}