* {
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    user-select: none;
    background-color: #36393f;
    color: #dcddde;
}

.header {
    background-color: #2f3136;
    color: #ffffff;
    padding: 10px;
    text-align: end;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #202225;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}

.container {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    padding: 20px 20px 20px 20px; /* adjust padding to account for the fixed header */
    height: 80vh!important;
}

.column {
    padding: 10px;
    border: 1px solid #202225;
    display: flex;
    flex-direction: column;
    width: 30%;
    background-color: #2f3136;
    overflow-y: auto;
    resize: horizontal;
    flex-grow: 1;
}

#actionList {
    position: sticky;
    top: 80px; /* adjust for header height */
    width: 15%;
    padding: 10px;
    border: 1px solid #202225;
    background-color: #2f3136;
    height: 85vh;
}

#eventEditor {
    width: 53%;

}

.json-output {
    flex-grow: 1;
    width: 100%;
    padding: 10px;
    border: 1px solid #202225;
    background-color: #2f3136;
    white-space: pre-wrap;
    overflow-y: auto;
    color: #b9bbbe;
    font-size: 12px;

}

/* Style for form elements */
input, select, textarea {
    background-color: #40444b;
    color: #dcddde;
    border: 1px solid #202225;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease, background-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: #5865f2;
    background-color: #2f3136;
}

.event, .action {
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #202225;
    background-color: #40444b;
    color: #dcddde;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    user-select: none;
}

.event:hover, .action:hover {
    background-color: #2c2f35;
}

button {
    padding: 10px;
    background-color: #5865f2;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    margin-left: 4px;
}

button:hover {
    background-color: #4752c4;
}

.drop-target {
    background-color: #2f3136;
    border: 2px dashed #6a6c82;
    color: #dcddde;
    padding: 20px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.popup-content {
    background-color: #2f3136;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #202225;
    width: 50%;
    color: #dcddde;
}

.close {
    color: #dcddde;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover, .close:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

li {
    background-color: #3a3e44;
    list-style: disclosure-closed;
    padding-top: 5px;
    padding-bottom: 5px;
    text-align: end;
    margin-top: 8px;
}


/* Popup background styling */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* dunkler, semi-transparenter Hintergrund */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Über allen anderen Inhalten */
}

/* Popup content styling */
.popup-content {
    background-color: #2f3136; /* Dunkler Hintergrund für den Inhalt */
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    color: #dcddde; /* Helle Textfarbe */
    border: 1px solid #202225; /* Rahmenfarbe angepasst */
}

/* Button styling inside popup */
.popup-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.popup-buttons button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #5865f2; /* Konsistent mit den Buttons in deiner Anwendung */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.popup-buttons button:hover {
    background-color: #4752c4; /* Hover-Effekt für die Buttons */
}

.popup-buttons button#popup-cancel {
    background-color: #6c757d; /* Grauer Button für Abbrechen */
}

.popup-buttons button#popup-cancel:hover {
    background-color: #5a6268; /* Hover-Effekt für den Abbrechen-Button */
}


/* Color DisplayChat Message */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.details {
    text-align: left;
    padding-left: 5px;
    padding-top: 5px;
}
.detailsheader {
    text-align: left;
    background-color: #5865f2;
    margin-top: -5px;
    padding-top: 4px;

    font-size: large;
    padding-left: 10px;
}
.action-buttons-header {
    text-align: right;
    margin-top: -25px;
}
.editAction {
    font-size: 13px;
}
.deleteAction{
    background-color: #6f0000;
    font-size: 13px;
}

.deleteEvent {
    background-color: #6f0000;
}
#dropdown {
    width: 250px;
}
#operation {
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #202225;
    background-color: #46334b;
    color: #dcddde;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    user-select: none;
}
[id^="movement"] {
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #202225;
    background-color: #334b49;
    color: #dcddde;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    user-select: none;
}
#eventForm {
    display: none;
}
#toggleEventForm {
    padding: 10px;
    background-color: #5865f2;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    margin-left: 4px;
    text-align: center;
}

.tab-menu {
    display: flex;
    padding-left: 20px;
}

.tablink {
    background-color: #f1f1f1;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    outline: none;
}

.tablink:hover {
    background-color: #4752c4;
}

.tab-content {
    display: none;
}

.tab-content h2 {
    margin-top: 0;
}
.tablink {
    padding: 10px;
    background-color: #5865f2;
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    user-select: none;
    margin-left: 4px;
}
#conditions {
    position: sticky;
    top: 80px;
    width: 15%;
    padding: 10px;
    border: 1px solid #202225;
    background-color: #2f3136;
}
.condition {
    padding: 10px;
    margin-bottom: 5px;
    border: 1px solid #202225;
    background-color: #40444b;
    color: #dcddde;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s;
    user-select: none;
}
#eventList {
    height: 50vh;
}

