:root {
    --dimensions: 180px;

    /* Light mode colors (default) */
    --bg-color: #E1E1E1;
    --text-color: #2B2B2B;
    --border-color: #111111;
    --header-bg-color: rgba(255, 255, 255, 0.1);
    --button-bg-color: rgba(255, 255, 255, 0.1);
    --wallet-bg-color: rgba(255, 255, 255, 0.4);
    --accent-color: #FF005C;
    --tooltip-bg-color: rgba(0, 0, 0, 0.8);
    --tooltip-text-color: white;
    --stat-label-color: #aaa;
    --wallet-secondary-text: #aaa;

    --line-color: #733AF8;
    --line-color-2: #1A1A1A55;
    --box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    --font-size: 16px;
}


/* Dark mode colors */
[data-theme="dark"] {
    --bg-color: #1A1A1A;
    --text-color: #E1E1E1;
    --border-color: rgba(255, 255, 255, 1);
    --header-bg-color: rgba(40, 40, 40, 0.3);
    --button-bg-color: rgba(40, 40, 40, 0.3);
    --wallet-bg-color: rgba(40, 40, 40, 0.6);
    --accent-color: #FF005C;
    --tooltip-bg-color: rgba(60, 60, 60, 0.9);
    --tooltip-text-color: #E1E1E1;
    --stat-label-color: #888;
    --wallet-secondary-text: #888;
    --line-color: #14CC76;
    --line-color-2: #E1E1E155;
    
    --box-shadow: 0 0 10px rgba(255,255,255, 0.1);
    
}

* {
    transition: background-color 0.3s ease;
}

/* Dark mode toggle button */
.theme-toggle-button {
    position: fixed;
    bottom: 270px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: var(--wallet-bg-color);


    border: 1px solid var(--border-color);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.theme-toggle-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}



body {
    margin: 0;
    padding: 0;
    
    background-color: var(--bg-color);
    width: 100vw;
}

@font-face {
    font-family: 'Dwight';
    src: url('./fonts/Dwight-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


.entire-container {
    display: flex;
    height: 100%;
    width: 100vw;
    
}

.wrapper {
    display: flex;

}

.sideways-sticky {
    display: flex;

    top: 0px;
    left: 0px;
    z-index: 9999;
    display: flex;
}

.topways-sticky {
    display: flex;
    flex-direction: column;
}

.generations-indicator {
    position: sticky;
    top: 0px;
    left: 0px;
    z-index: 9999;
    display: flex;
    flex-direction: row;
    background-color: transparent;
    width: 100%;
    min-height: round( nearest, calc(var(--dimensions)*0.18), 1px);
    max-height: round( nearest, calc(var(--dimensions)*0.18), 1px);
}

.generation-indicator {
    box-sizing: border-box;
    
    font-family: 'Dwight';
    font-weight: normal;
    font-style: normal;
    min-width: round( nearest, calc(var(--dimensions)*1.1), 1px);
    max-width: round( nearest, calc(var(--dimensions)*1.1), 1px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--header-bg-color);
  
    color: var(--text-color);
    font-size: var(--font-size);
    background-color: var(--bg-color);
    
    border-bottom: 1px solid var(--line-color-2);

}

.left-sidebar {
    position: sticky;
    top: 0;
    width: 380px;
    height: 100vh;
    left: 0;
    z-index: 9999999999;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line-color-2);
  background-color: var(--bg-color);

}

/* Intro / explainer panel inside the left sidebar */
.intro-panel {
    display: flex;
    flex-direction: column;
    gap: 28px;
    height: 100%;
    box-sizing: border-box;
    padding: 28px 24px;
    overflow-y: auto;
    color: var(--text-color);
    font-family: 'Dwight', sans-serif;
}

.intro-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.intro-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-color-2);
}

.intro-logo .button-icon {
    width: 26px;
    height: 26px;
}

.intro-title-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.intro-title {
    margin: 0;
    font-family: 'Dwight', sans-serif;
    font-weight: normal;
    font-size: calc(var(--font-size) * 1.7);
    letter-spacing: 0.5px;
    color: var(--text-color);
}

