* {
    transition: all 0.5s ease;
    font-family: rubik;
    user-select: none;
}

body>canvas,
#frameSliderContainer {
    transition: none !important;
}

body {
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: black;
    display: flex;
    perspective: 1000px;
}

:root {
    --panel-width: 220px;
}

#canvas {
    height: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
    transition: none;
}

#customButton {
    background-color: rgb(0, 157, 255);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    height: auto;
}

#customButton:hover {
    background-color: #0ec2f9;
}

#chatInputContainer {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}

#smilesInputContainer {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 10px;
}



#chatInput::placeholder {
    color: #9ca3af;
    opacity: 1;
}

#captureScreen {
    background-color: rgb(255, 128, 0);
}

#chatInput:focus {
    outline: none;
    border-color: transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(to right, #6366f1, #a855f7) border-box;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}


#chatInput:hover {
    border-color: #a5b4fc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

#chatInput:disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.7;
}

#chatInput.error {
    border-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}

#chatContainer {
    background: linear-gradient(90deg, rgb(211, 237, 255) 0%, rgba(255, 232, 224, 1) 50%, rgb(255, 254, 219) 100%);
}

#smilesContainer {

    background: linear-gradient(90deg, rgb(211, 255, 220) 0%, rgba(255, 232, 224, 1) 50%, rgb(252, 219, 255) 100%);

}

#jsonContainer {
    background: linear-gradient(90deg, rgb(230, 211, 255) 0%, rgb(255, 224, 224) 50%, rgb(219, 247, 255) 100%);
}

.fancy-input-container {
    /* padding: 200px; */
    position: absolute;
    top: -200px;
    /* Adjust spacing from bottom of viewport or buttons */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    height: auto;
    width: 1000px;
    display: flex;
    /* flex-direction: row; */
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    gap: 32px;
}

.fancy-input-container.on {
    top: 40px !important;
}


#chatOutput {
    margin: 0;
}

#aiGenerate {
    color: #fff;
    background: linear-gradient(90deg, rgb(77, 166, 255), rgb(255, 42, 42), rgb(215, 181, 32));
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    height: auto;
    border-radius: 5px;
}

#aiGenerate:hover {
    color: #ffea00;
    box-shadow: 0 0 10px rgb(255, 255, 0), 0 0 15px rgba(255, 204, 0, 0);
    background-color: #0ec2f9;
}

#buttons {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    /* background-color: #e4e4e4; */
    /* padding: 30px; */
    width: 100vw;
}

#aiContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.button {
    background-color: rgb(0, 115, 8);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    background-color: #00d600;
}

#generateButton {
    color: #fff;
    background: linear-gradient(90deg, rgba(0, 136, 255, 1) 0%, rgb(0, 94, 255) 0%, rgba(255, 0, 98, 1) 100%);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-size: 300% 100%;
    height: 43px;
}

#generateButton:hover {
    color: #ffea00;
    background-color: #0ec2f9;
}

#toggleLabels {
    color: #fff;
    background-color: rgb(255, 170, 0);
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}


#showAllBondLengths {
    color: #ffffff;
    padding: 4px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    z-index: 999;
}

.snake-container {
    position: relative;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
}

#compare {
    background-color: #a855f7;
}

.snake-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg, #ff0000, #ff9900, #33cc33, #3399ff, #cc33cc, #ff0000);
    background-size: 400%;
    z-index: -2;
    border-radius: 14px;
    animation: snake 8s linear infinite;
}

.snake-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 10px;
    z-index: -1;
}

#loadSmilesButton {
    height: 43px;
    background: linear-gradient(90deg, rgba(0, 136, 255, 1) 0%, rgb(0, 94, 255) 0%, rgba(255, 0, 98, 1) 100%);
}

#loadJsonButton {
    height: 43px;
    background: linear-gradient(90deg, rgba(0, 136, 255, 1) 0%, rgb(0, 94, 255) 0%, rgba(255, 0, 98, 1) 100%);
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 0.15em solid rgba(255, 166, 0, 0);
    white-space: nowrap;
    animation: typing 0.75s steps(20, end), blink-caret 0.75s step-end infinite;
}

.glow {
    font-size: 2em;
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 20px #ff0080, 0 0 30px #ff0080;
    animation: glow 2s ease-in-out infinite alternate;
}

.fade-in {
    animation: fadeIn 0.5s;
}

.fade-out {
    animation: fadeOut 0.5s;
}

.fancy-button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.513), inset 2px 2px 3px rgba(255, 255, 255, 0.396), inset -8px -8px 16px rgba(255, 255, 255, 0.285);
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 140px;
    will-change: transform;

}

.fancy-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2), 0 0 8px rgba(255, 255, 255, 0.3);
}

.fancy-button.pulse {
    animation: subtlePulse 2s infinite;
}

@keyframes subtlePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); */
    transition: left 0.4s ease;
}



.fancy-button:active {
    transform: translateY(0) scale(0.98);
    /* Subtle press-down effect */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    /* Reduced shadow on click */
}

.fancy-button {
    position: relative;
    overflow: hidden;
}

.fancy-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    /* background: rgba(255, 255, 255, 0.3); */
    /* Subtle white ripple */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
    opacity: 0;
}

.fancy-button:active::after {
    width: 100px;
    /* Size of ripple */
    height: 100px;
    opacity: 0.5;
    transition: width 0.4s ease, height 0.4s ease, opacity 0.4s ease;
}

.fancy-button::after {
    left: var(--ripple-x, 50%);
    top: var(--ripple-y, 50%);
}

#import-smiles {
    background-color: #d244ef;
}

#import-json {
    background-color: #17af2d;
    display: none;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

#tutorialLinkButton {
    /* position: absolute; */
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 13px;
    background-color: #006dea;
    padding: 8px 16px;
    margin: 10px;
    bottom: 10px;
    right: 10px;
    z-index: 10000000;
    width: 106px;
}

#tutorialLinkButton:hover {
    background-color: #009dff;
    transform: translate(0, -2px);
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

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

.fancy-textbox {
    padding: 12px 9px;
    border: 2px solid #d1d5db;
    /* margin: 12px; */
    font-size: 15px;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    caret-color: #6366f1;
    /* border: 2px solid #0065ea; */
    border: none;
    width: 880px;
    /* Vibrant border color */
    border-radius: 15px;
    /* Rounded corners */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.513), inset 2px 2px 3px rgba(255, 255, 255, 0.396), inset -8px -8px 16px rgba(255, 255, 255, 0.285);
    /* Subtle shadow + glow */
    height: 20px;
    outline: none;
    /* Remove default outline */
}



#loading {
    position: absolute;
    color: #fff;
    /* background-color: #00d600; */
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding: 10px 0;
    border-radius: 5px;
    white-space: nowrap;
    font-size: 2em;
    height: 30px;
    /* Ensures text stays on one line */
    background: linear-gradient(90deg, #ff0000, #ff9900, #33cc33, #3399ff, #ff0000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 7s linear infinite;
    display: inline-block;
    top: -100px;
    transition: all 0.5s ease;
    z-index: 9999;
    pointer-events: none;
}

