/* Существующий код... */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
#userInput {
    margin-right: 7px;
}
html {
    background-color: #333;
}
body {
    
    font-family: Arial, sans-serif;
    background-color: #121212; /* Темный фон */
    background: linear-gradient(354deg, rgb(30 30 30) 0%, rgb(30 30 30) 35%, rgb(16 16 16) 100%);
    color: #cbcbcb; /* Белый текст */
    display: flex;
    flex-direction: column;
    height: 100vh;
}
#rewe, #openMapButton {
            background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%);
            color: white;
            border: none;
            font-size: 15px;
            text-decoration: unset;
            display: block;
            text-align: center;
            padding: 10px;
            border-radius: 4px;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
        }
h1 {
    text-align: center;
    margin: 20px 0;
    display:none;
}
 /* Добавьте стили для таблицы */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        th {
            background:linear-gradient(354deg, rgb(88 81 243) 0%, rgb(58 100 169) 35%, rgb(64 115 197) 100%);
            color: white;
        }
        tr:hover {
    background-color: #2d2d2d;
}
       
.message.user-message {
background-color: #2a46ad;
    /* padding: 7px 14px 6px 9px; */
    border-bottom: 0px #6e6d6d solid!important;
    padding-bottom: 12px!important;
    color: #d3d3d3!important;
    margin-top: 10px!important;
    font-size: 15px;
    width: 90%;
    margin-left: 10%;
    padding: 7px 14px 6px 9px!important;
    border-radius: 13px!important;
    border-bottom-right-radius: 0px!important;
}
.message.ai-message {
background-color: #404040;
    width: 90%;
    /* padding: 7px 14px 6px 9px; */
    border-bottom: 0px #6e6d6d solid!important;
    padding-bottom: 12px!important;
    color: #d3d3d3!important;
    margin-top: 10px!important;
    font-size: 15px;
    padding: 7px 14px 6px 9px!important;
    border-radius: 13px!important;
    border-bottom-left-radius: 0px!important;
}
    .tyyt {
        background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%);
        padding: 8px 9px 8px 6px;
        border-radius: 20px;
    }
   
    
    .message.user-message {
  
    width: fit-content!important;
    margin-left: auto!important;
    }
     .message.ai-message {
  
    width: fit-content!important;
    }
    .namert {
        height: 22px;
    margin-top: 9px;
    position: absolute;
    /* margin: 0px auto; */
    right: 10px;
    top: 3px;
    z-index: 999;
    width: fit-content;
    }
        @media (max-width: 600px) {
         
            .namert {
    height: 22px;
    margin-top: 9px;
    position: fixed!important;
    /* margin: 0px auto; */
    right: 10px;
    top: 3px;
    z-index: 999;
    width: fit-content;
    }
           
            .topik {
                position: fixed;
        display: block !important;
        top: 0px;
        left: 0px;
        width: 100%;
        height: 41px;
        background-color: #121212;
        z-index: 9;
            }
            .topik1 {
                 position: fixed;
        display: block !important;
        bottom: 0px;
        left: 0px;
        width: 100%;
        height: 41px;
        background-color: #121212;
        z-index: 9;
            }
            body {
                height:100vh!important;
                overflow: hidden!important;
            }
            .button-container {
            padding-top: 8px;
        }
             body .dsa {
                top: 8px!important;
                color:#999!important;
    
    position: inherit!important;
    float: left;
    font-size: 0px !important;
    margin-left: 3px !important;
    left: 0px !important;
        padding: 3px 4px!important;
            }
    #speakButton {
        display:none!important;
    }
           body #response {
    padding: 75px 1px 208px 7px !important;
    width: 98% !important;
    height: calc(100vh)!important;
    top: 0px!important;
}
            .message.ai-message, .message.user-message {
    font-size: 18px!important;
}
             .dsa {
    position: fixed!important;
    }
                .dsa {
                        left: 5px!important;
    position: fixed!important;
    }
    body .cart-icon {
    position: fixed!important;
    
    right: 13px!important;
    top: 14px !important;
    }
            table, thead, tbody, th, td, tr {
                display: block;
            }
            th {
                display: none; /* Скрываем заголовки на мобильных устройствах */
            }
            tr {
                margin-bottom: 15px;
            }
            td {
                text-align: right;
                padding-left: 50%; /* Отступ для мобильных устройств */
                position: relative;
            }
            td:before {
                content: attr(data-label);
                position: absolute;
                left: 0;
                width: 50%;
                padding-left: 10px;
                text-align: left;
                font-weight: bold;
            }
            .logo img {
    left: 150px!important;
            }
        }
        .logo img {
            height: 22px;
    margin-top: 9px;
    position: fixed;
    margin: 0px auto;
    left: 0;
    right: 0;
    top: 10px;
        }
        .toor {
            text-align: center;
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    display: block;
    width: 99%;
}
#chatForm {
    max-width:1280px!important;
    margin: 0 auto;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 40px;
    left: 27px;
    right: 21px;
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#userInput {
    flex-grow: 1;
    border: none;
    border-radius: 5px;
    padding: 10px;
    background-color: #2b2b2b; /* Фон поля ввода */
    color: #9f9d9d;
}
#cabinetButton {
    color: #999; /* Цвет текста */
    text-decoration: unset; /* Убираем подчеркивание */
    font-size: 11px; /* Размер шрифта */
    text-transform: uppercase; /* Преобразуем текст в верхний регистр */
}
/* Стили для кнопок */
button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
}

