.hidden {
    display: none !important;
}

html, body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    font-family: sans-serif;
    background: linear-gradient(45deg, rgba(0,21,42,1.00) 20%, rgba(25,0,57,1.00) 55.3%, rgba(27,0,50,1.00) 100%);
    color: #eee;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100%;
}

.main {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    gap: 2rem;
    justify-content: center;
    height: 100%;
    width:100%;
    flex-grow:1;
    overflow: hidden;
}

     .layer-controls,
     .layer-editor,
     .color-controls,
     .layer-list {
         margin-bottom: 1rem;
     }

     .right-panel{
         margin-right:18px;
     }
.left-panel,
.right-panel {
    height: 100%;
    width: 50%;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #555 #2a2a3b; /* Firefox fallback */
}

    /* Webkit Scrollbar Style */
    .left-panel::-webkit-scrollbar,
    .right-panel::-webkit-scrollbar {
        width: 8px;
    }


    .left-panel::-webkit-scrollbar-track,
    .right-panel::-webkit-scrollbar-track {
        background: #2a2a3b;
        border-radius: 6px;
    }

    .left-panel::-webkit-scrollbar-thumb,
    .right-panel::-webkit-scrollbar-thumb {
        border-radius: 6px;
        background: linear-gradient(90deg, rgba(0,35,71,1.00) 0%, rgba(27,0,44,1.00) 49.7%, rgba(39,0,44,1.00) 100.0%);
        background-size: 300% 300%;
        animation: gradientScrollThumb 10s linear infinite;
    }

@keyframes gradientScrollThumb {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

.left-panel::-webkit-scrollbar-thumb:hover,
.right-panel::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(0,35,71,1.00) 0%, rgba(27,0,44,1.00) 49.7%, rgba(39,0,44,1.00) 100.0%);
    background-size: 300% 300%;
}

.left-panel {
    /*width: 320px;*/
    /*background: #f9f9f9;*/
    /*border-right: 1px solid #ddd;*/
}

.right-panel {
    flex-grow: 1;
    /*background: #fff;*/
}

    .left-panel .header,
    .right-panel .header {
        position: sticky;
        top: 0;
        background: inherit;
        z-index: 10;
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid #ccc;
    }