#loading.on {
    top: 15px;
}

#clear-canvas {
    background-color: #efbc44;
}

#analyze-molecule {
    background-color: #7ad23c;
}

#analysisResponseContainer {
    background-color: #c2e7ff5e;
    width: calc(100vw - 80px);
    height: 610px;
    overflow-y: scroll;
    z-index: 9999999999999999;
    position: absolute;
    top: calc(50% + 20px);
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    border: none;
    transition: all 1s ease;
    pointer-events: none;
    padding: 20px;
    color: #fff;
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 1.2em;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;

}


#analysisResponseContainer.on {
    opacity: 1;
    pointer-events: all !important
}

#analysisHeader {
    z-index: 99999999999999;
    background-color: #0088dd;
    padding: 10px;
    border-radius: 10px;
}

#closeAnalysis {
    position: absolute;
    transform: translate(-50%, -50%);
    right: 0px;
    top: 35px;
    background-color: rgba(255, 0, 0, 0);

}

#explorationCanvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    pointer-events: none;
    opacity: 0;
    z-index: 9;
    transition: all 0.9s ease;
    background-color: #0088dd43;
}

#compareButton {
    background-color: #5800dd;
}

#explorationCanvas.on {
    opacity: 1;
}

#styleSelector>* {
    flex-shrink: 0;
}

#styleSelector {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 9999;

    width: 300px;
    height: 85vh;
    /* Large + scrollable */
    overflow-y: auto;
    /* Enables scrolling */
    overflow-x: hidden;

    padding: 30px;
    border-radius: 10px;
    font-weight: 450;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #ffffff;

    background: linear-gradient(145deg,
            rgba(0, 133, 205, 0.501) 0%,
            rgba(10, 46, 118, 0.462) 67%,
            rgba(89, 0, 184, 0.555) 100%);

    backdrop-filter: blur(10px);

    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.513),
        inset 5px 5px 5px rgba(255, 255, 255, 0.326),
        inset -8px -8px 16px rgba(255, 255, 255, 0.285);
}

#loadingBar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background-color: limegreen;
    transition: width 0.2s ease, opacity 0.2s ease;
    z-index: 10000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    opacity: 0;

}

#loadingBar.active {
    animation: pulse-glow 1.5s ease-in-out infinite;
}

#loadingBar.complete {
    opacity: 0;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

#createFragment {
    padding: 9.5px 9px;
    font-size: 14px;
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 0px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    background-color: #001d4e;
    will-change: transform;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#createFragment:hover {
    cursor: pointer;
    background: #364d76;
}

#styleSelector.on {
    right: -500px;
}

#molecules-list {
    color: black !important;
    /* or whatever color shows on white background */
    background: white;
    padding: 0px !important;
    height: 35px !important;
}

#editMoleculePanel {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 9999;
    background-color: #ff000000;
    width: auto;
    height: auto;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    transform: translate(0%, -50%);
    gap: 10px;
}

#editMoleculePanel.on {
    left: -600px;
}

#editMoleculeContent {
    background-color: #ffbd8b1c !important;
    width: fit-content;
    height: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.513), inset 2px 2px 3px rgba(145, 145, 145, 0.396), inset -8px -8px 16px rgba(255, 255, 255, 0.159);
    padding: 30px 10px;
    border-radius: 20px;

}

#switchMode {
    color: #ffffff;
    padding: 8px 11px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    z-index: 999;
}

.shine {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.513), inset 3px 3px 5px rgba(145, 145, 145, 0.396), inset -8px -8px 16px rgba(255, 255, 255, 0.171);
}

#select-an-atom {
    color: #000000;
    align-self: center;
}

.switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cccccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #90cdff;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.switch-label {
    font-size: 16px;
}

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

    100% {
        background-position: 600% 0%;
        /* Moves gradient fully to the right */
    }
}

input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    /* background: #ddd; */
    background: linear-gradient(90deg, #e1e7ff46, #f0deff59);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.23), 0 3px 4px rgba(61, 61, 61, 0.151);
    border-radius: 5px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: #0080ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #0077ff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-track {
    background: #ddd;
    border-radius: 5px;
    height: 8px;
}

input[type="range"]:focus {
    background: linear-gradient(90deg, rgb(255, 251, 227), #ffdede);

}


#editMolecule {
    background: #0084ff;
    background: linear-gradient(90deg, rgba(0, 132, 255, 1) 0%, rgba(159, 69, 255, 1) 51%, rgba(255, 171, 74, 1) 100%);
}

#dragFile {
    background: #0084ff;
    background: linear-gradient(90deg, rgba(0, 132, 255, 1) 0%, rgba(159, 69, 255, 1) 51%, rgba(255, 171, 74, 1) 100%);
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;

}

/* Database Search Panel - Unified Panel */
.db-search-panel {
    position: relative;
    width: 800px;
    min-width: 280px;
    max-width: 850px;
    min-height: 20px;
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    z-index: 9999;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition:
        background-color 200ms ease,
        color 200ms ease,
        opacity 200ms ease,
        transform 200ms ease,
        box-shadow 200ms ease;
    visibility: hidden;
}

.db-search-panel:not(.active) * {
    pointer-events: none !important;
}

.db-search-table .col-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    max-width: 180px;
    max-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.db-search-table .col-desc:hover {
    color: rgba(255, 255, 255, 0.7);
}

.db-search-table .col-desc.expanded {
    white-space: normal;
    max-width: 400px;
    max-height: 200px;
    padding: 14px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 50, 80, 0.4);
    border-radius: 4px;
}

.db-search-panel.active {
    opacity: 1;
    pointer-events: all;
    user-select: all;
    transform: translateY(0);
    visibility: visible;
}

.dropdown:not(.active) .dropdown-content {
    pointer-events: none !important;
    visibility: hidden !important;
}

.dropdown:not(.active) .dropdown-content * {
    pointer-events: none !important;
}

