* {
    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 */
}

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

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

#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;
    max-height: 910px;
}

/* 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 {
    max-height: 900px;
}

.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;
}

/* Stil für die Filterergebnisse */
.filter-result {
    background-color: #40444b;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

/* Stil für die Filterelemente in der Liste */
.filter-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    margin-bottom: 5px;
    background-color: #40444b;
    border-radius: 3px;
}

/* Buttons im Filterelement */
.filter-item button {
    margin-left: 5px;
    background-color: #5865f2;
    color: white;
    border: none;
    padding: 3px 6px;
    border-radius: 3px;
    cursor: pointer;
}

.filter-item button:hover {
    background-color: #2d347d;
}
#filterWithColorCodes {
    height: 20px;
}
.CodeMirror {
    height: auto!important;
}

#copyBtn {
    display: none;
}