/* .offcanvas {
    position: fixed;
    z-index: 1000;
    right: 40px;
    top: 50px;
    background-color: white;
    height: 90%;
    width:  530px;
    border-radius: 10px;
    box-shadow: 0 0 5px grey;
    transition: display 0.1s ease-in-out;
    display: none;
    animation: slideLeft 0.8s forwards;
    overflow-y: auto;
}
.offcanvas_header {
    display: flex;
    justify-content: space-between;
    padding: 10px 10px;
    border-bottom: 1px solid rgb(172, 170, 170);
}
.offcanvas_title {
    font-weight: bold;
    font-size: 18px;
}
.offcanvas_body {
    padding: 20px 10px;
    overflow-x: auto;
}
@media only screen and (max-width: 400px) {
    .offcanvas {
        width: 90%;
    }
}
@media only screen and (max-width: 330px) {
    .offcanvas {
        width: 90%;
    }
}
@media only screen and (max-width: 1000px) {
    .offcanvas {
        width: 90%;
        right:10px;
    }
}

@keyframes slideRight {
    from {
        transform: translateX(0%);
    }

    to {
        transform: translateX(200%);
    }
}
@keyframes slideLeft {
    from {
        transform: translateX(200%);
    }

    to {
        transform: translateX(0%);
    }
} */

.offcanvas {
    position: absolute;
    z-index: 1000;
    background-color: white;
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 5px grey;
    transition: display 0.1s ease-in-out;
    display: none;
    animation: slideUp 0.8s forwards; /* Keep sliding animation */
    overflow-y: auto;
}

.offcanvas_header {
    display: flex;
    justify-content: space-between;
    padding: 5px 5px;
}

.offcanvas_title {
    font-weight: bold;
    font-size: 18px;
}

.offcanvas_body {
    padding: 20px 10px;
    overflow-x: auto;
}

.offcanvas_footer {
    display: flex;
    justify-content: end;
    padding: 5px 5px;
}

@media only screen and (max-width: 400px) {
    .offcanvas {
        width: 90%;
    }
}

@media only screen and (max-width: 330px) {
    .offcanvas {
        width: 90%;
    }
}

@media only screen and (max-width: 1000px) {
    .offcanvas {
        width: 90%;
        right: 10px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;  /* Fully transparent */
    }
    to {
        opacity: 1;  /* Fully visible */
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;  /* Fully visible */
    }
    to {
        opacity: 0;  /* Fully transparent */
    }
}

/*slide in an slide out animation to toggle the recurring task*/
/* Keyframe animations */
@keyframes slideIn {
    from {
        left: -250px;
    }
    to {
        left: 0;
    }
}

@keyframes slideOut {
    from {
        left: 0;
    }
    to {
        left: -250px;
    }
}

/* Class to apply sliding in animation */
#recurring_task_display.slide-in {
    display: block;
    animation: slideIn 0.5s forwards; /* Apply slide-in animation */
}

/* Class to apply sliding out animation */
#recurring_task_display.slide-out {
    animation: slideOut 0.5s forwards; /* Apply slide-out animation */
}

/*Remove the select2 border*/

/* Target only Select2 elements with the 'no-border-select' class */
.no-border-select + .select2-container .select2-selection {
    border: none !important; /* Removes the border */
    box-shadow: none !important; /* Removes shadow if present */
    outline: none !important; /* Ensures no outline on focus */
}

/* Optional: Adjust padding for better alignment */
.no-border-select + .select2-container .select2-selection__rendered {
    padding: 0.4em; /* Adjust as needed */
}

/* Optional: Remove hover effect for this specific Select2 */
.no-border-select + .select2-container .select2-selection:hover {
    border: none !important;
    box-shadow: none !important;
}







