@charset "utf-8";
/* CSS Document */

body {
    margin: 0;
    padding: 0;
    display: flex;
}

.window {
    flex: 1;
    transition: margin-left 0.2s ease;
    /*margin-left: 310px;*/
}

.window.show {
    margin-left: 0;
}

.window .button {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    border-radius: 5px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    cursor: pointer;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
}

.navigation {
    width: 310px;
    height: 100vh;
    overflow: hidden;
    min-width: 310px;
    background-color: #0b304a;
    position: fixed;
    top: 0;
    left: 0;
    transition: width 0.2s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-color: transparent transparent;
    /* Firefox fallback */
    box-sizing: border-box;
}

.navigation::-webkit-scrollbar {
    display: none;
    width: 0 !important;
}

#patients-wrapper::-webkit-scrollbar {
    width: 10px;
}

#patients-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

#patients-wrapper::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

#patients-wrapper:hover::-webkit-scrollbar-thumb {
    background: #82aac5;
    transition: background 0.3s ease;
}

.navigation.hide {
    width: 0;
    min-width: 0;
}

.navigation.hide .navigation-wrapper,
.navigation.hide .navigation-header-fixed,
.navigation.hide #navigation-export-import-button-inner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s, visibility 0s;
}

/* Ensure they fade in ONLY after the navigation width transition (0.2s) is complete */
.navigation-wrapper,
.navigation-header-fixed,
#navigation-export-import-button-inner {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease 0.2s, visibility 0s ease 0.2s;
}

.navigation-wrapper {
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-color: transparent transparent;
    /* Firefox fallback */
}

.navigation-wrapper::-webkit-scrollbar {
    display: none;
    width: 0 !important;
}

#patients-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 30px;
}

.navigation-header-fixed {
    position: sticky;
    top: 0;
    padding: 10px 20px 5px 10px;
    background-color: #0b304a;
    z-index: 10001;
    box-shadow: 0 5px 15px -2px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-list {
    width: 20px;
    height: auto;
}

.add-patient {
    flex: 1;
    height: 40px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 10px;
    cursor: pointer;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
    box-sizing: border-box;
    margin-bottom: 0 !important;
}

.search-container {
    flex: 1;
    height: 40px;
    margin-bottom: 0 !important;
    position: relative;
}

#patient-search {
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #ffffff;
    border: solid #82AAC5;
    display: block;
    padding-left: 10px;
    padding-right: 35px;
    /* Platz für das X */
    outline: none;
    box-sizing: border-box;
}

#patient-search:focus {
    border-color: #00aaff;
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5);
}

.search-clear-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #82AAC5;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    transition: color 0.2s;
}

.search-clear-button:hover {
    color: #00aaff;
}

.nav-list {
    width: 20px;
}

.exam {
    position: relative;
    top: 10px;
    left: 45px;
    margin-bottom: 5px;
    width: 185px;
    height: 30px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    display: flex;
    justify-content: flex-start;
    align-content: center;
    flex-wrap: wrap;
    padding-left: 5px;
    cursor: pointer;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
}

.exam.active {
    background-color: white;
}

.initial-exam {
    border-color: orange !important;
}

.window.show .button {
    display: block;
}

#content-button {
    position: fixed;
}

.exam:active {
    cursor: grabbing;
}

.sortable-ghost {
    opacity: 0.2;
    transform: scale(0.95);
    transition: opacity 0.2s, transform 0.2s;
}

.patient {
    position: relative;
    top: 10px;
    left: 10px;
    margin-bottom: 5px;
    width: 215px;
    height: 40px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #a2f8ff;
    border: solid #82AAC5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 10px;
    cursor: pointer;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
}

.exams-wrapper {
    display: flex;
    flex-direction: column;
}

