
div#pruefstand_container {
    height: inherit;
}


:root {
    --linsenposition: 0;
    --blur: 0px;
}

body.neutral0color-onbackground {
    background: radial-gradient(circle at top right, rgba(14, 65, 148, 0.18), transparent 55%),
                linear-gradient(180deg, rgba(241, 245, 255, 0.9), rgba(231, 238, 255, 0.65));
    color: var(--neutrals-darkmode-0);
}

body.neutral0color-onbackground h1,
body.neutral0color-onbackground h2,
body.neutral0color-onbackground h3,
body.neutral0color-onbackground h4,
body.neutral0color-onbackground h5,
body.neutral0color-onbackground h6 {
    color: var(--neutrals-darkmode-0);
}

body.neutral0color-onbackground p,
body.neutral0color-onbackground label,
body.neutral0color-onbackground a,
body.neutral0color-onbackground span {
    color: rgba(3, 14, 35, 0.78);
}

body.neutral0color-onbackground a:hover {
    color: var(--primary-color);
}

#pruefstand_container {
    padding-top: 48px;
    padding-bottom: 80px;
}

#pruefstand_container .custom-pageheader {
    margin-bottom: 28px;
}

.textcolor-fullcontrast {
    color: var(--neutrals-darkmode-0) !important;
}

.textcolor-80contrast {
    color: rgba(3, 14, 35, 0.7) !important;
}



.main-content-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    min-height: 94vh;
}

img {
    width: 100%;
}

/* Content wrapper styles */
.visual-content,
.data-content,
.controls-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-content {
    justify-content: center;
    align-items: center;
}

.data-content {
    overflow-y: visible;
    height: 100%;
}

.controls-content {
    justify-content: flex-start;
}

/* Smooth scrollbar for data content */
.data-content::-webkit-scrollbar {
    width: 8px;
}

.data-content::-webkit-scrollbar-track {
    background: rgba(14, 65, 148, 0.05);
    border-radius: 10px;
}

.data-content::-webkit-scrollbar-thumb {
    background: rgba(14, 65, 148, 0.2);
    border-radius: 10px;
}

.data-content::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 65, 148, 0.3);
}

.card {
    height: auto;
    width: 100%;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 24px;
    border: 1px solid rgba(14, 65, 148, 0.06);
    border-radius: 20px;
    background: linear-gradient(145deg, var(--neutrals-lightmode-0) 0%, rgba(248, 250, 255, 0.7) 100%);
    color: inherit;
    box-shadow: 0 10px 40px rgba(14, 65, 148, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 12px 48px rgba(14, 65, 148, 0.08);
}


/*div.informationHoverIcon {*/
/*    float: left;*/
/*    display: inline-block;*/
/*}*/

/*div.informationHoverIcon a.informationPoint#iPointTopLeftBox{*/
/*    padding-left: 10px;*/
/*    padding-right: 10px;*/
/*    border-radius: 20px;*/
/*    font-size: 24px;*/
/*    background-color: #0e41944d;*/
/*}*/

/*div.informationHoverIcon a.informationPoint#iPointTopLeftBox:hover + div.informationContent#iContentTopLeftBox{*/
/*    opacity: 1;*/
/*}*/

/*div.informationContent#iContentTopLeftBox{*/
/*    background-color: #0e41944d;*/
/*    border-radius: 5px;*/

/*    opacity: 0;*/
/*    transition: opacity 350ms;*/
/*    position: absolute;*/
/*    padding: 5px;*/
/*    margin-left: 5px;*/
/*    display: inline-block;*/
/*}*/

.informationHoverIcon {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    display: flex;
    align-items: center;
    background-color: transparent; /* Initially transparent */
    color: white;
    padding: 5px;
    border-radius: 20px;
    max-width: fit-content;
    flex-wrap: wrap;
    box-sizing: border-box;
    margin-left: -10px;
    margin-top: -10px;
    transition: background-color 0.3s ease-in-out;
}

/* Style the "i" circle */
.informationPoint {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: rgba(14, 65, 148, 1);
    color: white;
    font-weight: bold;
    border-radius: 50%;
    margin-right: 10px;
    cursor: pointer;
}

/* Hide text but keep space occupied */
.informationHoverIcon p {
    margin: 0;
    font-size: 14px;
    word-wrap: break-word;
    white-space: normal;
    flex: 1;
    margin-right: 10px;
    visibility: hidden; /* Hides text but keeps space */
}

/* Show text and background when hovering */
.informationHoverIcon:hover {
    background-color: rgba(14, 65, 148, 0.9);
}

.informationHoverIcon:hover p {
    visibility: visible;
}




form#leftBoxbottom{
    width: 100%;
    height: auto;
    bottom: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border: 0 solid rgb(14, 65, 148);
    border-radius: 12px;
    padding: 10px;
    background-color: white;
}

