*,
*::before,
*::after {
  /* уповільнюємо перехід (transition) */
  transition-duration: 0.5s !important;
  /* уповільнюємо CSS-анімації (animation) */
  animation-duration: 0.5s !important;
}

:root {
  --primary-color: #910f27;
  --secondary-color: #910f27a6;
  --text-primary: #333;
  --text-secondary: #666;
  --background-primary: #fff;
  --background-secondary: #f5f7fb;
  --background-tertiary: #ffffff;
  --ai-message-bg: #f0f4ff;
  --user-message-bg: #910f27;
  --user-message-text: #fff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --animation-speed: 0.3s;
  --border-radius: 12px;
  --typing-indicator-color: var(--primary-color);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  transition: background-color var(--animation-speed),
    color var(--animation-speed);
}

body {
    background-image: url('../img/bg.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    display: flex; /* Важливо для верстки */
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
}

.code-copy-container {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
}

.code-copy-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ddd;
  border: none;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.code-copy-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.code-copy-button.copied {
  background-color: #4caf50;
  color: white;
}

.app-container {
  display: flex;
  width: 100%;
  height: 100%;
/*border-radius: var(--border-radius);*/
  box-shadow: 0 8px 30px var(--shadow-color);
  overflow: hidden;
  position: relative;
  background-color: rgba(255, 255, 255, 0.9);
}

/* Sidebar Styles */
.sidebar {
  width: 260px;
  background-color: rgba(237, 240, 247, 0.5);
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  /* new style */
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 70px;
  overflow: hidden;
  transition: width 0.3s ease;
  z-index: 1000;
  transition: width 0.3s ease-in-out 0.3s; 
}
.sidebar:hover {
  width: 260px;
  transition-delay: 0s;  
}
.logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.logo .logo-icon {
  margin-right: 10px;
  width: 35px;
  height: 35px;
  border-radius: 10px;
}

.new-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background-color 0.2s, transform 0.1s;
  min-width: 35px;
}

.new-chat-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.new-chat-btn i {
  margin-right: 8px;
}

.history-container {
  flex: 1;
  overflow-y: auto;
}

.history-container h3 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding-left: 5px;
}

.chat-history-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--border-radius);
  margin-bottom: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  position: relative;
  overflow: visible;
}
#chat-history span {
  white-space: nowrap;
  width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-history-item:hover {
  background-color: var(--background-secondary);
}

.chat-history-item.active {
  background-color: rgba(167, 167, 167, 0.2);
  font-weight: 500;
}

