@layer components {
    
    /* Start Offcanvas Styles */
    .ti-offcanvas {
        @apply fixed transition-all duration-300 transform h-full bg-white dark:bg-bgdark dark:border-transparent z-[60] shadow-md;

        &.ti-offcanvas-left {
            @apply ltr:-translate-x-full rtl:translate-x-full top-0 start-0 max-w-sm w-full border-e;
        }
        &.ti-offcanvas-top {
            @apply -translate-y-full top-0 inset-x-0 max-h-40 w-full border-b;
        }
        &.ti-offcanvas-right {
            @apply ltr:translate-x-full rtl:-translate-x-full top-0 end-0 max-w-sm w-full border-s;
        }
        &.ti-offcanvas-bottom {
            @apply translate-y-full bottom-0 inset-x-0 max-h-40 w-full border-b;
        }
        &.open {
            @apply translate-x-0  translate-y-0 #{!important};
        }
        .ti-offcanvas-header {
           @apply flex justify-between items-center py-3 px-4 border-b dark:border-white/10;
        }
        .ti-offcanvas-title{
            @apply font-bold text-gray-800 dark:text-white;
        }
        .ti-offcanvas-body {
            @apply p-4 overflow-y-auto h-[90%];
        }
    }
    /* End Offcanvas Styles */
}