button#submit{
    background-color: #0e419493;
    width:auto;
    height:auto;
    border: .0cm solid gray;
    border-radius: 12px;
    color: white;
}

button#submit:hover {
    background-color: rgb(14, 65, 148);
}

/*main top right styling*/
div.contentBox#rightBox{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 1;
    grid-row-end: 2;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*styling of all included containers*/
div.chart_ventilator{
    margin-top: 1%;
}

/*main bottom styling*/
div.contentBox#bottomBox{
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 3;
    display: flex;
    justify-content: center;
}

div.contentBox#bottomPictureBox{
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 2;
    grid-row-end: 3;
    height: 100%;
    width: 100%;
    display: flex;
    text-align: center;
    align-items: center;
}

div#Picturediv{
    margin: auto;
}

/* Experiment dashboard layout - Modernized */
.experiment-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas:
        "visual data"
        "controls data";
    gap: 32px;
    align-items: start;
    grid-auto-rows: minmax(0, auto);
}

.experiment-dashboard__visual {
    position: relative;
    min-height: 450px;
    grid-area: visual;
    display: flex;
    flex-direction: column;
}

.experiment-dashboard__visual #3dcontainer {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    height: 100%;
    min-height: 400px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(14, 65, 148, 0.06);
    background: linear-gradient(145deg, rgba(248, 250, 255, 0.8), rgba(241, 245, 255, 0.4));
    box-shadow: 0 8px 32px rgba(14, 65, 148, 0.08);
}

.experiment-dashboard__visual #3dcontainer > * {
    flex: 1 1 auto;
}

.experiment-dashboard__visual #container,
.experiment-dashboard__visual canvas,
.experiment-dashboard__visual img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    border-radius: 16px;
    object-fit: contain;
    background-color: var(--neutrals-lightmode-0);
    box-shadow: 0 4px 20px rgba(14, 65, 148, 0.08);
}

.visual-pane {
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}

.visual-pane__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.visual-pane__intro p {
    max-width: 420px;
    margin-bottom: 0;
}

.visual-pane__actions {
    display: flex;
    gap: 12px;
}

.visual-pane__actions .btn {
    min-width: 160px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(14, 65, 148, 0.12);
}

.visual-pane__actions .btn-secondary {
    background-color: rgba(14, 65, 148, 0.12);
    color: var(--primary-color);
    border: 1px solid rgba(14, 65, 148, 0.18);
}

.visual-pane__actions .btn-secondary:hover {
    background-color: rgba(14, 65, 148, 0.22);
    color: var(--textcolor-fullcontrast);
}

.visual-pane__stage {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 4px;
}

.visual-pane__stage > * {
    flex: 1 1 auto;
}

#3dcontainer:empty::before {
    content: "Visualisierung wird geladen…";
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--textcolor-80contrast);
    letter-spacing: 0.02em;
}

