@import url('./badge.css');
@import url('./toast.css');
@import url('./accordion.css');
@import url('./tabs.css');
@import url('./profile.css');
@import url('./card.css');
@import url('./table.css');
@import url('./preview.css');
@import url('./dropdown.css');
@import url('./navbar.css');
@import url('./gallery.css');
@import url('./announcement.css');
@import url('./dashboard.css');
@import url('./progress-bar.css');
@import url('./form.css');
@import url('./calender.css');
@import url('./bootstrap-compatibility.css');
@import url('../fonts/Inter.css');
@import url('./misc.css');
@import url('./select2.css');
@import url('./fsm.css');
@import url('./modules/checklist/checklist.css');
@import url('./monthly-view.css');
@import url('../js/vendors/jquery-file-upload/uploadfile.css');
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
    [x-cloak] {
        display: none !important;
      }
    h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
        font-weight: 600;
        line-height: 1;
    }

    h3,
    .h3 {
        font-size: 1.25rem;
        color: #1c2c42;
    }

    p {
       font-size: 14px;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        font-family: "Inter", sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    input[type=date] {
        color: #667085;
    }
    img, video {
        max-width: 100%;
    }
}

/** Custom Switch Css Here */
.custom_switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.custom_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #EAECF0;
    -webkit-transition: .4s;
    transition: .4s;
}

.switch_slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2.5px;
    background-color: white;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.06), 0 1px 3px 0 rgba(16, 24, 40, 0.1);
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.switch_slider {
    background-color: #E06716;
    /* background-color: rgb(35, 175, 71); */
}

/* input:focus + .switch_slider {
    box-shadow: 0 0 1px #E06716;
  } */

input:checked+.switch_slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

.switch_slider.round {
    border-radius: 12px;
}

.switch_slider.round:before {
    border-radius: 50%;
}

/* custom typography  */

