/* Добавьте в style.css */
.page-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 0 auto;
}

footer {
    margin-top: auto;
}
.message-container {
    height: 70vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #f8f9fa;
}

.empty-chat-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-chat-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.connection-status {
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.connection-status.connected {
    background-color: #d4edda;
    color: #155724;
}

.connection-status.disconnected {
    background-color: #f8d7da;
    color: #721c24;
}

.connection-status.connecting {
    background-color: #fff3cd;
    color: #856404;
}

.typing-indicator {
    padding: 8px 12px;
    background-color: #e9ecef;
    border-radius: 4px;
    margin-top: 5px;
    font-style: italic;
    display: none;
}

.message-input-container {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: white;
    border-top: 1px solid #dee2e6;
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    outline: none;
}

/* Стили для галереи фотографий */
.photo-gallery {
    margin-top: 20px;
}

.photo-card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.photo-card img {
    transition: opacity 0.2s ease-in-out;
}

.photo-card:hover img {
    opacity: 0.9;
}

.photo-modal .modal-dialog {
    max-width: 90vw;
    max-height: 90vh;
}

.photo-modal .modal-body {
    padding: 0;
    text-align: center;
}

.photo-modal .modal-body img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.main-photo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    color: #000;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.photo-count {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    position: absolute;
    bottom: 10px;
    right: 10px;
}

/* Стили для улучшения видимости стрелочек карусели */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    filter: brightness(0) invert(1);
}

/* Стили для главной фотографии профиля */
.main-profile-photo {
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

.main-profile-photo:hover {
    transform: scale(1.05);
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.main-profile-photo:active {
    transform: scale(0.98);
}

/* Индикатор кликабельности для главной фотографии */
.main-profile-photo::after {
    content: "👁️";
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.main-profile-photo:hover::after {
    opacity: 1;
}

/* Стили для пузырьков сообщений */
.message-bubble {
    display: inline-block;
    max-width: 70%;
    padding: 12px 16px;
    margin: 2px 0;
    border-radius: 18px;
    border: 2px solid;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    position: relative;
}

.message-bubble.sent {
    background-color: #00a2ff;
    color: white;
    border-color: #0056b3;
    margin-left: auto;
}

.message-bubble.received {
    background-color: #e9ecef;
    color: #333;
    border-color: #ced4da;
    margin-right: auto;
}

.message-bubble p {
    margin: 0;
    line-height: 1.4;
}

.message-bubble small {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Дополнительные стили для мобильных устройств */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control-prev {
        left: 10px;
    }
    
    .carousel-control-next {
        right: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
    
    .main-profile-photo::after {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .message-bubble {
        max-width: 85%;
        padding: 10px 14px;
    }
}