/**
 *
 * Copyright 2025 autumo GmbH, Michael Gasche.
 * All Rights Reserved.
 *
 * NOTICE: All information contained herein is, and remains
 * the property of autumo GmbH. The intellectual and technical
 * concepts contained herein are proprietary to autumo GmbH
 * and are protected by trade secret or copyright law.
 *
 * Dissemination of this information or reproduction of this material
 * is strictly forbidden unless prior written permission is obtained
 * from autumo GmbH.
 *
 */


body {
	background-color: #e9edf8;
}

select {
    border-radius: 10px;
}

legend {
    font-size: 2rem;
    font-weight: 700;
    color: #666666;
    margin-bottom: 24px;
}

p {
    margin-bottom: 0;
}

h1 {
	margin-top: 16px;
}

/* Note: depending on the LLM, this might be adjusted. */
li p {
	display: inline;
	margin: 0;
}
ul li {
    padding-left: 1.4em;
    text-indent: -1.4em;
}
ul li ul li {
    padding-left: 1.4em;
    text-indent: -1.4em;
}
ul.hanging-indent {
	padding-left: .3em;
}
ul.hanging-indent li {
    text-indent: -1.4em;
}


hr {
    border-top: 0.1rem solid #cccccc;
}

.fi {
	margin-right: 12px;
}
.home {
	padding: 20px 32px 20px 32px;
}
.public {
	max-width: 100rem !important;
}
.content {
	margin-bottom: 32px;
	border-radius: 10px;
}
.container {
	padding-bottom: 24px;
}


.main-title-img {
	width: 48px;
	display: block;
	align-items: center;
	float: left;
	margin: 6px 12px 0 0;
	filter: brightness(125%);
}
.main-title {
	float: right;
}


.top-nav, .container {
	max-width: 122rem;
	margin: 4px auto 0 auto;
}
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.top-nav-title {
	display: flex;
}
.top-nav-title a {
	font-size: 48px;
	color: #444444;
}
.top-nav-title span {
    color: var(--color-cakephp-red);
}
.top-nav-center {
    display: flex;
	position: relative;
	margin-left: auto;
    align-items: center;
}
.top-nav-links a {
	margin: 0;
}
.top-nav-links a:hover {
	filter: brightness(1.2);
	background-color: transparent;
	color: inherit;
}
.top-nav-right {
	margin-left: 10px;
}
.top-nav-links,
.top-nav-right {
    display: flex;
    align-items: center;
    column-gap: 8px
}

.hamburger {
	background-color: transparent !important;
	margin-top: 9px;
	margin-right: 1px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 110;
}
.hamburger:hover {
    background-color: transparent !important;
}
.hamburger:hover span {
    background-color: #888888;
}
.hamburger span {
	transition: filter 0.3s ease;
    display: block;
    height: 2px;
    width: 100%;
    background-color: #aaaaaa;
    border-radius: 2px;
}

@media (max-width: 992px) {
	.main-title a {
		font-size: 32px;
		line-height: 2.4;
	}
    .hamburger {
        display: flex;
    }
    .top-nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        white-space: nowrap;
    	margin-right: 1px;
        top: 48px;
        right: 0;
        width: auto;
        min-width: 160px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .top-nav-links a {
    	margin: 0;
    	text-align: right;
        padding: 8px 12px;
    	width: 100%;
    	height: 100%;
		background: #eeeeee;
        border-top: 1px solid #bbb;
        border-left: 1px solid #bbb;
        border-right: 1px solid #bbb;
    }
    .top-nav-links a:last-child {
        border-bottom: 1px solid #bbb;
    }
	.top-nav-links a:hover {
        background: #dddddd;
	}
    .top-nav-links.show {
        display: flex;
    }
    .top-nav {
        position: relative;
    }
}


.actions a:first-child {
    padding-left: 0px;
}
.actions a {
    font-weight: bold;
    padding: 0px 0.4rem 0 0;
}


.side-nav li {
	display: inline-flex;
	padding: 2px 12px 2px 12px;
	border: 1px solid #d33c43;
	border-radius: 8px;
	margin-right: 8px;
	background-color: #d33c43;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.side-nav li:hover {
	border: 1px solid #ff4a54;
	background-color: #ff4a54;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.side-nav li a {
	color: #dddddd;
}
.side-nav li a:hover {
	color: #ffffdd;
}


.separator {
    border: 0;
    border-top: 1px solid #b85b66;
    margin: 0 0 4.5rem 0;
}


.pagination a {
    display: inline;
	font-size: 20px;
	font-weight: bold;
	color: var(--color-cakephp-red);
}
.pagination li {
    margin: 0.4em;
}
.pagination li:not([class]), .pagination li.active {
    margin-top: 0px !important;
}
.conversation-navigation .pagination li {
    margin: 0.4em 0.8em 0em 0.8em;
}
.conversation-navigation {
	margin-top: -12px;
	padding-bottom: 20px;
}