/* extra small text  */
.text-xs-regular {
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.text-xs-medium {
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
}

.text-xs-semibold {
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}

.text-xs-bold {
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}


/* small text  */
.text-sm-regular {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.text-sm-medium {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.text-sm-semibold {
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.text-sm-bold {
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}

/* medium text  */
.text-md-regular {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.text-md-medium {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.text-md-semibold {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
}

.text-md-bold {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
}

/* large text  */
.text-lg-regular {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.text-lg-medium {
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
}

.text-lg-semibold {
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.text-lg-bold {
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

/* xl text  */
.text-xl-regular {
    font-size: 20px;
    font-weight: 400;
    line-height: 30px;
}

.text-xl-medium {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
}

.text-xl-semibold {
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
}

.text-xl-bold {
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}
.text-muted {
    @apply text-custom-grey-500
}


/* display xs  */
.display-xs-regular {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

.display-xs-medium {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

.display-xs-semibold {
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.display-xs-bold {
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

/* display small  */
.display-sm-regular {
    font-size: 30px;
    font-weight: 400;
    line-height: 38px;
}

.display-sm-medium {
    font-size: 30px;
    font-weight: 500;
    line-height: 38px;
}

.display-sm-semibold {
    font-size: 30px;
    font-weight: 600;
    line-height: 38px;

}

.display-sm-bold {
    font-size: 30px;
    font-weight: 700;
    line-height: 38px;
}


/* display medium  */
.display-md-regular {
    font-size: 36px;
    font-weight: 400;
    line-height: 44px;
}

.display-md-medium {
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
}

.display-md-semibold {
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
}

.display-md-bold {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
}

/* display large  */
.display-lg-regular {
    font-size: 48px;
    font-weight: 400;
    line-height: 60px;
}

.display-lg-medium {
    font-size: 48px;
    font-weight: 500;
    line-height: 60px;
}

.display-lg-semibold {
    font-size: 48px;
    font-weight: 600;
    line-height: 60px;
}

.display-lg-bold {
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
}


/* display xl  */
.display-xl-regular {
    font-size: 60px;
    font-weight: 400;
    line-height: 72px;
}

.display-xl-medium {
    font-size: 60px;
    font-weight: 500;
    line-height: 72px;
}

.display-xl-semibold {
    font-size: 60px;
    font-weight: 600;
    line-height: 72px;
}

.display-xl-bold {
    font-size: 60px;
    font-weight: 700;
    line-height: 72px;
}


/* display 2xl  */
.display-2xl-regular {
    font-size: 72px;
    font-weight: 400;
    line-height: 90px;
}

.display-2xl-medium {
    font-size: 72px;
    font-weight: 500;
    line-height: 90px;
}

.display-2xl-semibold {
    font-size: 72px;
    font-weight: 600;
    line-height: 90px;
}

.display-2xl-bold {
    font-size: 72px;
    font-weight: 700;
    line-height: 90px;
}
.btn-secondary-sm.is-disabled {
  background-color: #d3d3d3;
  color: #a4a4a4;
  border-color: #c0c0c0;
  cursor: not-allowed;
}
/* custom radio  */
input[type="radio"] {
    @apply h-[18px] w-[18px] cursor-pointer appearance-none rounded-full border relative
        border-custom-grey-300 checked:border-custom-orange-400 transition-all
        after:content-[""] after:p-[6px] after:absolute after:top-[2px] after:left-[2px] checked:after:bg-custom-orange-400 checked:after:rounded-full;
}

/* custom checkbox  */

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    height: 18px;
    width: 16px;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #D0D5DD;
}

input[type="checkbox"]::after {
    content: "";
    padding: 5px;
}


input[type="checkbox"]:checked {
    background-color: #FEF4EE;
    border: 1px solid #E06716;
    background-image: url('../images/icons/svg/checkbox.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}


/* custom calendar picker  */

input[type="date"] {
    width: 100%;
    height: 40px;
    background: url('../images/icons/svg/input.svg');
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: 95%;


}

input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}


input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}

input[type="time"] {
    width: 100%;
    height: 40px;
    background: url('../images/icons/svg/input-time.svg');
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: 95%;


}


.form-input-select {
    -webkit-appearance: none;
    appearance: none;
    max-width: 100%;
    text-overflow: ellipsis;
}

.form-input-select {
    background-image: url("../images/icons/svg/dropdown-arrow.svg");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: 95%;
}

/* custom multi select  */

.multi-select-dropdown {
    width: 100%;
    display: inline-block;
    position: relative;
}

.multi-select-box {
    position: relative;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #D0D5DD;
    z-index: 99;
    background-color: transparent;
    padding-right: 40px;
    font-size: 16px;
    font-weight: 500;
    color: #667085;
    height: 40px;
}

.multi-select-options-content {
    width: 100%;
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #D0D5DD;
    border-radius: 5px;
    overflow-y: auto;
    max-height: 200px;
    z-index: 100;
}

.multi-select-option {
    padding: 8px;
    cursor: pointer;
}

.multi-select-option:hover {
    background-color: #f0f0f0;
}

/* For WebKit browsers (Chrome, Safari, etc.) */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    @apply bg-custom-grey-200;
}

::-webkit-scrollbar-thumb {
    @apply bg-custom-grey-300;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-custom-grey-400;
}


@layer components {

    hr {
        @apply border-custom-grey-100;
    }

    /* overly background  */

    .overlay {
        @apply w-screen h-screen fixed inset-0 bg-black bg-opacity-30 z-20;
    }

    .wrapper {
        @apply mx-0 sm:mx-6 mt-0 mb-6 sm:my-6 bg-white rounded-lg;

        .content {
            @apply p-6 flex flex-col gap-7;
        }
        .content-header {
            @apply flex flex-col lg:flex-row lg:justify-between lg:items-start gap-3 lg:gap-0 lg:sticky lg:top-[60px] bg-base-white z-[100];
            h1 {
                @apply display-xs-bold text-custom-grey-700;
            }
        }
        .footer {
            @apply px-6 py-1;
        }
    }

    .faq-wrapper {
        @apply m-0 bg-white rounded-t-lg;
    }

    .content-header .user-img {
        @apply w-[80px] h-[80px] border-solid border-2 border-white shadow-[0px_8px_14px_-4px_rgba(0,0,0,0.25)] rounded-full;
    }
    /* revise the code after final. This css should be not needed. START*/
    .wrapper>div:not(#cover-container):not(#profile-border-tab):not(.tab-content-wrapper):not(#modal-dialog):not(.content):not(.content-old):not(.faq-wrapper) {
        @apply p-2;
    }
    /* revise the code after final. This css should be not needed. END*/

    .sticky-wrapper {
        @apply h-[calc(100vh-56px)] overflow-y-scroll;
    }
    .sticky-wrapper::-webkit-scrollbar {
        display: none;
    }
    .sticky-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }


    .sidebar-section {
        @apply w-[280px];
    }


    .sidebar-section-toggle {
        @apply w-[96px];
    }


    .sidebar-link {
        @apply flex items-center justify-between group-hover:bg-custom-orange-50 px-5 py-3 rounded-lg group-[.active]:bg-custom-orange-50;
    }


    .sidebar-link-title {
        @apply text-sm md:text-base font-semibold text-custom-grey-600 group-hover:text-custom-orange-600 group-[.active]:text-custom-orange-600;
    }

    .sidebar-icon-svg {
        @apply stroke-custom-grey-600 group-hover:stroke-custom-orange-500 group-[.active]:stroke-custom-orange-500;
    }

    .sidebar-arrow-svg {
        @apply stroke-custom-grey-500 group-hover:stroke-[#EF7320] transition-all ease-in-out duration-150 group-[.active]:stroke-custom-orange-500 group-[.active]:rotate-90;
    }

    /* for blue */
    #bottom-sidebar{
        .group:hover,
        .group.active,
        .group.selected {
            .sidebar-link {
                @apply bg-custom-blue-50;
            }
            .sidebar-link-title {
                @apply text-custom-blue-600;
            }
            .sidebar-icon-svg {
                @apply stroke-custom-blue-500;
            }
        }
    }

    /* sidebar sub menu  */
    .sidebar-sub-menu {
        @apply pl-7 mt-2 hidden group-[.active]:block;
    }

    .sidebar-sub-menu-list {
        @apply flex flex-col gap-1;
    }

    .sidebar-sub-menu-link {
        @apply text-custom-grey-600 text-sm flex items-center hover:text-custom-orange-500 hover:bg-custom-orange-25 ml-10 px-2 py-2 truncate rounded-lg;
    }

    .sidebar-sub-menu-link.active {
        @apply text-custom-orange-600;
    }

    /* bottom side bar  */

    .bottom-sidebar {
        @apply w-[280px] md:px-4;
    }

    /* .bottom-sidebar-toggle {
        @apply w-[95px];
    } */


    /* main section css  */

    .main-section {
        @apply w-full md:w-[calc(100%-280px)] md:ml-[280px];
    }

    .main-section-toggle {
        @apply w-full md:w-[calc(100%-96px)] md:ml-[96px];
    }


    /* form  styles  */

    .form_group {
        @apply flex flex-col gap-[6px];
    }

    .form-group-file {
        @apply py-4 px-6 border border-custom-grey-300 rounded-lg flex flex-col gap-3;
    }

    .form-label {
        @apply text-custom-grey-700;
    }

    .form-input {
        @apply px-3 py-2 border border-custom-grey-300 rounded-lg text-md-regular text-custom-grey-500 outline-none placeholder-custom-grey-500;
    }

    .form_group.has_danger .form-input-danger,
    .form-input-danger
    {
        @apply  !border-red-500
    }

    /* Search Bar */

    .search-bar {
        @apply relative;
    }

    .search-icon {
        @apply absolute top-[50%] right-[12px] transform translate-y-[-50%] text-custom-grey-400 cursor-pointer;
    }


    /* canvas css  */

    .canvas-loading-card {
        @apply border border-custom-grey-200 rounded-lg p-4 flex items-start;

    }



    /* accordion css here  */
    .accordion-item {
        @apply bg-custom-orange-25 border-2 border-custom-orange-300 rounded-[8px] px-[20px] py-[16px];
    }

    .accordion-title {
        @apply text-custom-grey-900 font-semibold text-lg;
    }

    .accordion-content {
        @apply text-custom-grey-700 font-semibold text-[16px] leading-6 mt-[4px];
    }

    /* Folder Card css here */

    .folder-card {
        @apply p-5 border border-custom-grey-200 rounded-lg cursor-pointer;
    }

    .folder-card.selected {
        @apply shadow-cstm;
    }


    /* tree view css  */

    .tree-menu-item {
        @apply flex items-center gap-3 rounded hover:bg-custom-blue-50;
    }

    .tree-submenu-list {
        @apply mt-4;
    }

    .tree-submenu {
        @apply pl-7;
    }

    .tree-submenu-item {
        @apply flex items-center gap-3 rounded hover:bg-custom-blue-50;
    }

    .nested-tree-list {
        @apply mt-4;
    }

    .nested-tree-menu {
        @apply pl-7;
    }

    .nested-tree-item {
        @apply flex items-center gap-3 rounded hover:bg-custom-blue-50;
    }

    .tree-list {
        @apply mt-4;
    }

    .tree-list-item {
        @apply pl-[58px] mb-4;
    }

    .tree-item {
        @apply flex items-center gap-3 rounded hover:bg-custom-blue-50;
    }

    .tree-link {
        @apply flex items-center gap-2;
    }

    .tree-link-rotate {
        @apply transition-all ease-in-out duration-150 -rotate-90;
    }

    .collapse.show{
        visibility: visible;
    }
    .announcement-list td img {
        width: 90px;
        height: 90px;
        flex: 0 0 90px;
    }
    div.rounded-img {
        @apply relative overflow-hidden rounded-full;
    }
    div.rounded-img img{
        @apply w-full h-auto;
    }
    .announcement-list td img.rounded-circle,
    .table-custom-striped td img.rounded-circle {
        border-radius: 50%;
    }

    .content-title-div {
        @apply flex flex-wrap gap-3 justify-between items-center mb-[24px];
        h1 {
            @apply text-custom-grey-900;
        }
    }
    .user-img.inactive{
        @apply opacity-50 grayscale;
    }
    .tinymce-reset {
        all: revert; /* Tailwind doesn’t support all: revert directly via utility classes */
        @apply text-base font-normal text-gray-800;
    }
}
