body {
    font-family: Arial, sans-serif;
    margin: 20px;
    transition: all 0.3s ease;
}

input[type="text"] {
    width: 300px;
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

select {
    padding: 10px;
    font-size: 16px;
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Светлая тема (по умолчанию) */
body.light-theme {
    background-color: #ffffff;
    color: #000000;
}
body.light-theme td.color-cell {
    width: 50px;
    height: 20px;
    border: 1px solid #404040;
}

body.light-theme .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%; /* Скругленный квадрат */
    border: 1px solid #404040;
    vertical-align: middle;
}

/* Стили скроллбара для светлой темы */
body.light-theme .history-container::-webkit-scrollbar {
    height: 8px;
    margin-top: 10px; /* Отступ сверху */
}

body.light-theme .history-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.light-theme .history-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.light-theme .history-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
    margin-top: 10px; /* Отступ сверху */
}

/* Темная тема */
body.dark-theme {
    background-color: #1a1a1a;
    color: #ffffff;
}

body.dark-theme button {
    background-color: #404040;
    color: #ffffff;
}

body.dark-theme input[type="text"],
body.dark-theme select {
    background-color: #333333;
    color: #ffffff;
    border: 1px solid #404040;
}

body.dark-theme table {
    border-color: #404040;
}

body.dark-theme th,
body.dark-theme td {
    border: 1px solid #404040;
}
body.dark-theme td.color-cell {
    width: 50px;
    height: 20px;
    border: 1px solid #404040;
}

body.dark-theme .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%; /* Скругленный квадрат */
    border: 1px solid #404040;
    vertical-align: middle;
}

/* Стили скроллбара для темной темы */
body.dark-theme .history-container::-webkit-scrollbar {
    height: 8px;
    margin-top: 10px; /* Отступ сверху */
}

body.dark-theme .history-container::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.dark-theme .history-container::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.dark-theme .history-container::-webkit-scrollbar-thumb:hover {
    background: #555;
    margin-top: 10px; /* Отступ сверху */
}

/* Вода тема */
body.drinwater-theme {
    background: url('https://media1.tenor.com/m/Wcy8Vzlv6EYAAAAd/drinwater.gif') center center fixed;
    background-size: cover;
    color: #ffffff;
}

body.drinwater-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
}

body.drinwater-theme button {
    background-color: rgba(0, 123, 255, 0.7);
    color: #ffffff;
    border: 1px solid #ffffff;
    backdrop-filter: blur(5px);
}

body.drinwater-theme input[type="text"],
body.drinwater-theme select {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid #ffffff;
    backdrop-filter: blur(5px);
}

body.drinwater-theme table {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

body.drinwater-theme .history-tag {
    background-color: rgba(0, 123, 255, 0.7);
    backdrop-filter: blur(5px);
}
body.drinwater-theme td.color-cell {
    width: 50px;
    height: 20px;
    border: 1px solid #404040;
}

body.drinwater-theme   .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%; /* Скругленный квадрат */
    border: 1px solid #404040;
    vertical-align: middle;
}

/* Стили скроллбара для водной темы */
body.drinwater-theme .history-container::-webkit-scrollbar {
    height: 8px;
    margin-top: 10px; /* Отступ сверху */
}

body.drinwater-theme .history-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.drinwater-theme .history-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.drinwater-theme .history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    margin-top: 10px; /* Отступ сверху */
}

/* Цвета тема */
body.colors-theme {
    background: url('https://media1.tenor.com/m/nCyMiWA0UGgAAAAd/color-shape.gif') center center fixed;
    background-size: cover;
    color: #ffffff;
}

body.colors-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

body.colors-theme button {
    background-color: rgba(0, 123, 255, 0.5);
    color: #ffffff;
    border: 1px solid #ffffff;
    backdrop-filter: blur(5px);
}

body.colors-theme input[type="text"],
body.colors-theme select {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff;
    border: 1px solid #ffffff;
    backdrop-filter: blur(5px);
}