button svg {
    width: 24px;
    height: 24px;
    fill: #b0b0b0; /* Светло-серый цвет иконок */
}

button svg.rotate {
    transform: rotate(180deg); /* Поворачиваем стрелку на 180 градусов */
}
 #userInput {
        height: 50px;
        font-size: 18px;
        
    }
/* Адаптивность для мобильных устройств */

@media (min-width:1350px) {
    #response {
    background-color: #1a1a1a;
    background:linear-gradient(354deg, rgb(40 40 40) 0%, rgb(30 30 30) 35%, rgb(30 30 30) 100%);
        
    }
}
@media (max-width: 980px) {
    #response {
   
    width: 95%!important;
    }
    .user-info {
    width: 96% !important;
        margin: 10px auto !important;
        padding: 10px !important;
    background-color: #1e1e1e;
    border-radius: 5px;
}
    body button {
    padding: 0 3px;
}
    body #chatForm {
    left: 5px;
    right: 5px;
    }
    #userInput {
        height: 50px;
        font-size: 18px;
        width: calc(100% - 70px); /* Уменьшаем ширину ввода, чтобы учесть ширину кнопок */
    }
    
    #response img {
    width:100%!important;
}
    
    
    
    
    
}
 #response h3,#response h2 {
    margin-top:30px;
}

#response {
    padding: 20px!important;
    border-radius: 10px;
    max-width:1280px!important;
    margin: 0 auto;
    width: 100%;
    padding: 48px;
    height: calc(100vh - 175px);
    position: relative;
    top: 41px;
    overflow-x: hidden;
    overflow-y: auto;
}
.message.user-message {
    text-align: right;
    border-bottom: 1px #6e6d6d solid;
    padding-bottom: 12px;
    color: #adacac;
    margin-top: 10px;
    font-size: 15px;
}
.message.ai-message {
    overflow-wrap: break-word;
    text-align: left;
    border-bottom: 1px #6e6d6d solid;
    padding-bottom: 12px;
    color: #adacac;
    margin-top: 10px;
    font-size: 15px;
}


/* Стили для индикатора загрузки */
#loadingIndicator {
    display: none; /* Скрываем индикатор по умолчанию */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 8px solid #565656;
    border-top: 8px solid #424242;
    border-radius: 50%;
    width: 50px;
    margin-left: -25px;
    margin-top: -25px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.sound-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    color: lightgray; /* Цвет иконки */
    transition: color 0.3s;
}

.sound-icon.active {
    color: red; /* Цвет иконки при отключении озвучки */
    text-decoration: line-through; /* Перечеркивание */
}
  .logout-icon {
            position: fixed;
            top: 10px;
            right: 10px;
            cursor: pointer;
            width: 30px;
            height: 30px;
            transition: transform 0.2s;
        }
        .logout-icon:hover {
            transform: scale(1.1);
        }
        .dsa {
    position: absolute;
    left: 0px;
    top: 15px;
    z-index: 990;
    color: #999;
    text-decoration: unset;
        font-size: 11px;
    line-height: 19px;
    text-transform: uppercase;

}
#response::-webkit-scrollbar {
  width: 5px;               /* ширина scrollbar */
}
#response::-webkit-scrollbar-track {
  background: #121212;        /* цвет дорожки */
}
#response::-webkit-scrollbar-thumb {
  background-color: #333;    /* цвет плашки */
  border-radius: 20px;       /* закругления плашки */
  border: 3px solid #333;  /* padding вокруг плашки */
}
body::-webkit-scrollbar {
  width: 5px;               /* ширина scrollbar */
}
body::-webkit-scrollbar-track {
  background: #121212;        /* цвет дорожки */
}
body::-webkit-scrollbar-thumb {
  background-color: #333;    /* цвет плашки */
  border-radius: 20px;       /* закругления плашки */
  border: 3px solid #333;  /* padding вокруг плашки */
}
#response img {
    padding-top: 15px;
    padding-bottom: 15px;
}
#settingsModal {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2e2e2e;
    padding: 20px;
    border: 1px solid rgb(88 87 87);
    z-index: 1000;
}
/* Стили для модального окна настроек */
#settingsModal {
    display: none; /* Скрываем модальное окно по умолчанию */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(354deg, rgb(16 16 16) 0%, rgb(48 48 48) 35%, rgb(36 36 36) 100%); /* Темный фон */
    padding: 20px;
    border: 1px solid rgb(88, 87, 87);
    z-index: 1000;
    border-radius: 8px; /* Закругленные углы */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Тень для модального окна */
    width: 90%; /* Ширина модального окна */
    max-width: 400px; /* Максимальная ширина для больших экранов */
}

