textarea,
select {
    background-color: #374151;
    color: #e5e7eb;
    border: 1px solid #4b5563;
}

textarea::placeholder {
    color: #9ca3af;
}

.filter-control label {
    color: #d1d5db;
}

.filter-checkbox {
    margin-right: 0.5rem;
}

.slider-container {
    margin-top: 0.5rem;
}

.slider-values {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.noUi-target {
    background: #4b5563;
    border: none;
    box-shadow: none;
}

.noUi-connect {
    background: #3b82f6;
}

.noUi-horizontal {
    height: 6px;
}

.noUi-handle {
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    right: -7px !important;
    top: -4px !important;
    background: #6ee7b7 !important;
    box-shadow: none !important;
    border: none;
    cursor: grab;
}

.noUi-handle:active {
    cursor: grabbing;
}

.noUi-handle:before,
.noUi-handle:after {
    display: none;
}

.noUi-tooltip {
    display: none;
    padding: 2px 5px;
    font-size: 12px;
    background-color: #1f2937;
    color: #e5e7eb;
    border-radius: 3px;
}

.noUi-active .noUi-tooltip {
    display: block;
}

.amino-acid-filter {
    display: flex;
    flex-direction: column;
}

.amino-acid-input {
    width: 80px;
    text-align: center;
    padding: 0.3rem;
    border: 1px solid #4b5563;
    border-radius: 0.25rem;
    background-color: #374151;
    color: #e5e7eb;
}

.amino-acid-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.35rem;
}

.col-nr { width: 60px; text-align: center; }
.col-id { width: 150px; color: #93c5fd; }
.col-seq { width: 400px; }
.col-len { width: 80px; text-align: center; }
.col-mass, .col-pi, .col-charge, .col-gravy { width: 90px; text-align: center; }
.col-actions { width: 100px; text-align: center; }

.sequence-container,
.sequence-line {
    display: block;
    font-family: monospace, sans-serif;
    letter-spacing: 0.5px;
    color: #cbd5e1;
}

.sequence-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.5;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #2d3748;
    color: #e5e7eb;
    margin: 5% auto;
    padding: 25px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #4b5563;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.close-modal {
    color: #9ca3af;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.active-filters-container {
    display: none;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
}


.active-filter-tag {
    display: flex;
    align-items: center;
    background-color: #3b82f6;
    color: white;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    user-select: none;
}

.active-filter-tag:hover {
    background-color: #2563eb;
}


.filter-remove-btn {
    margin-left: 0.25rem;
    font-weight: bold;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
}


.active-filter-tag.inactive {
    background-color: #6b7280;
    color: #e5e7eb;
}

.active-filter-tag.inactive:hover {
    background-color: #4b5563;
}