body.colors-theme table {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

body.colors-theme .history-tag {
    background-color: rgba(0, 123, 255, 0.5);
    backdrop-filter: blur(5px);
}
body.colors-theme td.color-cell {
    width: 50px;
    height: 20px;
    border: 1px solid #404040;
}

body.colors-theme .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%; /* Скругленный квадрат */
    border: 1px solid #404040;
    vertical-align: middle;
}

/* Стили скроллбара для цветной темы */
body.colors-theme .history-container::-webkit-scrollbar {
    height: 8px;
    margin-top: 10px; /* Отступ сверху */
}

body.colors-theme .history-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.colors-theme .history-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.colors-theme .history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    margin-top: 10px; /* Отступ сверху */
}

/* Космическая тема */
body.cosmic-theme {
    background: url('https://media1.tenor.com/m/BoArEsoXY5EAAAAd/color.gif') center center fixed;
    background-size: cover;
    color: #ffffff;
}

body.cosmic-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

body.cosmic-theme button {
    background-color: rgba(0, 123, 255, 0.7);
    color: #ffffff;
    border: 1px solid #ffffff;
    backdrop-filter: blur(5px);
}

body.cosmic-theme input[type="text"],
body.cosmic-theme select {
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: 1px solid #ffffff;
    backdrop-filter: blur(5px);
}

body.cosmic-theme table {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

body.cosmic-theme .history-tag {
    background-color: rgba(0, 123, 255, 0.7);
    backdrop-filter: blur(5px);
}
body.cosmic-theme td.color-cell {
    width: 50px;
    height: 20px;
    border: 1px solid #404040;
}

body.cosmic-theme .color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%; /* Скругленный квадрат */
    border: 1px solid #404040;
    vertical-align: middle;
}

/* Стили скроллбара для космической темы */
body.cosmic-theme .history-container::-webkit-scrollbar {
    height: 8px;
    margin-top: 10px; /* Отступ сверху */
}

body.cosmic-theme .history-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.cosmic-theme .history-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-top: 10px; /* Отступ сверху */
}

body.cosmic-theme .history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    margin-top: 10px; /* Отступ сверху */
}

button {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 20px; /* Округлые кнопки */
    transition: background-color 0.3s;
}

/* Стили для кнопки Clear History */
.header-buttons button {
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

/* Стили для всех кнопок при наведении */
button:hover {
    background-color: #0056b3;
}

/* Стили для кнопки копирования */
.copy-button {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    padding: 4px;
    font-size: 18px;
    box-sizing: border-box;
    background-color: #28a745;
    color: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.copy-button:hover {
    background-color: #218838;
}

.result {
    margin-top: 20px;
    font-size: 18px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.history-container {
    margin-top: 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 10px;
    padding-bottom: 5px;
}

.history-tag {
    display: inline-block;
    padding: 8px 12px;
    margin-right: 10px;
    background-color: #007BFF;
    color: white;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.history-tag:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    text-align: left;
    white-space: pre-line; /* Важное свойство для обработки \n */
    word-break: break-word; /* Дополнительно: разбиение длинных слов */
}



td.color-cell {
    width: 50px;
    height: 20px;
    border: 1px solid #000;
}

.color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border-radius: 50%; /* Скругленный квадрат */
    border: 1px solid #000;
    vertical-align: middle;
}

.about-button {
    height: 42px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

#colorTable {
    flex: 1 0 88%; /* Основная таблица занимает 80% пространства */
}

/* Стили для таблицы копирования */
#copyTable {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    table-layout: fixed;
    overflow-x: hidden;
}

#copyTable tr {
    /* height: 48px; убрано */
}

#copyTable th, #copyTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px;
    width: 80px;
    max-width: 80px;
    font-size: 16px;
    height: 100%;
    vertical-align: middle;
    box-sizing: border-box;
}

