/* Chart Styling
----------------------------------------------------------------- */
.chart-title {
    padding-left: 35px;
    display: flex; 
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.chart-title h1 {
    color: var(--font-color-1); 
    font-weight: 500;
}

#propertiesChart {
    padding-left: 40px;
    width: 97% !important;
}

.chart-container {
    max-height: 75vh;
    height: 75vh;
    width: 97%; 
    padding-top: 25px;
    padding-left: 5px;
    display: block;
}

.section-toggle-btn {
    background: transparent; 
    color: var(--font-color-1); 
    border: none;
    border-radius: 5px;
    display: block;
    text-align: left;
    margin: 3px 10px;
    padding: 10px;
    font-size: 14px; 
    font-weight: 400px;
    width: 90%;
    display: block;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

.section-toggle-btn:hover {
    background: var(--font-color-5);
}

.section-toggle-btn.active {
    background: var(--font-color-5);
}

/* Popups
----------------------------------------------------------------- */
.control-btn h3{
    font-size: 13px;
    font-weight: 300px;
    margin: 15px 15px 5px 15px;
}

.button-popup {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1;
    min-width: 250px;
    text-align: left;
}

.button-popup h3{
    font-size: 14px;
    font-weight: 500;
    color: var(--font-color-1);
}

.axis-popup {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border-radius: 15px;
    padding: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1; 
    min-width: 250px;
    text-align: left;
    padding: 20px;
}

.axis-popup h3{
    font-size: 14px;
    font-weight: 500;
    color: var(--font-color-1);
    margin: 15px 0 0 24px;
}

.axis-popup .axis-section {
    margin-bottom: 5px;
}

.axis-popup select {
    width: 80%;
    padding: 8px 12px; 
    border: 3px solid var(--font-color-5);
    border-radius: 8px; 
    font-size: 14px; 
    color: var(--font-color-1); 
    outline: none; 
    cursor: pointer; 
    background: var(--font-color-5);
    background-repeat: no-repeat;
    background-position: right 12px center; 
    background-size: 16px; 
    margin-left: 20px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.select:hover {
    border-color: var(--accent-color-2); 
}

/* Sliders
----------------------------------------------------------------- */
.slider-container {
    display: none;
    margin: 0px 5px;
}

.slider-container.open {
    display: block;
}

.slider-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%; 
}

.slider-title h3{
    color: var(--font-color-1);
    font-weight: 400;
    font-size: 12px;
}

#slider-values {
    display: flex;
    margin-top: 5px;
    margin-bottom: 20px;
    justify-content: space-between;
    color: var(--font-color-1);
    font-weight: 400;
    font-size: 12px;
}

.ui-slider {
    border-radius: 4px;
    height: 6px; 
    margin: 10px 30px; 
    background: var(--background-color-2);
    border: none;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ui-slider-handle {
    width: 5px;
    height: 5px; 
    border-radius: 50%;
    background: var(--btn-color-1);
    outline: none;
    border: none ;
    cursor: pointer;
    top: 50%;
    transform: translateY(-10%);
    margin-left: -0.5 * var(--handle-size);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.ui-slider-handle:hover,
.ui-slider-handle:focus,
.ui-slider-handle:active,
.ui-slider-handle.ui-state-focus,
.ui-slider-handle.ui-state-hover,
.ui-slider-handle.ui-state-active {
    background: var(--btn-hover-1); 
    border-color: var(--btn-color-1); 
    color: var(--btn-color-1); 
}

.ui-slider-range {
    background:  var(--btn-hover-1);
    height: 100%;
}

.axis-popup {
    display: none;
    position: absolute;
    background-color: var(--background-color-1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    z-index: 1000;
    right: 0; 
    top: 100%; 
    width: 300px;
    padding: 10px 4px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  
    gap: 10px 20px;  
    padding: 20px;  
}

/* Table
----------------------------------------------------------------- */
.table-section {
    padding: 10px 25px;
    background-color: var(--color-1);
    font-weight: 400;
    display: none;
}

.table {
    width: 100%;
    margin-bottom: 0px;
    background-color: transparent;
    font-weight: 350;
    border-collapse: collapse; 
}

  
/* Tutorials
----------------------------------------------------------------- */
.tutorial-popup {
    position: absolute;
    background-color: var(--background-color-2);
    border: 2px solid var(--btn-color-1);
    color: var(--font-color-1);
    padding: 10px;
    border-radius: 5px;
    display: none;
    z-index: 1000;
    width: 25%;
}

.tutorial-popup .popup-content {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    position: relative;
    padding: 20px;
}

.tutorial-popup .button-row {
    display: flex;
    /* justify-content: space-between; */
    margin-top: 10px;
    align-items: right;
}

.tutorial-popup .step-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    color: var(--font-color-2);
}

.tutorial-popup h3{
    color: var(--font-color-1);
    font-weight: 500;
    font-size: small;
}

.tutorial-popup-arrow-top {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-bottom: 10px solid var(--btn-color-1);
    border-right: 10px solid transparent;
    position: absolute;
    left: 20px;
    top: -10px;
}

.tutorial-popup-arrow-left {
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent; 
    border-right: 10px solid var(--btn-color-1);
    position: absolute;
    left: -10px;
    top: 20px;
}

.tutorial-text-btn {
    white-space: nowrap;
    padding: 10px 15px;
    margin-right: 15px;
    border: none;
    color: var(--font-color-1);
    font-size: small;
    font-weight: 400;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.tutorial-text-btn:hover {
    color: var(--btn-color-1);
}

.tutorial-filled-btn {
    background-color: var(--btn-color-1);
    color: var(--font-color-5);
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: small;
    cursor: pointer;
    outline: none;
    /* margin-top: 10px; */
    margin-left: 20px;
    transition: background-color 0.3s ease;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; 
    display: inline-flex; 
    align-items: center;
    justify-content: center; 
}

.tutorial-filled-btn:hover {
    background-color: var(--btn-hover-1);  
}

/* Table Styling
----------------------------------------------------------------- */
.table td:nth-child(1) { width: 50%; } 
.table td:nth-child(2) { width: 25%; } 
.table td:nth-child(3) { width: 25%; } 
.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--background-color-2); 
}

.table-controls-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.table-controls-bottom > div {
    display: flex;
    align-items: center;
}

#materials-table {
    width: 100%;
    border: none;
    border-radius: 20px;
    background-color: var(--background-color-1);
    color: var(--font-color-1);
    font-weight: 400;
}

#materials-table th {
    text-align: left;
    padding: 0.5rem; 
    font-weight: 450;
    font-size: 15px;
}

#materials-table td {
    padding: 0.75rem; 
    font-weight: 400;
    font-size: 14px;
}

#itemsPerPage {
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    padding: 8px 12px;
    margin-top: 16px;
    color: var(--color-1);
    background: var(--color-2);
    border-radius: 4px;
}

#itemsPerPage:focus {
    border-color: var(--color-1);
    background-color: var(--color-5);
}

.table-link {
    white-space: nowrap;
    padding: 10px 5px;
    margin-right: 15px;
    border: none;
    color: var(--font-color-1);
    font-size: 14px;
    font-weight: 400;
    background-color: transparent;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.table-link:hover {
    color: var(--btn-color-1);
}

.main-content-indent {
    visibility: hidden;
}

@media (max-width: 1200px) {

    .chart-title {
        justify-content: left; 
        text-align: left; 
    }

    .chart-container {
        /* max-height: 75vh; */
        height: 75vh;
        width: 90%; 
        padding-top: 25px;
        padding-left: 5px;
        display: block;
    }

}