#slideForm {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Форма на весь экран */
    /* Начальное положение за пределами экрана */
    transform: translateY(100%);
    /* Плавный переход для transform */
    transition: transform 0.2s ease-in-out;
    z-index: 10000;
    /*background: var(--surface-color);*/
    box-shadow: var(--shadow-medium);
}

/* Индикатор свайпа */
/*
.swipe-indicator {
    width: 40px;
    height: 4px;
    background-color: #ddd;
    border-radius: 2px;
    margin: 12px auto;
    cursor: pointer;
    transition: background-color 0.2s;
}
.swipe-indicator:active {
    background-color: #999;
}
*/





/* Класс, который добавляется для показа формы */
.form-active {
    transform: translateY(0) !important;
}


.container_chatmessage
{
    padding: 0;
    margin: 0;
}
.container_chatmessage {
    display: flex;
    flex-direction: column;
    height: 100vh;
  /*  background: var(--surface-color);*/
    background: white;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-medium);
}

#triggerButton {
    margin: 20px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}



.chatmessage-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5px;
    padding-right: 5px;
  /*  padding: 5px;*/
    width: 100%;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    border-bottom: 2px solid linear-gradient(135deg, #e91e63, #9c27b0);
    
}

.chatmessage-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-gradient);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.chatmessage-username {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: left;
}
.chatmessage-username-size {
    font-size: 0.9rem;
}


.chatmessage-back {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 1rem;
    height: 70px;
}

.chatmessage-arrow-left {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid currentColor; /* Цвет наследуется от родителя */
    margin-right: 8px; /* Отступ между стрелкой и текстом */
}






.messages-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chatbox {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.5);
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: var(--border-radius);
    word-wrap: break-word;
    position: relative;
}

.my-message {
    align-self: flex-end;
    background: var(--primary-color);
    color: var(--text-on-primary);
    border-bottom-right-radius: 4px;
}

.other-message {
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    text-align: right;
    margin-top: 4px;
}

.input-container {
    display: flex;
    padding: 1rem;
    background: var(--surface-color);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    gap: 0.5rem;
    align-items: center;
}

.message-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px; /* Более прямоугольная форма */
    outline: none;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s;
}

.message-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.1);
}

.send-button {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: var(--text-on-primary);
    border: none;
    border-radius: 8px; /* Более прямоугольная форма */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.send-button:hover {
    background: var(--primary-dark);
}

.send-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.5;
}

.send-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