@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .left-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .right-panel {
        width: 100%;
    }
}

     .spiral-container {
         width: 100%;
         /*max-width:700px;*/
         aspect-ratio: 1 / 1;
         position: relative;
         /*border: 2px solid #444;*/
         /*border-radius: 8px;*/
         /*overflow: hidden;*/
         /*background: #111;*/
         /*margin-bottom: 1rem;*/
     }

     .spiral-layer {
         position: absolute;
         inset: 0;
     }

     .layer-controls, .layer-editor, .layer-list {
         margin: 1rem 0;
         /*width: 100%;*/
         /*max-width: 700px;*/
     }

        .layer-controls button,
        .layer-editor button,
        .layer-menu-btn {
            margin: 0.3rem;
            padding: 0.5rem 1rem;
            background: #333;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .layer-controls input[type="text"],
        .layer-editor input[type="text"] {
            margin-top: 0.3rem;
            padding: 0.5rem 1rem;
            background: #333;
            color: white;
            border: none;
            border-radius: 4px;
        }

        .layer-controls button:hover,
        .layer-editor button:hover {
            background: #444;
        }

.randomizer-settings input,
.preview-actions  input {
    margin-top: 0.3rem;
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 4px;
}

.randomizer-settings label {
    padding:1.2rem;
    margin-top:1.2rem;
}
.randomizer-settings hr {
    text-align: center;
    height:2px;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    background: linear-gradient( 90deg, #ff00cc, #3333ff, #00ffee, #ffcc00, #ff00cc );
    background-size: 300% auto;
    color: transparent;
    animation: gradientMove 6s linear infinite;
}

.random-summary {
    padding: 1rem;
}

    .animated-border-box {
        border: 4px solid transparent;
        border-radius: 12px;
        /*background: linear-gradient( 90deg, #ff00cc, #3333ff, #00ffee, #ffcc00, #ff00cc );*/
        background-size: 300% auto;
        animation: gradientMove 6s linear infinite;
        border-image: linear-gradient( 90deg, #ff00cc, #3333ff, #00ffee, #ffcc00, #ff00cc );
        position: relative;
        /*border-radius: 10px;*/
        z-index: 0;
        background: #111;
    }


    .animated-border-box::before {
        content: '';
        position: absolute;
        inset: -4px;
        z-index: -1;
        /*border-radius: inherit;*/
        background: linear-gradient( 90deg, #ff00cc, #3333ff, #00ffee, #ffcc00, #ff00cc );
        background-size: 300% 300%;
        animation: gradientMove 6s linear infinite;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        -webkit-mask-composite: xor;
        padding: 4px;
    }


@keyframes gradientMove {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 300% center;
    }
}
@keyframes huePulse {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

.randomizer-title.hue-cycle {
    animation: gradientMove 6s linear infinite, huePulse 8s linear infinite;
}

.layer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem;
        background: linear-gradient(120deg, rgba(40, 0, 70, 0.85), rgba(15, 45, 75, 0.85));
    border-radius: 4px;
    cursor: pointer;
}

         .layer-item .layer-info {
             flex-grow: 1;
             font-size: 0.95rem;
         }

         .layer-item .layer-actions {
             display: flex;
             gap: 0.3rem;
         }

         .layer-item button {
             border: none;
             color: #ccc;
             font-size: 1.3rem;
             cursor: pointer;
             padding: 0.2rem;
             margin-right:8px;
             margin-right:8px;
         }

             .layer-item button:hover {
                 color: #fff;
             }

    .layer-item.selected {
        background: linear-gradient(135deg, rgba(78, 5, 95, 0.90), rgba(0, 72, 97, 0.8));
        border: #43009b solid;
        font-weight: bold;
        box-shadow: 0 0 6px rgba(160, 60, 255, 0.5);
        animation: animatedshadow 10s linear infinite;
    }

     .layer-editor label {
         display: block;
         margin: 0.5rem 0;
     }

.toggle-layer-btn {
    color: forestgreen;
    background: none;
}
.move-layer-btn {
    color: steelblue;
    background: none;
}

.delete-layer-btn {
    background: #922;
    color: white;
    border: none;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
}

.html-preview-btn {
    background: #121222;
    color: white;
    border: none;
    padding: 0.1rem 0.2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

/*.layer-editor select {
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: #e0dffb;
    color: #fff;
    border-radius: 4px;
    margin-top: 0.3rem;
    margin-right: 1rem;
}*/

select {
    /*width: 90%;*/
    padding: 0.6rem 0.6rem;
    background: #2c2c2c;
    border: none;
    border-radius: 4px;
    margin-top: 0.6rem;
    margin-right: 1.5rem;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg fill='white' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.6rem center;
    background-size: 0.65rem;
    cursor: pointer;
    background: #28243a;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4), 0 0 6px rgba(100, 0, 150, 0.25);
    color: #fff;
    transition: box-shadow 0.2s ease;
}

    select:focus {
        box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.4), 0 0 8px rgba(160, 60, 255, 0.45);
        outline: none;
    }


.layer-editor input[type="text"],
.layer-editor input[type="number"] {
    /*width: 90%;*/
    padding: 0.5rem;
    border: 1px solid #4a3b6a;
    background: #1a1a2e;
    color: #e0dffb;
    border-radius: 4px;
    margin-top: 0.5rem;
    margin-right: 1.5rem;
}

input:focus {
    outline: none;
    box-shadow: 0 0 6px rgba(160, 60, 255, 0.5);
}

.section-header {
    background: linear-gradient(22deg, #4f034c 10%, rgba(25,0,57,1.00) 30%, rgba(2, 34, 67, .10) 40%, rgba(2, 34, 67, 0) 100%);
    border-radius: 4px;
    padding: 1rem;
}

/*#layer-details-block {
    background: linear-gradient(180deg, rgba(1, 61, 78, 1.00) 0%, rgba(25,0,57,1.00) 50%, rgba(51, 0, 87, 1.00) 100%);
}*/
.editor-section {
    background: linear-gradient(202deg, rgba(2, 34, 67, 1.00) 0%, rgba(25,0,57,1.00) 50%, rgba(40, 1, 84, 1.00) 75%, rgba(51, 0, 87, 1.00) 100%);
    margin-top: 1rem;
}
/*.layer-editor input[type="number"]
{
    width: 40%;
    padding: 0.3rem;
    border: none;
    background: #333;
    color: #fff;
    border-radius: 4px;
    margin-top: 0.2rem;
}*/

     #cssOutput, #configOutput, #svgOutput, #configInput {
         width: 100%;
         max-width: 700px;
         height: 150px;
         margin-top: 2rem;
         padding: 0.5rem;
         background: #111;
         color: #fff;
         border: 1px solid #333;
         border-radius: 4px;
     }
#gradientCanvas{
     width:3840px;
     height:2160px;
}
.color-stops-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #2a2a3b;
    border-radius: 6px;
    border: 1px solid #444;
}

     .color-stop-group {
         display: flex;
         align-items: center;
         gap: 0.5rem;
         background: #1f1f2f;
         padding: 0.5rem;
         border-radius: 4px;
     }

         .color-stop-group input[type="color"] {
             border: none;
             width: 40px;
             height: 30px;
             padding: 0;
             background: none;
             cursor: pointer;
         }

         .color-stop-group input[type="text"],
         .color-stop-group input[type="number"] {
             padding: 0.3rem;
             border: none;
             border-radius: 4px;
             background: #333;
             color: #fff;
             width: 90px;
             text-align: center;
         }

         .color-stop-group .label {
             font-size: 0.85rem;
             color: #ccc;
             min-width: 60px;
             text-align: right;
         }

        .color-stop-group button {
            background: #922;
            color: white;
            border: none;
            padding: .4rem !important;
            border-radius: 4px;
            font-size: 0.8rem;
            cursor: pointer;
        }

             .color-stop-group button:hover {
                 background: #b44;
             }

         .color-stop-group .alpha-group {
             display: flex;
             align-items: center;
             gap: 0.3rem;
             margin-left: auto;
         }

             .color-stop-group .alpha-group input[type="range"] {
                 width: 80px;
             }


     textarea {
         width: 100%;
         max-width: 1200px;
         height: 150px;
         background: #111;
         color: #fff;
         border: 1px solid #333;
         border-radius: 4px;
         display: block;
     }

     h4 {
         margin-top: 0.5rem;
         margin-bottom: 0.25rem;
     }

.textarea-wrapper {
    position: relative;
    display: block;
    width: 100%;
    max-width: 700px;
    margin-top: 16px;
}

    .textarea-wrapper textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem;
        font-family: monospace;
        font-size: 0.9rem;
        border-radius: 6px;
        border: 1px solid #ccc;
        resize: vertical;
        min-height: 120px;
    }

