@import("https://cdn.jsdelivr.net/npm/@yaireo/tagify/dist/tagify.css");

:root {
    --sky-50: hsl(185, 68%, 96%);
    --sky-100: hsl(184, 59%, 90%);
    --sky-200: hsl(187, 59%, 82%);
    --sky-300: hsl(187, 59%, 69%);
    --sky-400: hsl(188, 55%, 53%);
    --sky-500: hsl(189, 61%, 43%);
    --sky-600: hsl(192, 58%, 36%);
    --sky-700: hsl(192, 52%, 31%);
    --sky-800: hsl(195, 45%, 27%);
    --sky-900: hsl(196, 40%, 24%);
    --sky-950: hsl(197, 50%, 15%);
    --blue-50: hsl(220 75% 97%);
    --blue-100: hsl(218 68% 93%);
    --blue-200: hsl(217 69% 87%);
    --blue-300: hsl(216 69% 78%);
    --blue-400: hsl(218 67% 68%);
    --blue-500: hsl(222 65% 60%);
    --blue-600: hsl(226 59% 53%);
    --blue-700: hsl(229 54% 48%);
    --blue-800: hsl(231 50% 40%);
    --blue-900: hsl(229 46% 35%);
    --blue-950: hsl(230 40% 21%);
}

:root {
    --white: #fff;
    --black: #000;
    --aside-bg: var(--white);
    --content-bg: #E8E8E8;
    --primary: var(--sky-500);
    --hover-color: var(--sky-100);
    --transition: all 0.3s ease;
    --primary-gradient: linear-gradient(89deg, var(--sky-500) -8.1%, var(--blue-500) 107.5%);
}

::-webkit-scrollbar {
    width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);

}

    /* Handle on hover */
::-webkit-scrollbar-thumb:hover {
        background: #555;
}

/* Layout Style Start */
.agrocel-container {
    width: 100%;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "main-content";
}

    .agrocel-container aside {
        grid-area: aside;
        display: none;
    }

    /* Controls the main grid layout when sidebar is collapsed */
    .agrocel-container:has(aside.sidebar-small) {
        grid-template-columns: 1fr;
    }

        /* Hides text labels in menu items when sidebar is collapsed */
        .agrocel-container:has(aside.sidebar-small) .menu-content-wrapper span {
            display: none;
        }

        /* Hides user details in the dropdown menu when sidebar is collapsed */
        .agrocel-container:has(aside.sidebar-small) .dropdown-toggle div > .dropdown-details-wrapper {
            display: none !important;
        }

        .agrocel-container:has(aside.sidebar-small) .dropdown-toggle {
            justify-content: center;
        }

            /* Hides submenu toggle icons and dropdown arrows when sidebar is collapsed */
            .agrocel-container:has(aside.sidebar-small) .has-submenu .menu-item .menu-content-wrapper .toggle-icon,
            .agrocel-container:has(aside.sidebar-small) .dropdown-toggle::after {
                display: none;
            }

        /* Centers menu items horizontally when sidebar is collapsed */
        .agrocel-container:has(aside.sidebar-small) .menu-wrapper .menu-item .menu-content-wrapper {
            justify-content: center;
        }

        .agrocel-container:has(aside.sidebar-small) .background-logo {
            bottom: -26px;
            left: 12px;
        }

        .agrocel-container:has(aside.sidebar-small) .background-logo {
           /* background-image: url(../images/logo/small-bg-logo.svg);*/
            background-image: url('../images/logo/small-bg-logo.svg');
            opacity: 0.6;
        }

        .agrocel-container:has(aside.sidebar-small) .sidebar-toggle {
            top: 46px;
        }

.accordion-item + .accordion-item {
    margin-top: 8px;
}

.agrocel-accordion .accordion-item .accordion-button {
    border-radius: 8px !important;
}