.experiment-dashboard__data {
    grid-area: data;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 600px;
    max-height: 900px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for data section */
.experiment-dashboard__data::-webkit-scrollbar {
    width: 8px;
}

.experiment-dashboard__data::-webkit-scrollbar-track {
    background: rgba(14, 65, 148, 0.05);
    border-radius: 10px;
}

.experiment-dashboard__data::-webkit-scrollbar-thumb {
    background: rgba(14, 65, 148, 0.2);
    border-radius: 10px;
}

.experiment-dashboard__data::-webkit-scrollbar-thumb:hover {
    background: rgba(14, 65, 148, 0.3);
}

.experiment-dashboard__controls {
    grid-area: controls;
    align-self: stretch;
}

.experiment-dashboard__controls form {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: start;
}

.experiment-dashboard__controls .form-group {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(14, 65, 148, 0.06);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 255, 0.5));
    box-shadow: 0 4px 16px rgba(14, 65, 148, 0.06);
    transition: all 0.3s ease;
}

.experiment-dashboard__controls .form-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(14, 65, 148, 0.1);
    border-color: rgba(14, 65, 148, 0.12);
}

.experiment-dashboard__controls .form-group > [class^="col-"],
.experiment-dashboard__controls .form-group > [class*=" col-"] {
    padding: 0;
    flex: 1 1 auto;
    max-width: 100%;
}

.experiment-dashboard__controls label {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--neutrals-darkmode-0);
}

.experiment-dashboard__controls .slider-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.experiment-dashboard__controls .slider-container .width-100 {
    flex: 1 1 200px;
}

.experiment-dashboard__controls .slider-container input[type="number"] {
    max-width: 120px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(14, 65, 148, 0.12);
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 2px 8px rgba(14, 65, 148, 0.06);
    font-weight: 500;
    transition: all 0.3s ease;
}

.experiment-dashboard__controls .slider-container input[type="number"]:focus {
    outline: none;
    border-color: rgba(14, 65, 148, 0.3);
    box-shadow: 0 0 0 3px rgba(14, 65, 148, 0.08);
}

.experiment-dashboard__controls .percentage-box {
    min-width: 70px;
    text-align: center;
    background: var(--primary-color);
    color: var(--textcolor-fullcontrast-onsecondary);
}

.experiment-dashboard + .card {
    margin-top: 0;
}

@media (max-width: 1199px) {
    .experiment-dashboard {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "visual"
            "controls"
            "data";
        gap: 28px;
    }

    .experiment-dashboard__visual {
        min-height: 380px;
    }

    .experiment-dashboard__data {
        grid-row: auto;
        max-height: 700px;
    }

    .experiment-dashboard__controls {
        grid-column: 1 / -1;
    }

    .experiment-dashboard__controls form {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .card {
        padding: 20px;
        gap: 20px;
        border-radius: 16px;
    }

    .experiment-dashboard {
        gap: 20px;
    }

    .experiment-dashboard__visual {
        min-height: 300px;
    }

    .experiment-dashboard__visual #3dcontainer {
        padding: 16px;
        min-height: 280px;
    }

    .experiment-dashboard__controls form {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .experiment-dashboard__controls .form-group {
        padding: 16px;
    }
}

@media (max-width: 576px) {
    .visual-pane__actions {
        width: 100%;
        justify-content: center;
        gap: 12px;
    }

    .visual-pane__actions button {
        flex: 1 1 100%;
    }

    .experiment-dashboard {
        gap: 16px;
    }

    .card {
        padding: 16px;
        gap: 16px;
    }

    .experiment-dashboard__visual {
        min-height: 250px;
    }

    .data-content {
        max-height: 400px;
    }
}

img#explenationPicture{
    width: max-content;
    height: 100%;
}

.wrapper {
    width: 60%;
    display: block;
    overflow: hidden;
    margin: 0 auto;
    padding: 60px 50px;
    background: #fff;
    border-radius: 4px;
}

canvas {
    background: #fff;
    height: 400px;
}