.copy-btn {
    position: absolute;
    top: 6px;
    right: 24px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #888;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 2px;
    z-index: 10;
    line-height: 1;
    user-select: none;
}

    .copy-btn:hover,
    .copy-btn:focus {
        color: #444;
        transform: scale(1.1);
    }

@media (hover: none) {
    .copy-btn:hover {
        color: #666;
        transform: none;
    }
}



.template-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.template-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(180deg, rgba(20, 30, 60, 0.85), rgba(30, 10, 50, 0.85));
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .template-item:hover {
        background: linear-gradient(145deg, rgba(18, 18, 36, 0.8), rgba(40, 0, 50, 0.8));
    }

.template-preview {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #444;
    flex-shrink: 0;
}

.template-label {
    color: #eee;
    font-size: 0.9rem;
    font-weight: 500;
}

.template-menu {
    margin-bottom: 1rem;
    cursor: pointer;
}

    .template-menu h4 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.5rem;
    }

    .template-menu button {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        background: #444;
        border: none;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
    }

.template-list.scrollable {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: #555 #2a2a3b;
}

    .template-list.scrollable::-webkit-scrollbar {
        width: 6px;
    }

    .template-list.scrollable::-webkit-scrollbar-thumb {
        background: #555;
        border-radius: 4px;
    }