/* Panel Header */
.db-search-header {
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-search-header i {
    color: rgba(0, 180, 255, 0.8);
}

/* Search Bar Row */
.db-search-bar {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

.db-search-input {
    width: 100%;
    padding: 10px 12px;
    padding-right: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
    box-sizing: border-box;
}

.db-search-input:focus {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.db-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Loader Spinner */
.db-search-loader {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #00bbff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    opacity: 0;
    transition: opacity 0.2s;
}

.db-search-loader.show {
    opacity: 1;
}

/* Results Dropdown */
.db-search-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.db-search-dropdown.show {
    max-height: 320px;
    overflow-y: auto;
}

.db-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.db-search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.db-search-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* Table with Grid Lines */
.db-search-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.db-search-table thead {
    position: sticky;
    top: 0;
    background: rgba(30, 30, 50, 0.98);
    z-index: 1;
}

.db-search-table th {
    padding: 10px 12px;
    text-align: left;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.db-search-table th:last-child {
    border-right: none;
}

.db-search-table td {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.db-search-table td:last-child {
    border-right: none;
}

.db-search-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

.db-search-table tbody tr:hover {
    background: rgba(0, 136, 255, 0.15);
}

.db-search-table tbody tr.active {
    background: rgba(0, 136, 255, 0.3);
}

.db-search-table tbody tr:last-child td {
    border-bottom: none;
}

/* Column Styles */
.db-search-table .col-name {
    font-weight: 500;
    color: #fff;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-search-table .col-db {
    color: rgba(0, 200, 255, 0.8);
    font-size: 11px;
}

.db-search-table .col-type {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

/* Empty State */
.db-search-empty {
    padding: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    border: none !important;
}

/* Panel Resizers */
.db-search-resizer {
    position: absolute;
    background: transparent;
    z-index: 10;
    transition: background 0.2s;
}

.db-search-resizer:hover {
    background: rgba(0, 136, 255, 0.4);
}

.db-search-resizer-left {
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: ew-resize;
}

.db-search-resizer-right {
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: ew-resize;
}

.db-search-resizer-bottom {
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 5px;
    cursor: ns-resize;
}

#dragFile.dragover {
    opacity: 0.4;
    z-index: 99999999999999999999999999999999999999999999999999999999999999999999999999999999999999;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff0000;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    margin-bottom: 8px;
}

.tooltip:hover::after {
    opacity: 1;
}

#signInButton {
    background-color: #2195f300;
}

#signOutButton {

    background-color: #8e1acd00;
}

#userStatus {
    position: absolute;
    top: 7px;
    right: 10px;
    padding: 0px 0px;
    border-radius: 5px;
    color: #ffffff6a;
    background-color: none;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;

    background: none !important;
}

/* Icon styling */
.dropdown-icon {
    font-size: 24px;
    cursor: pointer;
    padding: 7px;
    background-color: #00000000;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

/* Show dropdown when active class is present */
.dropdown.active .dropdown-content {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown.active .dropdown-icon {
    color: #ffee00;
    text-shadow: 0 0 10px #ff9d0096;
    transform: scale(1.3);
    transition: all 0.3s ease;
}

#toolbar-background {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -999999999999999;
    border-radius: 10px;
    padding: 3px 10px;
    transition: opacity 0.3s ease;
    background-repeat: no-repeat !important;
    perspective: 1000px;
    background-color: #5d5d5d57;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#fragmentList {
    list-style: none;
    padding: 0;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: white;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 0px;
    padding-bottom: 0px;
    justify-content: center;
    background-color: none;
}

#fragmentListContainer {

    display: flex;
    align-items: center;
    justify-content: top;
    flex-direction: column;
    width: 140px;
    height: 100vh;
    padding: 10px 0;
    position: absolute;
    top: -20px;
    left: 242px;
    margin-right: 0px;
    margin-top: 10px;
    right: 0px;
    background-color: rgba(0, 24, 55, 0.237);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.227);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    max-height: 0px;
    opacity: 0;
}

#fragmentListContainer.open {
    max-height: 100vh;
    opacity: 1;
}

#fragmentListTitle {
    color: white;
    position: relative;
}


#selectionBox {
    position: absolute;
    border: 2px dashed;
    background: rgba(246, 255, 0, 0.1);
    pointer-events: none;
    display: none;
    z-index: 1000;
    transition: none;
    animation: pulse 2s infinite;
    border-radius: 3px;
}

/* #premiumUpgradeBtn {
    display: flex !important;
    opacity: 1 !important;
    z-index: 10000 !important;
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 10px;
} */

/* Success notification style */
.limit-notification.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(40, 200, 69, 0.9));
    border: 2px solid #28a745;
}

.limit-notification.success i {
    color: #ffffff;
}

#energyChartDropdown .dropdown-content {
    background: rgba(20, 20, 35, 0.95);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#rotationSlider {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#rotationSlider:hover {
    opacity: 1;
}



#rotationSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 3px 8px rgba(255, 0, 255, 0.7);
}

#rotationSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #ff00ff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 0, 255, 0.5);
}

/* Axis control panel styling */
#defineAxisBtn {
    animation: pulse-magenta 2s infinite;
}

@keyframes pulse-magenta {
    0% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    }

    100% {
        box-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
    }
}

#removeAxisBtn:hover {
    background-color: #ff3333 !important;
    transform: scale(1.05);
}

/* Rotation value display */
#rotationValue {
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.5);
}

/* Enhanced user initials styling - add this to your style.css */

.file-pdb {
    color: #4CAF50;
}

.file-xyz {
    color: #2196F3;
}

.file-mol {
    color: #FF9800;
}

.file-mol2 {
    color: #E91E63;
}

.file-cif {
    color: #9C27B0;
}

.file-cml {
    color: #00BCD4;
}

.file-gro {
    color: #8BC34A;
}

.file-pqr {
    color: #FFC107;
}

/* Signed-in state for dropdown icon - prevents rainbow effect */

.donate-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
}

.donate-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #29be00;
}

.donate-btn:hover {
    background-color: rgba(255, 215, 0, 0.1);
    color: yellow;
    transform: translateY(-2px);
}

.donate-btn i {
    font-size: 16px;
}

/* Quick donation modal - matches ChopChopMol panels */
.donate-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgb(0, 42, 102) 0%, rgb(55, 0, 97) 100%);
    border-radius: 12px;
    padding: 30px;
    z-index: 10000;
    backdrop-filter: blur(20px);
    min-width: 320px;
}

.donate-modal.show {
    display: block;
}

.donate-modal h3 {
    color: #FFD700;
    margin: 0 0 20px 0;
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    text-align: center;
}

.donate-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.amount-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s ease;
}

.amount-btn:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.amount-btn.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    color: #FFD700;
}