code {
    background: #aaa;
    color: #ffffff;
    border-radius: .4rem;
    font-size: 100%;
    margin: 0 .2rem;
    padding: .2rem .5rem;
    white-space: nowrap;
}
#chatHistory .icd-codes {
	margin-top: 12px !important;
	margin-bottom: -12px !important;
}
.icd-codes {
	margin-top: 8px !important;
	margin-bottom: 20px !important;
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5em;
}
.icd-link {
	text-decoration: none;
}
.icd-tag {
    font-size: 120%;
    padding: .3rem .6rem;
}
.msg-src {
    border-radius: .4rem;
	background-color: #888888;
    padding: .4rem .8rem .3rem .8rem;
    margin-right: 6px;
    margin-top: 3px !important;
	float: left;
    font-size: 0.75em;
    font-weight: 700;
    color: #e9edf8;
}

.settingsBox {
	display: block;
}
.langSelect {
	float: right;
}
.sourceSelect {
	float: left;
}
.chooseConversation {
	clear: both;
	display: block;
}

label:has(input[type="checkbox"]) {
	display: flex;
	align-items: center;
    margin-top: 16px !important;
    cursor: pointer;
}
label:has(input[type="checkbox"]) input[type="checkbox"] {
	appearance: none;
	cursor: pointer;
	-webkit-appearance: none;
	display: inline-flex;
	align-content: center;
	justify-content: center;
	font-size: 2rem;
	padding: 0.3rem;
	border: 1px solid #ccc;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
	border-radius: 8px;
	background-color: #f5f7fa;
}
label:has(input[type="checkbox"]) input[type="checkbox"]::before {
	content: "";
	width: 30px;
	height: 30px;
	clip-path: polygon(41% 52%, 26% 35%, 10% 51%, 37% 88%, 37% 88%, 37% 88%, 37% 88%, 37% 88%, 91% 33%, 78% 18%);
	transform: scale(0);
	background-color: green;
	transition: transform 0.2s ease-in-out;
}
label:has(input[type="checkbox"]) input[type="checkbox"]:checked::before {
	transform: scale(1);
}
label:has(input[type="checkbox"]) input[type="checkbox"]:hover {
	background-color: #e8ebf0;
}

input[type='color'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
input[type='week'],
input:not([type]),
textarea,
select,
#source,
#language,
#conversationSelect {
	font-size: 100%;
	background-color: #f5f7fa;
	color: #666666;
}
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #f5f7fa inset !important; /* Hintergrund */
    box-shadow: 0 0 0px 1000px #f5f7fa inset !important;
    -webkit-text-fill-color: #666666 !important; /* Textfarbe */
    transition: background-color 5000s ease-in-out 0s;
}


#questionBox {
	background-color: #ffffff;
	width: 80%;
	height: 148px;
	margin: 0 auto;
	border: 1px solid #d1d1d1;
	border-radius: 16px;
	padding: 12px;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;
}
#question {
	background-color: #ffffff;
	border: none;
	height: 80px;
	resize: none;
	margin-bottom: 0;
}

#questionButton {
	display: block;
	border-radius: 16px;
	height: 32px;
	width: 32px;
	line-height: 1rem;
    padding: 1px 0 0 1px;
    margin-bottom: 0;
	float: right;
}

#topSpacer {
	margin-top: 40px;
    border-top: 1px solid #c4c4c4;
	height: 8px;
}
#bottomSpacer {
    border-bottom: 1px solid #c4c4c4;
	height: 8px;
}

#chatHistory {
	white-space: normal;
	overflow-y: auto;
	padding-right: 16px;
	max-height: 50vh;
}
#chatHistory ul li {
    padding-left: 1.28571429em;
    text-indent: -1.28571429em;
}
#chatHistory p {
    padding-bottom: 36px;
}
.chat-history {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
}


.freeform {
	margin-bottom: 32px;
}


.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 6px;
}
.message.question {
    background-color: #e7f3ff;
}
.message.answer {
    background-color: #e6ffe7;
}
.message-general {
    margin-top: 10px;
}
.message-general p {
	margin-bottom: 36px;
}
.message-general ul li {
    padding-left: 1.4em;
    text-indent: -1.4em;
}
.message-general ul li ul li {
    padding-left: 1.4em;
    text-indent: -1.4em;
}


.timestamp {
    text-align: right;
    color: #777;
}
#copyright {
	color: #606c76
}
.system-user {
	font-size: 20px;
}


.search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 1rem;
}

#search-case-id {
	flex: 0 0 20%;
	padding: 0.4rem;
}

