* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --background-color: #1f1f1f;
}

body {
    background-color: var(--background-color);
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-size: 100vw; 
    background-position: center center; 
    background-attachment: fixed;
}

button:hover {
    cursor: pointer;
}

.container {
    width: 100vw;
    padding: 20px 1vw;
    justify-content: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

input:hover{
    cursor: pointer;
}

/* Navbar Elements ------------------------------------------------------------------------------------- */

nav {
    position: fixed;
    font-size: 12pt;
    width: 100%;
    background-color: rgb(51, 51, 51);
    box-shadow: 0px 5px rgba(0,0,0,0.2);
    z-index: 998;
}

nav ul {
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

nav li {
    height: 60px;
}

nav li:first-child {
    margin-right: auto;
}

nav li:nth-last-child(2) {
    margin-left: auto;
}

nav a {
    height: 100%;
    padding: 0 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: white;
}

nav a:hover {
    background-color: #04AA6D;
    color: black;
}

nav form {
    height: 100%;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

nav button {
    height: inherit;
    margin: inherit;
    padding: inherit;
    width: 100px;
    font-size: inherit;
    border-radius: 0;
    border: none;
    background-color: darkred;
    color: white;
}

nav button:hover {
    background-color: #04AA6D;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 200px;
    z-index: 999;
    background-color: rgba(51, 51, 51, 0.01);
    backdrop-filter: blur(10px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.sidebar li {
    width: 100%;
}

.sidebar a {
    width: 100%;
}

.sidebar #home-logo {
    height: 50px;
}

.menu-button {
    display: none;
}

@media(max-width: 1300px) {
    .hideOnMobile {
        display: none;
    }
    .menu-button {
        display: block;
    }
    .sidebar-form {
        width: 100%;
    }
    nav button {
        width: 100%;
    }
}

@media(max-width: 500px) {
    .sidebar {
        width: 100%;
    }
}

#home-logo {
    height: inherit;
}

/* Home Elements -------------------------------------------------------------------- */

.home-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px;
    position: relative;
    padding: 0px;
    height: 100vh;
}

.home-greet {
    width: clamp(200px, 50vw, 600px);
    color: white;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 1vh 1vw;
}

.home-greet h2 {
    font-size: clamp(16pt, 4vw, 30pt);
    padding: 1rem 0px;
    text-align: center;
}

/* PriLIMS Elements ----------------------------------------------------- */

.card {
    margin: 10px 10px;
    background-color: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    width: 200px;
    height: 100px;
    align-content: center;
    text-align: center;
    justify-content: center;
}

.card a {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: inherit;
    width: inherit;
    text-decoration: none;
    color: #f0f8ff;
}

.card a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: rgb(180, 217, 250);
}

/* CSV Import Form Elements -------------------------------------------------- */

.csv-form-container {
    display: flex;
    width: 100vw;
    height: 100vw;
    align-items: top;
    justify-content: center;
    padding-top: 200px;
}

.csv-form-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: clamp(200px, 40%, 400px);
    height: 200px;
    color: aliceblue;
    background-color: rgba(51, 51, 51, 0.01);
    backdrop-filter: blur(10px);
    padding: 20px 0px;
    border: 5px solid rgba(180, 217, 250, 0.2);
    border-radius: 2px;
    box-shadow: 10px 5px 5px rgba(0, 0, 0, 0.4);
}

.csv-form-box form {
    padding-top: 20px;
}

.csv-form-box form p {
    width: 100%;
    padding-bottom: 10px 0px;
}

.upload-csv {
    height: inherit;
    margin-top: 30px;
    padding: 10px;
    height: 50px;
    width: 100px;
    font-size: inherit;
    border-radius: 0;
    border: none;
    color: white;
    background-color: #04AA6D;
}

.upload-csv:hover {
    background-color: #02744a;
    cursor: pointer;
}


/* Table Elements ------------------------------------------------------------ */

table {
    table-layout: fixed;
    font-size: 1rem;
    width: 100%;
    color: white;
    background-color: var(--background-color);
}

thead {
    font-size: 2rem;
    font-weight: 200;
    color: red;

    &:hover {
        color: white;
    }
}

th, td {
    padding: 10px 5px;
}

tr:nth-child(even) {
  background-color: rgba(255,255,255,0.1);
}

tr:nth-child(even):hover {
    background-color: #04AA6D;
}

tr:hover {
    background-color: #04AA6D;
}

/* Login page */

.login-wrapper {
    margin: 0px;
    padding-bottom: 50vh;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 15vw;
    font-size: clamp(8pt, 0.75vw, 20pt)
}

.login-card form {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
}

.login-card form > input, button {
    margin: 5px;
    padding: 5px;
}

/* Dashboard Elements ---------------------------------------*/

.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
    padding: 4vw;
    backdrop-filter: blur(10px);
}

#dashboard-sidebar { 
    grid-area: 1 / 1 / 6 / 2; 
}

#dashboard-main { 
    grid-area: 1 / 2 / 6 / 5; 
}

#dashboard-highlights {
    display: flex;
    justify-content: space-between;
    font-size: 24;
}

.dashboard-highlight-value {
    color: red
}

.dashboard-card {
    font-size: 2rem;
    padding: 10px;
    text-align: center;
    margin: 20px 0px;
    color: white;
    background-color: color-mix(in oklab, var(--background-color), white 5%);
    box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
}

#ordersChart {
    /* display: none; */
    width: 100%;
    /* height: 100px; */
    background: color-mix(in oklab, var(--background-color), white 5%);
    box-shadow: 5px 5px 5px rgba(0,0,0,0.5);
}