div.task-panel {
    max-height: 80%;
    height: 80%;
}

ul.panel-task-list {
    max-height: 80%;
    overflow-y: auto;
}

li.activity-task-item {
    overflow-wrap: break-word;
    position: relative;
}

li.activity-task-item:has(.task-video-btn) {
    padding-right: 50px;
}

div.scenario-content {
    background-color: white;
}

div.scenario-panel {
    max-height: 80%;
    overflow-y: auto;
}

div.side-panel-nav {
    bottom: 5px;
}

div.scenario-panel code {
    overflow-x: auto;
    text-wrap: nowrap;
    font-size: small;
}

i.task-video-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #6610f2;
    border-radius: 5px;
    padding: 2px 5px;
    color: white;
    transition: background-color 0.2s ease-in-out;
}

i.task-video-icon:hover {
    background-color: #8c4fee;
}

button.task-video-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

dialog.video-dialog {
    border: none;
    border-radius: 10px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-in-out;
}

dialog.video-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

.video-dialog-content {
    position: relative;
    padding: 20px;
    background-color: white;
}

.video-dialog-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease-in-out;
}

.video-dialog-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

dialog.video-dialog video {
    width: 100%;
    max-height: 60vh;
    display: block;
    border-radius: 5px;
}

@keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }