:root {
    --bg-color: #0d2547;
    --text-color: white;
    --accent-color: #06457F;
    --accent-color-light: #5379AE;
    --accent-color-hover: #628dca;
    /*--username: "RZShop";
    --pfp: url("images/pfp.jpg");*/
}

body {
    background-color: var(--bg-color);
    margin: 0;
    font-family: "Fira Code", monospace;
    color: white;
    display: flex;
}

header {
    width: 300px;
    background-color: var(--accent-color);
    display: flex;
    min-height: 100vh;
    height: 100vh;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    flex-direction: column;
    position: sticky;
    top: 0;
}

nav { background-color: var(--accent-color);
    justify-content: flex-start;
    flex-direction: column;
    text-align: center;
    align-items: center;
    display: flex;
    height: 30vh;
    width: 300px;
    gap: 20px;
}

.logo {
    width: 250px;
    height: 141px;

}

.nav-button {
    cursor: pointer;
    font-family: "Fira Code", monospace;
    background-color: var(--accent-color-light);
    height: 40px;
    width: 200px;
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 1em;
    text-align: center;
    justify-content: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: none;

    transition: background-color 0.3s  ease;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.nav-button img {
    padding-right: 30px;
    filter: invert(100%);
    width: 40px;
    height: 40px;
}

.icon-main {
    font-size: 15em;
    margin: 30px auto 0 auto;
}

.welcome {
    font-size: 3em;
    font-weight: 700;
}

.user-icon {
    /*content: var(--pfp);*/
}

.user-container {
    margin: auto auto 15px auto ;
    align-self: flex-end;
    display: flex;
    background-color: var(--accent-color-light);
    border-radius: 100px;
    flex-direction: row;
    align-items: center;
    width: 200px;
    font-weight: 500;
}

.user-container img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: 10px;
}
/*DISABLED FOR NOW*/
.settings-button {
    display: none;
    background-color: transparent;
    border-radius: 50%;
    border: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s  ease;
    margin-left: 40px;
    margin-right: 10px;
}

.settings-button img {
    width: 100%;
    height: 100%;
    filter: invert(100%);
}

.main-action-button {
    cursor: pointer;
    background-color: var(--accent-color-light);
    border-radius: 10px;
    border: none;
    color: white;
    font-size: 2em;
    text-align: center;
    justify-content: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 50vw;
    height: 10vh;
    margin-top: 20px;
    font-weight: 700;
    font-family: "Fira Code", monospace;

    transition: background-color 0.3s  ease;
}

.main-action-button img {
    filter: invert(100%);
    width: 100px;
    height: 100px;
    margin-right: 20px;
}

.search-bar {
    margin-top: 20px;
    display: flex;
    align-items: center;
    background-color: #144095;
    border-radius: 100px;
    padding: 0 15px;
    width: 400px;
    height: 45px;
    gap: 10px;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.search-bar img {
    width: 20px;
    height: 20px;
    filter: invert(100%);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-family: "Google Sans Code", monospace;
    font-size: 1em;
    width: 100%;
    height: 100%;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/*.username::before {
    content: var(--username);
}*/


.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hover-anim {
    transition: position 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card {
    cursor: pointer;
    color: white;
    text-decoration: none;
    display: flex;
    width: 90%;
    height: 170px;
    background-color: var(--accent-color);
    border-radius: 10px;
    margin: 10px;
}
.product-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.product-card p {
    margin: 0;
}

.p-SKU {
    justify-self: flex-start;
    font-size: 1em;
}
.p-name {
    font-size: 1.5em;
    font-weight: 700;
}
.p-loc {
    font-size: 1.2em;
    font-weight: 500;
}
.p-stock {
    font-size: 1.1em;
    color: rgb(255 255 255 / 0.45);
}

.products {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 15px;
}

#product-name {
    margin:5px ;
    font-size: 1.8em;
    font-weight: 700;
}

#product-price {
    margin:5px ;
    font-size: 1.2em;
    font-weight: 500;
}

#product-price-p {
    margin:5px ;
    font-size: 1.2em;
    font-weight: 500;
}

