body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #121212;
    margin: 0;
    padding: 30px;
    background-image: url('logo.jpg');
    background-size: 100px 100px;
    background-repeat: repeat;
    background-blend-mode: overlay;
    background-color: rgba(18, 18, 18, 0.95);
}

html {
    transition: background-color 0.7s, color 0.7s;
}

.container {
    max-width: 2000px;
    min-height: 250px;
    margin: 0 auto;
    background: #1E1E1E;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    text-align: center;
    color: #FFFFFF;
    font-size: 24px;
}

.tree {
    list-style-type: none;
    padding-left: 20px;
}

.tree li {
    margin: 10px 0;
}

.caret {
    cursor: pointer;
    user-select: none;
    color: #008B8B; /* Бирюзовый цвет Красного моря */
}

.caret::before {
    content: "\25B6";
    color: #008B8B; /* Цвет стрелки */
    display: inline-block;
    margin-right: 6px;
}

.caret-down::before {
    transform: rotate(90deg);
}

.nested {
    display: none;
    padding-left: 20px;
}

.active {
    display: block;
}

.copy-btn {
    margin-left: 10px;
    padding: 5px 20px;
    background-color: #008B8B; /* Бирюзовый цвет */
    color: #121212;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: #006666; /* Более тёмный бирюзовый при наведении */
}

#result, #result-output {
    margin-top: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

.tree .nested li {
    background-color: rgba(128, 128, 128, 0.2);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.tree .nested {
    margin-left: 20px;
}

.tree .caret {
    font-weight: bold;
    cursor: pointer;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.flex-container > div {
    flex: 1;
}

.flex-container .copy-btn {
    margin-left: 10px;
}

p, li {
    color: #FFFFFF;
}

body {
    /* background-color: var(--bg-color);
    color: var(--text-color); */
    transition: background-color 0.7s, color 0.7s;
}

/* Стили для кнопки изменения темы */
.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.829); /* Белый фон для иконки */
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* Лёгкая тень */
    cursor: pointer;
}

.theme-switcher img {
    width: 20px;
    height: 20px;
}

/* === Эффекты при наведении и клике для data-text === */

ul.nested li[data-text] {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

ul.nested li[data-text]:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

ul.nested li[data-text]:active {
    background-color: rgba(0, 255, 0, 0.2);
}

.nested.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 30px;
}

li.separator {
    all: unset;
    display: block;
    height: 15px;
    background-color: limegreen;
    grid-column: 1 / -1;
    margin: 10px 0;
    border-radius: 2px;
    color: #00ff0d;
}

ul.nested li[data-text].favorite {
    background-color: #4a3b0a;
    border: 1px solid #f5c542;
    border-radius: 8px;
    position: relative;
    padding-bottom: 24px;
}

ul.nested li[data-text].favorite::after {
    content: "★";
    color: #f5c542;
    font-size: 18px;
    position: absolute;
    bottom: 6px;
    right: 12px;
}

ul.nested li[data-text] {
    position: relative; /* Чтобы работал ::after */
}

#searchInput {
    background-color: #2d2d2d;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 16px;
    outline: none;
    width: 220px;
    transition: border 0.3s, background 0.3s;
}

#searchInput:focus {
    border-color: #08f;
    background-color: #1e1e1e;
}

#favoritesOnly {
    accent-color: #08f;
    transform: scale(1.75);
    margin-right: 6px;
    cursor: pointer;
}

label[for="favoritesOnly"],
label:has(#favoritesOnly) {
    color: #ccc;
    font-size: 16px;
    user-select: none;
    cursor: pointer;
}

mark.search-highlight {
    background-color: #ffeb3b;
    color: inherit;
    padding: 0 1px;
}

.paste-tooltip {
    position: fixed;
    z-index: 1000;
    max-width: min(600px, calc(100vw - 40px));
    background: rgba(10, 10, 10, 0.95);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.paste-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}