.chart-count {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: gray;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-count.normal {
    background-color: gray;
}

.chart-count.error {
    background-color: red;
}

.chart-wrapper {
    position: relative;
}

.warning-icon {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: red;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    border-radius: 30%;
    font-size: 14px;
}

.patient-actions {
    position: relative;
    margin: 15px 10px -5px 10px;
    height: 35px;
    background: #a1f8ff2e;
    padding: 3px;
    border-radius: 5px;
    width: 185px;
    border: solid 2px #a1f8ff05;
    left: 35px;
}

.patient-actions .disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(60%);
    cursor: not-allowed;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slide-fade-out {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.history-button {
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 20px;
}

.patient:hover .history-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sort-date-up-button {
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 60px;
}

.patient:hover .sort-date-up-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sort-date-down-button {
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 100px;
}

.patient:hover .sort-date-down-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-chart {
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 140px;
}

.patient:hover .add-chart {
    display: flex;
    justify-content: center;
    align-items: center;
}

.history-button.active {
    background-color: #fff;
}

.sort-name-button {
    display: none;
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 175px;
}

.patient:hover .sort-name-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sort-date-button {
    display: none;
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 175px;
}

.patient:hover .sort-date-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-favourite-button {
    display: none;
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 135px;
}

.patient:hover .toggle-favourite-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.favourite {
    background-color: #f9ffa9;
    border-color: #b5a415;
}

.patient span i.fa-solid,
#patient-unassigned span i.fa-solid {
    font-size: 12px;
    margin-right: 5px;
    vertical-align: middle;
}

.edit-patient-button {
    display: none;
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 175px;
}

.patient:hover .edit-patient-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.delete-patient-button {
    display: none;
    width: 30px;
    height: 30px;
    background-color: #EEA5A5;
    border: solid #D17070;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 95px;
    color: white;
}

.patient:hover .delete-patient-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-report-button {
    width: 30px;
    height: 30px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    line-height: 30px;
    cursor: pointer;
    position: absolute;
    left: 175px;
}

.patient:hover .ai-report-button {
    display: flex;
    justify-content: center;
    align-items: center;
}

.patient-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.patient-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background: white;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    z-index: 100000;
}

.patient-modal-two-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.patient-modal-left-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.patient-modal-right-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.patient-modal-right-column label {
    font-weight: bold;
    margin-bottom: 5px;
}

.patient-modal-right-column select {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 6px;
}

select.invalid-selection {
    background-color: #ffe5e5;
    /* hellrot */
    border: 1px solid #ff9999;
}

.patient-modal-content {
    display: flex;
    flex-direction: column;
}

.patient-modal-content label {
    font-weight: bold;
    margin-bottom: 5px;
}

.patient-modal-content input {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 6px;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.patient-modal-edit-button {
    position: relative;
    margin: auto;
    text-align: center;
    padding: 10px;
    z-index: 100;
    width: 120px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #c9ecff;
    border: solid #82AAC5;
    box-shadow: 3px 3px 5px #CCCCCC;
    cursor: pointer;
}

.patient-modal-edit-button:hover {
    background-color: #C5DDEE;
}

.patient-modal-close {
    font-size: 28px;
    cursor: pointer;
    text-align: right;
    color: #aaaaaa;
    line-height: 20px;
    font-weight: bold;
}

.patient-modal-close:hover {
    color: black;
}

.patient-modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 0;
}

#api-last-name,
#api-first-name,
#api-dob {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-top: 6px;
    border-radius: 5px;
    height: 38px;
    display: inline-block;
    box-sizing: border-box;
}

#patient-unassigned {
    background-color: #ffc3a9;
    border-color: #ff844e;
}

.unassigned-charts-wrapper {
    padding-bottom: 100px;
}

.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slide-fade-out {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.chart-count.highlight {
    animation: pulseHighlight 0.3s;
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 rgba(255, 200, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 200, 0, 0.9);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 200, 0, 0.6);
    }
}

.warning-toast-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fffbb8;
    border-radius: 8px;
    padding: 16px;
    max-width: 350px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: sans-serif;
    font-size: 15px;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    transform: translateX(-120%) translateY(0) scale(0.9);
    opacity: 0;
    pointer-events: none;
    text-align: left;
}

.warning-toast-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 17px;
    margin-bottom: 8px;
    color: #333;
}

.warning-toast-close {
    position: relative;
    right: 5px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #aaa;
    transition: color 0.2s;
}

.warning-toast-close:hover {
    color: #333;
}

.warning-toast-body {
    color: #555;
    line-height: 1.5;
}

.warning-toast-body ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.warning-toast-body li {
    margin-bottom: 4px;
}