.agrocel-navber {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .agrocel-navber .navbar-logo {
        height: 28px;
    }

/* toggle sidebar submenu on hover on has-submenu for sidebar-small only and hide on leave */
.agrocel-container:has(aside.sidebar-small) .has-submenu:hover > .submenu-content {
    display: block;
    position: absolute !important;
    left: 80px !important;
    top: -8px !important;
    background-color: var(--white) !important;
    width: max-content !important;
    min-width: 180px !important;
    z-index: 9999 !important;
/*    min-width: fit-content !important;*/
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    max-height: 500px;
    overflow-y: auto;

}

/* Styles for individual submenu items in the popup panel
   Ensures proper spacing and text wrapping behavior */
.agrocel-container:has(aside.sidebar-small) .has-submenu .submenu-content .submenu-item {
    margin-left: 0;
    white-space: nowrap;
    width: calc(100% - 16px) !important;
    padding: 10px 16px;
    margin: 8px;
}

.agrocel-container .main-content {
    background-color: var(--content-bg);
    width: 100%;
    grid-area: main-content;
    padding: 20px;
}
/* Layout Style End */

/* Typography Style Start */
.page-title {
    font-size: 28px;
    font-weight: 600;
    line-height: normal;
    color: rgba(70, 66, 85, 1);
    margin: 0;
}

.page-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    color: rgba(163, 163, 163, 1);
    margin: 0;
}

.notes {
    font-size: 24px;
    font-weight: 400;
    color: rgba(163, 163, 163, 1);
    margin: 20px;
}

.card-content-wrapper {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 26px;
    justify-content: start;
    align-items: center;
    grid-template-areas: "icon content";
}

.card-icon {
    grid-area: icon;
    width: 80px;
    height: 80px;
}

.widget-content {
    grid-area: content;
    overflow: hidden;
    width: 100%;
}

.widget-title {
    font-size: 28px;
    font-weight: 700;
    line-height: normal;
    color: rgba(70, 66, 85, 1);
    margin: 0;
    width: 100%;
}

.widget-text {
    font-size: 14px;
    font-weight: 400;
    color: rgba(70, 66, 85, 1);
    margin: 0;
    width: 100%;
}

.bi-star-fill {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #D9D9D9;
}

/*.card-content-wrapper:hover .bi-star-fill {
    color: #FFC107;
}*/

.bi-star-fill:hover {
    color: #FFC107;
}

.bi-star-fill.active {
    color: #FFC107;
}
/* Typography Style End */

.widget-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 4px;
    margin-top: -8px;
}

/* Workspace Select Style Start */
.workspace-wrapper {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
}

    .workspace-wrapper .icon-wrapper {
        width: 48px;
        height: 32px;
        border-radius: 8px;
        background-color: rgba(45, 156, 219, 0.15);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .workspace-wrapper .form-select {
        border: none;
        padding-left: 0;
    }

        .workspace-wrapper .form-select:focus {
            border: none;
            box-shadow: none;
        }
/* Workspace Select Style End */

/* Sidebar Style Style */
aside {
    background-color: var(--aside-bg);
    border-right: 1px solid #eee;
    width: 270px;
    height: 100vh;
    position: relative;
    transition: all 0.3s ease;
}

    aside.sidebar-small {
        width: 80px;
        z-index: 10;
        transition: all 0.3s ease;
    }

.sidebar-toggle {
    padding: 0;
    position: absolute;
    top: 36px;
    right: -11px;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    background-color: var(--white) !important;
    border: 1px solid #eee !important;
    color: #081021 !important;
}

.mobile-menu-wrapper{
    justify-content: space-between;
    height: calc(100% - 100px);
}
/* Sidebar Style End */
/* Image Wrapper Style */
.image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    padding-bottom: 40px;
}

/* Menu Wrapper Code Start */
.menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
    height: 100%;
    max-height: calc(100% - 200px);