.chat-history-item i {
  margin-right: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.settings {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.settings button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px 5px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: background-color 0.2s;
}

.settings button:hover {
  background-color: var(--background-secondary);
  color: var(--text-primary);
}

.settings button i {
  margin-right: 10px;
  width: 16px;
}
/* new style for sidebar*/
/* new style for sidebar*/
/* new style for sidebar*/
/* new style for sidebar*/
/* new style for sidebar*/
/* 2. Контейнерні елементи: flex + вирівнювання по центру вертикально */
.sidebar .logo,
.sidebar .new-chat-btn,
.sidebar .settings button {
  display: flex;
  align-items: center;                       /* центруємо по висоті */
  /* padding розгорнутого стану налаштуємо далі */
}


/* 3. Вирівнювання і відступи у collapsed / expanded */
.sidebar:not(:hover) .logo,
.sidebar:not(:hover) .new-chat-btn,
.sidebar:not(:hover) .settings button {

}

.sidebar:hover .logo,
.sidebar:hover .new-chat-btn,
.sidebar:hover .settings button {
  justify-content: flex-start;               /* іконка + текст ліворуч */
}


/* 4. Приховуємо тексти span та історію через max-width/opacity */
/*    — початково (collapsed) ховаються миттєво */
.sidebar .logo span,
.sidebar .new-chat-btn span,
.sidebar .settings button span,
.sidebar .history-container {
  display: inline-block;
  max-width: 0;                               /* ширина = 0 */
  opacity: 0;                                 /* прозорі */
  overflow: hidden;                           /* обрізати зайве */
  white-space: nowrap;
  transition:
    max-width 0.2s ease-in-out,
    opacity   0.2s ease-in-out;
  transition-delay: 0s;                       /* ховаємо одразу при collapse */
  pointer-events: none;                       /* неактивні */
}

/* 5. Показати ці ж елементи після повного розгортання */
/*    — з’являються з delay = 0.3s (час expand) */
.sidebar:hover .logo span,
.sidebar:hover .new-chat-btn span,
.sidebar:hover .settings button span,
.sidebar:hover .history-container {
  max-width: 240px;                           /* під довжину тексту */
  opacity: 1;
  transition-delay: 0.3s;                     /* чекаємо expand */
  pointer-events: auto;
}
.sidebar:hover .new-chat-btn{
  justify-content: center;
}

/* 6. Анімуємо margin-right у “+”-іконки */
.sidebar .new-chat-btn i {
  margin-right: 0;                            /* collapsed: без відступу */
  transition: margin-right 0.2s ease-in-out;
}

/* додаємо відступ після expand з тією ж затримкою */
.sidebar:hover .new-chat-btn i {
  margin-right: 8px;                          /* відступ між + і текстом */
  transition-delay: 0.3s;                     /* чекаємо expand */
}
/* new style for sidebar end*/
/* new style for sidebar end*/
/* new style for sidebar end*/
/* new style for sidebar end*/
/* new style for sidebar end*/

/* Chat Container Styles */
.chat-container {
  flex: 1;
  max-width: 1000px;
  padding-left: 70px;
  height: 100%;
  margin: auto;
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.chat-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid var(--border-color);
}

.current-chat-title {
  font-weight: 600;
  font-size: 16px;
}

/* Chat messages */
.messages {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none; 
  padding: 20px 0;
  scroll-behavior: smooth;
}
.messages::-webkit-scrollbar {
  display: none;
}
.message {
  display: flex;
  margin: 25px;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-content {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: var(--border-radius);
  font-size: 15px;
  line-height: 1.5;
}

.message.ai {
  justify-content: flex-start;
}

.message.user {
  justify-content: flex-end;
}

.message.ai .message-content {
  background-color: var(--ai-message-bg);
  color: var(--text-primary);
  border-radius: var(--border-radius);
}

.message.user .message-content {
  background-color: var(--user-message-bg);
  color: var(--user-message-text);
  border-radius: var(--border-radius);
}

.message.ai .message-content h1 {
  font-size: 22px;
  margin: 16px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-color);
}

.message.ai .message-content h2 {
  font-size: 18px;
  margin: 14px 0 8px;
  color: var(--text-primary);
}

.message.ai .message-content h3 {
  font-size: 16px;
  margin: 12px 0 6px;
  color: var(--text-primary);
}

/* List styles for better readability */
.message.ai .message-content ul,
.message.ai .message-content ol {
  margin: 8px 0;
  padding-left: 25px;
}

.message.ai .message-content li {
  margin-bottom: 5px;
}

/* Block quote styling */
.message.ai .message-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 0 0 0 15px;
  margin: 10px 0;
  color: var(--text-secondary);
}

/* Table styling */
.message.ai .message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 15px 0;
}

.message.ai .message-content th,
.message.ai .message-content td {
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  text-align: left;
}

.message.ai .message-content th {
  background-color: var(--background-tertiary);
  font-weight: 600;
}

/* Links styling */
.message.ai .message-content a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s;
}

.message.ai .message-content a:hover {
  text-decoration: underline;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-addition {
  color: #c792ea;
}

.hljs-number,
.hljs-string,
.hljs-doctag,
.hljs-regexp {
  color: #89ca78;
}

.hljs-title,
.hljs-section,
.hljs-built_in,
.hljs-name {
  color: #e2b93d;
}

.hljs-variable,
.hljs-template-variable,
.hljs-selector-id,
.hljs-class .hljs-title {
  color: #7fdbca;
}

.hljs-type,
.hljs-tag {
  color: #e06c75;
}

/* Language badge for code blocks */
pre::before {
  content: attr(class);
  position: absolute;
  top: 5px;
  left: 12px;
  font-size: 12px;
  color: #aaa;
  display: none;
}

/* Horizontal rule */
.message.ai .message-content hr {
  border: none;
  height: 1px;
  background-color: var(--border-color);
  margin: 15px 0;
}

.typing-indicator {
  display: flex;
  padding: 15px 25px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: var(--typing-indicator-color);
  border-radius: 50%;
  opacity: 0.6;
  animation: typingAnimation 1.5s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0% {
    transform: translateY(0px);
  }
  25% {
    transform: translateY(-5px);
  }
  50% {
    transform: translateY(0px);
  }
}

.input-area {
  padding: 15px 25px 20px;
  border-top: 1px solid var(--border-color);
}

.input-container {
  display: flex;
  position: relative;
  background-color: var(--background-tertiary);
  border-radius: var(--border-radius);
  overflow: hidden;
}

textarea {
  flex: 1;
  border: none;
  background: none;
  padding: 15px;
  font-size: 15px;
  resize: none;
  max-height: 150px;
  color: var(--text-primary);
  outline: none;
}

textarea::placeholder {
  color: var(--text-secondary);
}

#send-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
}

