@import url('colors.css');
@import url('utilities.css');
@import url('fonts.css');


a {
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: outfitSemiBold;
}

body {
    font-family: outfitRegular;
    color: var(--color-text);
}

/* Loader */
.loader,
.landing-loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    border-top-color: #000;
    animation: spin 1s linear infinite;
}

/* For landing page */
.landing-loader-container {
    background-color: rgb(255, 255, 255);
    transition: transform 500ms ease-in-out;
}


.landing-loader {
    width: fit-content;
    transform: scale(0.9);
    /* font-size: 40px;
    font-family: system-ui, sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #0000;
    -webkit-text-stroke: 1px var(--primary-color);
    background: conic-gradient(var(--primary-color) 0 0) 0/0% 100% no-repeat text; */
    animation: zoomInAndOut 1s linear infinite;
}

.landing-loader:before {
    /* content: "SOS EXPRESS LOADING..."; */
    content: url(../../logos/logo-blue-lg.png);
}

@keyframes l1 {
    to {
        background-size: 120% 100%;
    }
}

@keyframes zoomInAndOut {
    to {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* End for landing page */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


/* Loader */

/* .logo {
    width: 70px;
    height: 70px;
} */

tr {
    cursor: pointer;
}

/* For the receipt modal */
.address::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
}

.address::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: -7px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 3px solid #008000;
}

.receipt-divider {
    height: 3px;
    border-bottom: 2px dashed var(--primary-color);
    margin: 2rem 0;
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: -10px;
        left: -30px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--primary-color);
    }

    &::after {
        content: '';
        position: absolute;
        top: -10px;
        right: -30px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--primary-color);
    }
}

/* End For the receipt modal */

/* Notifications */
#pushNotifications:checked,
#inAppNotifications:checked {
    background-color: var(--primary-color);
}

/* End Notifications */



/* Dashboard */
.dashboard-container {
    --sidebar-width: 15%;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;

    /* Sidebar */
    aside {
        background-color: var(--white-color);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: var(--sidebar-width);
        padding: 0 1rem;
        font-size: 1.2rem;
        transition: all 500ms ease-in-out;
        overflow: hidden;

        #dashboard__menu__bar {
            cursor: pointer;
        }

        nav ul li a {
            padding: 0.5rem 1rem;
        }

        nav ul li a span {
            transition: all 200ms ease-in-out;
        }

        .active {
            background-color: var(--primary-color);
            color: var(--white-color) !important;
            border-radius: 10px;

            i,
            span {
                color: var(--white-color);
            }
        }
    }

    /* Sidebar */

    /* mobile-navigation */
    .mobile-navigation {
        display: none;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 5rem;
        background-color: var(--white-color);
        z-index: 300;
        overflow-x: auto;

        .mobile-active {
            color: var(--secondary-color) !important;
        }
    }

    /* End of mobile-navigation */

    /* Main */
    .main {
        margin-left: calc(var(--sidebar-width) + 1rem);
        margin-top: 3rem;
        margin-bottom: 3rem;
        transition: all 500ms ease-in-out;

        .dashboard-header {
            width: 95%;
            margin: 0 auto;
            margin-bottom: 1rem;
            padding: 1rem 0;

            .dashboard-header-title {
                font-size: 3rem;
            }
        }


        .main-content {
            width: 95%;
            margin: 2rem auto 5rem auto;

            #ongoing-deliveries {

                tr,
                #cancel-search {
                    cursor: pointer;
                }

                #cancel-search {
                    transition: all 200ms ease-in-out;
                }

                #cancel-search:hover {
                    color: var(--red-color);
                    font-weight: 600;
                }
            }

            #delivery-packages-wrapper {
                .nav-tabs .active {
                    background-color: var(--primary-color);
                    color: var(--white-color) !important;
                    border-radius: 10px;
                }

                .nav-pills button,
                .nav-tabs button {
                    color: var(--primary-color) !important;
                }

                .nav-pills .active {
                    background-color: var(--primary-color) !important;
                    color: var(--white-color) !important;
                }
            }
        }

    }

    /* Main */
}

/* Dashboard */