.layer-controls {
    /*    margin-top: 1rem;
*/ /*background: #2a2a3b;*/
    padding: 0.5rem;
    border-radius: 6px;
    /*border: 4px solid transparent;*/
    /*border-image: linear-gradient(90deg, rgba(28, 128, 227, 1) 0%, rgba(49,206,146,1.00) 22.1%, rgba(167,206,49,1.00) 57.5%, rgba(218, 118, 210, 1) 100%);*/
    margin-bottom: 8px;
}

#animationHeader,
#detailsHeader {
    cursor: pointer;
}

.animation-item {
    /*background: #1f1f2f;*/
    /*padding: 0.5rem;*/
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

    .animation-item label {
        font-size: 0.85rem;
        display: block;
        margin: 0.3rem 0;
    }




.site-footer {
    background-color: rgb(223,196,255);
    padding: 10px 0;
    border-top: 1px solid #ddd;
    font-size: 16px;
    color: #0034ff;
    text-align: center;
/*    margin-top: 40px;
*/}

.footer-container {
    width: 90%;
    /*max-width: 960px;*/
    margin: 0 auto;
}

.site-footer nav {
    margin-top: 10px;
}

.site-footer a {
    color: #555;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.2s ease-in-out;
}

    .site-footer a:hover {
        color: #000;
    }

.site-footer span {
    color: #aaa;
}



.color-stop-editor {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
    /*background: #1e1e2f;*/
    border-radius: 8px;
    color: white;
}

.color-track {
    position: relative;
    height: 32px;
    background: linear-gradient(to right, red, yellow);
    border-radius: 16px;
    margin-bottom: 1rem;
    margin-top: 1rem;
    cursor: crosshair;
}

    .color-track .handle {
        position: absolute;
        width: 16px;
        height: 32px;
        top: -4px;
        border: 2px solid white;
        border-radius: 4px;
        background-color: transparent;
        cursor: grab;
        transition: transform 0.2s, box-shadow 0.2s;
    }

        .color-track .handle.selected {
            transform: scale(1.25);
            box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.4);
        }

        .color-track .handle:hover {
            box-shadow: 0 0 4px 2px rgba(255, 255, 255, 0.5);
            transform: scale(1.15);
        }