/*    overflow-y: auto;*/
    margin-bottom: 90px;
}

    .menu-wrapper .menu-item {
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 8px;
        text-decoration: none;
        color: var(--black);
    }

        .menu-wrapper .menu-item .active-indicator {
            width: 8px;
            height: 40px;
            border-radius: 40px;
            background-color: transparent;
        }

        .menu-wrapper .menu-item .menu-content-wrapper {
            display: flex;
            justify-content: start;
            align-items: center;
            gap: 8px;
            padding: 14px;
            border-radius: 8px;
            width: 100%;
        }

        .menu-wrapper .menu-item:hover .menu-content-wrapper,
        .menu-wrapper .menu-item.active .menu-content-wrapper {
            background-color: var(--hover-color);
            color: var(--primary);
            transition: var(--transition);
        }

        .menu-wrapper .menu-item.active .active-indicator {
            background-color: var(--primary);
            transition: var(--transition);
        }
/* Menu Wrapper Code End */


/* Has Submenu Code Start */
.has-submenu {
    position: relative;
/*    height: fit-content;*/
/*    overflow-y: scroll;*/
/*    scrollbar-width: none;*/
}
/*has-submenu::-webkit-scrollbar {
    display: none;
}*/

    .has-submenu .submenu-content {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-top: 8px;
        display: none;
        transition: var(--transition);
        max-height: 340px;
        overflow-y: auto;
        width: calc(100% - 8px);
        margin-right: 8px;
    }

        .has-submenu .submenu-content .submenu-item {
            display: flex;
            justify-content: start;
            align-items: center;
            gap: 8px;
            width: calc(100% - 40px - 10px);
            padding: 14px;
            border-radius: 8px;
            color: var(--black);
            margin-left: 40px;
            text-decoration: none;
        }

            .has-submenu .submenu-content .submenu-item:hover {
                background-color: var(--hover-color);
                color: var(--primary);
            }

    .has-submenu .menu-item .menu-content-wrapper .toggle-icon {
        font-size: 0.8rem;
        color: #888;
        transition: var(--transition);
    }

    .has-submenu.active .menu-item .menu-content-wrapper {
        background-color: var(--hover-color);
        color: var(--primary);
    }

    .has-submenu.active .menu-item .active-indicator {
        background-color: var(--primary);
    }

    .has-submenu.active .menu-item .menu-content-wrapper .toggle-icon {
        transform: rotate(180deg);
        transition: var(--transition);
    }

    .has-submenu.active > .submenu-content {
        display: block;
        transition: var(--transition);
    }

.submenu-item.active {
    color: var(--primary);
}
/* Has Submenu Code End */

/* User Menu Style Start */
.user-menu-wrapper {
    position: absolute;
    bottom: 16px;
    left: 8px;
    right: 8px;
    width: calc(100% - 16px);
    border-top: 1px solid #eee;
    padding-top: 8px;
    background-color: var(--white);
    z-index: 2;
}

    .user-menu-wrapper .dropdown {
        background-color: transparent;
    }

        .user-menu-wrapper .dropdown .dropdown-toggle {
            display: flex;
            justify-content: start;
            align-items: center;
            gap: 8px;
            width: 100%;
        }

            .user-menu-wrapper .dropdown .dropdown-toggle:hover {
                background-color: var(--hover-color);
                color: var(--primary);
            }

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}
/* User Menu Style End */

/* background logo style start */
.background-logo {
    background-color: var(--white);
    position: absolute;
    bottom: 110px;
    left: 58px;
    right: 8px;
    width: calc(100% - 66px);
    height: 180px;
    background-image: url(../images/logo/full-bg-logo.svg);
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}
/* background logo style end */

/* Bootstrap Style Overwrite */
.dropdown-item:focus, .dropdown-item:hover {
    background-color: var(--hover-color);
    color: var(--primary);
}

.btn-primary {
    background-color: var(--primary);
    border: none;
}

    .btn-primary:hover {
        background-color: var(--hover-color);
        color: var(--primary);
    }

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 .25rem var(--sky-100);
}

.form-check-input:focus-visible {
    outline: none;
}