/* LANDING PAGE */
.main-wrapper {
    --primary-font-size: 1.5rem;
    --primary-line-height: 1.5;

    width: 90%;
    margin: 0 auto;
    font-family: dmSansRegular;
    overflow: hidden;

    p,
    ul {
        font-size: var(--primary-font-size);
        line-height: var(--primary-line-height);
    }


    header {
        font-family: dmSansMedium;
        height: 80px;
        overflow-y: hidden;
        position: fixed;
        width: 100%;
        left: 0;
        top: 0;
        background-color: var(--white-color);
        z-index: 10;

        .navigation-header {
            width: 90%;
            margin: 0 auto;
        }

        menu {
            column-gap: 4rem;
            font-size: 1.5rem;

            a {
                color: #000
            }
        }
    }

    .main-content {
        margin-top: 7rem;
        min-height: 100vh;
        border-bottom: 1px solid var(--light-grey-color);
        border-top: 1px solid var(--light-grey-color);
        padding: 2rem 0;

        #hero-section {
            h1 {
                font-size: 3.75rem;
                line-height: var(--primary-line-height);

                span {
                    display: block;
                    color: var(--grey-color);
                }
            }

            /* p {
                font-size: var(--primary-font-size);
                line-height: var(--primary-line-height);
            } */

            .hero-image {
                background-image: url(../../images/landing-page/hero-image.png);
                background-repeat: no-repeat;
                background-size: cover;
            }
        }

        #partners-section {
            h1 {
                font-size: 2rem;
            }

            .grid-container {
                display: grid;
                /* grid-template-columns: repeat(10, 1fr); */
                column-gap: 1rem;
                row-gap: 1rem;

                .grid-item {
                    img {
                        filter: grayscale(100);
                        width: 50%;
                    }
                }
            }

            .logo-slider {
                overflow: hidden;
                position: relative;
                width: 100%;
                background: #fff;
                padding: 20px 0;

                .logo-track {
                    display: flex;
                    width: calc(250px * 24);
                    /* item width × number of items (12 × 2 for duplicate set) */
                    animation: scroll 30s linear infinite;

                    .grid-item {
                        width: 250px;
                        /* adjust as needed */
                        flex-shrink: 0;
                        display: flex;
                        justify-content: center;
                        align-items: center;

                        img {
                            width: 3.125rem;
                            height: auto;
                            filter: grayscale(100%);
                            opacity: 0.8;
                            transition: all 0.3s ease;

                            &:hover {
                                filter: grayscale(0%);
                                opacity: 1;
                            }
                        }

                    }
                }
            }
        }

        #what-you-get-section {
            h1 {
                font-size: 2rem;
            }

            img {
                width: 100%;
            }

            h3 {
                font-size: 2rem;
            }
        }

        #faq-section,
        #feedback-section,
        cta-section {
            h3 {
                font-size: 1.5rem;
            }

            p {
                font-size: 1.125rem;
            }
        }
    }
}

/* LANDING PAGE (END) */

/* ANIMATIONS */
@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ANIMATIONS END */

/* Media Queries */
@media screen and (max-width: 900px) {
    aside {
        display: none;
    }

    .mobile-navigation {
        display: block !important;
    }

    .main {
        margin-left: 0 !important;
    }

    #signed-receipt {
        width: 50% !important;
    }

    #hero-section {
        .hero-image {
            width: 896px;
            height: 610.91px;
            margin-inline: auto;
        }
    }
}

@media screen and (max-width: 600px) {

    #signed-receipt,
    #reassignCourierModalBtn,
    #edit-employee-form,
    #filter-feedback-form,
    #login-form,
    #price-manager-form {
        width: 100% !important;
    }

    .dashboard-header-title {
        font-size: 2rem !important;
    }

    #hero-section {
        h1 {
            font-size: 2rem !important;
        }

        p {
            font-size: 1.2rem !important;
        }

        .hero-image {
            width: 342px;
            height: 232px;
            margin-inline: auto;
        }
    }

    #partners-section {
        .grid-container {
            grid-template-columns: repeat(5, 1fr) !important;

            /* .grid-item {
                img {
                    width: 50% !important;
                }
            } */
        }

        .logo-slider {
            .grid-item {
                width: 150px;

                img {
                    width: 5rem !important;
                }
            }
        }
    }

    #what-you-get-section {
        /* h3 {
            font-size: 1.5rem !important;
        } */

        p {
            font-size: 1.125rem !important;
        }
    }

    #faq-section,
    #feedback-section,
    #cta-section {
        p {
            font-size: 0.875rem;
        }
    }

    /* About page */
    #about-us-section,
    #mission-section,
    #wmus-section {
        /* h1 {
            font-size: 2rem !important;
        } */

        p {
            font-size: 1.2rem !important;
        }
    }

    .landing-loader {
        font-size: 20px;
    }
}