.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
}

.reset-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #0e4194;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 10px;
}

.reset-button:hover {
    background-color: #041737;
}

.reset-button svg {
    fill: white;
    stroke: white;
}

/* Table customization */
thead.thead-dark th {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    padding: 10px !important;
}

thead th:first-child {
    border-top-left-radius: 8px !important;
}

thead th:last-child {
    border-top-right-radius: 8px !important;
}

tbody tr:nth-child(even) {
    background-color: #e9ecef !important;
}

tbody tr:nth-child(odd) {
    background-color: #f8f9fa !important;
}

th, td {
    padding: 10px !important;
    border: 1px solid #dee2e6 !important;
}

tbody tr:hover {
    background-color: white !important;
}

/* Modal adjustments specific to linear regression */
.linear-modal-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.modal-content h2 {
  margin-top: 0;
}

.modal-row {
  display: flex;
  width: 100%;
  height: calc(100% - 40px);
  gap: 10px;
}

.modal-col {
    padding: 10px;
    border-radius: 4px;
    max-height: inherit;
}

.modal-col.calculations {
  flex: 1 1 35%;
  max-width: 35%;
}

.modal-col:last-child {
  flex: 1 1 65%;
  max-width: 65%;
}

#chartArea {
  width: 100% !important;
  height: 100% !important;
  max-height: 400px;
}

.modal-row {
  height: 100%;
  display: flex;
  gap: 10px;
}

.modal-col {
  flex: 1 1 auto;
  padding: 10px;
}

#xaxisradiobuttons,
#yaxisradiobuttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 340px;
    align-content: flex-start;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    position: relative;
}

.axis-option {
    width: 100%;
    min-height: 110px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background-color: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.axis-option.is-selected {
    border-color: #0e4194;
    border-width: 2px;
    box-shadow: 0 0 0 2px rgba(14, 65, 148, 0.15);
}

.axis-option:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.axis-option label {
    margin: 0;
    font-weight: bold;
    color: #333;
    text-align: center;
    font-size: 14px;
    pointer-events: none;
}

.axis-option span {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    text-align: center;
    pointer-events: none;
}

.axis-option input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #0e4194;
    cursor: pointer;
}

@media (max-width: 900px) {
    #xaxisradiobuttons,
    #yaxisradiobuttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #xaxisradiobuttons,
    #yaxisradiobuttons {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Scrollbar Styling wie bei Parameter der linearen Regression */
#xaxisradiobuttons::-webkit-scrollbar,
#yaxisradiobuttons::-webkit-scrollbar {
    width: 8px;
}

#xaxisradiobuttons::-webkit-scrollbar-track,
#yaxisradiobuttons::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#xaxisradiobuttons::-webkit-scrollbar-thumb,
#yaxisradiobuttons::-webkit-scrollbar-thumb {
    background: #0e4194;
    border-radius: 4px;
}

#xaxisradiobuttons::-webkit-scrollbar-thumb:hover,
#yaxisradiobuttons::-webkit-scrollbar-thumb:hover {
    background: #041737;
}

/* Firefox Scrollbar */
#xaxisradiobuttons,
#yaxisradiobuttons {
    scrollbar-width: thin;
    scrollbar-color: #0e4194 #f1f1f1;
}

.choosedatasetbutton {
    background-color: #fbc831;
    color: black;
    padding: 5px 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
    float: right;
}

/* Verbesserte Überschriften für Achsenauswahl */
.modal-col.calculations h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0e4194;
    border-bottom: 2px solid #0e4194;
    padding-bottom: 8px;
}

.modal-col.calculations p {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 8px;
    margin-top: 12px;
    font-weight: 600;
    padding: 0;
}

/* Container-Styling für bessere Übersicht */
.modal-col.calculations {
    overflow-y: auto;
    max-height: 80vh;
}

/* Wrapper für bessere Struktur */
.axis-selection-wrapper {
    margin-bottom: 20px;
}

.axis-selection-wrapper:last-child {
    margin-bottom: 0;
}