.donate-proceed {
    width: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border: none;
    color: black;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.donate-proceed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.donate-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.donate-close:hover {
    color: white;
}

/* Backdrop */
.donate-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.donate-backdrop.show {
    display: block;
}



/* Hover effect for user initials - replaces the rainbow effect */
.dropdown-icon.signed-in:hover .user-initials {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Animation for when user signs in */
.user-initials {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Optional: Different color themes for variety */
.user-initials.blue-theme {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.user-initials.purple-theme {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
}

.user-initials.green-theme {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.user-initials.orange-theme {
    background: linear-gradient(135deg, #FF9800 0%, #FF5722 100%);
}


@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
        /* Move gradient for seamless loop */
    }
}

@keyframes pulse {
    0% {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }

    50% {
        border-color: #00d4ff;
        box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
    }

    100% {
        border-color: #007bff;
        box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    }
}

/* Dropdown content */
.dropdown-content {
    position: fixed;
    top: 60px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 160px;
    z-index: 1;
    border-radius: 20px;
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
    background: #ffffff11;
    backdrop-filter: blur(10px) !important;
    background-repeat: no-repeat !important;
}

.dropdown-content::before {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
}

/* Show dropdown on hover with fade-in and slide */


/* Fancy button styling */
.dropdown-content button {
    margin: 5px 0;
}

.fancy-button:hover {
    background-color: #0056b3;
}



@keyframes slideIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Accessibility: Focus state for keyboard navigation */
.dropdown-icon:focus+.dropdown-content {
    display: block;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.shake-button:hover {
    animation: angry-shake 1s infinite;
}

#modalSignIn:hover {
    box-shadow: 0 4px 12px rgba(25, 98, 255, 0.473);
    transform: scale(1.1);
    transition: 0.4s all ease;
}

.dismiss {
    background: rgba(255, 255, 255, 0.232);
    border: none;
    color: white;
    border-radius: 20px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
    flex-shrink: 0;

}

.dismiss:hover {
    background: rgba(255, 67, 67, 0.316);


}

/* Add these styles to your style.css file */

/* User initials styling */
.user-initials {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    top: -4px;
    width: 32px;
    height: 32px;
    background: none;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 3px solid rgb(0, 175, 3);
    transition: all 0.3s ease;
    margin: 0px;
}

/* Signed-in state for dropdown icon */

/* Override the rainbow hover effect for signed-in users */
.dropdown:hover .dropdown-icon.signed-in {
    background: transparent !important;
    background-clip: initial !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    animation: none !important;
}

/* Hover effect for user initials */
.dropdown-icon.signed-in:hover .user-initials {
    transform: scale(1.1);
}

/* Animation for when user signs in */
.user-initials {
    animation: fadeInScale 0.5s ease-out;
}



@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Alternative color schemes you can use */
.user-initials.blue-theme {
    background: linear-gradient(135deg, #2196F3 0%, #21CBF3 100%);
}

.user-initials.purple-theme {
    background: linear-gradient(135deg, #9C27B0 0%, #E91E63 100%);
}

.user-initials.green-theme {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

/* For WebKit browsers */
::-webkit-scrollbar {
    width: 4px;
    /* scrollbar width */
}

::-webkit-scrollbar-track {
    background: #111;
    /* background behind scrollbar */
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ============ STRIPE PREMIUM STYLES ============ */

/* Premium upgrade button */
.premium-upgrade-btn {
    position: fixed;
    top: 20px;
    left: 75px;
    padding: 5px 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.premium-upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.premium-upgrade-btn.premium-active {
    background: linear-gradient(135deg, #10812b, #00fa21);
    color: white;
}

.premium-upgrade-btn i {
    font-size: 16px;
}

/* Premium modal */
.premium-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.309);
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.premium-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-modal-content {
    background: linear-gradient(135deg, #1c2553, #21163e);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    position: relative;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.close-premium-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-premium-modal:hover {
    color: #fff;
}

.premium-header {
    text-align: center;
    margin-bottom: 30px;
}

.premium-crown {
    font-size: 48px;
    color: #FFD700;
    /* margin-bottom: 15px; */
    animation: float 3s ease-in-out infinite;
    perspective: 1000px;
}

.premium-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.premium-header p {
    color: #aaa;
    font-size: 16px;
}

.premium-price-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    font-size: 15px;
}

.price-tag {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #fff;
}

.price-tag .currency {
    font-size: 24px;
    vertical-align: super;
    color: #FFD700;
}

.price-tag .period {
    font-size: 18px;
    color: #aaa;
}

.premium-features {
    list-style: none;
    padding: 0;
    margin: 25px 0;
    text-align: left;
}

.premium-features li {
    padding: 12px 0;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-features li:last-child {
    border-bottom: none;
}

.premium-features i {
    color: #28a745;
    font-size: 14px;
}

.subscribe-premium-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    position: relative;
}

.subscribe-premium-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.subscribe-premium-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.subscribe-premium-btn.loading .btn-text {
    display: none;
}

.subscribe-premium-btn.loading .loading-spinner {
    display: block;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.trial-text {
    color: #888;
    font-size: 12px;
    margin-top: 15px;
}

/* Limit notification */
.limit-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(220, 53, 69, 0.4);
    display: none;
    animation: slideInRight 0.3s ease;
    z-index: 2000;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.limit-notification.show {
    display: flex;
}

.limit-notification.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.limit-notification i {
    font-size: 20px;
}

/* Tool locked state */
.tool-locked {
    opacity: 0.5;
    cursor: not-allowed !important;
    position: relative;
}

.tool-locked:after {
    content: "🔒";
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 12px;
}

#premiumUpgradeBtn {
    display: none;
    /* Hidden by default */
}

/* Trial active state */
.premium-upgrade-btn.trial-active {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
    color: white;
}

.premium-upgrade-btn.trial-active:hover {
    background: linear-gradient(135deg, #9333EA, #8B5CF6) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}


/* Trial notification styles */
.limit-notification.trial-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1.1);
    }

    50% {
        transform: translateY(-10px) scale(0.9) rotateX(15deg);

    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes glowButton {
    0% {
        box-shadow: 0 0 20px #00a6ff;
        transform: scale(1);
        color: #fff;
    }

    50% {
        box-shadow: 0 0 30px #00ffe1;
        /* color: #00ffea; */
        transform: scale(1.1);

    }

    100% {
        box-shadow: 0 0 20px #009dff;
        color: #fff;
        transform: scale(1);

    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #fff, 0 0 20px #ff0080, 0 0 30px #ff0080;
        color: #fff;
    }

    to {
        text-shadow: 0 0 20px #fff, 0 0 30px #00ffea, 0 0 40px #00ffea;
        color: #00ffea;
    }
}

@keyframes angry-shake {
    0% {
        transform: translate(0, 0);
    }

    5% {
        transform: translate(1.2px, 0.8px);
    }

    10% {
        transform: translate(-1.7px, 1.1px);
    }

    15% {
        transform: translate(0.3px, -1.9px);
    }

    20% {
        transform: translate(-1.1px, -0.6px);
    }

    25% {
        transform: translate(-1.9px, -1.4px);
    }

    30% {
        transform: translate(-0.5px, 1.7px);
    }

    35% {
        transform: translate(1.3px, -0.3px);
    }

    40% {
        transform: translate(2px, 1px);
    }

    45% {
        transform: translate(0.7px, -1.8px);
    }

    50% {
        transform: translate(-1.6px, 1.4px);
    }

    55% {
        transform: translate(1.5px, -0.9px);
    }

    60% {
        transform: translate(-0.4px, 1.2px);
    }

    65% {
        transform: translate(0.9px, -1.6px);
    }

    70% {
        transform: translate(-1.3px, 0.2px);
    }

    75% {
        transform: translate(1.8px, -1.1px);
    }

    80% {
        transform: translate(-0.7px, 1.9px);
    }

    85% {
        transform: translate(0.2px, -1.3px);
    }

    90% {
        transform: translate(-1.9px, 0.5px);
    }

    95% {
        transform: translate(1.1px, -0.6px);
    }

    100% {
        transform: translate(0, 0.5);
    }
}


@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: rgba(255, 166, 0, 0);
    }
}

@keyframes snake {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

@keyframes moveGradient {
    0% {
        background-position: 0% 50%;
    }

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

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

/* AI Toggle Button in Toolbar */
#aiToggleBtn {
    color: white;
    position: relative;
}



/* Main Chat Panel */

/* Markdown styling in AI chat */
.ai-message.assistant .ai-message-content p {
    margin: 0 0 8px 0;
}

.ai-message.assistant .ai-message-content p:last-child {
    margin-bottom: 0;
}

.ai-message.assistant .ai-message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.ai-message.assistant .ai-message-content pre {
    background: rgba(0, 0, 0, 0.4);
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 8px 0;
}

.ai-message.assistant .ai-message-content pre code {
    background: none;
    padding: 0;
}

.ai-message.assistant .ai-message-content ul,
.ai-message.assistant .ai-message-content ol {
    margin: 8px 0;
    padding-left: 20px;
}

.ai-message.assistant .ai-message-content strong {
    color: #fff;
}

.ai-model-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    width: 100%;
}

.ai-model-select:hover {
    background: rgba(255, 255, 255, 0.15);
}

#bottom-options {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.ai-chat-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(30, 20, 50, 0.98));
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    z-index: 10001;
    transition: all 0.3s ease !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    font-family: 'Rubik', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateX(-100%);
}

.ai-chat-panel.open {
    transform: translateX(0);
}

/* Header */
.ai-chat-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2px 2px;
    background-color: #00244e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.ai-chat-header i {
    margin-right: 8px;
}

.ai-header-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

.ai-header-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 8px;
    transition: all 0.2s;
    align-items: center;
    text-align: left;
    line-height: 1;
    width: 100px;
    font-weight: 600;
}

.ai-header-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
}

.ai-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Messages Container */
.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #00051b;
}

/* Individual Messages */
.ai-message {
    max-width: 90%;
    animation: aiMessageFadeIn 0.3s ease;
}

@keyframes aiMessageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-message.user {
    align-self: flex-end;
}

.ai-message.assistant {
    align-self: flex-start;
}

.ai-message-content {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    pointer-events: all !important;
    user-select: text;
}

.ai-message.user .ai-message-content {
    background: linear-gradient(135deg, #3084d2, #004aca);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: #006deab5 0px 2px 10px;
}

.ai-message.assistant .ai-message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    border-bottom-left-radius: 4px;
    /* border: 1px solid rgba(255, 255, 255, 0.05); */
    box-shadow: #3e3e3eb5 0px 2px 10px;
}

.ai-message.error .ai-message-content {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Actions Badge */
.ai-actions-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-action-tag {
    background: rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ai-action-tag i {
    font-size: 10px;
}

/* Typing Indicator */
.ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: aiTypingBounce 1.4s infinite ease-in-out;
}

.ai-typing span:nth-child(1) {
    animation-delay: 0s;
}

.ai-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.ai-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes aiTypingBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Input Area */
.ai-chat-input-area {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

#aiChatInput {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 14px;
    font-family: 'Rubik', sans-serif;
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    resize: none;
    min-height: 24px;
    max-height: 220px;
    overflow-y: auto;
    line-height: 1.4;
}


#aiChatInput::-webkit-scrollbar {
    width: 6px;
}

#aiChatInput::-webkit-scrollbar-track {
    background: transparent;
}

#aiChatInput::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

#aiChatInput::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

#aiChatInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#aiChatInput:focus {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.2);
}

#aiSendBtn {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: rgba(60, 71, 119, 0.5);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

#aiSendBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

#aiSendBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Settings Modal */
.ai-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10002;
    align-items: center;
    justify-content: center;
}