#search-baseline {
	flex: 1; /* Restliche Breite */
	padding: 0.4rem;
}


.btn {
	margin-top: -4px;
	cursor: pointer;
}
.btn-right {
	margin-top: -4px;
	float:right;
	cursor: pointer;
}
.convButtons {
	flex: 0 0 auto;
	margin-top: -1px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}
.convButtons .button {
	margin-bottom: 0;
}
.convButtons .left-btn-container {
    justify-content: flex-end;
	float: right;
    display: flex;
}
.convButtons .right-btn-container {
	flex: 0 1 auto;
    justify-content: flex-end;
	float: right;
    display: flex;
    gap: 12px;
}


#clear-button {
	margin-top: -4px;
}


button[type="button"].btn-form-del {
    all: unset;
	color: var(--color-lightgray);
    background: none;
    border: none;
	margin-bottom: 0;
	padding: 0.5rem 0px;
	cursor: pointer;
}
button[type="button"].btn-form-del:hover {
	color: var(--color-links-active);
}
.form-no-space {
    display: none;
    margin: 0;
    padding: 0;
    border: none;
    height: 0;
    width: 0;
    overflow: hidden;
}
.idx-action {
	font-weight: bold !important;
	padding: 0 !important;
}


.dashboard-info {
	font-style: italic;
	font-weight: 400;
	margin-top: 32px;
	color: #aaaaaa;
}
.scopeFilter {
	margin-bottom: 24px;
	float: left;
	width: 50%;
	padding-right: 12px;
}
.timeFilter {
	margin-bottom: 24px;
	float: right;
	width: 50%;
	padding-left: 12px;
}
.charts-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.4rem;
    width: 100%;
    max-width: 100vw;
    margin-bottom: 32px;
}
@media (max-width: 1226px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.charts-container > .chart {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}
.chart {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 20px;
    border-radius: 12px;
    background-color: #dddddd;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
.chart-fullwidth {
    width: 100%;
    grid-column: 1 / -1;
}
.chart-title {
    color: #777777;
    font-size: 20px;
    margin-bottom: 12px;
    text-align: left;
    cursor: help;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chart-title::after {
    content: attr(data-tooltip);
    position: absolute;
	word-wrap: break-word;
    margin-top: -1px;
    right: 20px;
    white-space: normal;
    background: #bbbbbb;
    color: #666;
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 10;
}
.chart-title:hover::after {
    opacity: 1;
}
.chart-exports {
	display: flex;
    gap: 4px;
}
.chart-exports .fi-size-xs.fi {
	margin-top: -12px !important;
	padding-top: 0px;
}
.chart-exports a {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    text-decoration: none;
}
.chart-exports .fi {
    margin-right: 0px;
}


#showNotesBtn {
	background-color: var(--color-message-warning-text);
	border-color: var(--color-message-warning-text);
}
#showNotesBtn:hover {
	background-color: var(--color-message-warning-border);
	border-color: var(--color-message-warning-border);
}
.note-input-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.note-input-form button {
	margin-top: 2px;
}
.note-wrapper {
	background-color: #ffffff;
	width: 100%;
	height: 100%;
	margin: 0 4px 0 0;
	border: 1px solid #d1d1d1;
	border-radius: 16px;
	padding: 12px;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;
}
.note-input-form textarea {
    flex: 1;
	background-color: #ffffff;
	border: none;
	height: 40px;
	resize: vertical;
	margin-bottom: 0;
}
.notes-list {
    overflow-y: auto;
    height: 100%;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.note-box {
    background-color: #fdfdfd;
    padding: 12px 16px;
    border-radius: 16px;
    border: 1px solid #dddddd;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}
.note-content {
    flex: 1;
    white-space: pre-wrap;
	color: #5c5c5c;
}
.note-actions {
	margin-bottom: -6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
}
.note-dates {
    font-size: 0.8em;
    color: #888;
    position: absolute;
    bottom: 12px;
    left: 16px;
}
.note-actions button {
	padding: 0 6px 0 6px;
	border-radius: 20px;
}
.note-actions .btn-edit svg {
	margin-top: -5px;
    width: 24px;
    height: 24px;
    vertical-align: middle;
}
.note-actions .btn-delete svg {
	margin-top: -4px;
    width: 22px;
    height: 22px;
    vertical-align: middle;
}
.note-editor {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}
.note-editor-textarea {
    flex: 1;
	background-color: #ffffff;
    border: none;
    height: 60px;
    resize: vertical;
    margin-bottom: 0;
    width: 100%;
}
.note-editor-save {
    align-self: flex-end;
    margin-top: 8px;
}


.modal, .modal-notes {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-notes {
    z-index: 500;
}
.modal-content, .modal-content-notes {
    background-color: #eeeeee;
    margin: 15% auto;
    padding-top: 32px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 32px;
    width: 480px;
    min-height: 180px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    word-wrap: break-word;
    white-space: normal;
}
.modal-content-notes {
    margin: 5% auto;
	overflow-y: auto;
	width: 80%;
	height: 80%;
}
#modal-message {
	height: 100%;
	display: block;
	font-weight: 300;
	color: #222222;
	margin-right: 16px;
	margin-bottom: 28px;
	font-size: 2rem;
}
.modal-buttons {
	display: block;
	min-height: 40px;
    margin-top: auto;
    margin-right: 4px;
}
.modal-button {
	text-transform: none;
	float: right;
	font-weight: 200;
    font-size: 16px;
    margin-left: 16px;
    margin-bottom: 0px;
    margin-right: 0px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    color: white;
}
.modal-ok {
    background-color: var(--color-cakephp-red);
}
.modal-ok:hover,
.modal-ok:focus {
    background-color: var(--color-lightgray);
}
.modal-cancel {
    background-color: var(--color-lightgray) !important;
}
.modal-cancel:hover,
.modal-cancel:focus {
    background-color: var(--color-cakephp-gray) !important;
}
.modal-close {
    color: #888888;
    position: absolute;
    top: -4px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover,
.modal-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}


.theme-toggle-btn {
    position: relative;
    top: 5px;
    margin-left: 2px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5em;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
	vertical-align: middle;
    width: 3rem;
    height: 3rem;
    transition: background-color 0.3s ease, color 0.3s ease, filter 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none; /* kein !important */
    box-shadow: none;
}
.theme-toggle-btn:hover,
.theme-toggle-btn:focus,
.theme-toggle-btn:focus-visible {
    outline: none;
    box-shadow: none;
    transition: filter 0.3s ease;
}
[data-theme="dark"] .theme-toggle-btn:hover,
[data-theme="dark"] .theme-toggle-btn:focus,
[data-theme="dark"] .theme-toggle-btn:focus-visible {
    filter: brightness(1.2);
}
[data-theme="default"] .theme-toggle-btn:hover,
[data-theme="default"] .theme-toggle-btn:focus,
[data-theme="default"] .theme-toggle-btn:focus-visible {
    filter: brightness(0.8);
}
.theme-toggle-btn::-moz-focus-inner {
    border: 0;
}
.themeicon {
    display: none;
    width: 25px;
    height: 25px;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
[data-theme="dark"] .theme-toggle-btn {
  background-color: #374151;
}
[data-theme="default"] .theme-toggle-btn {
  background-color: #cccccc;
}
[data-theme="default"] .theme-toggle-btn .moon {
    display: block;
    color: #374151;
}
[data-theme="default"] .theme-toggle-btn .sun {
    display: none;
}
[data-theme="dark"] .theme-toggle-btn .sun {
    display: block;
    color: #facc15;
}
[data-theme="dark"] .theme-toggle-btn .moon {
    display: none;
}


.user-icon-link svg {
	width: 1.4rem;
	height: 1.4rem;
}
.user-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	background-color: #374151;
	color: #374151;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}
.user-icon-link:hover,
.user-icon-link:focus {
    outline: none;
    box-shadow: none;
    transition: filter 0.3s ease;
}
[data-theme="dark"] .user-icon-link:hover,
[data-theme="dark"] .user-icon-link:focus {
    filter: brightness(1.2);
}
[data-theme="default"] .user-icon-link:hover,
[data-theme="default"] .user-icon-link:focus {
    filter: brightness(0.8);
}
[data-theme="dark"] .user-icon-link {
  background-color: #374151;
}
[data-theme="default"] .user-icon-link {
  background-color: #cccccc;
}
[data-theme="default"] .user-icon-link svg {
  fill: #374151;
}
[data-theme="dark"] .user-icon-link svg {
  fill: #888888;
}


.login-hint {
    position: absolute;
    top: 32px;
    left: -16px;
    width: 116px;
    transform: translateX(-50%) scale(0);
    background: #d33c43;
    color: #fff;
    padding: 0.2em 0.5em;
    border-radius: 0.4rem;
    font-size: 1.4rem;
    font-weight: bold;
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}
.login-hint.show {
    transform: translateX(-50%) scale(1);
    opacity: 1;
}


.thumbnail-gallery {
	margin-top: 30px;
	margin-bottom: 24px;
	flex-wrap: wrap;
    display: flex;
    gap: 16px;
    justify-content: center;
}
.thumbnail-gallery .thumb {
    width: 320px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
}
.thumbnail-gallery .thumb:hover {
    transform: scale(1.05);
}
#lightbox {
    position: fixed;
    top:0; left:0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
    box-shadow: 0 0 15px #000;
    cursor: pointer;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}
.animate-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
  transform-origin: center;
}