.condition-buttons-header {
    text-align: end;
    margin-top: -24px;
}
#conditionFormContainer {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    padding: 20px;
    background-color: #0b0a0a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

#conditionFormContainer .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
}
.detailsheader-condition {
    text-align: left;
    background-color: #66253d;
    margin-top: -5px;
    padding-top: 4px;

    font-size: large;
    padding-left: 10px;
}
.editCondition {
    background-color: #66253d;
}
.deleteCondition {
    background-color: #6f0000;
}

/*varibales */
.detailsheader-variables {
    text-align: left;
    background-color: #336625;
    margin-top: -5px;
    padding-top: 4px;

    font-size: large;
    padding-left: 10px;
}
.deleteVariable {
    background-color: #336625;
}
.deleteVariable:hover {
    background-color: #24481a;
}
.variables-buttons-header {
    text-align: right;
    margin-top: -25px;
}
.chat-popup-content {
    background-color: #26272b!important;
}


.form-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea {
    flex-grow: 1;
    padding: 8px;
    margin-left: 5px;
}
input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="date"]:disabled,
textarea:disabled {
    background-color: #3c2828;
    color: #999;
}
input[type="checkbox"]:checked + label + input,
input[type="checkbox"]:checked + label + textarea {
    cursor: text;
}
input[type="checkbox"]:not(:checked) + label + input,
input[type="checkbox"]:not(:checked) + label + textarea {
    cursor: not-allowed;
}

#enableLoreLine1 {
    width: 50px;
}
#enableLoreLine2 {
    width: 50px;
}
#enableSignUser {
    width: 50px;
}
#enableSignDate {
    width: 50px;
}
#enableMaterial {
    width: 50px;
}
#enableItemDisplayName {
    width: 50px;
}

#itemDisplayName {
    width: 80%;
}
#loreLine1 {
    width: 80%;
}
#loreLine2 {
    width: 80%;
}
#material {
    width: 80%;
}
#signUser {
    width: 80%;
}
#signDate {
    width: 80%;
}
#popup-enableItemDisplayName {
    width: 50px;
}
#popup-itemDisplayName {
    width: 80%;
}
#popup-enableLoreLine1 {
    width: 50px;
}
#popup-enableLoreLine2 {
    width: 50px;
}
#popup-enableSignUser {
    width: 50px;
}
#popup-enableSignDate {
    width: 50px;
}
#popup-enableMaterial {
    width: 50px;
}

#popup-loreLine1 {
    width: 80%;
}
#popup-loreLine2 {
    width: 80%;
}
#popup-material {
    width: 80%;
}
#popup-signUser {
    width: 80%;
}
#popup-signDate {
    width: 80%;
}

.CodeMirror {
    height: auto!important;
}

#copyBtn {
    display: none;
}
.CodeMirror {
    height: auto!important;
}

#copyBtn {
    display: none;
}

.sidebar-imexport {
    background-color: #1c364d;
}
#fileInput {
    background: #234462;
}

.sidemenu-footer {
    position: fixed;
    bottom: 0;
    display: inline-flex;
}

.menu-toggle-open {
    display: flow-root list-item;
    text-align: center;
    font-size: xx-large;
    padding: 10px;
    background: #10202f;
    margin-top: -25px;
    list-style: none;
}
.header {
    height: 80px;
}
.logo {
    height: 80px;
}
.submenu-footerlink {
    font-size: 13px !important;
}

.footer-right {
    display: inline;
}
.footer-center {
    display: inline;
}
.footer-right-footerlink {
    color: #aaa;
    text-decoration: none;
    float: right;
    padding-left: 5px;
    padding-right: 23px;
    margin-bottom: 5px;
}

#mobileWarning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

/* Menü-Schaltfläche */
.menu-toggle {
    font-size: 30px;
    cursor: pointer;
    padding: 15px;
}

/* Seitenleiste */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Startposition außerhalb des Bildschirms auf der rechten Seite */
    width: 400px;
    height: 100%;
    background-color: #1c364d;
    color: #fff;
    transition: right 0.3s ease;
    padding-top: 20px;
    z-index: 1000;
}

/* Sichtbare Seitenleiste */
.sidebar.active {
    right: 0; /* Seitenleiste sichtbar auf der rechten Seite */
}

/* Menülinks */
.sidebar a {
    display: block;
    color: #fff;
    padding: 15px;
    text-decoration: none;
    font-size: 18px;

}

.submenu-link {
    background: #1b4162;
}

/* Hover-Effekt */
.sidebar a:hover {
    background-color: #162d42;
}

/* Untermenü */
.submenu {
    display: none;
    background-color: #444;
}

/* Untermenü anzeigen */
.submenu.active {
    display: block;
}

/* Untermenü-Links */
.submenu a {
    font-size: 16px;
    padding-left: 30px;
}

.top-row {
    margin-top: -35px;
}