.form-control:focus {
    box-shadow: 0 0 0 .25rem var(--sky-100);
    border-color: var(--primary);
}

.agrocel-accordion .accordion-item {
    border: none;
}

.accordion.agrocel-accordion {
    --bs-accordion-bg: transparent !important;
}

.agrocel-accordion .accordion-button,
.agrocel-accordion .accordion-button:not(.collapsed) {
    background-color: var(--white);
    color: rgba(70, 66, 85, 1);
}

.agrocel-accordion .accordion-button {
    font-size: 24px;
    font-weight: 600;
}

.agrocel-accordion .accordion-body {
    padding: 0;
    background-color: transparent;
}

/* Sign Up Style Start */
.login-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    height: 100vh;
}

    .login-container .image-container {
        background-image: url("../images/auth_bg_main.png");
        background-size: 100%;
        background-position: center center;
        background-repeat: no-repeat;
        display: none;
        justify-content: center;
        align-items: center;
    }

    .login-container .form-container {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        max-width: 360px;
        margin: 0 auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

        .login-container .form-container .logo-wrapper {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 100%;
        }

            .login-container .form-container .logo-wrapper .auth-logo {
                width: 200px;
                /* height: 100px; */
                margin-bottom: 20px;
            }

        .login-container .form-container .title-wraape {
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 8px;
            text-align: center;
            margin-bottom: 32px;
        }

            .login-container .form-container .title-wraape h2 {
                font-size: 30px;
                font-weight: 500;
                color: #101828;
                line-height: 36px;
                margin: 0;
            }

            .login-container .form-container .title-wraape p {
                font-size: 16px;
                font-weight: 400;
                color: #475467;
                line-height: 24px;
                margin: 0;
            }

        .login-container .form-container .password-status-text {
            font-size: 14px;
            line-height: 20px;
            color: #666666CC;
            margin: 0;
        }
.w-100{
    width: 100% !important;
}
/* Sign Up Style End */
/* New Login Style Start */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    height: 100dvh;
    grid-template-areas: "form";

    background-image: url("../images/auth-half-bg.png");
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

    .login-wrapper .login-image-wrapper {
        grid-area: image;
        position: relative;
        z-index: 2;
        display: none;
    }

        .login-wrapper .login-image-wrapper .login-image {
            width: 100%;
            height: 100vh;
            object-fit: cover;
            object-position: top;
        }

        .login-wrapper .login-image-wrapper .login-image-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            width: 100%;
            min-height: 230px;
            background-image: url("../images/login-overlay.svg");
            background-size: contain;
            background-position: center center;
            background-repeat: no-repeat;
            opacity: 0.3;
            display: none;
        }
        }

    .login-wrapper .form-wrapper {
        grid-area: form;
        position: relative;
    }

        .login-wrapper .form-wrapper .login-header-logo {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 50px;
            height: auto;
        }

        .login-wrapper .form-wrapper .login-header-shape {
            position: absolute;
            top: -80px;
            left: -80px;
            width: 160px;
            height: 160px;
            border-radius: 50%;
            background-color: #2FA8BB;
            display: none;
        }

        .login-wrapper .form-wrapper .login-form-container {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 26px;
            width: 100%;
            height: 100%;
            max-width: 90vw;
            margin: 0 auto;
            z-index: 2;
            position: relative;
        }

            .login-wrapper .form-wrapper .login-form-container::before {
                content: "";
                background-image: url("../images/logo/login-gray-h-logo.svg");
                background-size: contain;
                background-position: center center;
                background-repeat: no-repeat;
                width: 100%;
                height: 100%;
                position: absolute;
                max-height: 350px;
                margin-top: 140px;
                opacity: .45;
                z-index: -1;
                display: none;
            }

.login-form-container .login-form-title {
    font-size: 30px;
    font-weight: 500;
    color: #314083;
    line-height: 36px;
    margin: 0;
    text-transform: uppercase;
    margin-left:44px;
}