.product-image {
    position: absolute;
    right: 10px;
    top: 10px;

    margin-right: 85%;
    transform: translateY(50%);
    border-radius: 10px 10px 10px 10px;
    width: 80px;
    height: 80px;


    object-fit: contain;
}

#product-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 10px;
}

#password {
    text-align: center;
    background-color: var(--accent-color-light);
    border-radius: 10px;
    border: none;
    margin:5px ;
    font-family: "Google Sans Code", monospace;
    font-size: 1.4em;
    font-weight: 500;
    color: white;
    width: 200px;
    height: 50px;
    align-self: center;
    justify-self: center;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100vh;
}

#login {
    border-radius: 10px;
    border: none;
    background-color: var(--accent-color);
    margin:5px ;
    font-size: 1.4em;
    font-weight: 500;
    color: white;
    font-family: "Google Sans Code", monospace;
    width: 200px;
    height: 50px;
    align-self: center;
    justify-self: center;
    cursor: pointer;
}

#password::placeholder {
    color: white;
    text-align: center;
}

#product-SKU {
    margin:5px ;
    font-size: 1.4em;
    font-weight: 500;
    color: rgb(255 255 255 / 0.5);
}

#product-location {
    margin:5px ;
    font-size: 2.5em;
    font-weight: 1000;
}

#product-stock {
    margin:0 ;
    font-size: 1.2em;
    font-weight: 500;
}

#product-availability {
    margin:0 ;
    font-size: 1.2em;
    font-weight: 500;
    padding-bottom: 100px;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,0.5);
}


.hidden {
    display: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
}

#location-input {
    z-index: 100;
    background-color: transparent;
}

#location-search-bar  {
    z-index: 100;
    background-color: var(--bg-color);
}

#low-z {
    z-index: 1;
}

.popup-input {
    z-index: 100;
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 100px;
    background-color: transparent;
    color: white;
    font-size: 1em;
    outline: none;
}

.popup-button {
    padding: 10px 20px 10px 20px;
    gap: 10px;
    font-family: "Fira Code", monospace;
    font-size: 1em;
    color: white;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    text-align: center;
    margin-top: 30px;
    justify-self: flex-end;
    align-items: center;
    justify-content: center;
    flex-direction: row;

    border: none;
    outline: none;
    width: auto;
    height: 50px;
    border-radius: 100px;
    background-color: var(--accent-color-light);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-buttons-container{
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.popup-button img {
    width: 50px;
    height: 50px;
    filter: invert(100%);
}
#search-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.export-tax {
    display: flex;
    background-color: var(--accent-color);
    border-radius: 10px;
    border: none;
    flex-direction: row;
    align-self: flex-end;
    margin-top: 20px;
    cursor: pointer;
    margin-right: 50px;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 80px;
    font-family: "Fira Code", monospace;
    font-size: 1.2em;
    font-weight: 500;
    color: white;
}

.export-tax img {
    width: 50px;
    height: 50px;
    margin-left: 8px;
    filter: invert(100%);
}

#page-loader {

}


.loader-container {
    width: 300px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
}


#loader-bar {
    border-radius: 10px;
    width: 0;
    height: 100%;
    background: var(--accent-color-light);
    transition: width 0.2s ease;
}

.button-filter {
    display: flex;
    background-color: var(--accent-color);
    border-radius: 10px;
    border: none;
    flex-direction: row;
    align-self: flex-end;
    margin-top: 20px;
    cursor: pointer;
    margin-right: 50px;
    font-family: "Fira Code", monospace;
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 500;
    color: white;
    width: 230px;
    height: 40px;
    align-items: center;
    justify-content: center;

    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.button-filter img {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    margin-right: 10px;
    filter: invert(100%);
}

.button-filter-active {
    display: flex;
    background-color: var(--accent-color-light);
}

#mobile-nav {
    display: none;
}

