/* Пример базовых стилей */

/* Общие для ваших alert-уведомлений */
.alert {
  position: relative;          
  padding: 10px 40px 10px 10px; 
  margin-bottom: 10px;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-family: Arial, sans-serif;
}

.alert-error {
  background: #c33; /* красный фон для ошибок */
}

.alert-success {
  background: #3b6; /* зеленоватый фон для «успеха» */
}


/* Крестик внутри alert */
.alert-close {
  position: absolute;
  right: 10px; 
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  line-height: 18px;
  color: #fff;
  /* можно добавить background, border-radius, 
     например, как в модалке */
}
.alert-close:hover {
  color: #ccc;
}

/* Остальные стили */
html, body {
margin: 0; padding: 0;
  width: 100%; height: 100%;
  display: flex;          /* ключ */
  flex-direction: column; /* ключ */
}

body {
  background: #5f5f5f;
  font-family: Arial, sans-serif;
  color: #f2f2f2;
}

/* Основной контейнер (body > main.page-content) */
.page-content {
  /* Этот блок «тянется» */
  flex: 1 0 auto;
  /* Примерные отступы и фон */
  max-width: 1400px;
  margin: 20px auto;
  background: #7a7a7a;
  border-radius: 6px;
  padding: 20px 30px;
  box-sizing: border-box;
}


.containerCAB {
  width: 100%;
  max-width: 1200px;
  margin: 20px auto;
  background: #6a6a6a;
  padding: 20px;
  box-sizing: border-box;
  flex: 1 0 auto; /* главное, чтобы тело растягивалось */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #7a7a7a;
  min-height: 100vh;
}

h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.breadcrumb {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 20px;
}
.breadcrumb a {
  color: #aad;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
}

.cabinet-layout {
  display: flex;
  gap: 20px;
}

.profile-panel {
  background: #6f6f6f;
  flex: 0 0 300px;
  padding: 20px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #ccc;
  margin-bottom: 15px;
  object-fit: cover;
}
.profile-info {
  width: 100%;
}
.profile-info label {
  display: block;
  font-size: 14px;
  color: #ddd;
  margin: 6px 0 2px;
}
.profile-info input {
  width: 100%;
  padding: 6px;
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fafafa;
  color: #333;
  margin-bottom: 10px;
}
.profile-info input[readonly] {
  background: #e0e0e0; 
  color: #999;
  cursor: not-allowed;
}
.profile-links {
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}
.profile-links a {
  color: #00afff;
  text-decoration: none;
  display: inline-block;
  margin: 6px 0;
}
.profile-links a:hover {
  text-decoration: underline;
}

/* Правая колонка */
.compositions-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.compositions-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.compositions-list {
  background: #6f6f6f;
  flex: 1;
  border-radius: 8px;
  padding: 10px;
  overflow-y: auto;
}
.composition-item {
  display: flex;
  align-items: center;
  background: #4a4a4a;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
}
.composition-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  margin-right: 10px;
  border-radius: 4px;
}
.composition-title {
  flex: 1;
  font-size: 16px;
}
.composition-close {
  width: 24px;
  height: 24px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  background: #444;
  border-radius: 3px;
  color: #fff;
  margin-left: 10px;
  line-height: 24px;
}
.composition-close:hover {
  background: #666;
}
.compositions-footer {
  display: flex;
  margin-top: 10px;
  align-items: center;
}
.new-composition-btn {
  background: #00B1C1;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-right: 10px;
}
.new-composition-btn:hover {
  background: #00a0af;
}
.search-input {
  flex: 1;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #aaa;
  background: #fafafa;
  color: #333;
}

/* -------- Модальное окно -------- */
.modal-overlay {
  display: none;
  position: fixed;       /* перекрывает весь экран */
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  /* Опционально: cursor: pointer; если хотите */
}

.modal {
  background: #fff;       /* Белый фон */
  color: #000;            /* Чёрный текст */
  width: 450px;           /* Ширина окна */
  margin: 60px auto;      /* Отступ сверху/снизу и центрирование */
  padding: 20px 30px;     /* Пространство внутри */
  border-radius: 10px;    /* Скруглённые углы */
  position: relative;     /* Для позиционирования крестика */
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-family: Arial, sans-serif;
}

/* Заголовок в модалке */
.modal h2 {
  margin-top: 0;          /* Убрать отступ сверху */
  margin-bottom: 15px;    /* Добавить пространство */
  font-size: 1.2rem;
  text-align: center;
}


.close-btn:hover {
  background: #999;
}

/* Форма внутри модалки */
.modal form {
  display: flex;
  flex-direction: column; /* расположить элементы столбиком */
  gap: 10px;              /* промежуток между блоками */
}

/* Каждый label */
.modal form label {
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 3px;     /* маленький отступ */
  color: #333;            /* чуть темнее текст */
}