.color-values {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

    .color-values .value-label {
        font-size: 0.8rem;
        color: #ccc;
        width: 40px;
        text-align: center;
    }

.color-details {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.color-preview {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
}

.handle-tools {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 4px;
    transition: opacity 0.2s;
}

.handle.selected .handle-tools {
    display: flex;
}

.handle:hover {
    transform: scale(1.15);
}
.handle:hover .handle-tools {
    opacity: 1;
    pointer-events: all;
}

.handle-tools button {
    background: rgba(20, 20, 30, 0.8);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 2px 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.color-picker-ui {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.color-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-field {
    position: relative;
    width: 200px;
    height: 200px;
    background: black;
    border-radius: 6px;
    cursor: crosshair;
}

#hueSlider, #alphaSlider {
    width: 200px;
    height: 14px;
    border-radius: 7px;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
}

    #hueSlider::-webkit-slider-thumb,
    #alphaSlider::-webkit-slider-thumb {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: white;
        border: 1px solid #aaa;
        -webkit-appearance: none;
        margin-top: -2px;
    }

.color-meta {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.6rem 1rem;
    align-content: start;
}

    .color-meta .field {
        display: flex;
        flex-direction: column;
        font-size: 0.8rem;
    }

    .color-meta input {
        padding: 0.2rem;
        text-align: center;
        border-radius: 4px;
        border: 1px solid #ccc;
        font-size: 0.85rem;
    }


.picker-cursor {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 2px black;
    transform: translate(-7px, -7px);
    pointer-events: none;
}

.sliders {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-wrap input[type="range"] {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, red, yellow, lime, cyan, blue, magenta, red);
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}

.alpha input[type="range"] {
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,1));
    background-image: linear-gradient(to right, transparent, #000), url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkkYGBgAEAAgEAfsFexQAAAABJRU5ErkJggg==");
}



.tooltip-icon {
    position: relative;
    display: inline-block;
    margin-left: 6px;
    color: #666;
    cursor: help;
    font-size: 0.9em;
    user-select: none;
}

    .tooltip-icon:focus .tooltip-text,
    .tooltip-icon:hover .tooltip-text {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    width: 240px;
    background-color: #333;
    color: #fff;
    font-size: 1rem;
    text-align: left;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 100;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

    .tooltip-text::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        margin-left: -6px;
        border-width: 6px;
        border-style: solid;
        border-color: #333 transparent transparent transparent;
    }
.tooltip-icon {
    display: inline-block;
}

body.tooltips-disabled .tooltip-icon {
    display: none !important;
}
body.tooltips-disabled .tooltip-text {
    display: none !important;
}




.floating-preview {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 500px;
    z-index: 1000;
    height: auto;
    /*border: 1px solid #1e1e2f;*/
    border-radius: 8px;
    background: #1e1e2f;
    box-shadow: 0 0 10px black;
    user-select: none;
    overflow: hidden;
    resize: none;
    max-width:100% !important;
}

.preview-drag-handle {
    background: #eee;
    padding: 8px;
    font-weight: bold;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.pin-toggle {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

/* Hide pin toggle if on narrow screen */
@media (max-width: 768px) {
    .pin-toggle {
        display: none !important;
    }
}

.floating-preview.dragging {
    opacity: 0.85;
    pointer-events: none;
}

/* Draggable and resizable only when unpinned */
.floating-preview.unpinned {
    resize: both;
    cursor: default;
}

    .floating-preview.unpinned .preview-drag-handle {
        cursor: move;
    }

.floating-preview.pinned {
    resize: none;
    top: 20px;
    right: 20px;
    left: auto !important;
    bottom: auto !important;
}

.pinned #spiral {
    max-width:600px !important;
}

@media (max-width: 768px) {
    .layer-editor label,
    .dynamic-inputs label {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }

    .layer-editor input,
    .layer-editor select {
        width: 100%;
        font-size: 1rem;
    }
}



.hue-wheel-tooltip {
    text-align: center;
    margin-top:4px;
    max-width: 180px;
}

.hue-wheel {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient( red, yellow, lime, cyan, blue, magenta, red );
    position: relative;
    margin: 0 auto 8px;
    border: 2px solid #ccc;
}

.hue-zero-marker {
    position: absolute;
    top: 0;
    left: 50%;
    /*transform: translateX(-50%) translateY(-60%);*/
    /*font-size: 0.7rem;*/
    /*background: #fff;*/
    color: white;
    /*padding: 1px 4px;*/
    /*border: 1px solid #aaa;*/
    border-radius: 4px;
    white-space: nowrap;
}

.hue-range-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    mask: conic-gradient( transparent var(--start), rgba(0,0,0,0.4) var(--start), rgba(0,0,0,0.4) var(--end), transparent var(--end) );
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.layer-container {
    position: relative;
    display: inline-block;
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-name {
    font-size: 1.1rem;
}

.info-icon {
    position: relative;
    background: #3e3e50;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
}

.tooltip-card {
    position: absolute;
    top: 30px;
    left: 0;
    background-color: #1f1f2a;
    color: #ddd;
    border-radius: 10px;
    padding: 16px;
    width: 280px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.info-icon:hover .tooltip-card {
    opacity: 1;
    pointer-events: auto;
}

.tooltip-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.tooltip-sub {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #aaa;
}

.tooltip-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

    .tooltip-item .icon {
        font-size: 1.2rem;
        line-height: 1;
        width: 20px;
    }

@keyframes animatedshadow {
    0% {
        filter: drop-shadow(0 0 4px #2e1867);
    }

    100% {
        filter: drop-shadow(0 0 5px #631b5e);
    }
}