.ai-settings-modal.open {
    display: flex;
}

.ai-settings-content {
    background: linear-gradient(135deg, #1e293b, #312e81);
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-settings-content h3 {
    color: white;
    margin: 0 0 20px 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-settings-content h3 i {
    color: #fbbf24;
}

#aiApiKeyInput {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 14px;
    font-family: monospace;
    margin-bottom: 10px;
    box-sizing: border-box;
}

#aiApiKeyInput:focus {
    outline: none;
    border-color: #667eea;
}

.ai-settings-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin: 0 0 20px 0;
}

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

.ai-settings-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Rubik', sans-serif;
    transition: all 0.2s;
}

#aiSaveKeyBtn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

#aiSaveKeyBtn:hover {
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

#aiCancelKeyBtn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

#aiCancelKeyBtn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Welcome Message */
.ai-welcome {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

.ai-welcome i {
    font-size: 40px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-welcome h4 {
    color: white;
    margin: 0 0 10px 0;
}

.ai-welcome p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Quick Actions */
.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-quick-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Rubik', sans-serif;
}

.ai-quick-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: white;
}

/* Tool Caption (shown at bottom of message during streaming) */
.ai-tool-caption {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(102, 126, 234, 0.15);
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 12px;
    animation: toolCaptionPulse 1.5s ease-in-out infinite;
}

.ai-tool-caption i {
    font-size: 11px;
}

@keyframes toolCaptionPulse {

    0%,
    100% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .ai-chat-panel {
        width: 100%;
        right: -100%;
    }

    .ai-chat-panel.open {
        right: 0;
    }
}

/* File Explorer Panel */
.file-explorer-panel {
    position: fixed;
    right: 0;
    top: 0;
    width: 244px;
    height: 100vh;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 15, 30, 0.98) 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.file-explorer-panel.open {
    transform: translateX(0);
}

.file-explorer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.file-explorer-title {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    background: none;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    outline: none;
    width: 100%;
}

.file-explorer-title option {
    background: #1a1a2e;
    color: #fff;
}

.file-explorer-actions {
    display: flex;
    gap: 4px;
}

.file-explorer-actions button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.file-explorer-actions button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.file-explorer-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#fileSearchInput {
    flex: 1;
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    outline: none;
    width: 100%;
}

#fileSearchInput:focus {
    border-color: rgba(0, 136, 255, 0.5);
}

#fileSearchInput::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#fileSearchInput:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.file-item.hidden,
.folder-item.hidden,
.folder-contents.hidden {
    display: none !important;
}

.file-tree {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    transition: none;
}

.file-tree-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    gap: 12px;
}

.file-tree-empty i {
    font-size: 48px;
    opacity: 0.3;
}

.file-tree-empty p {
    margin: 0;
    font-size: 14px;
}

/* File/Folder Items */
.file-item,
.folder-item {
    display: flex;
    align-items: center;
    padding: 3px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    transition: background 0.15s;
    user-select: none;
    font-size: 12px;
}

.file-item:hover,
.folder-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.folder-item.drop-target {
    background: rgba(0, 136, 255, 0.2);
    outline: 2px dashed rgba(0, 136, 255, 0.6);
    outline-offset: -2px;
}

.file-item.active,
.cloud-item.active {
    background: rgba(0, 136, 255, 0.2);
    color: #fff;
}

.file-item.ai-created {
    border-right: 2px solid #00ff88;
}