/* Поля ввода в форме */
.modal form input[type="password"] {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  font-size: 0.95rem;
}

/* Кнопка "Изменить" */
.modal form button {
  align-self: flex-end;   /* кнопка вправо (опционально) */
  background: #00B1C1;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
}
.modal form button:hover {
  background: #00a0af;
}

.close-btn {
    position: absolute; 
      right: 15px; 
      top: 15px;
      cursor: pointer; 
      width: 24px; 
      height: 24px;
      line-height: 24px;
      text-align: center;
      border-radius: 4px;
      font-weight: bold; 
      color: #333;
      background: rgba(128,128,128,0.1);
      border: none;
}
.close-btn:hover {
  background: #999;
}


/* Пример. Можно объединить со стилями .modal-overlay и .modal */
#confirmModalOverlay {
  display: none;
  position: fixed; 
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
}

#confirmModal {
  background: #fff;
  color: #000;
  width: 350px;
  margin: 120px auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

#confirmModalTitle {
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
  color: #333; /* вы можете ставить свои цвета */
}

/* поддержка */
.support-container {
  max-width: 800px;
  margin: 20px auto;
  background: #7a7a7a;
  padding: 20px;
  box-sizing: border-box;
  color: #fff;
  border-radius: 8px;
  /* и т.д. */
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.support-form label {
  font-weight: bold;
  margin-bottom: 3px;
}
.support-form input[type="text"],
.support-form input[type="email"],
.support-form textarea {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #aaa;
  background: #fafafa;
  color: #333;
}
/* поддержка */

/* Общий футер */
.site-footer {
    margin-top: auto;
  /* Градиент или просто тёмный фон */
  background: linear-gradient(90deg, #3B3B3B 0%, #1C98B5 100%);
  color: #fff;

  display: flex;
  justify-content: space-between; 
  align-items: center;

  padding: 15px 60px;
  box-sizing: border-box;
  
  
  
  

  /* Как в шапке, только «сверху» */
  border-top: 5px solid #1C98B5;
  
  /* Отступ сверху, чтобы отделить футер от контента */
  margin-top: 20px;
  /* Если нужно, чтобы футер «прилипал» внизу окна — могут понадобиться доп. настройки/верстка */
}

/* Левая часть футера (текст копирайта) */
.footer-left {
  font-size: 14px;
  /* Можем чуть подсветить текст */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}



/* Правая часть футера (ссылки) */
.footer-right {
  display: flex;
  gap: 20px; /* Расстояние между ссылками */
}

/* Ссылки в футере */
.footer-right a {
  position: relative;   /* Для псевдоэлемента ::after */
  color: #fff;          /* Белый текст */
  text-decoration: none;
  font-weight: bold;    /* Чуть выделим */
  font-size: 15px;

  /* Добавим лёгкую тень */
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);

  transition: color 0.3s ease; /* Плавное изменение */
}

/* Подчёркивание при hover через псевдоэлемент */
.footer-right a::after {
  content: "";
  position: absolute;
  left: 0; 
  bottom: -2px; 
  width: 0; 
  height: 2px; 
  background: #fff; /* или можно градиент от #afb3ff к #fff */
  transition: width 0.3s ease;
}

/* Наведение: меняем цвет и растягиваем подчёркивание */
.footer-right a:hover {
  color: #f0f0f0; /* или #afb3ff, как у ссылок на сайте */
}
.footer-right a:hover::after {
  width: 100%;
}



#confirmModalMessage {
  margin-bottom: 20px;
  color: #555; 
  font-size: 16px;
  text-align: center;
}

.confirm-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Кнопки ОК/Отмена под .new-composition-btn */
.btn-confirm-yes,
.btn-confirm-no {
  background: #00B1C1; /* или другой цвет */
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-confirm-yes:hover {
  background: #0093a4; /* hover-цвет */
}
.btn-confirm-no {
  background: #888; /* для «Отмена» можно другой цвет */
}
.btn-confirm-no:hover {
  background: #666;
}

/* Крестик (×) */
#confirmModal .close-btn {
    position: absolute; 
      right: 15px; 
      top: 15px;
      cursor: pointer; 
      width: 24px; 
      height: 24px;
      line-height: 24px;
      text-align: center;
      border-radius: 4px;
      font-weight: bold; 
      color: #333;
      background: rgba(128,128,128,0.1);
      border: none;
}
#confirmModal .close-btn:hover {
  background: rgba(128,128,128,0.2);
}

/* Webkit-браузеры (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #5f5f5f;      /* цвет фона дорожки */
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #1C98B5;      /* основной цвет ползунка */
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #17a2b8;      /* цвет при наведении */
}

/* Firefox */
* {
  scrollbar-width: thin;               /* «тонкий» */
  scrollbar-color: #1C98B5 #5f5f5f;    /* thumb track */
}