.intro-tagline {
    margin: 0;
    font-size: calc(var(--font-size) * 0.75);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

.intro-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-lead {
    margin: 0;
    font-size: calc(var(--font-size) * 0.9);
    line-height: 1.55;
    color: var(--text-color);
    opacity: 0.85;
}

.intro-section-label {
    font-size: calc(var(--font-size) * 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line-color-2);
}

.intro-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.intro-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: 'Consolas', monospace;
    font-size: calc(var(--font-size) * 0.75);
    border-radius: 50%;
}

.step-text {
    font-size: calc(var(--font-size) * 0.85);
    line-height: 1.45;
    opacity: 0.9;
}

.intro-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-legend li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-color-2);
}

.legend-icon .button-icon {
    width: 15px;
    height: 15px;
}

.legend-text {
    font-size: calc(var(--font-size) * 0.82);
    line-height: 1.4;
    opacity: 0.9;
}

.intro-steps strong,
.intro-legend strong {
    font-weight: normal;
    color: var(--accent-color);
}

.intro-footer {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--line-color-2);
    font-size: calc(var(--font-size) * 0.7);
    line-height: 1.5;
    opacity: 0.6;
    font-family: 'Consolas', monospace;
}

[data-theme="dark"] .left-sidebar .button-icon {
    filter: brightness(0) invert(0.9) opacity(0.8);
}

.lineage-selector-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--dimensions)*0.15-1px);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1001;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--line-color-2);
    padding: 5px;
    gap: 5px;
    flex-wrap: wrap;
}

.lineage-selector-list {
    display: flex;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    overflow-y: scroll;
    padding: 5px;
    box-sizing: border-box;
}

.lineage-selector-item {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lineage-selector-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.depths-indicator {
    position: sticky;
    left: 380px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.top-box {
    box-sizing: border-box;
    width: round( nearest, calc(var(--dimensions)*0.18), 1px);
    height: round( nearest, calc(var(--dimensions)*0.18), 1px);
    
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999999;
    background-color: var(--bg-color);

    display: flex;
    align-items: center;
    justify-content: center;


    font-family: 'Dwight';
    font-weight: normal;
    font-style: normal;
    font-size: var(--font-size);
    font-weight: bold;

    border-right: 1px solid var(--line-color-2);
    border-bottom: 1px solid var(--line-color-2);
    padding: 0;
}

.depth-indicator {
    box-sizing: border-box;
    font-family: 'Dwight';
    font-weight: normal;
    font-style: normal;
    font-size: var(--font-size);

    writing-mode: sideways-lr;
    /* artwork container height + buttons container height */
    min-height: round( nearest, calc(var(--dimensions)*1.4), 1px);
    max-height: round( nearest, calc(var(--dimensions)*1.4), 1px);
    border-right: 1px solid var(--line-color-2);


    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-align: center;
    position: relative;
    
    min-width: round( nearest, calc(var(--dimensions)*0.18), 1px);
    max-width: round( nearest, calc(var(--dimensions)*0.18), 1px);
    background-color: var(--bg-color);
}

.depth-indicator::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 1px;
    transform: translateY(-100%);
    background-color: var(--line-color-2);

    z-index: 1000;
}

.generation-indicator::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 1px;
    transform: translateX(100%);
    background-color: var(--line-color-2);

    z-index: 9999;
}


.screen-container {
    display: flex;

    height: 100%;
    width: 100%;
    scrollbar-width: none;
    overflow: auto;
}

/* no scrollbar */
.screen-container::-webkit-scrollbar {
    display: none;
}



