
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}
.container {
    max-width: 100%;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
h2 {
    text-align: center;
    margin-bottom: 20px;
}
form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
label {
    font-weight: bold;
}
input[type="password"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
button {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button:hover {
    background-color: #0056b3;
}
/* Стили для кнопки-ссылки "Отправить реквизиты" */
a.button.secondary {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    background-color: #00cc7b; /* Цвет фона */
    color: white !important; /* Цвет текста */
    text-decoration: none; /* Убираем подчеркивание по умолчанию */
    border-radius: 4px; /* Закругление углов */
    cursor: pointer; /* Курсор в виде руки */
    border: none; /* Убираем бордер, если он есть */
    text-align: center; /* Выравнивание текста по центру */
    margin-top: 5px; /* Небольшой отступ сверху */
}
a.button.secondary:hover {
    background-color: #00b356; /* Цвет фона при наведении */
    text-decoration: none; /* Убедимся, что подчеркивание не появляется при наведении */
    color: white !important; /* Цвет текста при наведении */
}
.flash-messages {
    color: red;
    margin-bottom: 10px;
}

/* Стили для dashboard */
body.dashboard {
    padding: 10px;
    background-color: #f0f0f0;
}
.container.dashboard {
    padding: 15px;
    background-color: white;
}
h2.dashboard {
    margin-top: 0;
    font-size: 1.5em;
}
.logout-link {
    display: block;
    margin-bottom: 15px;
    color: #007bff;
    text-decoration: none;
}
.logout-link:hover {
    text-decoration: underline;
}
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
li {
    margin-bottom: 8px;
}
a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007bff;
    font-size: 0.9em;
    overflow-wrap: break-word;
    word-break: break-word;
}
a:hover {
    background-color: #e9ecef;
}
.timestamp {
    font-size: 0.8em;
    color: #6c757d;
    display: block;
}

/* Стили для chat */
body.chat {
    padding: 10px;
    background-color: #f0f0f0;
}
.container.chat {
    padding: 15px;
    background-color: white;
    display: flex;
    flex-direction: column;
    height: 90vh;
    position: relative; /* Для позиционирования toast-контейнера */
}
h2.chat {
    margin-top: 0;
    font-size: 1.3em;
}
.back-link {
    margin-bottom: 10px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}
.back-link:hover {
    text-decoration: underline;
}
#messages {
    flex-grow: 1;
    height: 60vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
}
.message {
    padding: 8px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 0.9em;
    overflow-wrap: break-word;
    word-break: break-word;
}
.admin-msg { background-color: #d4edda; }
.user-msg { background-color: #f8d7da; }
.message small {
    font-size: 0.7em;
    color: #6c757d;
}
hr {
    margin: 10px 0;
}
h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
}
form.chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
label.chat {
    font-weight: bold;
    font-size: 0.9em;
}
textarea[name="text"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
}
input[type="file"] {
    padding: 5px;
    font-size: 14px;
}
button[type="submit"] {
    padding: 12px 20px;
    font-size: 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
button[type="submit"]:hover {
    background-color: #0056b3;
}
/* Стили для индикатора загрузки */
.spinner {
    display: inline-block;
    padding: 5px 10px;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    color: #6c757d;
}
/* Стили для toast-сообщений */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
.toast {
    padding: 12px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    color: white;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInOut 3s ease-in-out forwards;
}
.toast.success { background-color: #28a745; }
.toast.error { background-color: #dc3545; }
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(100%); }
    10% { opacity: 1; transform: translateX(0); }
    90% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(100%); }
}
