        #chat-window {
            position: fixed;
            bottom: 20px;
            right: 20px;
            min-width: 250px;
			width: 30%;
			max-width: 500px;
			
            height: 600px;
            background-color: #f8f9fa;
            border: 1px solid #ccc;
            border-radius: 10px;
            display: none;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
            z-index: 9999;
        }

        #chat-header {
			display: flex;
            background-color: #1d242b;
            color: white;
            padding: 10px;
            border-radius: 10px 10px 0 0;
            cursor: move;
			height: 44px;
        }

        #chat-content {
            padding: 10px;
            height: calc(100% - 134px);
            overflow-y: auto;
        }

       .chat-input {
            position: absolute;
            bottom: 0;
            width: 100%;
            padding: 10px;
            border-top: 1px solid #ccc;
display: flex;
  gap: 4px;			
        }
#close-chat-btn{
  background: #fff;
  border-radius: 100%;
  padding: 1px;}
        #move-btn {
            
            background: #010513c4;
            border: none;
            color: white;
            font-size: 20px;
            cursor: pointer;
			display: flex;
  align-items: center !important;
        }

        .btn-toggle-position {
            /*position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);*/
        }

.chat-container {
    width: 95%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh; /* Займає 90% висоти вікна */
}

.chat-messages {
    padding: 10px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
    max-width: 70%;
    word-wrap: break-word; /* Дозволяє переносити довгі слова */
    opacity: 0; /* Початкова прозорість */
    transform: translateY(20px); /* Початкове зміщення вниз */
    animation: fadeInSlide 0.3s ease forwards;
}
.message.self{
    background-color: #e0f7fa; /* Світлий синій для власних повідомлень */
    align-self: flex-end;
}
.message.other {
    background-color: #f0f0f0; /* Сірий для інших повідомлень */
    align-self: flex-start;
}
.message .user-name {
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 3px;
}
.message .text{
    font-size: 1em;
}


@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex-grow: 1;
    padding: 8px;
    margin-right: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.chat-input button {
    padding: 8px 12px;
    
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.chat-input button:hover {
   
}
#photo-input { max-width: 100px;}		