.copy-button, .armor-type-select {
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Стили для кнопок копирования */
.armor-type-select {
    width: 50px;
    padding: 4px;
    margin-right: 5px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background-color: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: inline-block;
    vertical-align: middle;
}

.armor-type-select option {
    text-align: center;
    padding: 4px;
}

.copy-button {
    width: 50px;
    /*height: 50px;*/
    padding: 4px;
    background-color: #28a745;
    color: white;
    border: 1px solid var(--border-color);
    border-radius: 20%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

.copy-button:hover {
    background-color: #218838;
}

/* Стили для ячейки с кнопками копирования */
#copyTable td {
    text-align: center;
    padding: 5px;
    white-space: nowrap;
}

#copyTable td > * {
    display: inline-block;
    vertical-align: middle;
}

/* Стили для модального окна */
.settings-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.settings-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Стили для вкладок настроек */
.settings-tabs {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

.tab-button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    padding: 10px 15px;
    cursor: pointer;
    position: relative;
    margin-right: 5px;
    border-radius: 5px 5px 0 0;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.05);
}

.tab-button.active {
    background: #fff;
    opacity: 1;
    font-weight: bold;
    padding-bottom: 11px;
    margin-bottom: -1px;
    z-index: 1;
    color: #007BFF;
}

.tab-button.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #007BFF;
}

.tab-button:hover:not(.active) {
    background: #e9e9e9;
}

/* Стили для вкладок в темной теме */
body.dark-theme .tab-button {
    background: #2d2d2d;
    border-color: #444;
    color: #ccc;
}

body.dark-theme .tab-button.active {
    background: #333;
    color: #38a0ff;
}

body.dark-theme .tab-button.active:after {
    background-color: #38a0ff;
}

body.dark-theme .tab-button:hover:not(.active) {
    background: #3d3d3d;
}

/* Стили для вкладок в космической теме */
body.cosmic-theme .tab-button,
body.drinwater-theme .tab-button,
body.colors-theme .tab-button {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
}

body.cosmic-theme .tab-button.active,
body.drinwater-theme .tab-button.active,
body.colors-theme .tab-button.active {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

body.cosmic-theme .tab-button.active:after,
body.drinwater-theme .tab-button.active:after,
body.colors-theme .tab-button.active:after {
    background-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.cosmic-theme .tab-button:hover:not(.active),
body.drinwater-theme .tab-button:hover:not(.active),
body.colors-theme .tab-button:hover:not(.active) {
    background: rgba(0, 0, 0, 0.4);
}

.settings-tab-content {
    padding: 10px 0;
}

/* Стили для сортируемого списка */
.sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
}

.sortable-item {
    position: relative;
    padding: 10px;
    margin: 5px 0;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.sortable-item:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    cursor: pointer;
}

.sortable-item.dragging {
    background-color: #e8f4fd;
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: grabbing;
    transform: scale(1.02);
    z-index: 10;
}

/* Стили для плейсхолдера сортировки */
.sortable-placeholder {
    height: 2px;
    background: #3498db;
    margin: 5px 0;
    transition: all 0.2s ease;
    border-radius: 2px;
    position: relative;
    animation: pulse 1.5s infinite;
}

.sortable-placeholder:before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    height: 10px;
    width: 100%;
    background: transparent;
}

/* Дополнительные стили для наглядности */
body.dark-theme .sortable-placeholder {
    background: #38a0ff;
    box-shadow: 0 0 5px rgba(56, 160, 255, 0.5);
}