/* Стили для заголовка модального окна */
#settingsModal h2 {
    margin-bottom: 10px; /* Отступ снизу */
    color: #cbcbcb; /* Цвет заголовка */
}

/* Стили для полей ввода */
#settingsModal input[type="text"],
#settingsModal input[type="password"],
#settingsModal input[type="number"] {
    width: 100%; /* Полная ширина */
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #444; /* Цвет фона полей ввода */
    color: #cbcbcb; /* Цвет текста */
}

/* Стили для кнопок в модальном окне */
#settingsModal button, .admin-button {
background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%);
    color: white;
    border: none;
    font-size: 15px;
    text-decoration: unset;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

#settingsModal button:hover, .admin-button:hover {
    background-color: #0056b3; /* Цвет кнопки при наведении */
}



#settingsModal1 {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2e2e2e;
    padding: 20px;
    border: 1px solid rgb(88 87 87);
    z-index: 1000;
}
/* Стили для модального окна настроек */
#settingsModal1, #reasonModal {
    display: none; /* Скрываем модальное окно по умолчанию */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #2e2e2e; /* Темный фон */
    padding: 20px;
    border: 1px solid rgb(88, 87, 87);
    z-index: 1000;
    border-radius: 8px; /* Закругленные углы */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Тень для модального окна */
    width: 90%; /* Ширина модального окна */
    max-width: 400px; /* Максимальная ширина для больших экранов */
}

/* Стили для заголовка модального окна */
#settingsModal1 h2, #reasonModal h2 {
    margin-bottom: 10px; /* Отступ снизу */
    color: #cbcbcb; /* Цвет заголовка */
}

/* Стили для полей ввода */
#settingsModal1 input[type="text"],
#settingsModal1 input[type="password"],
#settingsModal1 input[type="number"] {
    width: 100%; /* Полная ширина */
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #444; /* Цвет фона полей ввода */
    color: #cbcbcb; /* Цвет текста */
}

/* Стили для кнопок в модальном окне */
#settingsModal1 button, .admin-button {
background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%);
    color: white;
    border: none;
    font-size: 15px;
    text-decoration: unset;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

#settingsModal1 button:hover, .admin-button:hover {
    background-color: #0056b3; /* Цвет кнопки при наведении */
}
/* Стили для кнопок в модальном окне */
.add-to-cart {
    background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%); /* Цвет кнопок */
    color: white; /* Цвет текста */
    border: none;
    font-size: 11px;
    height: 16px;
    line-height: 0px;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 75px;
}

.add-to-cart:hover {
    background-color: #0056b3; /* Цвет кнопки при наведении */
}
.svyaz {
    background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%); /* Цвет кнопок */
    color: white; /* Цвет текста */
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%; /* Полная ширина кнопок */
}

.svyaz:hover {
    background-color: #0056b3; /* Цвет кнопки при наведении */
}
/* Стили для кнопок в модальном окне */
#checkoutButton {
    background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%); /* Цвет кнопок */
    color: white; /* Цвет текста */
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 150px; /* Полная ширина кнопок */
}

#checkoutButton:hover {
    background-color: #0056b3; /* Цвет кнопки при наведении */
}
.hjkd {
    
    width:100%;
    text-align:center;
}
#rejj {
    position: relative;
    text-align: right;
    width: 100%;
    display: block;
    margin-bottom: -10px;
    margin-top: 10px;
    font-size: 11px;
    text-transform: uppercase;
    color: #a1a1a1;
    text-decoration: unset;
}
.user-info a {
    color:#fff;
}
.cart-icon {
    position: fixed;
    top: 16px!important;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

#cartCount {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: -10px;
    right: -10px;
}

.user-info {
    width: 50%;
    margin: 20px auto;
    padding: 41px;
    background-color: #1e1e1e;
    border-radius: 5px;
}
.user-info h2 {
    text-align: center;
}
.user-info label {
    display: block; /* Отображаем метки как блочные элементы */
    margin-top: 10px; /* Отступ сверху */
    color: #cbcbcb; /* Цвет текста */
}