.warning-toast-box.show {
    transform: translateX(0) translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.warning-toast-box.hide {
    animation: slideOutLeft 0.5s ease-in forwards;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

.patient-unassigned {
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    border: solid #82AAC5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding-left: 10px;
}

.patient,
.patient-unassigned {
    position: relative;
    left: 10px;
    width: 215px;
    height: 40px;
}

.patient {
    background-color: #a2f8ff;
}

.patient.favourite {
    background-color: #f9ffa9;
    border-color: #b5a415;
}

.patient-unassigned {
    background-color: #ffc3a9;
    border-color: #ff844e;
    top: 10px;
    left: 10px;
    margin-bottom: 5px;
}

.patient span,
.patient-unassigned span {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.patient span i.fa-solid,
.patient-unassigned span i.fa-solid {
    font-size: 12px;
    margin-right: 5px;
    vertical-align: middle;
}

.exam:hover {
    background-color: #d0ebff;
}

.exam.active {
    background-color: white;
}

.initial-exam {
    border-color: orange !important;
}

.charts-wrapper {
    display: block;
}

.unassigned-charts-wrapper {
    padding-bottom: 100px;
}

.chart-count {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: gray;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-count.normal {
    background-color: gray;
}

.chart-count.error {
    background-color: red;
}

.chart-count.highlight {
    animation: pulseHighlight 0.3s;
}

@keyframes pulseHighlight {
    0% {
        box-shadow: 0 0 0 rgba(255, 200, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 200, 0, 0.9);
    }

    100% {
        box-shadow: 0 0 0 rgba(255, 200, 0, 0.6);
    }
}

.warning-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: red;
    color: white;
    font-weight: bold;
    text-align: center;
    line-height: 20px;
    border-radius: 30%;
    font-size: 14px;
}

.patient-actions {
    position: relative;
    margin: 15px 10px -5px 10px;
    height: 35px;
    background: #a1f8ff2e;
    border-radius: 5px;
    width: 160px;
    border: solid 2px #a1f8ff05;
    left: 35px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 20px;
}

.patient-actions .disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(60%);
    cursor: not-allowed;
}

.patient-unassigned:hover .delete-patient-button,
.patient-unassigned:hover .edit-patient-button,
.patient-unassigned:hover .toggle-favourite-button {
    display: flex;
}

/* Modals */
.patient-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.patient-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    background: white;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    z-index: 100000;
}

.patient-modal-two-columns {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.patient-modal-left-column,
.patient-modal-right-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.patient-modal-right-column label,
.patient-modal-content label {
    font-weight: bold;
    margin-bottom: 5px;
}

.patient-modal-right-column select,
.patient-modal-content input,
#api-last-name,
#api-first-name,
#api-dob {
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 6px;
}

.invalid-selection {
    background-color: #ffe5e5;
    border: 1px solid #ff9999;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.patient-modal-edit-button {
    position: relative;
    margin: auto;
    text-align: center;
    padding: 10px;
    z-index: 100;
    width: 120px;
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #c9ecff;
    border: solid #82AAC5;
    box-shadow: 3px 3px 5px #CCCCCC;
    cursor: pointer;
}

.patient-modal-edit-button:hover {
    background-color: #C5DDEE;
}

.patient-modal-close {
    position: relative;
    right: -20px;
    top: -20px;
    font-size: 34px;
    width: 34px;
    height: 34px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: #888;
}

.patient-modal-close:hover {
    border-radius: 50%;
    background-color: lightgray;
    color: #101010;
}

.patient-modal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    margin-top: 0;
}

.alert-modal-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #fffbb8;
    border-radius: 8px;
    padding: 12px 16px 16px 16px;
    max-width: 280px;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    font-family: sans-serif;
    font-size: 17px;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-modal-header {
    margin-top: 4px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-modal-close {
    margin-top: -12px;
    cursor: pointer;
    font-size: 17px;
    color: #999;
    position: relative;
}

.alert-modal-body {
    color: #333;
    line-height: 1.4;
    padding-top: 10px;
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-120%);
        opacity: 0;
    }
}

.alert-modal-box.slide-out {
    animation: slideOutLeft 0.5s ease-in forwards;
}

.navigation-toggle-button {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    font-family: Arial, sans-serif;
    border-radius: 5px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    cursor: pointer;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
    display: none;
    justify-content: center;
    align-items: center;
}

#navigation-export-import-button-outer {
    position: absolute;
    top: 110px !important;
    left: 10px;
}

#navigation-export-import-button-inner {
    position: absolute;
    top: 110px !important;
    left: 250px;
    height: 44px;
}

#navigation-export-import-button-outer i,
#navigation-export-import-button-inner i {
    font-size: 20px;
    color: #0b304a;
}

