#filter-menu .dropdown-menu {
    min-height: 100px;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #edf0f2;
}

span.no-show {
    display: none;
}

span.show-ellipsis:after {
    content: "...";
}

.datatable-info {
    font-size: .9em;
}

#variant-table_info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px;
    border-top: 1px solid #dee2e6;
    z-index: 1000;
}

/* Add padding to prevent table content from being hidden behind fixed info bar */
#variant-table_wrapper {
    padding-bottom: 50px;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after,
table.dataTable thead th.sorting:before,
table.dataTable thead th.sorting_asc:before,
table.dataTable thead th.sorting_desc:before {
    font-family: FontAwesome !important;
}

.modal-content {
    width: 610px;
}

h7 {
    font-size: .95rem;
}

body {
    height: 100vh
}

div.dts div.dataTables_scrollBody {
    background: white;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    left: 0;
    top: 100%;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-item {
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    color: black;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-item:hover {
    background-color: #f1f1f1;
}

/* Custom context menu styles */
.custom-context-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 180px;
}

.context-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

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

.context-menu-item:hover {
    background-color: #f5f5f5;
}

/* Add hover indication for table rows */
#variant-table tbody tr {
    cursor: pointer;
}

/* Success message for clipboard operations */
.clipboard-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 2000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: none;
}

.navbar {
    height: 120px;
    background: linear-gradient(to right,
            #df1995,
            /* Original pink */
            #a80d6e,
            /* Darker pink */
            #df1995
            /* Original pink */
        );
}

.github-link {
    margin-left: auto;
}

.navbar-center-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-brand {
    font-size: 4.5rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 80px;
}

.github-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: white;
}

.github-container:hover {
    text-decoration: none;
    color: white;
}

.github-label {
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.custom-control-label {
    font-size: 0.9em;
    padding-top: 2px;
}

.custom-checkbox {
    margin-top: 2px;
}

body.viewer-open {
    overflow: hidden;
}

/* Special Info Dropdown Styles */
.has-info-dropdown {
    position: relative;
    cursor: help;
}

.info-dropdown-content {
    position: fixed;
    display: none;
    background-color: white;
    min-width: 250px;
    max-width: 400px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    padding: 12px;
    z-index: 10000;
    border-radius: 4px;
    border: 1px solid #ddd;
    pointer-events: none;
}

/* Special Info Table Styles */
.special-info-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 12px;
}

.special-info-table td {
    border: 1px solid #ddd;
    padding: 4px 8px;
}

/* Download button styles */
.igv-download-btn,
.btn-group-sm>.btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.igv-download-btn:hover,
.btn-group-sm>.btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Button styles when row is selected */
#variant-table tbody tr.selected .btn-outline-primary {
    color: white !important;
    border-color: white !important;
}

#variant-table tbody tr.selected .btn-outline-primary:hover {
    background-color: white !important;
    color: #007bff !important;
}

/* Button group styles */
.btn-group-sm {
    display: inline-flex;
}

/* Star indicator for rows with special info */
.info-indicator {
    color: #df1995;
    font-size: 14px;
    display: inline-block;
    cursor: help;
    width: 12px;
}


/* Ensure chrom values are aligned */
.chrom-value {
    display: inline-block;
}

/* Quick view container styling */
.quick-view-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    position: relative;
}


/* Placeholder for when no special info */
.info-placeholder {
    width: 12px;
    display: inline-block;
}


.help-div {
    background-color: #009CA2;
    padding: 25px 40px;
    color: white;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-div h4 {
    margin-bottom: 20px;
    font-weight: 600;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.help-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 0;
}

.help-list li {
    margin-bottom: 12px;
    line-height: 1.5;
}

.help-list li:last-child {
    margin-bottom: 0;
}

.help-sublist {
    list-style-type: circle;
    padding-left: 25px;
    margin-top: 8px;
    margin-bottom: 12px;
}

.help-sublist li {
    margin-bottom: 8px;
    opacity: 0.9;
}

.help-sublist li:last-child {
    margin-bottom: 0;
}

/* Style for icons in help text */
.help-list .fas,
.help-list .fab {
    margin: 0 4px;
    color: white;
    font-size: 0.9em;
    vertical-align: middle;
}

.help-list .fas,
.help-sublist .fas {
    color: #040404;
    margin-right: 8px;
}

/* IGV Modal Height Constraints */
#igv-modal .modal-dialog {
    max-height: 90vh;
    /* 90% of viewport height */
    margin: 5vh auto;
    /* Center with 5% margin top/bottom */
}

#igv-modal .modal-content {
    max-height: 100%;
    overflow: hidden;
}

#igv-viewer {
    max-height: calc(90vh - 120px);
    /* Subtract modal header/footer space */
    overflow: auto;
}

/* Horizontal scrolling for table */
#variant-table_wrapper {
    overflow-x: auto;
}

#variant-table_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
}

#variant-table_wrapper .dataTables_scrollHead {
    overflow-x: auto !important;
}