.file-item i,
.folder-item i {
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.folder-item i.folder-icon {
    color: #f0c36d;
}

.file-item i.file-mol {
    color: #00bbff;
}

.file-item i.file-pdb {
    color: #ff6b6b;
}

.file-item i.file-xyz {
    color: #4ecdc4;
}

.file-item i.file-text {
    color: rgba(255, 255, 255, 0.5);
}

.file-item i.file-json {
    color: #f0db4f;
}

/* Panel Resizers */
.panel-resizer {
    position: absolute;
    background: transparent;
    z-index: 10002;
    transition: background 0.2s;
}

.panel-resizer:hover,
.panel-resizer.active {
    background: rgba(102, 126, 234, 0.5);
}

.panel-resizer-horizontal {
    width: 6px;
    height: 100%;
    top: 0;
    cursor: ew-resize;
}

.panel-resizer-vertical {
    width: 100%;
    height: 6px;
    cursor: ns-resize;
}

/* AI Panel resizer (right edge) */
.ai-chat-panel .panel-resizer-horizontal {
    right: -3px;
}

/* File Explorer resizer (left edge) */
.file-explorer-panel .panel-resizer-horizontal {
    left: -3px;
}

/* Cloud/Local divider resizer */
.explorer-divider-resizer {
    height: 8px;
    cursor: ns-resize;
    background: transparent;
    margin: 0;
    position: relative;
}

.explorer-divider-resizer:hover,
.explorer-divider-resizer.active {
    background: rgba(102, 126, 234, 0.3);
}

.explorer-divider-resizer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.explorer-divider-resizer:hover::after {
    background: rgba(102, 126, 234, 0.6);
}

.folder-contents {
    display: none;
    padding-left: 16px;
}

.folder-item.expanded+.folder-contents {
    display: block;
}

.folder-item .chevron {
    margin-right: 4px;
    transition: transform 0.2s;
    font-size: 11px;
}

.folder-item.expanded .chevron {
    transform: rotate(90deg);
}

/* Text Editor Modal */
.text-editor-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 70vw;
    height: 70vh;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 20000;
    display: none;
    flex-direction: column;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}

.text-editor-modal.open {
    display: flex;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.text-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px 12px 0 0;
}

#textEditorFilename {
    color: #fff;
    font-weight: 500;
    font-family: 'Monaco', 'Menlo', monospace;
}

.text-editor-actions {
    display: flex;
    gap: 8px;
}

.text-editor-actions button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.text-editor-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
}

#saveTextFileBtn {
    background: rgba(0, 200, 100, 0.3);
}

#saveTextFileBtn:hover {
    background: rgba(0, 200, 100, 0.5);
}

#textEditorContent {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: none;
    color: #e0e0e0;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    padding: 20px;
    resize: none;
    outline: none;
}

.text-editor-status {
    padding: 8px 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scrollbar styling */
.file-tree::-webkit-scrollbar,
#textEditorContent::-webkit-scrollbar {
    width: 8px;
}

.file-tree::-webkit-scrollbar-track,
#textEditorContent::-webkit-scrollbar-track {
    background: transparent;
}

.file-tree::-webkit-scrollbar-thumb,
#textEditorContent::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Explorer Tabs */
.explorer-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cloud-section {
    flex: 0 0 auto;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.cloud-section>* {
    flex-shrink: 0;
}

.local-section {
    flex: 1;
    min-height: 80px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* File Context Menu */
.file-context-menu {
    position: fixed;
    background: rgba(20, 25, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 4px 0;
    min-width: 140px;
    z-index: 20000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.file-context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.15s;
}

.file-context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.file-context-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
}

.file-context-menu-item.danger {
    color: #f87171;
}

.file-context-menu-item.danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

.file-context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 4px 0;
}

/* Save Dialog Modal */
.save-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.local-save-dialog {
    background: linear-gradient(135deg, #1a1a2e, #252545);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px 28px;
    min-width: 340px;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.local-save-dialog .save-dialog-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.local-save-dialog .save-dialog-title i {
    color: #4ade80;
}

.local-save-dialog .save-dialog-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.local-save-dialog input[type="text"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    outline: none;
    min-width: 0;
}

.local-save-dialog input[type="text"]:focus {
    border-color: rgba(0, 136, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(0, 136, 255, 0.15);
}

.local-save-dialog select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 14px 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.local-save-dialog select option {
    background: #1a1a2e;
}

.local-save-dialog .save-dialog-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.local-save-dialog button {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.local-save-dialog button:hover {
    background: rgba(255, 255, 255, 0.15);
}

#localSaveConfirm {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

#localSaveConfirm:hover {
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

#localSaveCancel:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

/* Inline Rename/Delete */
.file-item .rename-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(0, 136, 255, 0.5);
    border-radius: 3px;
    padding: 2px 6px;
    color: #fff;
    font-size: 12px;
    outline: none;
    min-width: 0;
}

.file-item .rename-confirm,
.file-item .rename-cancel,
.file-item .delete-confirm,
.file-item .delete-cancel {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 2px 6px;
    cursor: pointer;
    font-size: 11px;
}

.file-item .rename-confirm:hover,
.file-item .delete-confirm:hover {
    color: #4ade80;
}

.file-item .rename-cancel:hover,
.file-item .delete-cancel:hover {
    color: #f87171;
}

.file-item .delete-prompt {
    flex: 1;
    font-size: 11px;
    color: #f87171;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-chat-panel.resizing,
.file-explorer-panel.resizing {
    transition: none !important;
}

.cloud-section.resizing,
.local-section.resizing {
    transition: none !important;
}

.section-header {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    font-size: 12px;
}

#cloudSectionHeader {
    border-top: 1px solid rgba(122, 204, 255, 0.519);
}

.explorer-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    margin: 4px 0;
}

.cloud-list {
    flex: 1;
    overflow-y: auto;
    padding: 4px 0;
    max-height: 200px;
}

/* Drag styles for cloud items */
.cloud-item {
    cursor: grab;
}

.cloud-item.dragging {
    opacity: 0.5;
}

.file-tree.drag-over {
    background: rgba(0, 136, 255, 0.1);
    border: 2px dashed rgba(0, 136, 255, 0.5);
    border-radius: 8px;
    min-height: 50px;
}



.local-actions button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.local-actions button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.folder-name-input {
    display: flex;
    align-items: center;
    padding: 6px 16px;
    gap: 8px;
}

.folder-name-input i {
    color: #f0c36d;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.folder-name-input input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 136, 255, 0.5);
    border-radius: 4px;
    padding: 4px 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.folder-name-input input:focus {
    border-color: rgba(0, 136, 255, 0.8);
}

/* Cloud Tab */

.file-item.hidden,
.folder-item.hidden,
.folder-contents.hidden,
.cloud-item.hidden,
.cloud-folder-item.hidden,
.cloud-folder-contents.hidden {
    display: none !important;
}

.cloud-input {
    flex: 1;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 13px;
    outline: none;
}

.cloud-input:focus {
    border-color: rgba(0, 136, 255, 0.5);
}



.cloud-save-section button:hover {
    opacity: 0.8;
}




.cloud-item:hover {
    background: rgba(255, 255, 255, 0.05);
}


.cloud-item {
    display: flex;
    align-items: center;
    padding: 3px 16px;
    cursor: grab;
    transition: background 0.15s;
}

.cloud-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cloud-item.dragging {
    opacity: 0.5;
}

.cloud-item>i:first-child {
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
    color: #00bbff;
}

.cloud-item-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    font-size: 12px;
}

.cloud-item-name:hover {
    color: #46a9ff;
}

.cloud-item-actions {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
}

.cloud-item:hover .cloud-item-actions {
    opacity: 1;
    visibility: visible;
}

.cloud-item-actions button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    padding: 0px 0px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}

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

.cloud-item-actions .delete-btn:hover {
    color: #ff6b6b;
}


.cloud-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
}

/* Chart Lightbox */
.chart-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    cursor: zoom-out;
    animation: lightboxFadeIn 0.2s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.chart-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.2s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cloud folder styles - reuse local folder styles */
.cloud-folder-item {
    display: flex;
    align-items: center;
    padding: 1px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    transition: background 0.15s;
    user-select: none;
}

.cloud-folder-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cloud-folder-contents {
    display: none;
    padding-left: 16px;
}

.cloud-folder-item.expanded+.cloud-folder-contents {
    display: block;
}

.cloud-folder-item .chevron {
    margin-right: 4px;
    transition: transform 0.2s;
    font-size: 11px;
}

.cloud-folder-item.expanded .chevron {
    transform: rotate(90deg);
}

.cloud-folder-item .folder-icon {
    color: #f0c36d;
    margin-right: 8px;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.cloud-folder-item .cloud-item-actions {
    margin-left: auto;
    opacity: 0;
    visibility: hidden;
}

.cloud-folder-item:hover .cloud-item-actions {
    opacity: 1;
    visibility: visible;
}

.cloud-folder-item.drop-target {
    background: rgba(0, 136, 255, 0.2);
    outline: 2px dashed rgba(0, 136, 255, 0.6);
    outline-offset: -2px;
}

.explorer-search-bar {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.explorer-search-bar input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: all 0.25s ease;
}

.explorer-search-bar input:focus {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.explorer-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#fileSearchInput {
    flex: 1;
    min-width: 0;
    width: 100%;
    transition: all 0.25s ease;
}

#fileSearchInput.sharing {
    flex: 1;
}

.cloud-item i.file-mol {
    color: #00bbff;
}

.cloud-item i.file-pdb {
    color: #ff6b6b;
}

.cloud-item i.file-xyz {
    color: #4ecdc4;
}

#cloudSaveInput {
    display: none;
}