#original-canvas {
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size);
    
    margin-top: calc(var(--dimensions)*0.4);
 
   
    color: var(--text-color);
    font-family: 'Dwight';

    /* Corner border styles */
    --corner-color: var(--text-color);
    /* Color of the corners */
    --corner-size: 20px;
    /* Length of the corner lines */
    --corner-thickness: 3px;
    /* Thickness of the corner lines */

    /* Add padding to create space for the corner borders inside the element */
    padding: var(--corner-thickness);

    /* Define multiple background layers for the corners */
    background:
        /* Top-left corner (horizontal then vertical line) */
        linear-gradient(var(--corner-color), var(--corner-color)) 0 0,
        linear-gradient(var(--corner-color), var(--corner-color)) 0 0,
        /* Top-right corner (horizontal then vertical line) */
        linear-gradient(var(--corner-color), var(--corner-color)) 100% 0,
        linear-gradient(var(--corner-color), var(--corner-color)) 100% 0,
        /* Bottom-left corner (horizontal then vertical line) */
        linear-gradient(var(--corner-color), var(--corner-color)) 0 100%,
        linear-gradient(var(--corner-color), var(--corner-color)) 0 100%,
        /* Bottom-right corner (horizontal then vertical line) */
        linear-gradient(var(--corner-color), var(--corner-color)) 100% 100%,
        linear-gradient(var(--corner-color), var(--corner-color)) 100% 100%;

    background-repeat: no-repeat;
    /* Prevent gradients from repeating */
    /* Define sizes for the corner lines (horizontal, vertical pairs) */
    background-size: var(--corner-size) var(--corner-thickness), var(--corner-thickness) var(--corner-size);
    /* Position the background gradients relative to the padding box */
    background-origin: padding-box;
    /* Set the final background color */
    background-color: transparent;
  
    
    box-shadow: none;
    border: none;
}

h3 {
    font-family: 'Dwight';
    font-weight: normal;
    font-style: normal;
}

.track {
    width: 100%;
    display: flex;
    flex-direction: row;
}

::-webkit-scrollbar {
    display: none;
}

.art-column {
    box-sizing: border-box;
    width: round( nearest, calc(var(--dimensions)*1.1), 1px);
    display: flex;
    flex-direction: column;


    position: relative;
    min-height: round( nearest, calc(var(--dimensions)*1.4), 1px);
    max-height: round( nearest, calc(var(--dimensions)*1.4), 1px);
}

.art-column-header-root {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: calc(var(--dimensions)*0.15-1px);

    content: " ";

    padding: 0;
}

.art-column-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: round( nearest, calc(var(--dimensions)/7), 1px);
    max-height: round( nearest, calc(var(--dimensions)/7), 1px);
    padding: 5px;
    gap: 5px;
    
}

.art-column-header-seed-field {
    box-sizing: border-box;
    font-family: 'Dwight';
    font-weight: normal;
    font-style: normal;
    font-size: calc(var(--font-size) * 0.65);
    color: var(--text-color);
 
    width: round( nearest, calc(var(--dimensions)/7), 1px);
    height: round( nearest, calc(var(--dimensions)/7), 1px);
    overflow: hidden;
    text-align: center;
    
    padding: 0;
    margin: 0;
    margin-left: auto;
    
    /* Improve transitions for all properties */
    transition: width 0.3s ease-out, 
                border 0.3s ease-out, 
                box-shadow 0.3s ease-out;
    cursor: pointer;
    position: relative;

}

.art-column-header-seed-field.expanded {
    box-sizing: border-box;
    width: round( nearest, calc(var(--dimensions)/7*2 + 6px), 1px);
    height: round( nearest, calc(var(--dimensions)/7), 1px);
    cursor: text;
    border: 1px solid var(--line-color-2);
}

/* Style for the hashtag button state */
.seed-hashtag-button {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: round( nearest, calc(var(--dimensions)/7), 1px);
    height: round( nearest, calc(var(--dimensions)/7), 1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    border: 1px solid var(--line-color-2);
    /* Add transition for smooth appearance/disappearance */
    transition: opacity 0.3s ease-out;
}

/* Hide the real input initially */
.art-column-header-seed-field input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    text-align: center;
    color: var(--text-color);
    font-family: 'Dwight';
    font-size: calc(var(--font-size) * 0.65);
    opacity: 0;
    padding: 0;
    margin: 0;
    /* Add transition for smooth appearance/disappearance */
    transition: opacity 0.3s ease-out;
}

/* Show input when expanded */
.art-column-header-seed-field.expanded input {
    opacity: 1;
    z-index: 2;
    position: relative;
}

/* Hide button when expanded - with transition */
.art-column-header-seed-field.expanded .seed-hashtag-button {
    opacity: 0;
}

.seed-hashtag {
    display: inline-block;
    padding: 0 5px;
}