.login-form-container .login-form-icon {
    width: 20px;
    height: 20px;
}

.login-form-container .login-form-button {
    border: 2px solid #314083;
    color: #314083;
    background-color: transparent;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    border-radius: 8px;
    padding: 8px 48px;
    transition: all 0.3s ease;
}

    .login-form-container .login-form-button:hover {
        background-color: #314083;
        color: #fff;
        transition: all 0.3s ease;
    }

.login-form-container .signup-link {
    color: #314083;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    transition: all 0.3s ease;
    padding: 4px 48px;
}

    .login-form-container .signup-link:hover {
        cursor: pointer;
        text-decoration: underline;
        transition: all 0.3s ease;
    }

.login-form-container .forgot-password-link {
    color: #314083;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    transition: all 0.3s ease;
}

    .login-form-container .forgot-password-link:hover {
        cursor: pointer;
        text-decoration: underline;
        transition: all 0.3s ease;
    }

.login-form-container .login-remember-me-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding-left: 34px;
}

.login-form-container .login-form-input {
    border: 2px solid #314083;
    border-radius: 8px;
   /* background-color: #fff;*/
    color: #314083;
    z-index: 10;
}

    .login-form-container .login-form-input:focus,
    .login-form-container .login-form-input:focus-visible {
        box-shadow: none;
    }

.login-form-container .login-form-logo {
    margin-bottom: 60px;
}

.login-remember-me-wrapper .form-check-label {
    font-size: 14px;
    font-weight: 500;
    color: #314083;
}
.login-form-container .form-control {
    background-color: transparent;
}
/* New Login Style End */

.login-header-right {
    width: 100%;
/*    height: 100vh;*/
    object-fit: cover;
    object-position: 100% 100%;
    z-index: 0;
    position: absolute;
    right: 0;
    top: 0;
}
.main-logo{
height:40px;
}
.icon-right {
    transform: rotate(180deg);
    transition: all 0.3s ease;
}
.tagify {
    width: 100%;
    max-width: 700px;
}

.user-name{
    display: block;
    width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-toggle::after {
    display: none;
}
.three-dots-icon {
    font-size: 20px; /* Increase the size */
    border: none; /* Remove the box around the icon */
    padding: 0; /* Remove any padding if exists */
    display: inline-block; /* Align properly */
}
.btn-light.dropdown-toggle:focus,
.btn-light.dropdown-toggle:hover {
    background-color: transparent !important; /* Remove background color on hover */
    border: none !important; /* Remove the border on hover */
    box-shadow: none !important; /* Remove any box shadow on hover */
}

.agrocel-container .main-content {
    width: 100vw;
}

/* X-Small devices (portrait phones, less than 576px) */
/* No media query for `xs` since this is the default in Bootstrap */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .login-container {
        grid-template-columns: 1fr;
    }

        .login-container .image-container {
            display: none;
        }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .agrocel-container {
        grid-template-columns: 270px 1fr;
        grid-template-areas: "aside main-content";
        transition: width 0.3s ease;
    }

        .agrocel-container:has(aside.sidebar-small) {
            grid-template-columns: 80px 1fr;
            transition: width 0.3s ease;
        }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .login-wrapper {
        background-image: url("../images/auth-full-bg.png");
    }
    .login-container {
        grid-template-columns: 8fr 4fr;
    }

        .login-container .image-container {
            display: flex;
        }

    .login-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "image form";
    }

        .login-wrapper .login-image-wrapper {
            display: block;
        }

        .login-wrapper .form-wrapper .login-header-logo {
            top: 40px;
            right: 40px;
        }

        .login-wrapper .form-wrapper .login-header-shape {
            top: -92px;
            left: -131px;
            width: 300px;
            height: 188px;
        }

        .login-wrapper .form-wrapper .login-form-container {
            max-width: 360px;
        }

    .agrocel-container .main-content{
        width: 100%;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
}
