* {
    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: 80px 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;
}

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

.user {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #202225;
    background-color: #2f3136;
    color: #dcddde;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.user:hover {
    background-color: #1f2126;
}

.user img {
    margin-top: 10px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    pointer-events: none; /* Prevent drag-and-drop of the avatar */
}

.user-header {
    background-color: #5865f2;
    color: white;
    width: 100%;
    text-align: center;
    padding: 5px;
    border-radius: 5px 5px 0 0;
    position: relative;
}

.edit-icon {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-size: 16px;
    color: #dcddde;
}

.edit-icon:hover {
    color: #ffffff;
}

.permission {
    padding: 5px;
    border: 1px solid #50558c;
    margin-top: 5px;
    background-color: #3a3e64;
    width: 100%;
    text-align: center;
    min-width: 300px;
}
.remove-permission {
    color: #f26e6e;
}
.dropzone {
    margin-bottom: 20px;
}