/* theme_styles.css */

/* Светлая тема (по умолчанию) */
body.theme-light {
    background-color: #f4f4f4 !important;
    color: #333 !important;
}

body.theme-light h1,
body.theme-light h2,
body.theme-light h3 {
    color: #007bff !important;
}

body.theme-light a {
    color: #007bff !important;
}

body.theme-light .button {
    background-color: #007bff !important;
    color: white !important;
}

body.theme-light .file-container,
body.theme-light .note-item,
body.theme-light .container {
    background-color: white !important;
    border-color: #ddd !important;
}

/* Тёмная тема */
body.theme-dark {
    background-color: #121212 !important;
    color: #e0e0e0 !important;
}

body.theme-dark h1,
body.theme-dark h2,
body.theme-dark h3 {
    color: #6ab0f3 !important;
}

body.theme-dark a {
    color: #6ab0f3 !important;
}

body.theme-dark .button {
    background: linear-gradient(145deg, #2d3748, #4a5568) !important;
    color: #e2e8f0 !important;
    border: 1px solid #4a5568 !important;
}

body.theme-dark .file-container,
body.theme-dark .note-item,
body.theme-dark .container {
    background-color: #1e1e1e !important;
    border-color: #374151 !important;
}

/* Неоновая тема */
body.theme-neon {
    background-color: black !important;
    color: #0ff !important;
}

body.theme-neon h1,
body.theme-neon h2,
body.theme-neon h3 {
    color: #0ff !important;
    text-shadow: 0 0 5px #0ff;
}

body.theme-neon a {
    color: #0ff !important;
    text-shadow: 0 0 2px #0ff;
}

/* КНОПКИ ДЛЯ НЕОНОВОЙ ТЕМЫ - ИСПРАВЛЕНО */
body.theme-neon .button {
    background: linear-gradient(45deg, #0ff, #0080ff) !important;
    color: black !important;
    text-shadow: none;
    border: 1px solid #0ff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    font-weight: bold;
}

body.theme-neon .button:hover {
    background: linear-gradient(45deg, #00ffff, #0066ff) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* Кнопки для upload и навигации */
body.theme-neon a.button {
    background: linear-gradient(45deg, #ff00ff, #ff0080) !important;
    color: black !important;
}

body.theme-neon .nav-links a {
    background: rgba(0, 255, 255, 0.1) !important;
    color: #0ff !important;
    border: 1px solid #0ff !important;
    text-shadow: 0 0 5px #0ff;
}

body.theme-neon .nav-links a:hover {
    background: rgba(0, 255, 255, 0.3) !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

body.theme-neon .file-container,
body.theme-neon .note-item,
body.theme-neon .container {
    background-color: #111 !important;
    border-color: #0ff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

/* Новогодний режим - ОБНОВЛЕННЫЕ СТИЛИ */
body.theme-christmas {
    background: linear-gradient(180deg, #0a3d2f 0%, #083025 30%, #061d18 100%) !important;
    color: #ffeb3b !important;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body.theme-christmas h1,
body.theme-christmas h2,
body.theme-christmas h3 {
    color: #ff5722 !important;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.8);
}

body.theme-christmas a {
    color: #4caf50 !important;
}

body.theme-christmas .button {
    background: linear-gradient(145deg, #d32f2f, #c62828) !important;
    color: white !important;
    border: 2px solid #ffeb3b !important;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.5);
}

body.theme-christmas .button:hover {
    background: linear-gradient(145deg, #f44336, #d32f2f) !important;
    transform: translateY(-1px);
}

body.theme-christmas .file-container {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.95), rgba(10, 61, 47, 0.95)) !important;
    border: 2px solid #4caf50 !important;
    color: #ffeb3b !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

body.theme-christmas .nav-links a {
    background: rgba(13, 71, 54, 0.8) !important;
    color: #ffeb3b !important;
    border: 1px solid #4caf50 !important;
}

body.theme-christmas .message.success {
    background: linear-gradient(145deg, rgba(76, 175, 80, 0.9), rgba(56, 142, 60, 0.9)) !important;
    color: #fff !important;
    border: 2px solid #ffeb3b !important;
}

body.theme-christmas .message.error {
    background: linear-gradient(145deg, rgba(244, 67, 54, 0.9), rgba(211, 47, 47, 0.9)) !important;
    color: #fff !important;
    border: 2px solid #ffeb3b !important;
}

/* Хэллоуинский режим */
body.theme-halloween {
    background-color: #2c003e !important;
    background-image: radial-gradient(circle, rgba(255,165,0,0.1) 1px, transparent 1px) !important;
    background-size: 20px 20px !important;
    color: #ff9800 !important;
}

body.theme-halloween h1,
body.theme-halloween h2,
body.theme-halloween h3 {
    color: #ff5722 !important;
    text-shadow: 0 0 5px #ff9800;
}

body.theme-halloween a {
    color: #ff9800 !important;
    text-shadow: 0 0 3px #ff5722;
}

body.theme-halloween .button {
    background: linear-gradient(45deg, #7b1fa2, #ff5722) !important;
    color: black !important;
    border: 2px solid #ff9800 !important;
}

body.theme-halloween .file-container,
body.theme-halloween .note-item,
body.theme-halloween .container {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.9), rgba(74, 20, 140, 0.9)) !important;
    border: 2px solid #ff9800 !important;
    color: #ff9800 !important;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

body.theme-halloween .nav-links a {
    background: rgba(43, 0, 62, 0.8) !important;
    color: #ff9800 !important;
    border: 1px solid #ff9800 !important;
}

/* Улучшенные стили для новогоднего режима */
body.theme-christmas .button {
    background: linear-gradient(145deg, 
        #d32f2f, 
        #c62828, 
        #b71c1c) !important;
    color: white !important;
    border: 2px solid #ffeb3b !important;
    box-shadow: 
        0 4px 20px rgba(255, 87, 34, 0.6),
        0 0 15px rgba(255, 235, 59, 0.4) inset !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s !important;
}

body.theme-christmas .button:hover {
    background: linear-gradient(145deg, 
        #f44336, 
        #e53935, 
        #d32f2f) !important;
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 30px rgba(255, 87, 34, 0.8),
        0 0 20px rgba(255, 235, 59, 0.6) inset !important;
}

body.theme-christmas .nav-links a {
    background: linear-gradient(145deg, 
        rgba(13, 71, 54, 0.9), 
        rgba(10, 61, 47, 0.9)) !important;
    color: #ffeb3b !important;
    border: 2px solid #4caf50 !important;
    box-shadow: 
        0 3px 15px rgba(76, 175, 80, 0.5),
        0 0 10px rgba(255, 235, 59, 0.3) inset !important;
    transition: all 0.3s !important;
}

body.theme-christmas .nav-links a:hover {
    background: linear-gradient(145deg, 
        rgba(16, 88, 67, 0.9), 
        rgba(13, 71, 54, 0.9)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 5px 20px rgba(76, 175, 80, 0.7),
        0 0 15px rgba(255, 235, 59, 0.5) inset !important;
}

body.theme-christmas .message.success {
    background: linear-gradient(145deg, 
        rgba(76, 175, 80, 0.95), 
        rgba(56, 142, 60, 0.95)) !important;
    color: #fff !important;
    border: 2px solid #ffeb3b !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5) !important;
}

body.theme-christmas .message.error {
    background: linear-gradient(145deg, 
        rgba(244, 67, 54, 0.95), 
        rgba(211, 47, 47, 0.95)) !important;
    color: #fff !important;
    border: 2px solid #ffeb3b !important;
    box-shadow: 0 0 20px rgba(244, 67, 54, 0.5) !important;
}

/* =========================================== */
/* УПРОЩЕННЫЙ НОВОГОДНИЙ РЕЖИМ (christmas-simple) - ПРАВИЛЬНОЕ ОТОБРАЖЕНИЕ */
/* =========================================== */

body.theme-christmas-simple {
    background: linear-gradient(135deg, 
        #0a3d2f 0%, 
        #0d47a1 25%, 
        #1565c0 50%, 
        #1e88e5 75%, 
        #2196f3 100%) !important;
    background-attachment: fixed !important;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Заголовок - белый с тенью */
body.theme-christmas-simple h1 {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Разноцветные буквы внутри заголовка */
body.theme-christmas-simple .christmas-title-simple span.char-1 { color: #ffeb3b !important; }
body.theme-christmas-simple .christmas-title-simple span.char-2 { color: #4caf50 !important; }
body.theme-christmas-simple .christmas-title-simple span.char-3 { color: #2196f3 !important; }
body.theme-christmas-simple .christmas-title-simple span.char-4 { color: #c62828 !important; }
body.theme-christmas-simple .christmas-title-simple span.char-5 { color: #ff9800 !important; }
body.theme-christmas-simple .christmas-title-simple span.char-6 { color: #9c27b0 !important; }
body.theme-christmas-simple .christmas-title-simple span.char-7 { color: #00bcd4 !important; }

/* Эмодзи - обычные белые */
body.theme-christmas-simple .christmas-title-simple {
    color: white !important;
}

/* Обеспечиваем нормальное отображение эмодзи и текста */
body.theme-christmas-simple .christmas-title-simple,
body.theme-christmas-simple .christmas-title-simple *,
body.theme-christmas-simple .christmas-emoji {
    background: transparent !important;
    background-color: transparent !important;
    color: inherit !important;
    -webkit-text-fill-color: initial !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3) !important;
}

/* Исправляем выделение текста */
body.theme-christmas-simple .christmas-title-simple::selection,
body.theme-christmas-simple .christmas-title-simple *::selection,
body.theme-christmas-simple .christmas-emoji::selection {
    background: rgba(255, 235, 59, 0.5) !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

body.theme-christmas-simple .christmas-title-simple::-moz-selection,
body.theme-christmas-simple .christmas-title-simple *::-moz-selection,
body.theme-christmas-simple .christmas-emoji::-moz-selection {
    background: rgba(255, 235, 59, 0.5) !important;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}

/* Красивые файлы с новогодними узорами */
body.theme-christmas-simple .file-container {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, white 0%, #f0f8ff 100%) !important;
    border: 2px solid #c62828 !important;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.2);
    color: #1b5e20 !important;
}

body.theme-christmas-simple .file-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.3);
}

/* Новогодние иконки для файлов */
body.theme-christmas-simple .file-container::before {
    content: "🎁";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    opacity: 0.8;
    z-index: 1;
}

/* Снег на земле */
body.theme-christmas-simple .snow-ground-simple {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, 
        rgba(255,255,255,0.9) 0%,
        rgba(255,255,255,0.6) 30%,
        rgba(255,255,255,0.2) 70%,
        transparent 100%);
    z-index: 9997;
    pointer-events: none;
}

/* Снежинки (без анимации) */
body.theme-christmas-simple .snowflake-static {
    position: fixed;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
    filter: blur(0.5px);
}

/* Новогодние кнопки */
body.theme-christmas-simple .christmas-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c62828, #e53935, #c62828) !important;
    color: white !important;
    border: 2px solid #1b5e20 !important;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

body.theme-christmas-simple .christmas-button:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f, #b71c1c) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4) !important;
}

/* Красивые кнопки навигации для новогодней темы */
body.theme-christmas-simple .nav-links a {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.9), rgba(33, 150, 243, 0.9)) !important;
    color: white !important;
    border: 2px solid #4caf50 !important;
    font-weight: bold;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
}

body.theme-christmas-simple .nav-links a:hover {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.9), rgba(25, 118, 210, 0.9)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.4) !important;
}

/* Декоративные новогодние элементы */
body.theme-christmas-simple .christmas-decoration {
    position: fixed;
    font-size: 24px;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
    color: white !important;
    background: transparent !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* Новогодние сообщения */
body.theme-christmas-simple .message.success {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    color: white !important;
    border: 2px solid #c62828 !important;
    position: relative;
    overflow: hidden;
}

body.theme-christmas-simple .message.success::before {
    content: "🎅";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

body.theme-christmas-simple .message.error {
    background: linear-gradient(135deg, #d84315, #bf360c) !important;
    color: white !important;
    border: 2px solid #c62828 !important;
    position: relative;
    overflow: hidden;
}

body.theme-christmas-simple .message.error::before {
    content: "🎄";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Новогодние украшения для заголовков */
body.theme-christmas-simple .christmas-header-decoration {
    display: inline-block;
    margin: 0 10px;
    animation: none !important;
    color: white !important;
    background: transparent !important;
}

/* КРАСИВЫЕ КНОПКИ С ИКОНКАМИ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ */
body.theme-christmas-simple .button {
    background: linear-gradient(135deg, #c62828, #e53935, #c62828) !important;
    color: white !important;
    border: 2px solid #1b5e20 !important;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.theme-christmas-simple .button:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f, #b71c1c) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(198, 40, 40, 0.5) !important;
}

body.theme-christmas-simple .button-success {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    border-color: #c62828 !important;
}

body.theme-christmas-simple .button-success:hover {
    background: linear-gradient(135deg, #1b5e20, #2e7d32) !important;
}

body.theme-christmas-simple .button-danger {
    background: linear-gradient(135deg, #d84315, #bf360c) !important;
    border-color: #c62828 !important;
}

body.theme-christmas-simple .button-warning {
    background: linear-gradient(135deg, #ff8f00, #ef6c00) !important;
    border-color: #c62828 !important;
    color: #fff !important;
}

body.theme-christmas-simple .button-info {
    background: linear-gradient(135deg, #1565c0, #0d47a1) !important;
    border-color: #c62828 !important;
}

/* КРАСИВЫЕ КНОПКИ НАВИГАЦИИ */
body.theme-christmas-simple .nav-links a {
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.9), rgba(33, 150, 243, 0.9)) !important;
    color: white !important;
    border: 2px solid #4caf50 !important;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin: 8px;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    transition: all 0.3s ease;
}

body.theme-christmas-simple .nav-links a:hover {
    background: linear-gradient(135deg, rgba(183, 28, 28, 0.9), rgba(25, 118, 210, 0.9)) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.5) !important;
    text-decoration: none;
}

/* ИКОНКИ ДЛЯ КНОПОК НАВИГАЦИИ */
body.theme-christmas-simple .nav-links a[href*="хранилище"]::before {
    content: "📂 ";
    margin-right: 8px;
}

body.theme-christmas-simple .nav-links a[href*="заметки"]::before {
    content: "📝 ";
    margin-right: 8px;
}

body.theme-christmas-simple .nav-links a[href*="лекции"]::before {
    content: "📚 ";
    margin-right: 8px;
}

body.theme-christmas-simple .nav-links a[href*="python"]::before {
    content: "🐍 ";
    margin-right: 8px;
}

body.theme-christmas-simple .nav-links a[href*="черепашка"]::before {
    content: "🐢 ";
    margin-right: 8px;
}

body.theme-christmas-simple .nav-links a[href*="upload"]::before {
    content: "📤 ";
    margin-right: 8px;
}

/* ПАНЕЛЬ АДМИНИСТРАТОРА */
body.theme-christmas-simple .container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    border: 3px solid #c62828;
    box-shadow: 0 8px 30px rgba(198, 40, 40, 0.2);
    position: relative;
    border-radius: 15px;
}

body.theme-christmas-simple .container::before {
    content: "🎄🎅🎁⛄❄️🔔";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    opacity: 0.6;
}

body.theme-christmas-simple .container::after {
    content: "🎅🎄🎁⛄❄️🔔";
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    opacity: 0.6;
}

/* ТЕКСТАРЕА И ВВОД */
body.theme-christmas-simple textarea,
body.theme-christmas-simple input[type="text"],
body.theme-christmas-simple input[type="email"],
body.theme-christmas-simple input[type="password"],
body.theme-christmas-simple select {
    border: 2px solid #c62828 !important;
    background: #f8f9fa !important;
    color: #1b5e20 !important;
    border-radius: 8px;
    padding: 10px;
    font-weight: 500;
}

/* ВКЛАДКИ */
body.theme-christmas-simple .tab.active {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    color: white !important;
    border-color: #c62828 !important;
    font-weight: bold;
}

/* СКРОЛЛБАР */
body.theme-christmas-simple ::-webkit-scrollbar-track {
    background: #f8f9fa !important;
}

body.theme-christmas-simple ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    border-radius: 10px;
}

body.theme-christmas-simple ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b71c1c, #d32f2f) !important;
}

/* ДЕКОРАТИВНЫЕ СНЕЖИНКИ */
body.theme-christmas-simple .christmas-decoration {
    position: fixed;
    font-size: 28px;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    color: white !important;
    background: transparent !important;
}

/* ПРОСТАЯ ГИРЛЯНДА */
body.theme-christmas-simple .simple-garland {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, 
        #c62828 0%, 
        #2e7d32 20%, 
        #ff9800 40%, 
        #2196f3 60%, 
        #c62828 80%, 
        #2e7d32 100%);
    background-size: 200% 100%;
    animation: garland-move 10s linear infinite;
    z-index: 9998;
    opacity: 0.8;
    box-shadow: 0 0 20px rgba(198, 40, 40, 0.5);
}

@keyframes garland-move {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* ИКОНКИ ДЛЯ РАЗНЫХ ТИПОВ ФАЙЛОВ */
body.theme-christmas-simple .file-container img[src*="image.png"] ~ a::before {
    content: "🖼️ ";
}

body.theme-christmas-simple .file-container img[src*="pdf.png"] ~ a::before {
    content: "📄 ";
}

body.theme-christmas-simple .file-container img[src*="word.png"] ~ a::before {
    content: "📝 ";
}

body.theme-christmas-simple .file-container img[src*="archive.png"] ~ a::before {
    content: "📦 ";
}

body.theme-christmas-simple .file-container img[src*="powerpoint.png"] ~ a::before {
    content: "📊 ";
}

body.theme-christmas-simple .file-container img[src*="rar.png"] ~ a::before {
    content: "🗜️ ";
}

body.theme-christmas-simple .file-container img[src*="text.png"] ~ a::before {
    content: "📃 ";
}

body.theme-christmas-simple .file-container img[src*="default.png"] ~ a::before {
    content: "📎 ";
}

/* Улучшенные стили для user-menu */
body.theme-light .user-menu .welcome-text {
    color: #0056b3 !important;
    font-weight: bold;
}

body.theme-light .user-menu a {
    color: #0056b3 !important;
    font-weight: bold;
}

body.theme-light .user-menu a:hover {
    color: #003d7a !important;
    text-decoration: underline;
}

body.theme-dark .user-menu .welcome-text {
    color: #6ab0f3 !important;
    font-weight: bold;
}

body.theme-dark .user-menu a {
    color: #6ab0f3 !important;
    font-weight: bold;
}

body.theme-dark .user-menu a:hover {
    color: #8bc1ff !important;
    text-decoration: underline;
}

body.theme-neon .user-menu .welcome-text {
    color: #0ff !important;
    font-weight: bold;
    text-shadow: 0 0 5px #0ff;
}

body.theme-neon .user-menu a {
    color: #0ff !important;
    font-weight: bold;
    text-shadow: 0 0 3px #0ff;
}

body.theme-neon .user-menu a:hover {
    color: #00ffff !important;
    text-decoration: underline;
}

body.theme-christmas .user-menu .welcome-text {
    color: #ffeb3b !important;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

body.theme-christmas .user-menu a {
    color: #4caf50 !important;
    font-weight: bold;
}

body.theme-christmas .user-menu a:hover {
    color: #2e7d32 !important;
    text-decoration: underline;
}

body.theme-halloween .user-menu .welcome-text {
    color: #ff9800 !important;
    font-weight: bold;
    text-shadow: 0 0 3px #ff5722;
}

body.theme-halloween .user-menu a {
    color: #ff9800 !important;
    font-weight: bold;
    text-shadow: 0 0 2px #ff5722;
}

body.theme-halloween .user-menu a:hover {
    color: #ffb74d !important;
    text-decoration: underline;
}

/* Дополнительные стили для мобильной версии - ТОЛЬКО ДЛЯ NOVOGODNEY ТЕМЫ */
@media (max-width: 768px) {
    /* Красный заголовок для новогодней темы на мобильных */
    body.theme-christmas-simple h2 {
        color: #ff0000 !important;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.5) !important;
        font-weight: bold !important;
        background: linear-gradient(135deg, rgba(255, 0, 0, 0.15), rgba(198, 40, 40, 0.1)) !important;
        padding: 10px !important;
        border-radius: 10px !important;
        border: 3px solid #ff0000 !important;
        box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2) !important;
    }
    
    /* Желтые папки для новогодней темы на мобильных */
    body.theme-christmas-simple .file-container {
        background: linear-gradient(135deg, #fff9c4 0%, #fff59d 30%, #fff176 70%, #ffee58 100%) !important;
        border: 3px solid #ff9800 !important;
        color: #d84315 !important;
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4) !important;
        padding: 12px !important;
    }
    
    body.theme-christmas-simple .file-container a {
        color: #c62828 !important;
        font-weight: bold !important;
        font-size: 14px !important;
    }
    
    body.theme-christmas-simple .file-container span {
        color: #5d4037 !important;
        font-size: 12px !important;
    }
    
    /* Заголовки для других тем на мобильных - соответствуют теме */
    body.theme-light h2 {
        color: #007bff !important;
        font-weight: bold !important;
        padding: 8px !important;
        background: rgba(0, 123, 255, 0.08) !important;
        border-radius: 8px !important;
        border-left: 4px solid #007bff !important;
    }
    
    body.theme-dark h2 {
        color: #6ab0f3 !important;
        font-weight: bold !important;
        padding: 8px !important;
        background: rgba(106, 176, 243, 0.08) !important;
        border-radius: 8px !important;
        border-left: 4px solid #6ab0f3 !important;
    }
    
    body.theme-neon h2 {
        color: #0ff !important;
        font-weight: bold !important;
        padding: 8px !important;
        background: rgba(0, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        border-left: 4px solid #0ff !important;
        text-shadow: 0 0 5px #0ff;
    }
    
    body.theme-halloween h2 {
        color: #ff9800 !important;
        font-weight: bold !important;
        padding: 8px !important;
        background: rgba(255, 152, 0, 0.08) !important;
        border-radius: 8px !important;
        border-left: 4px solid #ff9800 !important;
        text-shadow: 0 0 3px #ff5722;
    }
    
    body.theme-christmas h2 {
        color: #ff5722 !important;
        font-weight: bold !important;
        padding: 8px !important;
        background: rgba(255, 87, 34, 0.08) !important;
        border-radius: 8px !important;
        border-left: 4px solid #ff5722 !important;
    }
    
    /* Улучшенные стили для выбора тем на мобильных */
    .theme-option .icon {
        display: block !important;
        font-size: 22px !important;
        margin-bottom: 2px;
    }
    
    .theme-option .text {
        text-align: left;
    }
    
    .theme-option .name {
        font-size: 14px;
        font-weight: 600;
    }
    
    .theme-option .description {
        font-size: 11px;
        line-height: 1.4;
    }
}

/* =========================================== */
/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ЗАГРУЗКИ ПО ТЕМАМ */
/* =========================================== */

/* ОСНОВНЫЕ СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА */
.upload-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.upload-modal.show {
    display: flex;
}

.upload-modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.upload-modal-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-modal-header h2 {
    margin: 0;
    font-size: 1.2em;
}

.close-upload-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-modal-body {
    padding: 20px;
}

.upload-drop-area {
    border: 3px dashed #007bff;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 20px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.upload-drop-area.highlight {
    border-color: #28a745;
    background: #d4edda;
}

.upload-drop-area p {
    margin: 10px 0;
    font-size: 16px;
}

.upload-drop-area .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.upload-file-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.upload-file-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upload-file-item:last-child {
    border-bottom: none;
}

.upload-file-item .name {
    flex-grow: 1;
    margin-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-item .size {
    color: #666;
    font-size: 12px;
}

.upload-file-item .remove {
    color: #dc3545;
    cursor: pointer;
    margin-left: 10px;
    font-weight: bold;
}

.upload-storage-select {
    margin-bottom: 20px;
}

.upload-storage-select label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.storage-option {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.storage-option:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.storage-option.selected {
    border-color: #28a745;
    background: #d4edda;
}

.storage-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.storage-option .icon {
    font-size: 24px;
    margin-right: 10px;
    width: 30px;
    text-align: center;
}

.storage-option .text {
    flex-grow: 1;
}

.storage-option .title {
    font-weight: bold;
    margin-bottom: 2px;
}

.storage-option .description {
    font-size: 12px;
    color: #666;
}

.upload-actions {
    display: flex;
    gap: 10px;
}

.upload-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.upload-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-actions .upload-btn {
    background: #28a745;
    color: white;
}

.upload-actions .upload-btn:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
}

.upload-actions .cancel-btn {
    background: #6c757d;
    color: white;
}

.upload-actions .cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.upload-progress {
    display: none;
    margin-top: 20px;
}

.upload-progress.show {
    display: block;
}

.progress-bar {
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #28a745);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    text-align: center;
    font-size: 14px;
    color: #666;
}

/* Стили для индикатора перетаскивания */
.drag-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    border: 6px dashed #007bff;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
}

.drag-indicator.show {
    display: flex;
}

.drag-indicator .container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 4px solid #007bff;
}

.drag-indicator .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.drag-indicator .title {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.drag-indicator .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.drag-indicator .quick-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drag-indicator .quick-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.drag-indicator .quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.drag-indicator .quick-btn.public {
    background: #007bff;
    color: white;
}

.drag-indicator .quick-btn.private {
    background: #28a745;
    color: white;
}

.drag-indicator .quick-btn.cancel {
    background: #6c757d;
    color: white;
}

.drag-indicator .quick-btn .icon {
    font-size: 20px;
    margin: 0;
}

/* =========================================== */
/* СТИЛИ МОДАЛЬНОГО ОКНА ДЛЯ РАЗНЫХ ТЕМ */
/* =========================================== */

/* Светлая тема (по умолчанию) */
body.theme-light .upload-modal-content {
    background: white !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}

body.theme-light .upload-modal-header {
    background: #007bff !important;
    color: white !important;
    border-bottom: 1px solid #0056b3 !important;
}

body.theme-light .upload-drop-area {
    background: #f8f9fa !important;
    border: 3px dashed #007bff !important;
    color: #333 !important;
}

body.theme-light .upload-drop-area.highlight {
    border-color: #28a745 !important;
    background: #d4edda !important;
}

body.theme-light .upload-file-list {
    background: #fff !important;
    border: 1px solid #ddd !important;
}

body.theme-light .upload-file-item {
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    color: #333 !important;
}

body.theme-light .upload-file-item .size {
    color: #666 !important;
}

body.theme-light .storage-option {
    background: #fff !important;
    border: 2px solid #ddd !important;
    color: #333 !important;
}

body.theme-light .storage-option:hover {
    border-color: #007bff !important;
    background: #f0f8ff !important;
}

body.theme-light .storage-option.selected {
    border-color: #28a745 !important;
    background: #d4edda !important;
}

body.theme-light .storage-option.disabled {
    opacity: 0.5 !important;
}

body.theme-light .storage-option .description {
    color: #666 !important;
}

body.theme-light .upload-actions .upload-btn {
    background: #28a745 !important;
    color: white !important;
}

body.theme-light .upload-actions .cancel-btn {
    background: #6c757d !important;
    color: white !important;
}

body.theme-light .progress-bar {
    background: #e9ecef !important;
}

body.theme-light .progress-fill {
    background: linear-gradient(90deg, #007bff, #28a745) !important;
}

body.theme-light .progress-text {
    color: #666 !important;
}

body.theme-light .drag-indicator {
    background: rgba(0, 123, 255, 0.1) !important;
    border: 6px dashed #007bff !important;
}

body.theme-light .drag-indicator .container {
    background: white !important;
    border: 4px solid #007bff !important;
    color: #333 !important;
}

body.theme-light .drag-indicator .title {
    color: #007bff !important;
}

body.theme-light .drag-indicator .quick-btn.public {
    background: #007bff !important;
    color: white !important;
}

body.theme-light .drag-indicator .quick-btn.private {
    background: #28a745 !important;
    color: white !important;
}

body.theme-light .drag-indicator .quick-btn.cancel {
    background: #6c757d !important;
    color: white !important;
}

/* Темная тема */
body.theme-dark .upload-modal-content {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
    border: 1px solid #374151 !important;
}

body.theme-dark .upload-modal-header {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    border-bottom: 1px solid #4a5568 !important;
}

body.theme-dark .close-upload-modal:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

body.theme-dark .upload-drop-area {
    background: #2d3748 !important;
    border: 3px dashed #4a5568 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .upload-drop-area.highlight {
    border-color: #48bb78 !important;
    background: #2d3748 !important;
    box-shadow: 0 0 20px rgba(72, 187, 120, 0.3);
}

body.theme-dark .upload-file-list {
    background: #2d3748 !important;
    border: 1px solid #4a5568 !important;
}

body.theme-dark .upload-file-item {
    background: #374151 !important;
    border-bottom: 1px solid #4a5568 !important;
    color: #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.theme-dark .upload-file-item .size {
    color: #a0aec0 !important;
}

body.theme-dark .upload-file-item .remove:hover {
    background: rgba(220, 53, 69, 0.2) !important;
}

body.theme-dark .upload-storage-select label {
    color: #e2e8f0 !important;
}

body.theme-dark .storage-option {
    background: #2d3748 !important;
    border: 2px solid #4a5568 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .storage-option:hover {
    border-color: #6ab0f3 !important;
    background: #2d3748 !important;
    box-shadow: 0 4px 15px rgba(106, 176, 243, 0.2);
}

body.theme-dark .storage-option.selected {
    border-color: #48bb78 !important;
    background: #2d3748 !important;
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

body.theme-dark .storage-option .description {
    color: #a0aec0 !important;
}

body.theme-dark .upload-actions .upload-btn {
    background: #2f855a !important;
    border-color: #2f855a !important;
    color: white !important;
}

body.theme-dark .upload-actions .upload-btn:hover:not(:disabled) {
    background: #276749 !important;
    border-color: #22543d !important;
}

body.theme-dark .upload-actions .cancel-btn {
    background: #4a5568 !important;
    border-color: #4a5568 !important;
    color: white !important;
}

body.theme-dark .upload-actions .cancel-btn:hover {
    background: #374151 !important;
    border-color: #2d3748 !important;
}

body.theme-dark .progress-bar {
    background: #2d3748 !important;
    border-color: #4a5568 !important;
}

body.theme-dark .progress-fill {
    background: linear-gradient(90deg, #6ab0f3, #48bb78) !important;
}

body.theme-dark .progress-text {
    color: #a0aec0 !important;
}

body.theme-dark .drag-indicator {
    background: rgba(106, 176, 243, 0.15) !important;
    border: 6px dashed #6ab0f3 !important;
    backdrop-filter: blur(15px);
}

body.theme-dark .drag-indicator .container {
    background: #1e1e1e !important;
    border: 4px solid #6ab0f3 !important;
    color: #e0e0e0 !important;
}

body.theme-dark .drag-indicator .title {
    color: #6ab0f3 !important;
}

body.theme-dark .drag-indicator .quick-btn.public {
    background: #2b6cb0 !important;
    color: white !important;
}

body.theme-dark .drag-indicator .quick-btn.private {
    background: #2f855a !important;
    color: white !important;
}

body.theme-dark .drag-indicator .quick-btn.cancel {
    background: #4a5568 !important;
    color: white !important;
}

/* Неоновая тема */
body.theme-neon .upload-modal-content {
    background: #111 !important;
    color: #0ff !important;
    border: 2px solid #0ff !important;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.5);
}

body.theme-neon .upload-modal-header {
    background: linear-gradient(45deg, #0ff, #0080ff) !important;
    color: black !important;
    border-bottom: 2px solid #0ff !important;
}

body.theme-neon .close-upload-modal:hover {
    background: rgba(0, 255, 255, 0.2) !important;
}

body.theme-neon .upload-drop-area {
    background: rgba(0, 255, 255, 0.05) !important;
    border: 3px dashed #0ff !important;
    color: #0ff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.1) !important;
}

body.theme-neon .upload-drop-area.highlight {
    border-color: #f0f !important;
    background: rgba(255, 0, 255, 0.1) !important;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5), 0 0 40px rgba(0, 255, 255, 0.3);
}

body.theme-neon .upload-file-list {
    background: rgba(0, 255, 255, 0.05) !important;
    border: 1px solid #0ff !important;
}

body.theme-neon .upload-file-item {
    background: rgba(0, 255, 255, 0.1) !important;
    border-bottom: 1px solid #0ff !important;
    color: #0ff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

body.theme-neon .upload-file-item .size {
    color: #0ff !important;
    opacity: 0.8;
}

body.theme-neon .upload-file-item .remove:hover {
    background: rgba(255, 0, 0, 0.3) !important;
}

body.theme-neon .upload-storage-select label {
    color: #0ff !important;
    text-shadow: 0 0 5px #0ff;
}

body.theme-neon .storage-option {
    background: rgba(0, 255, 255, 0.1) !important;
    border: 2px solid #0ff !important;
    color: #0ff !important;
}

body.theme-neon .storage-option:hover {
    border-color: #f0f !important;
    background: rgba(255, 0, 255, 0.1) !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
}

body.theme-neon .storage-option.selected {
    border-color: #0f0 !important;
    background: rgba(0, 255, 0, 0.1) !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.5), 0 0 35px rgba(0, 255, 255, 0.3);
}

body.theme-neon .storage-option .description {
    color: #0ff !important;
    opacity: 0.8;
}

body.theme-neon .upload-actions .upload-btn {
    background: linear-gradient(45deg, #0f0, #00ff80) !important;
    border-color: #0f0 !important;
    color: black !important;
    font-weight: bold;
}

body.theme-neon .upload-actions .upload-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #00ff00, #00ff40) !important;
    border-color: #0f0 !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
}

body.theme-neon .upload-actions .cancel-btn {
    background: linear-gradient(45deg, #ff0080, #f0f) !important;
    border-color: #f0f !important;
    color: black !important;
    font-weight: bold;
}

body.theme-neon .upload-actions .cancel-btn:hover {
    background: linear-gradient(45deg, #ff0066, #ff00ff) !important;
    border-color: #f0f !important;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.6);
}

body.theme-neon .progress-bar {
    background: rgba(0, 255, 255, 0.1) !important;
    border-color: #0ff !important;
}

body.theme-neon .progress-fill {
    background: linear-gradient(90deg, #0ff, #0f0) !important;
}

body.theme-neon .progress-text {
    color: #0ff !important;
    text-shadow: 0 0 3px #0ff;
}

body.theme-neon .drag-indicator {
    background: rgba(0, 255, 255, 0.2) !important;
    border: 6px dashed #0ff !important;
    backdrop-filter: blur(20px);
}

body.theme-neon .drag-indicator .container {
    background: #111 !important;
    border: 4px solid #0ff !important;
    color: #0ff !important;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6), 0 25px 70px rgba(0, 0, 0, 0.7);
    text-shadow: 0 0 10px #0ff;
}

body.theme-neon .drag-indicator .title {
    color: #0ff !important;
    text-shadow: 0 0 5px #0ff !important;
}

body.theme-neon .drag-indicator .quick-btn.public {
    background: linear-gradient(45deg, #0ff, #0080ff) !important;
    color: black !important;
    font-weight: bold;
    border: 1px solid #0ff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

body.theme-neon .drag-indicator .quick-btn.private {
    background: linear-gradient(45deg, #f0f, #ff0080) !important;
    color: black !important;
    font-weight: bold;
    border: 1px solid #f0f !important;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.5) !important;
}

body.theme-neon .drag-indicator .quick-btn.cancel {
    background: linear-gradient(45deg, #666, #333) !important;
    color: #0ff !important;
    border: 1px solid #0ff !important;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5) !important;
}

/* Хэллоуин тема */
body.theme-halloween .upload-modal-content {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.98), rgba(74, 20, 140, 0.98)) !important;
    color: #ff9800 !important;
    border: 3px solid #ff5722 !important;
    box-shadow: 0 15px 50px rgba(255, 87, 34, 0.4), 0 0 30px rgba(255, 152, 0, 0.3);
}

body.theme-halloween .upload-modal-header {
    background: linear-gradient(135deg, #7b1fa2, #ff5722) !important;
    color: white !important;
    border-bottom: 3px solid #ff9800 !important;
}

body.theme-halloween .close-upload-modal:hover {
    background: rgba(255, 152, 0, 0.2) !important;
}

body.theme-halloween .upload-drop-area {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.8), rgba(74, 20, 140, 0.8)) !important;
    border: 3px dashed #ff9800 !important;
    color: #ff9800 !important;
}

body.theme-halloween .upload-drop-area.highlight {
    border-color: #ff5722 !important;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(43, 0, 62, 0.8)) !important;
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.5), 0 0 40px rgba(255, 152, 0, 0.3);
}

body.theme-halloween .upload-file-list {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.8), rgba(74, 20, 140, 0.8)) !important;
    border: 1px solid #ff5722 !important;
}

body.theme-halloween .upload-file-item {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(123, 31, 162, 0.2)) !important;
    border-bottom: 1px solid #ff9800 !important;
    color: #ff9800 !important;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.3);
}

body.theme-halloween .upload-file-item .size {
    color: #ff9800 !important;
    opacity: 0.8;
}

body.theme-halloween .upload-file-item .remove:hover {
    background: rgba(255, 87, 34, 0.3) !important;
}

body.theme-halloween .upload-storage-select label {
    color: #ff9800 !important;
    text-shadow: 0 0 5px rgba(255, 152, 0, 0.5);
}

body.theme-halloween .storage-option {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.8), rgba(74, 20, 140, 0.8)) !important;
    border: 2px solid #ff9800 !important;
    color: #ff9800 !important;
}

body.theme-halloween .storage-option:hover {
    border-color: #ff5722 !important;
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(43, 0, 62, 0.8)) !important;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.4), 0 0 30px rgba(255, 152, 0, 0.3);
}

body.theme-halloween .storage-option.selected {
    border-color: #7b1fa2 !important;
    background: linear-gradient(135deg, rgba(123, 31, 162, 0.3), rgba(43, 0, 62, 0.8)) !important;
    box-shadow: 0 0 25px rgba(123, 31, 162, 0.5), 0 0 35px rgba(255, 152, 0, 0.3);
}

body.theme-halloween .storage-option .description {
    color: #ff9800 !important;
    opacity: 0.8;
}

body.theme-halloween .upload-actions .upload-btn {
    background: linear-gradient(135deg, #7b1fa2, #ff5722) !important;
    border-color: #ff5722 !important;
    color: white !important;
    font-weight: bold;
}

body.theme-halloween .upload-actions .upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8e24aa, #ff6e40) !important;
    border-color: #ff6e40 !important;
    box-shadow: 0 0 25px rgba(255, 87, 34, 0.6);
}

body.theme-halloween .upload-actions .cancel-btn {
    background: linear-gradient(135deg, #ff9800, #ff5722) !important;
    border-color: #ff9800 !important;
    color: black !important;
    font-weight: bold;
}

body.theme-halloween .upload-actions .cancel-btn:hover {
    background: linear-gradient(135deg, #ffb74d, #ff8a65) !important;
    border-color: #ffb74d !important;
    box-shadow: 0 0 25px rgba(255, 152, 0, 0.6);
}

body.theme-halloween .progress-bar {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.8), rgba(74, 20, 140, 0.8)) !important;
    border-color: #ff9800 !important;
}

body.theme-halloween .progress-fill {
    background: linear-gradient(90deg, #ff9800, #ff5722) !important;
}

body.theme-halloween .progress-text {
    color: #ff9800 !important;
    text-shadow: 0 0 3px rgba(255, 152, 0, 0.5);
}

body.theme-halloween .drag-indicator {
    background: rgba(255, 152, 0, 0.2) !important;
    border: 6px dashed #ff9800 !important;
    backdrop-filter: blur(15px);
}

body.theme-halloween .drag-indicator .container {
    background: linear-gradient(135deg, rgba(43, 0, 62, 0.95), rgba(74, 20, 140, 0.95)) !important;
    border: 4px solid #ff5722 !important;
    color: #ff9800 !important;
    box-shadow: 0 25px 70px rgba(255, 87, 34, 0.4), 0 0 40px rgba(255, 152, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
}

body.theme-halloween .drag-indicator .title {
    color: #ff9800 !important;
    text-shadow: 0 0 3px #ff5722 !important;
}

body.theme-halloween .drag-indicator .quick-btn.public {
    background: linear-gradient(135deg, #7b1fa2, #ff5722) !important;
    color: white !important;
    border: 2px solid #ff9800 !important;
}

body.theme-halloween .drag-indicator .quick-btn.private {
    background: linear-gradient(135deg, #ff9800, #ff5722) !important;
    color: black !important;
    border: 2px solid #7b1fa2 !important;
}

body.theme-halloween .drag-indicator .quick-btn.cancel {
    background: linear-gradient(135deg, #616161, #424242) !important;
    color: #ff9800 !important;
    border: 2px solid #ff5722 !important;
}

/* Новогодняя тема (полная) */
body.theme-christmas .upload-modal-content {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.98), rgba(10, 61, 47, 0.98)) !important;
    color: #ffeb3b !important;
    border: 4px solid #4caf50 !important;
    box-shadow: 0 15px 50px rgba(76, 175, 80, 0.4), 0 0 30px rgba(255, 235, 59, 0.3);
}

body.theme-christmas .upload-modal-header {
    background: linear-gradient(135deg, #d32f2f, #c62828) !important;
    color: white !important;
    border-bottom: 3px solid #ffeb3b !important;
}

body.theme-christmas .close-upload-modal:hover {
    background: rgba(255, 235, 59, 0.2) !important;
}

body.theme-christmas .upload-drop-area {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.8), rgba(10, 61, 47, 0.8)) !important;
    border: 3px dashed #ff5722 !important;
    color: #ffeb3b !important;
}

body.theme-christmas .upload-drop-area.highlight {
    border-color: #4caf50 !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(13, 71, 54, 0.8)) !important;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.5), 0 0 40px rgba(255, 235, 59, 0.3);
}

body.theme-christmas .upload-file-list {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.8), rgba(10, 61, 47, 0.8)) !important;
    border: 1px solid #ff5722 !important;
}

body.theme-christmas .upload-file-item {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(198, 40, 40, 0.2)) !important;
    border-bottom: 1px solid #ff5722 !important;
    color: #ffeb3b !important;
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

body.theme-christmas .upload-file-item .size {
    color: #ffeb3b !important;
    opacity: 0.8;
}

body.theme-christmas .upload-file-item .remove:hover {
    background: rgba(255, 87, 34, 0.3) !important;
}

body.theme-christmas .upload-storage-select label {
    color: #ffeb3b !important;
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.5);
}

body.theme-christmas .storage-option {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.8), rgba(10, 61, 47, 0.8)) !important;
    border: 2px solid #ff5722 !important;
    color: #ffeb3b !important;
}

body.theme-christmas .storage-option:hover {
    border-color: #4caf50 !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(13, 71, 54, 0.8)) !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4), 0 0 30px rgba(255, 235, 59, 0.3);
}

body.theme-christmas .storage-option.selected {
    border-color: #ffeb3b !important;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), rgba(255, 87, 34, 0.3)) !important;
    box-shadow: 0 0 25px rgba(255, 235, 59, 0.5), 0 0 35px rgba(255, 87, 34, 0.3);
}

body.theme-christmas .storage-option .description {
    color: #ffeb3b !important;
    opacity: 0.8;
}

body.theme-christmas .upload-actions .upload-btn {
    background: linear-gradient(135deg, #d32f2f, #c62828) !important;
    border-color: #ff5722 !important;
    color: white !important;
    font-weight: bold;
}

body.theme-christmas .upload-actions .upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #f44336, #e53935) !important;
    border-color: #f44336 !important;
    box-shadow: 0 0 25px rgba(244, 67, 54, 0.6);
}

body.theme-christmas .upload-actions .cancel-btn {
    background: linear-gradient(135deg, #4caf50, #2e7d32) !important;
    border-color: #4caf50 !important;
    color: white !important;
    font-weight: bold;
}

body.theme-christmas .upload-actions .cancel-btn:hover {
    background: linear-gradient(135deg, #66bb6a, #388e3c) !important;
    border-color: #66bb6a !important;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.6);
}

body.theme-christmas .progress-bar {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.8), rgba(10, 61, 47, 0.8)) !important;
    border-color: #ff5722 !important;
}

body.theme-christmas .progress-fill {
    background: linear-gradient(90deg, #ff5722, #4caf50) !important;
}

body.theme-christmas .progress-text {
    color: #ffeb3b !important;
    text-shadow: 0 0 3px rgba(255, 87, 34, 0.5);
}

body.theme-christmas .drag-indicator {
    background: rgba(255, 87, 34, 0.2) !important;
    border: 6px dashed #ff5722 !important;
    backdrop-filter: blur(15px);
}

body.theme-christmas .drag-indicator .container {
    background: linear-gradient(135deg, rgba(13, 71, 54, 0.95), rgba(10, 61, 47, 0.95)) !important;
    border: 4px solid #4caf50 !important;
    color: #ffeb3b !important;
    box-shadow: 0 25px 70px rgba(76, 175, 80, 0.4), 0 0 40px rgba(255, 235, 59, 0.4);
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

body.theme-christmas .drag-indicator .title {
    color: #ffeb3b !important;
    text-shadow: 0 0 5px rgba(255, 87, 34, 0.8) !important;
}

body.theme-christmas .drag-indicator .quick-btn.public {
    background: linear-gradient(135deg, #d32f2f, #c62828) !important;
    color: white !important;
    border: 2px solid #ffeb3b !important;
}

body.theme-christmas .drag-indicator .quick-btn.private {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    color: white !important;
    border: 2px solid #ffeb3b !important;
}

body.theme-christmas .drag-indicator .quick-btn.cancel {
    background: linear-gradient(135deg, #757575, #616161) !important;
    color: #ffeb3b !important;
    border: 2px solid #ffeb3b !important;
}

/* Упрощенная новогодняя тема */
body.theme-christmas-simple .upload-modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    border: 3px solid #c62828 !important;
    color: #1b5e20 !important;
    box-shadow: 0 10px 40px rgba(198, 40, 40, 0.3) !important;
}

body.theme-christmas-simple .upload-modal-header {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    color: white !important;
    border-bottom: 3px solid #ff9800 !important;
}

body.theme-christmas-simple .close-upload-modal:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

body.theme-christmas-simple .upload-drop-area {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    border: 3px dashed #c62828 !important;
    color: #1b5e20 !important;
}

body.theme-christmas-simple .upload-drop-area.highlight {
    border-color: #4caf50 !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(255, 255, 255, 0.95)) !important;
}

body.theme-christmas-simple .upload-file-list {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    border: 2px solid #c62828 !important;
}

body.theme-christmas-simple .upload-file-item {
    background: linear-gradient(135deg, rgba(255, 224, 130, 0.9), rgba(255, 238, 88, 0.9)) !important;
    border-bottom: 1px solid #ff9800 !important;
    color: #1b5e20 !important;
}

body.theme-christmas-simple .upload-file-item .size {
    color: #1b5e20 !important;
    opacity: 0.8;
}

body.theme-christmas-simple .upload-file-item .remove:hover {
    background: rgba(198, 40, 40, 0.2) !important;
}

body.theme-christmas-simple .upload-storage-select label {
    color: #1b5e20 !important;
    font-weight: bold;
}

body.theme-christmas-simple .storage-option {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.9)) !important;
    border: 2px solid #c62828 !important;
    color: #1b5e20 !important;
}

body.theme-christmas-simple .storage-option:hover {
    border-color: #4caf50 !important;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(255, 255, 255, 0.95)) !important;
}

body.theme-christmas-simple .storage-option.selected {
    border-color: #4caf50 !important;
    background: linear-gradient(135deg, rgba(198, 40, 40, 0.2), rgba(33, 150, 243, 0.2)) !important;
}

body.theme-christmas-simple .storage-option .description {
    color: #1b5e20 !important;
    opacity: 0.8;
}

body.theme-christmas-simple .upload-actions .upload-btn {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    border-color: #c62828 !important;
    color: white !important;
    font-weight: bold;
}

body.theme-christmas-simple .upload-actions .upload-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #b71c1c, #d32f2f) !important;
    border-color: #b71c1c !important;
    box-shadow: 0 0 20px rgba(198, 40, 40, 0.4);
}

body.theme-christmas-simple .upload-actions .cancel-btn {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
    border-color: #6c757d !important;
    color: white !important;
    font-weight: bold;
}

body.theme-christmas-simple .upload-actions .cancel-btn:hover {
    background: linear-gradient(135deg, #5a6268, #343a40) !important;
    border-color: #5a6268 !important;
    box-shadow: 0 0 20px rgba(108, 117, 125, 0.4);
}

body.theme-christmas-simple .progress-bar {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 248, 255, 0.9)) !important;
    border: 1px solid #c62828 !important;
}

body.theme-christmas-simple .progress-fill {
    background: linear-gradient(90deg, #c62828, #4caf50) !important;
}

body.theme-christmas-simple .progress-text {
    color: #1b5e20 !important;
    font-weight: bold;
}

body.theme-christmas-simple .drag-indicator {
    background: rgba(198, 40, 40, 0.1) !important;
    border: 6px dashed #c62828 !important;
    backdrop-filter: blur(15px);
}

body.theme-christmas-simple .drag-indicator .container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    border: 4px solid #c62828 !important;
    color: #1b5e20 !important;
}

body.theme-christmas-simple .drag-indicator .title {
    color: #c62828 !important;
    font-weight: bold;
}

body.theme-christmas-simple .drag-indicator .quick-btn.public {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    color: white !important;
    border: 2px solid #ff9800 !important;
}

body.theme-christmas-simple .drag-indicator .quick-btn.private {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    color: white !important;
    border: 2px solid #4caf50 !important;
}

body.theme-christmas-simple .drag-indicator .quick-btn.cancel {
    background: linear-gradient(135deg, #757575, #616161) !important;
    color: white !important;
    border: 2px solid #c62828 !important;
}

/* Мобильная версия для модального окна */
@media (max-width: 768px) {
    .upload-modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px !important;
    }
    
    .upload-drop-area {
        padding: 30px 15px !important;
    }
    
    .upload-drop-area .icon {
        font-size: 36px !important;
    }
    
    .upload-drop-area p {
        font-size: 14px !important;
    }
    
    .storage-option {
        padding: 10px 12px !important;
    }
    
    .storage-option .icon {
        font-size: 20px !important;
        margin-right: 8px !important;
    }
    
    .upload-actions {
        flex-direction: column !important;
    }
    
    .upload-actions button {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .drag-indicator .container {
        width: 95% !important;
        padding: 20px 15px !important;
    }
    
    .drag-indicator .icon {
        font-size: 48px !important;
        margin-bottom: 15px !important;
    }
    
    .drag-indicator .title {
        font-size: 20px !important;
    }
    
    .drag-indicator .subtitle {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .drag-indicator .quick-buttons {
        gap: 10px !important;
    }
    
    .drag-indicator .quick-btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

/* Стили для удаления файлов через AJAX */
.delete-btn {
    margin-top: 10px;
    background: #dc3545 !important;
}

.delete-btn:hover {
    background: #c82333 !important;
}

.file-item {
    transition: all 0.3s ease;
}

/* Анимация для добавления новых файлов */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-item.new-file {
    animation: fadeIn 0.5s ease forwards;
}

/* Сообщение об успешной загрузке */
.upload-success-message {
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================== */
/* ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ЧАТА В РЕАЛЬНОМ ВРЕМЕНИ */
/* =========================================== */

/* Кнопка чата в реальном времени - ПЕРЕМЕЩЕНА ВЛЕВО */
.live-chat-btn {
    position: fixed;
    left: 20px !important;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #007bff, #00bfff);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 9998;
    transition: all 0.3s ease;
}

.live-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.live-chat-btn .pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Виджет чата - ПЕРЕМЕЩЕН ВЛЕВО */
.live-chat-widget {
    position: fixed;
    left: 20px !important;
    bottom: 90px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
    z-index: 9997;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.live-chat-widget.show {
    display: flex;
}

/* Заголовок чата */
.chat-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.close-chat {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Кнопки управления чатом для администраторов */
.chat-controls {
    display: flex;
    gap: 5px;
    margin-left: 10px;
}

.chat-control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: background 0.3s;
}

.chat-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-control-btn.clear {
    background: rgba(220, 53, 69, 0.5);
}

.chat-control-btn.clear:hover {
    background: rgba(220, 53, 69, 0.7);
}

.chat-control-btn.disable {
    background: rgba(108, 117, 125, 0.5);
}

.chat-control-btn.disable:hover {
    background: rgba(108, 117, 125, 0.7);
}

/* Область сообщений */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Сообщения с разными цветами */
.chat-message {
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    animation: fadeInMessage 0.3s ease;
}

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мои сообщения - СПРАВА */
.chat-message.own-message {
    margin-left: auto;
    margin-right: 0;
    border-bottom-right-radius: 5px;
    background-color: #007bff !important;
    color: white !important;
}

/* Сообщения других пользователей - СЛЕВА */
.chat-message.other-message {
    margin-right: auto;
    margin-left: 0;
    border-bottom-left-radius: 5px;
}

/* Разные цвета для сообщений */
.chat-message.user.other-message {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #333;
}

.chat-message.admin.other-message {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.chat-message.guest.other-message {
    background: linear-gradient(135deg, #4ECDC4, #3db8b0);
    color: white;
}

/* Системные сообщения */
.chat-message.system {
    background: #6c757d !important;
    color: white !important;
    margin: 5px auto !important;
    text-align: center;
    max-width: 90%;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 10px;
}

/* Элементы сообщения */
.chat-message .message-sender {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 12px;
    opacity: 0.9;
}

.chat-message .message-text {
    margin-bottom: 4px;
}

.chat-message .message-time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
}

.chat-message.own-message .message-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.8);
}

.chat-message.other-message .message-time {
    text-align: left;
    color: rgba(0, 0, 0, 0.6);
}

.chat-message.system .message-time {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* Индикатор печатания */
.typing-indicator {
    padding: 5px 15px;
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
    display: none;
    flex-shrink: 0;
}

.typing-indicator.show {
    display: block;
}

/* Поле ввода */
.chat-input {
    padding: 15px;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    background: white;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #dee2e6;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.chat-input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.chat-input button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 90px;
    white-space: nowrap;
}

.chat-input button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.chat-input button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* Полоса прокрутки */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* =========================================== */
/* ТЕМЫ ДЛЯ ЧАТА */
/* =========================================== */

/* Темная тема */
body.theme-dark .live-chat-widget {
    background: #1e1e1e !important;
    color: #e0e0e0 !important;
    border-color: #374151 !important;
}

body.theme-dark .chat-header {
    background: #2d3748 !important;
}

body.theme-dark .chat-messages {
    background: #2d3748 !important;
}

body.theme-dark .chat-message.user.other-message {
    background: linear-gradient(135deg, #4a5568, #2d3748) !important;
    color: #e2e8f0 !important;
}

body.theme-dark .chat-message.system {
    background: #4a5568 !important;
}

body.theme-dark .chat-input {
    border-color: #4a5568 !important;
    background: #1e1e1e !important;
}

body.theme-dark .chat-input input {
    background: #374151 !important;
    border-color: #4a5568 !important;
    color: #e2e8f0 !important;
}

body.theme-dark .chat-input button {
    background: #2b6cb0 !important;
}

/* Неоновая тема */
body.theme-neon .live-chat-widget {
    background: #111 !important;
    border: 1px solid #0ff !important;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

body.theme-neon .chat-header {
    background: linear-gradient(45deg, #0ff, #0080ff) !important;
    color: black !important;
}

body.theme-neon .chat-messages {
    background: #111 !important;
}

body.theme-neon .chat-message.own-message {
    background: linear-gradient(45deg, #0ff, #0080ff) !important;
    color: black !important;
}

body.theme-neon .chat-message.user.other-message {
    background: linear-gradient(45deg, #008080, #006666) !important;
    color: #0ff !important;
}

body.theme-neon .chat-message.system {
    background: #008080 !important;
    color: #0ff !important;
}

body.theme-neon .chat-input {
    background: #111 !important;
    border-top-color: #0ff !important;
}

body.theme-neon .chat-input input {
    background: #111 !important;
    border-color: #0ff !important;
    color: #0ff !important;
}

body.theme-neon .chat-input button {
    background: linear-gradient(45deg, #0ff, #0080ff) !important;
    color: black !important;
}

/* Новогодняя тема */
body.theme-christmas .live-chat-btn {
    background: linear-gradient(45deg, #d32f2f, #c62828) !important;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

body.theme-christmas .live-chat-btn .pulse {
    background: rgba(211, 47, 47, 0.3) !important;
}

body.theme-christmas .chat-header {
    background: linear-gradient(45deg, #d32f2f, #c62828) !important;
}

body.theme-christmas .chat-message.own-message {
    background: linear-gradient(45deg, #d32f2f, #c62828) !important;
}

body.theme-christmas .chat-message.user.other-message {
    background: linear-gradient(45deg, #2e7d32, #1b5e20) !important;
    color: white !important;
}

body.theme-christmas .chat-message.guest.other-message {
    background: linear-gradient(45deg, #ff9800, #f57c00) !important;
    color: white !important;
}

/* Упрощенная новогодняя тема */
body.theme-christmas-simple .live-chat-btn {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

body.theme-christmas-simple .live-chat-btn .pulse {
    background: rgba(198, 40, 40, 0.3) !important;
}

body.theme-christmas-simple .live-chat-widget {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95)) !important;
    border: 3px solid #c62828 !important;
    box-shadow: 0 5px 25px rgba(198, 40, 40, 0.2) !important;
}

body.theme-christmas-simple .chat-header {
    background: linear-gradient(135deg, #c62828, #e53935) !important;
}

body.theme-christmas-simple .chat-message.own-message {
    background: linear-gradient(135deg, #1976d2, #2196f3) !important;
    color: white !important;
}

body.theme-christmas-simple .chat-message.user.other-message {
    background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
    color: white !important;
}

body.theme-christmas-simple .chat-message.guest.other-message {
    background: linear-gradient(135deg, #ff9800, #ffb74d) !important;
    color: #333 !important;
}

/* Хэллоуинская тема */
body.theme-halloween .live-chat-btn {
    background: linear-gradient(45deg, #7b1fa2, #ff5722) !important;
    box-shadow: 0 4px 15px rgba(123, 31, 162, 0.3);
}

body.theme-halloween .live-chat-btn .pulse {
    background: rgba(123, 31, 162, 0.3) !important;
}

body.theme-halloween .chat-header {
    background: linear-gradient(45deg, #7b1fa2, #ff5722) !important;
}

body.theme-halloween .chat-message.own-message {
    background: linear-gradient(45deg, #ff5722, #ff6e40) !important;
}

body.theme-halloween .chat-message.user.other-message {
    background: linear-gradient(45deg, #7b1fa2, #8e24aa) !important;
    color: white !important;
}

/* Мобильная версия чата */
@media (max-width: 768px) {
    .live-chat-widget {
        left: 10px !important;
        right: 10px !important;
        bottom: 80px;
        width: auto;
        height: 400px;
        max-height: 60vh;
    }
    
    .live-chat-btn {
        left: 15px !important;
        bottom: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .chat-input {
        padding: 12px;
    }
    
    .chat-input button {
        padding: 10px 15px;
        min-width: 80px;
    }
    
    .chat-input input {
        padding: 8px 12px;
    }
    
    .chat-message {
        max-width: 90%;
        font-size: 13px;
    }
    
    .chat-controls {
        margin-left: 5px;
    }
    
    .chat-control-btn {
        font-size: 10px;
        padding: 4px 6px;
    }
}