.tab-buttons {
    border-bottom: 2px solid #374151;
    display: flex;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
    color: #9ca3af;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transform: translateY(2px);
    transition: all 0.2s ease-in-out;
}

.tab-button:hover {
    color: #e5e7eb;
}

.tab-button.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
    font-weight: 600;
}


#sequence-textarea {
    resize: vertical;
    min-height: 110px;
    font-family: 'Courier New', Courier, monospace;
}

input[type="file"]::-webkit-file-upload-button {
    cursor: pointer;
}


.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: auto;
    white-space: nowrap;
    background-color: #111827;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 50;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


.card {
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #374151;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
}

.card h3 {
    color: #a0c3ff !important;
    max-width: 90%;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.stat-card {
    background-color: rgba(17, 24, 39, 0.6);
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #4b5563;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(99, 179, 237, 0.2);
}
.stat-title {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}
.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #a0c3ff !important;
}
.stat-desc {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}


.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}
.download-chart-btn {
    background: none;
    border: 1px solid transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 9999px;
    transition: all 0.2s ease-in-out;
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}
.download-chart-btn:hover {
    color: #d1d5db;
    background-color: rgba(59, 130, 246, 0.2);
}
.download-chart-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}
.download-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #1f2937;
    border: 1px solid #4b5563;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    z-index: 20;
    padding: 0.5rem;
    margin-top: 0.5rem;
}


.download-chart-btn .download-options.show {
    display: flex;
    flex-direction: column-reverse;
}

.download-option {
    display: block;
    padding: 0.5rem 1rem;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}
.download-option:hover {
    background-color: #374151;
    color: white;
}


.table-container {
    max-height: none;
    overflow-y: visible;
    background-color: #1f2937;
    border-radius: 0.5rem;
}
#results-table th {
    cursor: pointer;
    position: relative;
    background-color: #374151;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom-width: 2px;
    border-color: #4b5563;
    white-space: nowrap;
}
#results-table th .sort-arrow {
    margin-left: 5px;
    font-size: 0.8em;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}
#results-table td {
    padding: 0.75rem 1rem;
    border-bottom-width: 1px;
    border-color: #374151;
    font-size: 0.875rem;
    color: #d1d5db;
}
#results-table tr:hover td {
    background-color: rgba(55, 65, 81, 0.5);
}
.pagination-controls {
    margin-top: 1rem;
    text-align: center;
}
.pagination-controls button,
.pagination-controls span {
    margin: 0 0.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #4b5563;
    background-color: #374151;
    color: #d1d5db;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
}
.pagination-controls button:hover:not(:disabled) {
    background-color: #6b7280;
}
.pagination-controls button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.sequence-cell {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    word-break: break-all;
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sequence-cell:hover {
    overflow: visible;
    white-space: normal;
    word-break: break-all;
}


.loader {
    border: 4px solid rgba(59, 130, 246, 0.2);
    border-top: 4px solid #60a5fa;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#sequence-2d-vis-container {
    height: auto;
    width: 100%;
}
.long-sequence-message {
    color: #9ca3af;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    padding: 2rem;
}


@media (max-width: 768px) {
    .chart-container {
        height: 350px !important;
    }
    .stat-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}
::-webkit-scrollbar {
  width: 10px;  
}

::-webkit-scrollbar-track {
  background: #1f2937;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #4b5563;
  border-radius: 5px;
  border: 2px solid #1f2937; 
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;  
}

* {
  scrollbar-width: thin;
  scrollbar-color: #4b5563 #1f2937; 
} 
#resultsTable td:nth-child(13) {
    white-space: nowrap;
}