#cloudSaveCancel:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

#cloudSaveInput.visible {
    display: block;
    flex: 1;
    min-width: 0;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    outline: none;
}

#cloudSaveInput.visible:focus {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.cloud-empty i {
    font-size: 36px;
    opacity: 0.3;
}

.cloud-loading {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

/* Database Source Selector */
.db-source-select {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    cursor: pointer;
    min-width: 100px;
    transition: all 0.2s;
}

.db-source-select:hover {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.db-source-select:focus {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.db-source-select option {
    background: #1a1a2e;
    color: #fff;
}

.db-search-bar {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 8px;
    align-items: center;
}

.db-search-input {
    flex: 1;
}

/* Global Explorer Toolbar */
.explorer-toolbar {
    display: flex;
    gap: 6px;
}

.explorer-toolbar button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
}

.local-toolbar-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 5px 5px;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 12px;
}

.filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.filter-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    min-width: 150px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.filter-dropdown.show {
    display: block;
}

.filter-dropdown-item {
    padding: 8px 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
    user-select: none;
}

.filter-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.filter-dropdown-item.active {
    background: rgba(0, 136, 255, 0.2);
    color: #fff;
}

.explorer-toolbar button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.explorer-toolbar button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.explorer-header-right {
    display: flex;
    gap: 4px;
    align-items: center;
    width: 100%;
}

/* Updated header layout */
.file-explorer-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    gap: 8px;
}

/* Search bar row */
.explorer-search-bar {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.15);
}

.explorer-search-bar input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    outline: none;
    min-width: 0;
}

.explorer-search-bar input:focus {
    border-color: rgba(0, 136, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.explorer-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.explorer-search-bar #cloudSaveInput {
    flex: 1.2;
}


/* Panel Collapse Toggle Buttons */
.panel-collapse-toggle {
    position: absolute;
    top: 100%;
    transform: translateY(-100%);
    width: 20px;
    height: 50px;
    background-color: #8a1500;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    transition: all 0.2s;
    font-size: 12px;
    font-weight: 600;
}

.panel-collapse-toggle:hover {
    background: rgba(102, 126, 234, 0.3);
    color: #fff;
}

/* AI Panel toggle - on right edge, arrow points left when expanded */
.ai-chat-panel .panel-collapse-toggle {
    right: -20px;
    border-radius: 0 6px 6px 0;
    border-left: none;
}

/* File Explorer toggle - on left edge, arrow points right when expanded */
.file-explorer-panel .panel-collapse-toggle {
    left: -20px;
    border-radius: 6px 0 0 6px;
    border-right: none;
}

/* Arrow rotation for collapsed state */
.panel-collapse-toggle.collapsed i {
    transform: rotate(180deg);
}

.panel-collapse-toggle i {
    transition: transform 0.3s ease;
}

.cloud-list.drag-over {
    background: rgba(0, 200, 100, 0.1);
    border: 2px dashed rgba(0, 200, 100, 0.5);
    border-radius: 8px;
}

.file-item.dragging {
    opacity: 0.5;
}

.file-item {
    cursor: grab;
}

/* Multi-select styles */
.file-item.selected,
.cloud-item.selected {
    background: rgba(0, 136, 255, 0.25) !important;
    outline: 1px solid rgba(0, 136, 255, 0.5);
}

.file-item.marquee-hover,
.cloud-item.marquee-hover {
    background: rgba(0, 136, 255, 0.15);
}

.selection-marquee {
    position: fixed;
    border: 1px dashed rgba(0, 136, 255, 0.8);
    background: rgba(0, 136, 255, 0.1);
    pointer-events: none;
    z-index: 10000;
    transition: none;
}


.file-item,
.cloud-item {
    position: relative;
}

/* Mic Button */
.ai-mic-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    transition: all 0.2s;
    font-size: 14px;
}

.ai-mic-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.ai-mic-btn.recording {
    background: rgba(239, 68, 68, 0.6);
    color: white;
    animation: pulse-mic 1s infinite;
}

@keyframes pulse-mic {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* AI Status Text */
.ai-status-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.5) 0%,
            rgba(255, 255, 255, 0.5) 40%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.5) 60%,
            rgba(255, 255, 255, 0.5) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aiStatusShine 1.5s linear infinite;
}

@keyframes aiStatusShine {
    0% {
        background-position: 100% 0;
    }

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

/* Settings Gear Submenu Styles */
.settings-submenu {
    width: 100%;
    margin-bottom: 5px;
}

.submenu-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    color: white;
    font-size: 13px;
}