body.cosmic-theme .sortable-placeholder,
body.drinwater-theme .sortable-placeholder,
body.colors-theme .sortable-placeholder {
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* Улучшим стили для захвата элемента */
.drag-handle {
    margin-right: 10px;
    font-size: 18px;
    color: #999;
    cursor: grab;
    padding: 0 10px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.drag-handle:hover {
    background: #eaeaea;
    color: #333;
}

.dragging .drag-handle {
    cursor: grabbing;
}

/* Пульсация для плейсхолдера */
@keyframes pulse {
    0% {
        opacity: 0.6;
        height: 2px;
    }
    50% {
        opacity: 1;
        height: 4px;
    }
    100% {
        opacity: 0.6;
        height: 2px;
    }
}

.field-name {
    flex-grow: 1;
    font-weight: 500;
}

/* Стили для подсказки о drag-and-drop */
.drag-hint {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 20px;
    background-color: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.hint-icon {
    font-size: 22px;
    margin-right: 12px;
}

.order-instructions {
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007BFF;
    border-radius: 4px;
    font-weight: 500;
}

/* Адаптация для разных тем */
body.dark-theme .sortable-item {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .sortable-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .drag-handle {
    color: #ccc;
    background-color: rgba(255, 255, 255, 0.08);
}

body.dark-theme .drag-handle:hover {
    background-color: rgba(0, 123, 255, 0.3);
    color: #fff;
}

body.dark-theme .sortable-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .drag-hint {
    background-color: rgba(255, 193, 7, 0.15);
}

body.dark-theme .order-instructions {
    background-color: rgba(0, 123, 255, 0.2);
}

body.cosmic-theme .sortable-item,
body.drinwater-theme .sortable-item,
body.colors-theme .sortable-item {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-color: rgba(255, 255, 255, 0.2);
}

body.cosmic-theme .sortable-item:hover,
body.drinwater-theme .sortable-item:hover,
body.colors-theme .sortable-item:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

body.cosmic-theme .order-instructions,
body.drinwater-theme .order-instructions,
body.colors-theme .order-instructions {
    background-color: rgba(0, 123, 255, 0.3);
    backdrop-filter: blur(5px);
}

.settings-footer {
    margin-top: 20px;
    text-align: right;
    padding: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.settings-footer button {
    padding: 8px 16px;
    margin-left: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-footer .reset-button {
    background-color: #f44336;
    color: white;
    border: none;
}

.settings-footer .reset-button:hover {
    background-color: #d32f2f;
}

body.dark-theme .settings-footer .reset-button {
    background-color: #b71c1c;
}

body.dark-theme .settings-footer .reset-button:hover {
    background-color: #d32f2f;
}

body.cosmic-theme .settings-footer .reset-button,
body.drinwater-theme .settings-footer .reset-button,
body.colors-theme .settings-footer .reset-button {
    background-color: rgba(244, 67, 54, 0.8);
    backdrop-filter: blur(5px);
}

body.cosmic-theme .settings-footer .reset-button:hover,
body.drinwater-theme .settings-footer .reset-button:hover,
body.colors-theme .settings-footer .reset-button:hover {
    background-color: rgba(211, 47, 47, 0.9);
}

/* Адаптация стилей модального окна в зависимости от темы */
body.light-theme .settings-modal {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

body.dark-theme .settings-modal {
    background-color: #222;
    color: #eee;
    border: 1px solid #444;
}

body.cosmic-theme .settings-modal {
    background-color: rgba(13, 12, 34, 0.85);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(128, 93, 248, 0.3);
    box-shadow: 0 0 25px rgba(128, 93, 248, 0.5);
}

body.drinwater-theme .settings-modal {
    background-color: rgba(0, 37, 61, 0.85);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 162, 255, 0.3);
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.4);
}

body.colors-theme .settings-modal {
    background-color: rgba(22, 22, 22, 0.85);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 128, 128, 0.3);
    box-shadow: 0 0 25px rgba(255, 128, 128, 0.4);
}

/* Улучшенные стили для чекбоксов */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}

label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
}

label:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

/* Стили для чекбоксов в разных темах */
body.dark-theme label:hover {
    background-color: rgba(56, 160, 255, 0.15);
}

body.cosmic-theme label,
body.drinwater-theme label,
body.colors-theme label {
    color: rgba(255, 255, 255, 0.9);
}

body.cosmic-theme label:hover,
body.drinwater-theme label:hover,
body.colors-theme label:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Иконка закрытия в разных темах */
.settings-modal .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-modal .close-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Заголовок модального окна */
.settings-modal h2 {
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

body.dark-theme .settings-modal h2 {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.cosmic-theme .settings-modal h2,
body.drinwater-theme .settings-modal h2,
body.colors-theme .settings-modal h2 {
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Стили для about.html и changelog.html */

/* Общие стили для контейнеров страниц */
.about-container,
.changelog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Стили для кнопки "Назад" */
.back-button {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.back-button:before {
    content: "←";
    margin-right: 10px;
    font-size: 18px;
}

.back-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Стили для заголовков */
.about-container h1,
.changelog-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #007BFF;
    position: relative;
    padding-bottom: 10px;
}

.about-container h1:after,
.changelog-container h1:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #007BFF, transparent);
    border-radius: 2px;
}

.about-container h2,
.changelog-container h2 {
    font-size: 1.8rem;
    margin: 30px 0 15px;
    color: #0056b3;
}

.about-container h3,
.changelog-container h3 {
    font-size: 1.4rem;
    margin: 25px 0 10px;
    color: #0069d9;
}

/* Стили для секций и карточек */
.about-section,
.changelog-entry {
    margin-bottom: 35px;
    padding: 25px;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 5px solid #007BFF;
    overflow: hidden;
}

.about-section:hover,
.changelog-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Анимация для секций при загрузке страницы */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-section,
.changelog-entry {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.about-section:nth-child(1),
.changelog-entry:nth-child(1) {
    animation-delay: 0.1s;
}

.about-section:nth-child(2),
.changelog-entry:nth-child(2) {
    animation-delay: 0.2s;
}

.about-section:nth-child(3),
.changelog-entry:nth-child(3) {
    animation-delay: 0.3s;
}

.about-section:nth-child(4),
.changelog-entry:nth-child(4) {
    animation-delay: 0.4s;
}

.about-section:nth-child(5),
.changelog-entry:nth-child(5) {
    animation-delay: 0.5s;
}

/* Специальные стили для секции GitHub */
.github-info {
    margin-top: 25px;
    padding: 20px;
    background-color: rgba(0, 123, 255, 0.05);
    border-radius: 10px;
    border-left: 5px solid #007BFF;
    position: relative;
    overflow: hidden;
}

.github-info:before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/25/25231.png');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    transform: rotate(15deg);
}

/* Стили для списков */
.feature-list {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
}

/* Стили для контактной информации */
.contact-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.contact-info img {
    width: 28px;
    height: 28px;
    filter: grayscale(0.5);
    transition: all 0.3s ease;
}

.contact-info:hover img {
    filter: grayscale(0);
    transform: scale(1.1);
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Стили для шагов туториала */
.tutorial-step {
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: rgba(0, 0, 0, 0.02);
    border-left: 4px solid #28a745;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tutorial-step:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateX(5px);
}

.tutorial-step h3 {
    margin-top: 0;
    color: #28a745;
}

/* Специальные стили для страницы changelog */
.changelog-date {
    font-weight: 600;
    color: #007BFF;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: inline-block;
    background-color: rgba(0, 123, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.changelog-content {
    margin-left: 0;
}

.changelog-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.changelog-content ul li {
    margin-bottom: 10px;
    position: relative;
}

.changelog-content ul li:before {
    content: "•";
    color: #007BFF;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.changelog-content ul ul {
    margin: 10px 0;
}

.commit-info {
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
    text-align: right;
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
}

/* Адаптация для темной темы */
body.dark-theme .about-container,
body.dark-theme .changelog-container {
    color: #e1e1e1;
}

body.dark-theme .about-section,
body.dark-theme .changelog-entry {
    background-color: rgba(40, 40, 40, 0.9);
    border-left-color: #1c90ff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-theme .about-container h1,
body.dark-theme .changelog-container h1,
body.dark-theme .about-container h2,
body.dark-theme .changelog-container h2,
body.dark-theme .about-container h3,
body.dark-theme .changelog-container h3 {
    color: #1c90ff;
}

body.dark-theme .github-info {
    background-color: rgba(28, 144, 255, 0.1);
}

body.dark-theme .contact-info {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .contact-info:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .tutorial-step {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .tutorial-step:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .changelog-date {
    background-color: rgba(28, 144, 255, 0.2);
}

body.dark-theme .commit-info {
    color: #aaa;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Адаптация для cosmic-theme, drinwater-theme и colors-theme */
body.cosmic-theme .about-section,
body.cosmic-theme .changelog-entry,
body.drinwater-theme .about-section,
body.drinwater-theme .changelog-entry,
body.colors-theme .about-section,
body.colors-theme .changelog-entry {
    background-color: rgba(15, 15, 25, 0.7);
    backdrop-filter: blur(10px);
    border-left-color: #38a0ff;
}

body.cosmic-theme .github-info,
body.drinwater-theme .github-info,
body.colors-theme .github-info {
    background-color: rgba(56, 160, 255, 0.15);
    backdrop-filter: blur(5px);
}

body.cosmic-theme .contact-info,
body.drinwater-theme .contact-info,
body.colors-theme .contact-info,
body.cosmic-theme .tutorial-step,
body.drinwater-theme .tutorial-step,
body.colors-theme .tutorial-step {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

body.cosmic-theme .changelog-date,
body.drinwater-theme .changelog-date,
body.colors-theme .changelog-date {
    background-color: rgba(56, 160, 255, 0.2);
}

/* Добавление стиля хедера и фильтр для фонового изображения */
body.cosmic-theme:before,
body.drinwater-theme:before,
body.colors-theme:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Адаптация под мобильные устройства */
@media (max-width: 768px) {
    .about-container,
    .changelog-container {
        padding: 15px;
    }
    
    .about-section,
    .changelog-entry {
        padding: 15px;
    }
    
    .about-container h1,
    .changelog-container h1 {
        font-size: 2rem;
    }
    
    .about-container h2,
    .changelog-container h2 {
        font-size: 1.5rem;
    }
    
    .feature-list li {
        padding-left: 25px;
    }
}

/* Стили для выбора языка на страницах about и changelog */
.changelog-header, .about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.language-select-container {
    position: relative;
}

/* Стили для селекторов языка и темы */
#languageSelect,
#themeSelect {
    padding: 8px 12px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 120px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

#languageSelect:hover,
#themeSelect:hover {
    border-color: #007BFF;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

#languageSelect:focus,
#themeSelect:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

#languageSelect option,
#themeSelect option {
    padding: 8px;
    background-color: white;
    color: #333;
    font-size: 14px;
}

/* Адаптации для темной темы */
body.dark-theme #languageSelect,
body.dark-theme #themeSelect {
    background-color: #333;
    color: white;
    border-color: #555;
}

body.dark-theme #languageSelect option,
body.dark-theme #themeSelect option {
    background-color: #333;
    color: white;
}

body.dark-theme #languageSelect:hover,
body.dark-theme #themeSelect:hover {
    border-color: #1c90ff;
}

body.dark-theme #languageSelect:focus,
body.dark-theme #themeSelect:focus {
    border-color: #1c90ff;
    box-shadow: 0 0 0 3px rgba(28, 144, 255, 0.2);
}

/* Адаптации для космической, водной и цветной тем */
body.cosmic-theme #languageSelect,
body.cosmic-theme #themeSelect,
body.drinwater-theme #languageSelect,
body.drinwater-theme #themeSelect,
body.colors-theme #languageSelect,
body.colors-theme #themeSelect {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

body.cosmic-theme #languageSelect option,
body.cosmic-theme #themeSelect option,
body.drinwater-theme #languageSelect option,
body.drinwater-theme #themeSelect option,
body.colors-theme #languageSelect option,
body.colors-theme #themeSelect option {
    background-color: rgba(15, 15, 25, 0.95);
    color: white;
    backdrop-filter: blur(5px);
}

body.cosmic-theme #languageSelect:hover,
body.cosmic-theme #themeSelect:hover,
body.drinwater-theme #languageSelect:hover,
body.drinwater-theme #themeSelect:hover,
body.colors-theme #languageSelect:hover,
body.colors-theme #themeSelect:hover {
    border-color: #38a0ff;
}

body.cosmic-theme #languageSelect:focus,
body.cosmic-theme #themeSelect:focus,
body.drinwater-theme #languageSelect:focus,
body.drinwater-theme #themeSelect:focus,
body.colors-theme #languageSelect:focus,
body.colors-theme #themeSelect:focus {
    border-color: #38a0ff;
    box-shadow: 0 0 0 3px rgba(56, 160, 255, 0.2);
}

/* Стили для анимированных цветных прямоугольников */
.color-rectangles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.color-rectangle {
    position: absolute;
    height: 100%;
    width: 0;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.color-rectangle.left {
    left: 0;
    top: 0;
    transform: translateX(-100%);
    clip-path: polygon(0% 0%, 100% 0%, 60% 100%, 0% 100%);
}

.color-rectangle.right {
    right: 0;
    top: 0;
    transform: translateX(100%);
    clip-path: polygon(40% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.color-rectangle.show-left {
    width: 50%;
    opacity: 1;
    transform: translateX(0);
}

.color-rectangle.show-right {
    width: 50%;
    opacity: 1;
    transform: translateX(0);
}

/* Медиазапрос для адаптивности на мобильных устройствах */
@media (max-width: 768px) {
    .color-rectangle.show-left,
    .color-rectangle.show-right {
        width: 50%;
    }
    
    .color-rectangle.left {
        clip-path: polygon(0% 0%, 100% 0%, 50% 100%, 0% 100%);
    }
    
    .color-rectangle.right {
        clip-path: polygon(50% 0%, 100% 0%, 100% 100%, 0% 100%);
    }
}

/* Добавление стилей для main-container */
.main-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* Стили для поисковой секции */
.search-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme .search-container {
    background-color: rgba(30, 30, 30, 0.9);
}

body.cosmic-theme .search-container,
body.drinwater-theme .search-container,
body.colors-theme .search-container {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Стили для секции истории */
.history-section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme .history-section {
    background-color: rgba(30, 30, 30, 0.9);
}

body.cosmic-theme .history-section,
body.drinwater-theme .history-section,
body.colors-theme .history-section {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Стили для секции таблицы */
.table-section {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body.dark-theme .table-section {
    background-color: rgba(30, 30, 30, 0.9);
}

body.cosmic-theme .table-section,
body.drinwater-theme .table-section,
body.colors-theme .table-section {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Стили для контейнера таблицы */
.table-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: stretch;
}

/* Стили для контейнера кнопок */
.button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Отдельные стили для кнопок поиска и поделиться */
#findButton, #shareButton {
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
    border-radius: 4px;
    height: 42px;
    box-sizing: border-box;
    border: none;
}

#findButton {
    background-color: #007BFF;
}

#findButton:hover {
    background-color: #0056b3;
}

#shareButton {
    background-color: #28a745;
}

#shareButton:hover {
    background-color: #218838;
}

.search-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: #45a049;
}

.share-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.share-button:hover {
    background-color: #0b7dda;
}

/* Адаптация для темной темы */
body.dark-theme .search-button {
    background-color: #388e3c;
}

body.dark-theme .search-button:hover {
    background-color: #2e7d32;
}

body.dark-theme .share-button {
    background-color: #1976d2;
}

body.dark-theme .share-button:hover {
    background-color: #1565c0;
}

/* Темные стили для кнопок Find и Share */
body.dark-theme #findButton {
    background-color: #1976d2;
    border-color: #165fa7;
}

body.dark-theme #findButton:hover {
    background-color: #1565c0;
}

body.dark-theme #shareButton {
    background-color: #388e3c;
    border-color: #2e7d32;
}

body.dark-theme #shareButton:hover {
    background-color: #2e7d32;
}