#send-button:hover {
  background-color: var(--secondary-color);
}
#send-button i {
  transition: all 0.2s;
}
#send-button:hover i {
  transform: rotate(-90deg);
}

.disclaimer {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 10px;
}

/* Pending file preview (for selected file before send) */
#pending-file-preview {
  display: none;
  margin: 10px 0;
}

/* Intro Message Styles */
.intro-message {
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  border-radius: var(--border-radius);
  animation: fadeIn 0.5s ease-out;
}

.intro-message h1 {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 15px;
}

.intro-message p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 16px;
}

.suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.suggestion-chip {
  background-color: var(--background-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

@media (hover: hover) {
  .suggestion-chip:hover {
    background-color: var(--background-secondary);
    color: var(--primary-color);
    transform: translateY(-2px);
  }
}

/* Code block styling */
pre {
  position: relative;
  background-color: #282c34;
  border-radius: 8px;
  padding: 12px;
  padding-top: 35px;
  overflow-x: auto;
  margin: 10px 0;
  border: 1px solid #3e4451;
  color: #edf0f7;
}

code {
  font-family: "Fira Code", "Courier New", Courier, monospace;
  font-size: 14px;
}

pre code {
  white-space: pre;
  font-size: 14px;
  line-height: 1.5;
}

:not(pre) > code {
  background-color: rgba(125, 125, 125, 0.1);
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--primary-color);
}

/* New CSS for chat options button and menu */
.chat-options-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.chat-options-menu {
  position: absolute;
  right: 10px;
  top: 100%;
  background-color: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px var(--shadow-color);
  z-index: 100;
}

.chat-options-item {
  padding: 8px 12px;
  cursor: pointer;
  white-space: nowrap;
}

.chat-options-item:hover {
  background-color: var(--background-secondary);
}
/* --- Стилі для нових кнопок керування повідомленням --- */

/* Додаємо до контейнера повідомлення AI, щоб позиціонувати кнопки всередині нього */
.message.ai .message-content {
  position: relative;
  padding-bottom: 35px; /* Збільшуємо відступ знизу, щоб було місце для кнопок */
}

/* Контейнер для кнопок "Regenerate" та "Stop" */
.ai-message-actions {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0; /* Робимо кнопки невидимими за замовчуванням */
  transition: opacity 0.2s ease-in-out;
}

/* Показуємо кнопки при наведенні на саме повідомлення */
.message.ai:hover .ai-message-actions {
  opacity: 1;
}

/* Стиль для самих кнопок */
.message-action-btn {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: background-color 0.2s, color 0.2s;
}

.message-action-btn:hover {
  background: var(--background-tertiary);
  color: var(--text-primary);
}

/* Додаємо іконку для нового пункту "Експортувати" в меню історії */
.chat-options-item.export-chat::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f019"; /* Іконка завантаження */
  margin-right: 8px;
  display: inline-block;
  width: 16px;
  text-align: center;
}
/* Іконка для Rename ✏️ */
.chat-options-item.rename-chat::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f303"; /* Іконка олівця */
  margin-right: 8px;
  display: inline-block;
  width: 16px;
  text-align: center;
}

/* Іконка для Delete 🗑️ */
.chat-options-item.delete-chat::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2ed"; /* Іконка смітника */
  margin-right: 8px;
  display: inline-block;
  width: 16px;
  text-align: center;
}

/* --- СТИЛІ ДЛЯ АНІМОВАНОГО БУРГЕРА --- */

.sidebar-toggle-wrapper {
    position: absolute; 
    top: 5px;
    right: 15px;
    z-index: 1001;
    display: none; 
}