.submenu-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.submenu-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform 0.2s;
}

.submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.submenu-content.open {
    max-height: 500px;
    padding: 8px;
}

.settings-submenu.open .submenu-arrow {
    transform: rotate(180deg);
}

/* Floating Style Panel - stuck to file explorer */
.style-panel {
    position: absolute;
    top: 10px;
    right: 100%;
    margin-right: 10px;
    width: 367px;
    z-index: 9999;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    overflow: hidden;
    opacity: 0;
}

.style-panel.open {
    opacity: 1;
}

.style-panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: background 0.2s;
}

.style-panel-header:hover {
    background: rgba(255, 255, 255, 0.1);
}

.style-panel-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.style-panel.open .style-panel-arrow {
    transform: rotate(180deg);
}

.style-panel-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.style-sliders-col,
.style-checkboxes-col {
    display: flex;
    flex-direction: column;
}

.style-sliders-col {
    flex: 1;
    min-width: 150px;
    gap: 3px;
}

.style-checkboxes-col {
    flex: 0 0 auto;
    min-width: 110px;
    gap: 0px;
}

.style-panel-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.style-save-btn {
    width: 100%;
    padding: 6px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.style-save-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.25);
}

.style-panel.open .style-panel-content {
    max-height: 400px;
    padding: 8px 12px 12px;
}

#style8 {
    width: 60%;
    padding: none;
    border: 1px solid white;
}

input[type="color"] {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    background: none;
    cursor: pointer;
}

/* Chrome / Safari */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
}

/* Firefox */
input[type="color"]::-moz-color-swatch {
    border: none;
}

/* Compact style controls */
.compact-style-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.compact-style-row label {
    flex: 0 0 70px;
    font-size: 14px;
}

.compact-style-row input[type="range"] {
    flex: 1;
    height: 4px;
    max-width: 128px;
}

.compact-style-row input[type="color"] {
    width: 30px;
    height: 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.compact-style-row.checkbox-row {
    justify-content: flex-start;
}

.compact-style-row.checkbox-row label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.compact-style-row.checkbox-row input[type="checkbox"] {
    width: 14px;
    height: 14px;
}

.compact-btn {
    width: 100%;
    padding: 6px 10px !important;
    font-size: 11px !important;
    margin: 4px 0 !important;
}

/* Account icon with initials */
#accountIcon .user-initials {
    width: 20px;
    height: 20px;
    font-size: 10px;
    top: 0;
}

#settingsGear .dropdown-content {
    padding: 10px;
}

#settingsDropdown {
    width: fit-content !important;
    width: 90px;
    padding: 10px;
}

/* ===== TUTORIAL OVERLAY - ORANGE THEME ===== */
.tutorial-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
}

.tutorial-overlay.active {
    display: block;
}

/* Four dark panels around the spotlight */
.tutorial-backdrop-top,
.tutorial-backdrop-bottom,
.tutorial-backdrop-left,
.tutorial-backdrop-right {
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-backdrop-top {
    top: 0;
    left: 0;
    right: 0;
}

.tutorial-backdrop-bottom {
    bottom: 0;
    left: 0;
    right: 0;
}

.tutorial-backdrop-left {
    left: 0;
}

.tutorial-backdrop-right {
    right: 0;
}

/* Highlight ring around target */
.tutorial-highlight {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 100001;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 3px solid #ff6b35;
    border-radius: inherit;
}

.tutorial-ring-2 {
    top: -14px;
    left: -14px;
    right: -14px;
    bottom: -14px;
    border: 2px solid rgba(255, 107, 53, 0.5);
    display: none;
}

/* Expanded description row */
.desc-expanded-row {
    background: rgba(0, 50, 80, 0.4) !important;
}

.desc-expanded-row:hover {
    background: rgba(0, 50, 80, 0.5) !important;
}

.desc-expanded-row td {
    padding: 0 !important;
    border: none !important;
}

.desc-expanded-cell {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    white-space: normal;
    cursor: pointer;
    border-left: 3px solid rgba(0, 180, 255, 0.6);
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.desc-expanded-row.show .desc-expanded-cell {
    max-height: 200px;
    padding: 16px 20px;
}

@keyframes tutorialPulseOrange {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        border-color: #ff6b35;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
        border-color: #f7931e;
    }
}

@keyframes tutorialPulseOrange2 {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.tutorial-tooltip {
    position: absolute;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border: 2px solid #ff6b35;
    border-radius: 16px;
    padding: 0;
    width: 340px;
    color: white;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    z-index: 100002;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tutorial-step-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tutorial-close {
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.tutorial-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.tutorial-step-indicator {
    display: flex;
    gap: 6px;
    padding: 16px 20px 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.tutorial-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
    cursor: pointer;
}

.tutorial-step-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.2);
}

.tutorial-step-dot.active {
    background: #ff6b35;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}

.tutorial-step-dot.completed {
    background: #4ade80;
}

.tutorial-content {
    padding: 0 20px 16px;
}

.tutorial-content h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-content h3 i {
    color: #ff6b35;
    font-size: 18px;
}

.tutorial-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

.tutorial-content .tutorial-tip {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(255, 107, 53, 0.15);
    border-left: 3px solid #ff6b35;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    color: #ffb088;
}

.tutorial-content .tutorial-tip i {
    margin-right: 6px;
}

.tutorial-buttons {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tutorial-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tutorial-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.tutorial-btn.tutorial-next {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    margin-left: auto;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.tutorial-btn.tutorial-next:hover {
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.tutorial-btn.tutorial-skip {
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    font-weight: 400;
}

.tutorial-btn.tutorial-skip:hover {
    color: rgba(255, 255, 255, 0.8);
    background: transparent;
}

.tutorial-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none !important;
}

/* Highlight shape variants */
.tutorial-highlight.rect {
    border-radius: 12px;
}

.tutorial-highlight.rect .tutorial-ring,
.tutorial-highlight.rect .tutorial-ring-2 {
    border-radius: 16px;
}

/* Arrow pointer */
.tutorial-tooltip::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
    border: 2px solid #ff6b35;
    transform: rotate(45deg);
    z-index: -1;
}

.tutorial-tooltip.arrow-top::after {
    top: -10px;
    left: 50%;
    margin-left: -8px;
    border-right: none;
    border-bottom: none;
}

.tutorial-tooltip.arrow-bottom::after {
    bottom: -10px;
    left: 50%;
    margin-left: -8px;
    border-left: none;
    border-top: none;
}

.tutorial-tooltip.arrow-left::after {
    left: -10px;
    top: 50%;
    margin-top: -8px;
    border-right: none;
    border-top: none;
}

.tutorial-tooltip.arrow-right::after {
    right: -10px;
    top: 50%;
    margin-top: -8px;
    border-left: none;
    border-bottom: none;
}

.tutorial-tooltip.arrow-none::after {
    display: none;
}

/* Full dark overlay for center messages */
.tutorial-overlay .tutorial-full-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}