/* Стили для других тем */
body.cosmic-theme #findButton, 
body.drinwater-theme #findButton, 
body.colors-theme #findButton {
    background-color: rgba(76, 175, 80, 0.7);
    backdrop-filter: blur(5px);
}

body.cosmic-theme #findButton:hover, 
body.drinwater-theme #findButton:hover, 
body.colors-theme #findButton:hover {
    background-color: rgba(76, 175, 80, 0.9);
}

body.cosmic-theme #shareButton, 
body.drinwater-theme #shareButton, 
body.colors-theme #shareButton {
    background-color: rgba(33, 150, 243, 0.7);
    backdrop-filter: blur(5px);
}

body.cosmic-theme #shareButton:hover, 
body.drinwater-theme #shareButton:hover, 
body.colors-theme #shareButton:hover {
    background-color: rgba(33, 150, 243, 0.9);
}

/* Стили для заголовков секций */
.history-section h2,
.table-section h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.5em;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

body.dark-theme .history-section h2,
body.dark-theme .table-section h2 {
    color: #eee;
    border-bottom-color: #444;
}

body.cosmic-theme .history-section h2,
body.cosmic-theme .table-section h2,
body.drinwater-theme .history-section h2,
body.drinwater-theme .table-section h2,
body.colors-theme .history-section h2,
body.colors-theme .table-section h2 {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .main-container .color-input-group {
        flex-direction: column;
    }
    
    .table-container {
        flex-direction: column;
    }
    
    #copyTable {
        margin-top: 10px;
    }
    
    /* Медиа-запросы для страницы сравнения */
    .compare-container .color-input-group {
        flex-direction: column;
    }
}