/* Стиль самої кнопки */
.sidebar-toggle-btn {
    background-color: var(--background-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: transform 0.3s ease, background-color 0.2s;
}
.sidebar-toggle-btn:hover {
    background-color: var(--background-secondary);
    color: var(--primary-color);
}


.animated-burger {
    position: relative; 
}

/* --- СТИЛІ ДЛЯ SVG БУРГЕРА --- */
.menu {
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex; /* Або 'block', якщо потрібно */
    padding: 0;
}

/* Розмір SVG (можете налаштувати) */
.menu svg {
  width: 40px; /* Змінено з 50px на 40px, щоб відповідати вашій старій кнопці */
  height: 40px;
}

/* Базовий стиль для всіх трьох ліній */
.line {
  fill: none;
  stroke: var(--text-primary); /* Використовуємо ваш колір */
  stroke-width: 6;
  transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* СТАН ЗА ЗАМОВЧУВАННЯМ (БУРГЕР) */
.line1 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}
.line2 {
  stroke-dasharray: 60 60;
  stroke-width: 6;
}
.line3 {
  stroke-dasharray: 60 207;
  stroke-width: 6;
}

/* АКТИВНИЙ СТАН (ХРЕСТИК) */
/* Використовуємо .opened, як ми домовились */
.opened .line1 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
.opened .line2 {
  stroke-dasharray: 1 60;
  stroke-dashoffset: -30;
  stroke-width: 6;
}
.opened .line3 {
  stroke-dasharray: 90 207;
  stroke-dashoffset: -134;
  stroke-width: 6;
}
/* ========================================= */
/* --- Стилі для Модального вікна (Попап) --- */
/* ========================================= */

.modal-overlay {
  display: none; /* Приховано за замовчуванням */
  position: fixed;
  z-index: 2000; /* Поверх всього (сайдбар має 1000) */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Напівпрозорий темний фон */
  backdrop-filter: blur(4px); /* Ефект розмиття заднього плану */
  opacity: 0;
  transition: opacity 0.3s ease;
  /* Для центрування вмісту: */
  justify-content: center;
  align-items: center;
}

/* Клас, який ми будемо додавати JS-ом для показу */
.modal-overlay.show {
  opacity: 1;
}

.modal-content {
  background-color: var(--background-primary);
  color: var(--text-primary);
  padding: 30px;
  border-radius: 12px;
  width: 90%; /* Щоб на мобільних не вилазило */
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: translateY(20px); /* Трохи зсунуто вниз для старту анімації */
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  max-width: 550px;
}

.modal-overlay.show .modal-content {
  transform: translateY(0); /* Повертаємо на місце */
}

/* Хрестик закриття */
.close-modal {
  /* Позиціювання */
  position: absolute;
  top: 15px;
  right: 20px;
  
  /* Геометрія кнопки */
  width: 32px;
  height: 32px;
  display: flex;           
  align-items: center;     
  justify-content: center; 
  
  /* Стиль іконки */
  color: var(--text-secondary);
  font-size: 20px; /* Розмір самої іконки */
  cursor: pointer;
  
  /* Анімація */
  z-index: 50;
  transition: color 0.2s, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); /* Додав ефект "пружинки" */
  transform-origin: center center;
}

.close-modal:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

/* Заголовки та текст всередині */
.modal-content h2 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 22px;
}

.modal-content p {
  margin-bottom: 25px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Кнопка всередині попапу */
.modal-actions {
  display: flex;
  justify-content: flex-end;
}

.modal-btn-primary {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.modal-btn-primary:hover {
  background-color: var(--secondary-color);
}

/* ========================================= */
/* --- Стилі для Onboarding (Всередині Попапу) --- */
/* ========================================= */

/* Центруємо текст для цього типу модалки */
.onboarding-content {
  text-align: center;
}

/* Обгортка для картинки */
.onboarding-image-wrapper {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--background-secondary); /* фон під картинкою */
  padding: 10px;
  position: relative;
  z-index: 1;
}

/* Сама картинка робота */
.onboarding-img {
  max-width: 100%;
  max-height: 220px; /* Обмеження висоти, щоб вікно не було гігантським */
  height: auto;
  object-fit: contain; /* Щоб картинка не обрізалась */
  border-radius: 8px;
}

/* Анімація плавної появи при перемиканні кроків */
.onboarding-step {
  width: 100%;
  box-sizing: border-box;
  will-change: transform, opacity; 
  animation: fadeStepIn 0.4s ease-out;
}

@keyframes fadeStepIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Кнопка "Назад" (Secondary) */
.modal-btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.modal-btn-secondary:hover {
  background-color: var(--background-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* Оновлюємо контейнер кнопок для центрування */
.modal-actions {
  display: flex;
  justify-content: center; /* Кнопки по центру */
  gap: 10px; /* Відступ між кнопками */
  margin-top: 20px;
}