* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
}
body {
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    height: 100vh;

    background-color: var(--background-color-body);

    --background-color-body: #0a1222;
    --background-color: #151f31;
    --border-color: #1f2b40;
    --curent-color: #5c2626;
    --text-color: #fffa;

    --color-tag-red-bg: #291515;
    --color-tag-red-bg-hover: #3b1c1c;
    --color-tag-red-border: #5c2626;
    --color-tag-red-color: #e04141;
    --color-tag-green-bg: #182915;
    --color-tag-green-bg-hover: #1f3a1a;
    --color-tag-green-border: #295c26;
    --color-tag-green-color: #41e04c;

    --sidebar-hover: #1c283f;
    --sidebar-active-bg: #1e2b43;
    --text-muted: rgba(255, 255, 255, 0.6);
}

 /* Фоновые элементы для украшения */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    z-index: 0;
}

.bg-circles {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.circle {
    position: fixed;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.5;
}

.circle-1 {
    animation: circle-1 0.3s ease-in-out 0.1s forwards;
}

.circle-2 {
    animation: circle-2 0.5s ease-in-out 0.1s forwards;
}
.top {
    position: relative;
    display: flex;
    justify-content: space-between;
    background-color: var(--background-color);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    padding: 1em;
    z-index: 11;
}
.top * {
    color: var(--text-color);
    text-decoration: none;
}
.top .right a[data-type="login"] {
    border: 1px solid;
    padding: 0.5em;
    border-radius: 4px;
}
@keyframes circle-1 {
    from {
        width: 0px;
        height: 0px;
        top: -100px;
        right: -100px;
    }
    to {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }
}
@keyframes circle-2 {
    from {
        width: 0px;
        height: 0px;
        bottom: -80px;
        left: -80px;
    }
    to {
        width: 200px;
        height: 200px;
        bottom: -80px;
        left: -80px;
    }
}


.modal {
    position: fixed;
    display: flex;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 450px;
    background: var(--background-color);
    box-shadow: 0 0 15px 1px rgba(0, 0, 0, 1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    padding: 2.5rem;
    z-index: 1000;
    border: 0;
    gap: 1em;

    animation: modalShow 0.75s ease-in;
}
@keyframes modalShow {
    from {
        top: -75%;
    }
    to {
        top: 50%;
    }
}
.modal .close {
    position: absolute;
    right: -0.5em;
    top: -0.5em;
    background-color: #fff7;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    width: 36px;
    height: 36px;
    font-size: 24px;
    border: 0;

}
.modal h2 {
    text-align: center;
    color: var(--text-color);
}
.modal input {
    order: 3;
    padding: 1em 1.2em;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.modal input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        inset 0 2px 8px rgba(255, 255, 255, 0.1);
}
.modal input[type='color'] {
    background: transparent;
    border: 0;
    padding: 0;
}
.modal button[type="submit"] {
    order: 4;
    padding: 1em 2em;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.modal button[type="submit"]:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.modal button[type="submit"]:active {
    transform: translateY(0);
}
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}
.modal-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.modal-list__item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.modal-list__item:hover {
    background: #f1f3f541;
    border-color: var(--border-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.modal-list__item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    cursor: pointer;
}

.modal-list__item label {
    display: block;
    width: 100%;
    cursor: pointer;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-color);
    user-select: none;
}

.modal-list__item label::before {
    content: "•";
    color: var(--);
    font-weight: bold;
    margin-right: 8px;
}

/* Стили для выбранных элементов */
.modal-list__item input[type="checkbox"]:checked + label {
    color: var(--color-tag-red-color);
    font-weight: 500;
}

.modal-list__item input[type="checkbox"]:checked + label::before {
    content: "✓";
}

/* ID стилизация */
.modal-list__item label {
    position: relative;
}
/* Стили для скроллбара */

.modal-list::-webkit-scrollbar {
    width: 4px;
}

.modal-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.modal-list::-webkit-scrollbar-thumb {
    background: var(--color-tag-red-color);
    border-radius: 2px;
}


.code-block {
    position: relative;
    background: #2b2b2b63;
    border: 1px solid;
    border-radius: 6px;
    padding: 16px;
}

.copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 12px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}