/* Card styling */
.card {
    border-radius: 0.5rem;
}

#plot {
    margin-top: 50px;
}

.vega-bind {
    margin-bottom: 15px;
}

.vega-bind-name {
    margin-right: 10px;
    white-space: nowrap
}

#selectableHistogramUnbinnedControls .vega-bind {
  display: flex;
  align-items: center;     /* vertically center label with buttons block */
  margin-bottom: 15px; /* Match dropdown */
  gap: 10px;
}

#selectableHistogramUnbinnedControls .vega-bind-name {
  white-space: nowrap;
  font-weight: normal;
}

#selectableHistogramUnbinnedControls .vega-bind-radio {
  display: flex;
  flex-direction: column; /* stack radio buttons vertically */
  gap: 8px;
}

/* Add space between the radio button and its label */
#selectableHistogramUnbinnedControls .vega-bind-radio input[type="radio"] {
  margin-right: 8px;            /* horizontal gap between circle and label text */
}

.header-inline {
    display: inline-block;
    float: left;
    margin-right: 2px;
    margin-top: 8px;
    margin-bottom: 8px;
}

/* Dropdown menu styling */
.form-select {
    margin-right: 15px;
}

/* Responsive grid for multiple charts */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 4px;
    width: 100%;
}

/* Grid for square plots - maintains fixed square dimensions */
.square-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    width: 100%;
    /* justify-content: start; */
}

/* Responsive layout for detailed BUSCO plots */
.detailed-plot-container {
    display: flex;
    width: 100%;
    gap: 12px;
}

.detailed-plot-container .busco-plot {
    flex: 2; /* Takes 2/3 of the space */
    min-width: 0; /* Allows flex item to shrink below content size */
}

.detailed-plot-container .assembly-plot {
    flex: 1; /* Takes 1/3 of the space */
    min-width: 0; /* Allows flex item to shrink below content size */
}

/* Responsive behavior for smaller screens */
@media (max-width: 768px) {
    .detailed-plot-container {
        flex-direction: column;
    }
    
    .detailed-plot-container .busco-plot,
    .detailed-plot-container .assembly-plot {
        flex: none;
        width: 100%;
    }
}

/* Plot container for scatter view cards - prevent overflow */
.plot-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure Vega-Lite charts respect container bounds */
.plot-container > div {
    max-width: 100%;
    overflow: hidden;
}

.plot-container svg {
    max-width: 100%;
    height: auto;
}

.my-test-class {
    padding-right: 0; !important;
}

/*adjustment for Bootstrap 5*/
.table {
    border: 1px solid #dee2e6;
    margin-top: 10px
}

/* Sample selection container */
.sample-selection-container {
  display: flex;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 40px;
}

/* Individual sample selection items */
.sample-selection-item {
  display: inline-flex;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 2px 5px;
  align-items: center;
  margin-right: 15px;
  margin-bottom: 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

/* Highlight selected items */
.sample-selection-item.selected {
  border: 1px solid #007bff;
  opacity: 1;
  font-weight: bold;
}

.pagination {
    justify-content: right;
}

.nav-tabs {
    margin-top: 10px;
}

#buscoCol {
    margin-top: 20px;
}

#assemblyCol {
    margin-top: 20px;
}

/* SPINKIT */

/*
The MIT License (MIT)

Copyright (c) 2015-2020 Tobias Ahlin

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

.spinner {
  margin: 100px auto;
  width: 50px;
  height: 40px;
  text-align: center;
  font-size: 10px;
}

.spinner > div {
  background-color: #333;
  height: 100%;
  width: 6px;
  display: inline-block;

  -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
  animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}

.spinner .rect3 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

.spinner .rect4 {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}

.spinner .rect5 {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
  0%, 40%, 100% { -webkit-transform: scaleY(0.4) }
  20% { -webkit-transform: scaleY(1.0) }
}

@keyframes sk-stretchdelay {
  0%, 40%, 100% {
    transform: scaleY(0.4);
    -webkit-transform: scaleY(0.4);
  }  20% {
    transform: scaleY(1.0);
    -webkit-transform: scaleY(1.0);
  }
}