body {
  background: linear-gradient(180deg, #eef3f6 0%, #f8fafb 100%);
}

/* Изменение фона всей шапки */
.container-header {
  background-color: #2a9c93 !important; /* Ваш цвет (HEX или RGB) */
  background-image: none !important; /* Убирает стандартный градиент-узор */
}

/* Изменение цвета текста и меню в шапке для читаемости */
.container-header a, 
.container-header .navbar-brand {
  color: #ffffff !important;
}

/* Если нужно изменить цвет только верхней полоски (topbar) */
.container-topbar {
  background-color: #1a252f !important;
}

/* Цвет заголовков (можно оставить, даже если используете переменные) */
h1, h2, h3, h4, h5, h6 { 
  color: #1a868e; 
}

:root {
  --body-font-family: "helvetica", Arial, sans-serif; /* Шрифт */
  --body-font-size: 16px;
  --link-color: #159b9d;
}

h1 {
  font-size: 28px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 22px;
  }
}

h2 {
  font-size: 18px;
}

@media (max-width: 768px) {
  h2 {
    font-size: 18px;
  }
}

.jp-audio__title {
  color: #159b9d !important;
}

/* Выравнивание заголовка статьи по центру */
.com-content-article .page-header h1 {
  text-align: center !important;
}



/* --- САЙДБАР --- */

/* 1. Основной контейнер сайдбара */
.sidebar-right, .sidebar-left {
  background: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  /* Липкое позиционирование */
  position: -webkit-sticky;
  position: sticky;
  top: 2rem; 
  z-index: 10;
}

.sidebar-right .moduletable, .sidebar-left .moduletable {
  margin-bottom: 0;
}

/* 2. Шапка с вашим цветом #2a9c93 */
.sidebar-right h3, .sidebar-left h3 {
  /* Градиент: от вашего цвета к чуть более темному для объема */
  background: linear-gradient(135deg, #2a9c93 0%, #1e7a73 100%);
  color: #ffffff;
  padding: 20px 25px;
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

/* 3. Отступы для контента */
.sidebar-right .card-body, 
.sidebar-right .moduletable,
.sidebar-left .moduletable {
  padding: 20px;
}

/* 4. Пункты меню */
.sidebar-right ul, .sidebar-left ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.sidebar-right ul li a, .sidebar-left ul li a {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  background-color: #f4fcfb; /* Очень светлый оттенок вашего цвета для фона кнопок */
  color: #4a5568;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
}

/* Иконка-стрелочка (скрыта) */
.sidebar-right ul li a::before, .sidebar-left ul li a::before {
  content: '→'; 
  font-family: monospace;
  margin-right: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #2a9c93; /* Цвет стрелочки */
}

/* 5. Эффект при наведении */
.sidebar-right ul li a:hover, 
.sidebar-right ul li.active a,
.sidebar-left ul li a:hover {
  background-color: #ffffff;
  color: #2a9c93; /* Текст становится цвета #2a9c93 */
  box-shadow: 0 4px 15px rgba(42, 156, 147, 0.15); /* Цветная тень */
  padding-left: 20px;
  border-left: 4px solid #2a9c93; /* Полоска слева цвета #2a9c93 */
}

/* Показываем стрелочку */
.sidebar-right ul li a:hover::before, .sidebar-left ul li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* РАСКРАШИВАЙ ОНЛАЙН */
/* --- Стили для онлайн-раскраски --- */

.app-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.canvas-container {
    position: relative;
    border: 2px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: white;
    margin-bottom: 20px;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.2em;
    display: none;
    z-index: 10;
}

.controls, .palette-section {
    background: #ffffff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.controls h3, .palette-section h3 {
    text-align: center;
    margin: 0 0 10px 0;
    color: #333;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-container button, .app-container label {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.app-container button:hover, .app-container label:hover {
    background-color: #e9e9e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.app-container input[type="file"] {
    display: none;
}

#palette {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.color-swatch {
    width: 100%;
    padding-bottom: 100%;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    transition: transform 0.2s, border-color 0.2s;
}

.color-swatch.active {
    border-color: #007AFF;
    transform: scale(1.1);
}

#customColor {
    width: 100%;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    cursor: pointer;
}