.navigation .button {
    position: relative;
    width: 40px;
    height: 40px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    border-radius: 5px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    color: #0b304a;
    cursor: pointer;
    z-index: 9999;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
    top: 0;
    left: 0;
}

/* Show 'Open' button when navigation is hidden */
.window.show .navigation-toggle-button {
    display: flex;
}

.exam.overlay-selected {
    background-color: #b3d9ff;
    border-color: #007bff;
    color: #333;
}

/* Edit Patient Modal Styles */
.edit-patient-modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    /* Black w/ opacity */
    justify-content: center;
    align-items: center;
}

.edit-patient-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    position: relative;
    font-family: 'Arial', sans-serif;
}

.edit-patient-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin: 40px 40px 0;
}

.edit-patient-modal-content .modal-body {
    padding: 20px 40px;
}

.edit-patient-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 15px;
    top: 5px;
    cursor: pointer;
    transition: color 0.3s;
}

.edit-patient-modal-close:hover,
.edit-patient-modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.edit-patient-modal-title {
    margin: 0;
    color: #333;
    font-size: 24px;
    text-align: left;
}

.edit-patient-form-group {
    margin-bottom: 15px;
}

.edit-patient-form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: bold;
}

.edit-patient-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

.edit-patient-form-group input:focus {
    border-color: #007bff;
    outline: none;
}

.edit-patient-form-group input.input-error {
    border-color: #dc3545;
    background-color: #f8d7da;
}

.edit-patient-button-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.edit-patient-button-save {
    /*padding: 10px 20px;*/
    background-color: #C9ECFF;
    border: 1px solid #82AAC5;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-shadow: 2px 2px 4px #CCCCCC;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.edit-patient-button-save:hover {
    background-color: #B3DDEE;
}

.edit-patient-button-cancel {
    /*padding: 10px 20px;*/
    background-color: #F9F9F9;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-family: Arial, sans-serif;
    box-shadow: 2px 2px 4px #CCCCCC;
    transition: background-color 0.2s ease;
    min-width: 120px;
}

.edit-patient-button-cancel:hover {
    background-color: #E8E8E8;
}

/* Datenschutz-Hinweis Styles */
.data-privacy-notice-container {
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #0b304a;
    border-top: 2px solid #82AAC5;
    margin-top: auto;
    z-index: 99999;
}

.data-privacy-toggle-button {
    width: 100%;
    height: 45px;
    background: linear-gradient(135deg, #1a4d6f 0%, #0b304a 100%);
    border: none;
    border-top: 1px solid #82AAC5;
    color: #C5DDEE;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100000;
}

.data-privacy-toggle-button:hover {
    background: linear-gradient(135deg, #2a5d7f 0%, #1a4d6f 100%);
    color: #ffffff;
}

.data-privacy-toggle-button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.data-privacy-toggle-button.collapsed i {
    transform: rotate(180deg);
}

.data-privacy-content {
    background: linear-gradient(180deg, #0f3a56 0%, #0b304a 100%);
    padding: 20px 15px;
    color: #C5DDEE;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    max-height: 400px;
    overflow-y: auto;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.3s ease;
    position: relative;
    z-index: 100001;
}

.data-privacy-content.collapsed {
    max-height: 0;
    padding: 0 15px;
    opacity: 0;
    overflow: hidden;
}

.data-privacy-content::-webkit-scrollbar {
    width: 8px;
}

.data-privacy-content::-webkit-scrollbar-track {
    background: rgba(130, 170, 197, 0.1);
    border-radius: 4px;
}

.data-privacy-content::-webkit-scrollbar-thumb {
    background: #82AAC5;
    border-radius: 4px;
}

.data-privacy-content::-webkit-scrollbar-thumb:hover {
    background: #a2c5dd;
}

.data-privacy-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.data-privacy-icon i {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #4a9eff;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(74, 158, 255, 0.3);
    padding: 4px;
}

.data-privacy-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.data-privacy-text {
    margin-bottom: 15px;
    color: #C5DDEE;
}

.data-privacy-highlight {
    background: rgba(74, 158, 255, 0.15);
    padding: 10px 12px;
    border-left: 3px solid #4a9eff;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.data-privacy-link-button {
    font-family: Arial, sans-serif;
    font-size: 17px;
    border-radius: 5px;
    background-color: #C5DDEE;
    border: solid #82AAC5;
    width: 205px;
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    text-decoration: none;
    color: #000;
    margin: 0 auto;
}

.data-privacy-link-button i {
    margin-right: 6px;
}