body { 
    font-family: sans-serif; 
    margin: 20px; 
    background-color: #f4f4f4;
    padding-bottom: 60px; 
}
.archive-container { 
    background-color: #fff; 
    padding: 20px; 
    border-radius: 8px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
    max-width: 800px; 
    margin: auto; 
}
h1 { 
    color: #333; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}
a { 
    text-decoration: none; 
    color: #0366d6; 
}
a:hover { 
    text-decoration: underline; 
}
/* --- Стили для Древа Файлов --- */
.file-tree-root { 
    list-style: none; 
    padding-left: 0; 
}
/* Стили для всех списков (вложенных и корневого) */
.file-tree-root ul {
    list-style: none;
    padding-left: 20px; /* Отступ для имитации иерархии */
    margin-top: 5px;
    margin-bottom: 5px;
}
/* Стиль для названия папки и тогглера */
.folder-name {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #4078c0;
    cursor: pointer; /* Для кликабельности */
    margin-bottom: 3px;
    user-select: none;
}
/* Стиль для тогглера [+] / [-] */
.toggler {
    font-size: 1.1em;
    width: 20px; /* Чуть шире для удобства нажатия */
    text-align: center;
    margin-right: 5px;
    color: #666;
    user-select: none;
    /* КРИТИЧНО: Запрещаем сжатие элемента */
    flex-shrink: 0; 
}
.folder-content.collapsed {
    display: none;
}
.file-entry a {
    color: #333;
}
.file-entry a:hover {
    color: #0366d6;
}

/* --- ЗАМЕНА ЭМОДЗИ ПАПКИ (📁) на ИЗОБРАЖЕНИЕ --- */
.folder-name {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #4078c0;
    cursor: pointer;
    margin-bottom: 3px;
    user-select: none;
    /* Запрещаем перенос строк, чтобы [-] не улетал */
    white-space: nowrap; 
}

.folder-name .name-text {
    display: flex;
    align-items: center;
}
.folder-name .name-text::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    /* Убедись, что путь правильный */
    background-image: url('/img/folder.svg'); 
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    /* Иконка тоже не должна сжиматься */
    flex-shrink: 0; 
}
/* Скрываем эмодзи 📁 в index.html (используйте CSS-селектор для скрытия эмодзи,
    если он остается в HTML, или просто удалите его из index.html) */

/* --- ЗАМЕНА ЭМОДЗИ ФАЙЛА (📄) на ИЗОБРАЖЕНИЕ --- */
.file-entry {
    /* Добавляем иконку файла перед ссылкой */
    list-style: none; /* Убираем стандартные маркеры списка */
}
.file-entry::before {
    content: ''; /* Вставляем псевдоэлемент для иконки */
    display: inline-block;
    width: 20px; /* Размер иконки */
    height: 20px;
    margin-right: 5px;
    background-image: url('/img/file.svg'); /* <-- ПРОВЕРЬТЕ ПУТЬ */
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

/* --- Стили для footer (ЦВЕТ ССЫЛОК) --- */
.fixed-footer {
    position: fixed; 
    bottom: 0;      
    left: 0;
    width: 100%;
    background-color: #333; 
    color: #fff;            
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2); 
    z-index: 100; 
}
/* ИЗМЕНЕНИЕ ЦВЕТА ССЫЛОК ВНУТРИ FOOTER */
.fixed-footer a {
    color: #ffae00; /* <-- Новый цвет, например, оранжевый (заменяет #4078c0) */
    text-decoration:none
}
.fixed-footer a:hover {
    color: #f3f68b;
    text-decoration:none
}
.fixed-footer .separator {
    margin: 0 10px;
    color: #666;
}