/* Стиль для эффекта наведения в темной теме */
body.dark-theme .comparison-table tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

body.cosmic-theme .animation-toggle:hover,
body.drinwater-theme .animation-toggle:hover,
body.colors-theme .animation-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Стили для выпадающего списка */
select option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 4px;
    transition: background-color 0.2s;
}

select option:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

select option:checked {
    background-color: #007BFF;
    color: white;
}

/* Адаптация для темной темы */
body.dark-theme select option:checked {
    background-color: #1c90ff;
}

/* Адаптация для космической, водной и цветной тем */
body.cosmic-theme select option:checked,
body.drinwater-theme select option:checked,
body.colors-theme select option:checked {
    background-color: #38a0ff;
}

/* Дополнительные стили для страницы changelog */
.changelog-intro {
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.feature-badge, .bug-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 0.85em;
    font-weight: bold;
}

.feature-badge {
    background-color: #28a745;
    color: white;
}

.feature-badge.major {
    background-color: #007BFF;
}

.bug-badge {
    background-color: #dc3545;
    color: white;
}

.contributor-label {
    display: inline-block;
    padding: 2px 6px;
    background-color: #6c757d;
    color: white;
    border-radius: 4px;
    font-size: 0.8em;
    margin-left: 8px;
}

body.dark-theme .changelog-intro {
    background-color: rgba(28, 144, 255, 0.1);
}