.art-column-header-seed-field:not(.expanded) .seed-value {
    display: none;
}

.art-column-header-seed-field.expanded .seed-hashtag {
    display: inline-block;
}

.art-column-header-button {

    box-sizing: border-box;
    border: none;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: round( nearest, calc(var(--dimensions)/7), 1px);
    height: round( nearest, calc(var(--dimensions)/7), 1px);

    transition: all 0.2s ease;
    position: relative;
    aspect-ratio: 1/1;

    border: 1px solid var(--line-color-2);
    padding: 0;
    margin: 0;
}

.children-container {
    display: flex;
    flex-direction: column;
}



.artwork-container {
    position: relative;
    width: var(--dimensions);
    height: var(--dimensions);

    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    z-index: 5;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.art-column.highlighted {

}

.art-column.highlighted::after {
    content: "";
    position: absolute;
    
    top: 1px;
    left: 2px;
    width: calc(100% - 3px);
    height: calc(100% - 3px);

    outline: 2px solid var(--line-color);
    background-color: var(--line-color);
    opacity: 0.65;
    box-shadow: 0 0 10px var(--line-color);
    z-index: -1;
}

.canvas {
    width: calc(var(--dimensions)*.8);
    height: calc(var(--dimensions)*.8);
    z-index: 10;
    padding: 0%;
    display: flex;
    align-items: center;
    justify-content: center;

    border: none !important;

    background-color: transparent;
    box-shadow: var(--box-shadow);
}

canvas {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Updated line styles with precise positioning */
.vertical-line {
    position: absolute;
    width: 0;
    
    background-color: transparent;
    border-right: 1px solid var(--line-color);
    /* box-shadow: 0 0 5px var(--line-color); */
    z-index: 0;
    opacity: 1;
    left: 50%;

}

.horizontal-line {
    box-sizing: border-box;
    position: absolute;
    /* top: round( nearest, calc(var(--dimensions)*1/2), 1px); */
    height: 1px;
    border-top: 1px solid var(--line-color);
    /* box-shadow: 0 0 5px var(--line-color); */
    z-index: -5;
    opacity: 1;

}

/* .horizontal-line::after {
    content: "";
    position: absolute;
    top: -1.5px;
    left: -1px;
    
    box-sizing: border-box;
    width: 2px !important;
    height: 2px !important;
    border: 1px solid var(--line-color);

    background-color: var(--line-color);
} */


.line-dot-start {
    position: absolute;
    top: calc(50% - 0.5px);
    width: 2px;
    height: 2px;
    background-color: var(--line-color);
}

.line-dot-end {
    position: absolute;
    top: calc(50% - 0.5px);
    width: 2px;
    height: 2px;
    background-color: var(--line-color);
}




/* Buttons styling */
.buttons-container {
    height: round( nearest, calc(var(--dimensions)/7), 1px);

    display: flex;
    justify-content: flex-end;
    align-items: center;

 

    /* border-top: 1px solid var(--border-color); */
    
    gap: 5px;
    position: relative;
    z-index: 10;
    margin-top: auto;
    padding-bottom: 0.5px;
    padding-right: 1px;
    padding: 5px;

}

.info-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: calc(var(--dimensions)/2);
    padding: 0 6px;
    font-family: 'Dwight';
    font-weight: normal;
    font-style: normal;
    font-size: calc(var(--font-size) * 0.75);
    color: var(--text-color);
    margin-right: auto;
    transition: background-color 0.15s ease;
}

.info-container.evolve-highlight {
    background-color: #14CC7655;
}

.info-container.reroll-highlight {
    background-color: #FFC10755;
}

.info-container.burn-highlight {
    background-color: #F4433655;
}

.info-container.lock-highlight {
    background-color: #733AF855;
}


/* Common button base styles */
.button-base {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: round( nearest, calc(var(--dimensions)/7), 1px);
    min-height: round( nearest, calc(var(--dimensions)/7), 1px);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* Node action buttons: icons only — no pseudo-element labels under icons */
.buttons-container .button-base {
    font-size: 0;
    line-height: 0;
}

.buttons-container .button-base::after,
.buttons-container .button-base::before {
    content: none !important;
    display: none !important;
}

::-webkit-scrollbar {
    display: none;
}

.button-base:hover {

    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Button icon styling */
.button-icon {
    width: round( nearest, calc(var(--font-size)*0.7), 1px);
    height: round( nearest, calc(var(--font-size)*0.7), 1px);
    display: inline-block;
    vertical-align: middle;
}

.svg-fill {
    fill: var(--text-color);
}

/* Specific button types */
.lock-button {
    background-color: #e0e0e0;
    background-color: #733AF8CC;
    border: 1px solid #733AF8;
    color: #333;
}

/* Dark mode version with flipped transparency */
[data-theme="dark"] .lock-button {
    background-color: #733AF8;
    border: 1px solid rgba(255, 255, 255, 0.2);
}



.lock-button.locked {
    background-color: gray;
    border: 1px solid gray;
    color: white;
}

/* Dark mode version with flipped transparency */
[data-theme="dark"] .lock-button.locked {
    background-color: gray;
    border: 1px solid gray;
}



.lock-button.locked img {
    filter: brightness(2);
}

.separator {
    width: 1px;
    height: 100%;
    background-color: var(--border-color);
}

.reroll-button {
    background-color: #FDB021CC;
    border: 1px solid #FDB021;
    color: white;
}

/* Dark mode version with flipped transparency */
[data-theme="dark"] .reroll-button {
    background-color: #FDB021;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.burn-button {
    background-color: #FF3333CC;
    border: 1px solid #FF3333;
}

/* Dark mode version with flipped transparency */
[data-theme="dark"] .burn-button {
    background-color: #FF3333;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.evolve-button {
    background-color: #14CC76CC;
    border: 1px solid #14CC76;
    color: white;
}

/* Dark mode version with flipped transparency */
[data-theme="dark"] .evolve-button {
    background-color: #14CC76;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tooltip styling — theme toggle only (not node action buttons) */
.theme-toggle-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.theme-toggle-button[data-tooltip]:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Disabled state for buttons */
.button-base.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.button-base.disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.buttons-container .cost-indicator {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 5px 10px;
    font-size: calc(var(--font-size) * 0.9);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, top 0.3s ease-in-out;
    z-index: 100;
}

.buttons-container .cost-indicator.show {
    opacity: 1;
    top: -35px;
}

.vertical-line.no-pseudo::before,
.vertical-line.no-pseudo::after {
    display: none;
}




/* Apply to all button icons in dark mode */
[data-theme="dark"] .art-column-header-button .button-icon {
    filter: brightness(0) invert(0.9);
}

/* Also adjust the theme toggle button */
[data-theme="dark"] .theme-toggle-button .button-icon {
    filter: brightness(0) invert(0.9);
}

/* Also adjust the top-box logo */
[data-theme="dark"] .top-box .button-icon {
    filter: brightness(0) invert(1);
}


/* Make sure the seed icon is properly centered and sized */
.seed-hashtag-button .button-icon {
    width: round( nearest, calc(var(--font-size)*0.8), 1px);
    height: round( nearest, calc(var(--font-size)*0.8), 1px);
    display: block;
    filter: opacity(0.7);
    
}



/* Dark mode styling for seed icon */
[data-theme="dark"] .seed-hashtag-button .button-icon {
    filter: brightness(0) invert(0.9) opacity(1);
}

/* Universal scrollbar hiding for all elements */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* WebKit browsers (Chrome, Safari, newer Edge) */
*::-webkit-scrollbar {
  display: none;
}

.floating-panels {
    position: fixed;
    bottom: calc(var(--dimensions) * 0.12);
    right: calc(var(--dimensions) * 0.12);
    z-index: 10000000;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-end;
    gap: 12px;
}

.graph-widget,
.wallet-widget {
    position: relative;
    flex-shrink: 0;
}

.floating-panel-toggle {
    width: calc(var(--dimensions) * 0.22);
    height: calc(var(--dimensions) * 0.22);
    border-radius: 50%;
    border: 1px solid var(--line-color-2);
    background-color: var(--bg-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.floating-panel-toggle:hover {
    border-color: var(--line-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.floating-panel-toggle .button-icon {
    width: calc(var(--dimensions) * 0.1);
    height: calc(var(--dimensions) * 0.1);
}

[data-theme="dark"] .floating-panel-toggle {
    background-color: var(--wallet-bg-color);
    border-color: var(--border-color);
    box-shadow: var(--box-shadow);
}

[data-theme="dark"] .floating-panel-toggle:hover {
    border-color: var(--line-color);
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .floating-panel-toggle .button-icon,
[data-theme="dark"] .floating-panel-close .button-icon {
    filter: brightness(0) invert(0.9);
}

.floating-panel-content {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-color);
    border: 1px solid var(--line-color-2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform-origin: bottom right;
    z-index: 1;
}

.floating-panel-collapsed .floating-panel-content {
    display: none;
}

.floating-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line-color-2);
    flex-shrink: 0;
}

.floating-panel-title {
    font-family: 'Dwight', sans-serif;
    font-size: calc(var(--font-size) * 0.85);
    color: var(--text-color);
    text-transform: lowercase;
}

.floating-panel-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-panel-close .button-icon {
    width: calc(var(--dimensions) * 0.07);
    height: calc(var(--dimensions) * 0.07);
}

.graph-widget-panel {
    width: calc(var(--dimensions) * 1.4);
    height: calc(var(--dimensions) * 1.4);
}

.graph-widget-container {
    flex: 1;
    min-height: 0;
    background-color: var(--bg-color);
}

.wallet-widget-panel {
    width: calc(var(--dimensions) * 1.3);
    max-height: calc(var(--dimensions) * 1.8);
}

.wallet-ui {
    background-color: var(--wallet-bg-color);
    font-family: 'Dwight', sans-serif;
    color: var(--text-color);
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.wallet-container {
    display: flex;
    flex-direction: column;
}

.wallet-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid var(--line-color-2);
}

.wallet-token-balance {
    font-size: calc(var(--font-size) * 0.8);
    font-family: 'Consolas', monospace;
}

.wallet-usd-value {
    font-size: calc(var(--font-size) * 0.8);
    color: var(--wallet-secondary-text);
    font-family: 'Consolas', monospace;
}

.market-stats-container {
    padding: 10px;
    border-bottom: 1px solid var(--line-color-2);
}

.market-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: calc(var(--font-size) * 0.8);
}

.stat-label {
    color: var(--stat-label-color);
}

.stat-value {
    font-family: 'Consolas', monospace;
}

.transaction-history-container {
    max-height: calc(var(--dimensions) * 0.45);
    overflow-y: auto;
    padding: 0 10px;
}

.empty-history {
    color: var(--wallet-secondary-text);
    font-style: italic;
    text-align: center;
    padding: 20px 0;
    font-size: var(--font-size);
}

.transaction-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-color-2);
    font-size: calc(var(--font-size) * 0.8);
    color: var(--text-color);
}

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

.transaction-amount {
    font-weight: bold;
    font-family: 'Consolas', monospace;
    text-align: right;
}

.transaction-amount.debit {
    color: #FF5E5E;
}

.transaction-amount.credit {
    color: #5EFF7D;
}

.insufficient-funds {
    animation: wallet-shake 0.5s ease-in-out;
}

@keyframes wallet-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
}

#notification-container {
    position: fixed;
    bottom: calc(var(--dimensions) * 0.4);
    left: calc(var(--dimensions) * 0.12);
    z-index: 9999998;
    pointer-events: none;
}

#notification-container .notification {
    padding: 10px 16px;
    color: var(--text-color);
    font-size: calc(var(--font-size) * 0.8);
    font-family: 'Dwight', sans-serif;
    border: 1px solid var(--line-color-2);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#notification-container .notification.debit {
    background-color: rgba(255, 94, 94, 0.85);
}

#notification-container .notification.credit {
    background-color: rgba(94, 255, 125, 0.85);
}

#notification-container .notification.error {
    background-color: rgba(255, 94, 94, 0.9);
}

#notification-container .notification.info {
    background-color: rgba(94, 175, 255, 0.85);
}

#notification-container .notification.hiding {
    opacity: 0;
    transform: translateY(8px);
}