/* PC */
@media (min-width: 600px) and (pointer: fine) {

    .overlay.active,
    body:has(.search-bar input:focus) .overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .hover-anim:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    #location-search-bar:focus-within {
        transform: translateY(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        background-color: #144095;
    }

    .search-bar:focus-within {
        transform: translateY(10px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    .nav-button:hover {
        background-color: var(--accent-color-hover);
    }
    .settings-button:hover {
        background-color: var(--accent-color-hover);
    }
    .main-action-button:hover {
        background-color: var(--accent-color-hover);
    }
}

/* MOBILE COMPATIBILITY*/
@media (max-width: 600px) {

    @keyframes nav-pop {

        0% {
            transform: translateY(0);
        }

        50% {
            transform: translateY(-12px);
        }

        100% {
            transform: translateY(-8px);
        }

    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 10px;

    }

    .logo-mob {
        width: 100px;
        height: 100px;
        padding: 0 20px;

        -webkit-tap-highlight-color: transparent;

        transition:
                transform 0.2s ease,
                opacity 0.2s ease;
    }

    #mobile-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-evenly;
        gap: 10px;
        width: 100vw;
        height: 50px;
        position: fixed;
        left: 0;
        bottom: 0;
        background-color: var(--accent-color);
        z-index: 1000;
        transition: transform 0.3s ease;

    }

    .nav-button-mob:not(:last-child)::after {
        content: "";

        position: absolute;

        right: 0;
        top: 50%;

        transform: translateY(-50%);

        width: 1px;
        height: 40px;

        background: var(--accent-color-light);
    }

    .nav-button-mob:not(:first-child)::after {
        content: "";

        position: absolute;

        left: 0;
        top: 50%;

        transform: translateY(-50%);

        width: 1px;
        height: 40px;

        background: var(--accent-color-light);
    }


    .nav-button-mob {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 50px;


        -webkit-tap-highlight-color: transparent;

        transition:
                transform 0.2s ease,
                opacity 0.2s ease;

        padding: 0 20px;
  /*      border-right: 1px solid var(--accent-color-light);
        border-left: 1px solid var(--accent-color-light);*/
    }

    #mobile-nav a:last-child {
        border-right: none;
    }

    #mobile-nav a:first-child {
        border-left: none;
    }

    .nav-button-mob:active {
        animation: nav-pop 0.25s ease;
    }

    .logo-mob:active {
        animation: nav-pop 0.25s ease;
    }

    .nav-button-mob img {
        width: 50px;
        height: 50px;
        filter: invert(100%);
    }


    .button-filter {
       margin-right: 10px;
        font-size: 1.2em;
        width: 150px;
        height: 60px;
    }

    .loader-container {
        align-self: center;
    }

    header {
        display: none;
    }

    nav {
        padding-top: 10px;
        background-color: transparent;
        justify-content: flex-start;
        flex-direction: column;
        text-align: center;
        align-items: center;
        display: flex;
        min-height: 10vh;
        height: auto;
        gap: 10px;
    }


    .search-bar {
        position: relative;
        margin-top: 10px;
        display: flex;
        margin-right: 10px;
        margin-left: 10px;
        align-items: center;
        border-radius: 100px;
        width: 90vw;
        height: 50px;
        z-index: 1;
    }

    .nav-button {
        margin-top: 0;
        width: 150px;
        height: 50px;
        margin-bottom: 10px;
    }

    .user-container {
        display: none;
    }

    .welcome  {
        align-self: center;
        font-size: 2em;
        font-weight: 700;
        color: white;
        margin-left: 10px;
        font-family: "Fira Code", monospace;
    }

    .icon-main {
        font-size: 10em;
    }

    .product-image {
        position: relative;
        right: 0;
        top: 0;

        margin-right: 0;
        transform: none;
        margin-bottom: 10px;
        border-radius: 10px 10px 10px 10px;
        width: 80px;
        height: 80px;


        object-fit: contain;
    }

    .p-stock {
        font-size: 1.2em;
        color: rgb(255 255 255 / 0.5);
        padding-bottom: 10px;
    }

    .product-card {
        width: 95%;
        min-height: 200px;
        height: auto;
        margin: 10px;
    }

    main {
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-top: 0;
        height: 100%;
    }

    .logo {
        margin-left: 20px;
        width: 100px;
        height: 57px;
    }

    .main-action-button {
        width: 90vw;
        height: 10vh;
    }
}