.presets-container {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

#presets {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.preset-image {
    width: 80px;
    height: 80px;
    border: 2px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    object-fit: cover;
}

.preset-image:hover, .preset-image.active {
    border-color: #007AFF;
    transform: scale(1.05);
}

.text-content {
    width: 100%;
    max-width: 960px;
    margin: 40px auto 20px auto;
    padding: 25px 35px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.text-content h3 {
    text-align: center;
    color: #1a868e;
    margin-top: 0;
    font-size: 1.5em;
}

.text-content p, .text-content li {
    color: #444;
    line-height: 1.7;
    font-size: 16px;
}

.text-content ul {
    padding-left: 20px;
    list-style: none;
}
.text-content li {
    margin-bottom: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 1200px) {
    .app-container {
        flex-direction: column;
        align-items: center;
    }
    .controls, .palette-section {
        width: 100%;
        max-width: 500px;
    }
}
/* --- УЛУЧШЕННЫЕ СТИЛИ ДЛЯ ПРЕВЬЮ КОНТУРОВ --- */

.presets-container {
 text-align: center;
 margin-bottom: 20px;
 padding: 20px;
 border: 1px solid #ddd;
 border-radius: 12px;
 background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
 box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.presets-container h3 {
 color: #1a868e;
 margin: 0 0 20px 0;
 font-size: 1.3rem;
 font-weight: 600;
}

#presets {
 display: flex;
 justify-content: center;
 gap: 20px;
 flex-wrap: wrap;
 align-items: flex-start;
}

.preset-image {
 width: 100px;
 height: 100px;
 border: 3px solid #ddd;
 border-radius: 10px;
 cursor: pointer;
 transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
 object-fit: contain;
 background-color: #ffffff;
 padding: 8px;
 box-sizing: border-box;
 box-shadow: 0 2px 6px rgba(0,0,0,0.08);
 display: block;
}

.preset-image:hover {
 border-color: #2a9c93;
 transform: scale(1.08) translateY(-4px);
 box-shadow: 0 8px 16px rgba(42, 156, 147, 0.25);
 background-color: #f0fffe;
}

.preset-image.active {
 border-color: #007AFF;
 background-color: #e8f4ff;
 box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
 transform: scale(1.1);
}

.preset-image:active {
 transform: scale(0.98);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
 .presets-container {
  padding: 15px;
  margin-bottom: 15px;
 }
 
 #presets {
  gap: 12px;
 }
 
 .preset-image {
  width: 85px;
  height: 85px;
  border: 2px solid #ddd;
 }
}

@media (max-width: 480px) {
 .presets-container h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
 }
 
 #presets {
  gap: 10px;
 }
 
 .preset-image {
  width: 75px;
  height: 75px;
  padding: 6px;
 }
}
/* --- СТИЛИ ДЛЯ ФУТЕРА --- */

/* 1. Перекрашиваем стандартный подвал шаблона Cassiopeia на всю ширину */
.container-footer {
  background-color: #248b83 !important; /* Чуть темнее шапки */
  background-image: none !important; /* Убираем стандартный градиент шаблона */
  border-top: none !important;
}

/* 2. Наш блок делаем прозрачным, чтобы он перенял цвет на всю ширину */
.kids-footer {
  background-color: transparent; 
  color: #d1eae8; /* Светло-зеленоватый цвет текста */
  font-family: 'Nunito', 'Segoe UI', sans-serif;
  margin-top: auto;
}

/* Заголовки колонок */
.kids-footer .footer-title {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

/* Ссылки в футере */
.kids-footer a {
  color: #d1eae8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.kids-footer a:hover {
  color: #ffffff;
}

/* Рамка для правого блока (Совенок) */
.kids-footer-box {
  /* Используем полупрозрачный белый */
  background-color: rgba(255, 255, 255, 0.1); 
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  transition: transform 0.3s ease;
}

.kids-footer-box:hover {
  transform: translateY(-3px);
}