.user-info input {
    width: 100%; /* Полная ширина */
    padding: 10px; /* Отступ внутри поля */
    margin-top: 5px; /* Отступ сверху */
    border: none; /* Убираем границу */
    border-radius: 4px; /* Закругленные углы */
    background-color: #444; /* Цвет фона полей ввода */
    color: #cbcbcb; /* Цвет текста */
}
.user-info select {
    padding: 10px; /* Отступ внутри поля */
    height: 42px;
    margin-top: 5px; /* Отступ сверху */
    border: none; /* Убираем границу */
    border-radius: 4px; /* Закругленные углы */
    background-color: #444; /* Цвет фона полей ввода */
    color: #cbcbcb; /* Цвет текста */
}
 select {
    padding: 10px; /* Отступ внутри поля */
    height: 42px;
    margin-top: 5px; /* Отступ сверху */
    border: none; /* Убираем границу */
    border-radius: 4px; /* Закругленные углы */
    background-color: #444; /* Цвет фона полей ввода */
    color: #cbcbcb; /* Цвет текста */
}
/* Стили для выезжающей панели с чатами */
#chatSidebar {
    position: fixed;
    top: 0;
    left: -250px; /* Скрываем панель за пределами экрана */
    width: 250px;
    height: 100%;
    background-color: #2e2e2e; /* Темный фон */
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease; /* Плавный переход */
    z-index: 1000; /* Поверх других элементов */
    overflow-y: auto; /* Прокрутка при необходимости */
}

/* Кнопка для открытия панели */
#chatToggle {
    position: fixed;
    top: 50%;
    left: 0px;
    background-color: #484848;
    color: white;
    border: none;
    margin-left:0px;
    transition: left 0.3s ease; /* Плавный переход */
    border-radius: 5px;
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    opacity: 0.8;
    padding: 10px;
    cursor: pointer;
    z-index: 1001;
}
#chatToggle:hover {
    opacity: 1;
}
/* Стили для списка чатов */
#chatList {
    list-style: none; /* Убираем маркеры списка */
    padding: 10px;
    margin: 0;
}

#chatList li {
    padding: 4px;
    border-bottom: 1px solid #444; /* Разделитель между чатами */
    cursor: pointer;
    color: #cbcbcb; /* Цвет текста */
}


/* Стили для поиска пользователей */
#searchUser {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    background-color: #444; /* Цвет фона поля ввода */
    color: #cbcbcb; /* Цвет текста */
    margin-bottom: 10px; /* Отступ снизу */
}
/* Стили для контейнера чата */
#chatContainer {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Полная высота экрана */
   /* margin-left: 250px;  Отступ для выезжающей панели */
    transition: margin-left 0.3s ease; /* Плавный переход */
}


.notification-indicator {
    position: absolute;
    right: 18px;
}
#chatList li a:hover {
     background: linear-gradient(354deg, rgb(29 20 185) 0%, rgb(0 49 128) 35%, rgb(14 108 255) 100%); /* Цвет кнопки */
    
}
#chatList li a {
    background-color: #525252;
    color: #cdcdcd;
    border: none;
    text-decoration: unset;
    border-radius: 4px;
    padding: 4px;
    cursor: pointer;
    margin-left: 0px;
    width: 100%;
    display: block;
    text-align: center;
}

.no-border {
    border-bottom: 0px!important; /* Убираем нижнюю границу */
}
.date-header {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #787878;
    margin-top: 13px;

}
.fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 20px;
}
#toggleButtontre .fa-solid, #toggleButtontre  .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 13px;
}
 .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
}
#cartCount {
    padding: 1px 4px;
    font-size: 9px;
    top: -8px;
    right: -8px;
}
.fa-solid, .fas {
    color: #9d9d9d;
}
/* Стили для таблицы */
#response table {
    width: 100%;
    border-collapse: collapse; /* Убираем двойные границы */
}

#response th, #response td {
    padding: 4px 4px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 15px;
}

#footer {
   max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    display: block;
    bottom: 0px;
    font-size: 12px;
    color: #666;
   left: 11px;
    bottom: 0px;
}
@media (min-width:980px) {
    #footer {
  
    bottom: 9px!important;
}
}
#toggleButtontre {
margin-top: 2px;
    padding: 4px;
    background-color: #484848;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    bottom: 8px;
    right: 21px;
    display: block;
    float: right;
    }

#requestPermissionButton {
margin-top: 2px;
    padding: 4px;
    background-color: #484848;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    bottom: 8px;
    right: 33px;
    display: block;
    float: right;
    }

.modal1 {
            display: none; /* Скрыто по умолчанию */
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.7);
        }
        .modal1-content {
            background-color: #fefefe;
            margin: 15% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 80%;
            height: 80%;
        }
        .close1 {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }
        .close1:hover,
        .close1:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }
  #map {
            width: 100%;
            height: 500px;
        }