body.cosmic-theme .changelog-intro,
body.drinwater-theme .changelog-intro,
body.colors-theme .changelog-intro {
    background-color: rgba(56, 160, 255, 0.15);
    backdrop-filter: blur(5px);
}

/* Color comparison page styles */
.compare-container {
    max-width: 900px;
    margin: 20px auto;
}

/* Переопределяем стиль для страницы сравнения */
.compare-container .color-input-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 15px;
}

.comparison-vs {
    font-size: 24px;
    font-weight: bold;
    margin: 0 20px;
    flex-shrink: 0;
}

.comparison-result {
    font-size: 24px;
    text-align: center;
    margin: 30px 0;
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
}

.comparison-table {
    width: 100%;
    margin-top: 30px;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.comparison-table th {
    background-color: rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

.comparison-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.comparison-table tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Темная тема для таблицы */
body.dark-theme .comparison-table {
    background-color: rgba(50, 50, 50, 0.9);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .comparison-table th {
    background-color: rgba(0, 0, 0, 0.2);
}

body.dark-theme .comparison-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-theme .comparison-table td,
body.dark-theme .comparison-table th {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Другие темы для таблицы */
body.cosmic-theme .comparison-table,
body.drinwater-theme .comparison-table,
body.colors-theme .comparison-table {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

/* Кнопка выключения анимации */
.animation-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    z-index: 10;
}

.animation-toggle:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.animation-toggle.active {
    background-color: rgba(0, 123, 255, 0.2);
    border-color: rgba(0, 123, 255, 0.5);
}
