.aa-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(31, 41, 55, 0.9);
    border: 1px solid #4b5563;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: #e5e7eb;
    transition: all 0.15s ease-in-out;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.aa-box:hover {
    transform: translateY(-3px);
    background-color: #374151;
    border-color: #9ca3af;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    color: white;
}

.aa-box.active {
    border-color: #60a5fa;
    background-color: #1e3a8a;
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5), 0 0 15px rgba(96, 165, 250, 0.3);
    transform: scale(1.1);
    z-index: 10;
    color: white;
}

.aa-match {
    border-top: 3px solid #ffffff !important;
    box-shadow: inset 0 8px 8px -4px rgba(255, 255, 255, 0.25);
    z-index: 10;
}

.type-pos { border-bottom: 3px solid #3b82f6; }
.type-neg { border-bottom: 3px solid #ef4444; }
.type-hydro { border-bottom: 3px solid #eab308; }
.type-polar { border-bottom: 3px solid #10b981; }

#palette-tooltip {
    position: absolute;
    display: none;
    z-index: 9999;
    background-color: rgba(15, 23, 42, 0.95);
    border: 1px solid #475569;
    padding: 10px 14px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    font-size: 0.8rem;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

#helical-canvas {
    box-shadow: inset 0 0 30px #000;
    transition: box-shadow 0.3s ease;
}
#helical-canvas:hover {
    box-shadow: inset 0 0 20px #000, 0 0 15px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

#composition-chart {
    width: 100%;
    height: 100%;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #4b5563;
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background-color: #6b7280;
}

.no-scrollbar-visual {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.no-scrollbar-visual::-webkit-scrollbar {
    display: none;
}

input[type="file"]::file-selector-button {
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    background-color: #2563eb;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}
input[type="file"]::file-selector-button:hover {
    background-color: #1d4ed8;
}

#raw-seq-input {
    color: #e5e7eb;
    caret-color: #60a5fa;
}
#raw-seq-input::placeholder {
    color: #6b7280;
}

#structure-modal {
    z-index: 100;
}

#modal-backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}