@font-face{
    font-family: 'grotesk';
    src: url('../font/SpaceGrotesk-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face{
    font-family: 'inter';
    src: url('../font/Inter_18pt-Medium.ttf') format('truetype-variations');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

[data-theme="dark"]{
  --grey-1:  #FAFAFA;
  --grey-2:  #F0F0F0;
  --grey-3:  #E4E4E4;
  --grey-4:  #D1D1D1;
  --grey-5:  #B0B0B0;
  --grey-6:  #8A8A8A;
  --grey-7:  #6B6B6B;
  --grey-8:  #4A4A4A;
  --grey-9:  #2E2E2E;
  --grey-10: #1A1A1A;
}
[data-theme="light"]{
  --grey-1:  #1A1A1A;
  --grey-2:  #2E2E2E;
  --grey-3:  #4A4A4A;
  --grey-4:  #6B6B6B;
  --grey-5:  #8A8A8A;
  --grey-6:  #B0B0B0;
  --grey-7:  #D1D1D1;
  --grey-8:  #E4E4E4;
  --grey-9:  #F0F0F0;
  --grey-10: #FAFAFA;
}

body{
    margin: 0;
    padding: 0;
    background-color: var(--grey-10);
}

*{
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6, p{
    color: var(--grey-1);
    font-family: grotesk;
    margin: 0;
}

.content{
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container{
    width: 1000px;
    height: 80%;
    display: flex;
}

.left-panel{
    border: 1px solid var(--grey-8);
    margin-right: 20px;
    border-radius: 5px;
    width: 50%;
    height: 100%;
    padding: 20px;
    background-color: var(--grey-9);
    box-shadow: 0 1px 3px rgba(23, 12, 15, 0.06);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.left-panel input[type="text"]{
    width: 100%;
    height: 40px;
    border-radius: 6px;
    border: none;
    padding: 10px;
    box-sizing: border-box;
    background-color: var(--grey-8);
    color: white;
    font-size: 15px;
    border: 1px solid var(--grey-8);
    margin-bottom: 16px;
    margin-top: 8px;
}

.left-panel input[type="text"]::placeholder{
    font-size: 15px;
    transition: 0.15s ease;
}

.left-panel input[type="text"]:focus::placeholder{
    color: var(--grey-5);
}

.left-panel input[type="text"]:focus{
    transition: 0.3s ease;
    outline: none;
    background-color: var(--grey-7);
}

.right-panel{
    border-radius: 5px;
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(23, 12, 15, 0.06);
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: space-between;
}

.listing{
    width: 100%;
    background-color: transparent;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 5px;
    box-sizing: border-box;
}

::-webkit-scrollbar{
    width: 6px;
}

::-webkit-scrollbar-thumb{
    background-color: var(--grey-5);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover{
    background-color: var(--grey-4);
}

.element{
    width: 100%;
    min-height: 60px;
    flex-shrink: 0;
    padding: 10px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-radius: 6px;
    justify-content: space-between;
    gap: 12px;
    transition: 0.2s ease;
}

.element:hover{
    background-color: var(--grey-8);
    cursor: pointer;
}

.info{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.info p{
    font-size: 13px;
}

.button{
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button button{
    background-color: #E8873D;
    color: white;
    border: 1px solid var(--grey-7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    height: 30px;
    width: 60px;
    transition: 0.15s ease;
}

.button button:hover{
    transition: 0.15s ease;
    cursor: pointer;
    background-color: #e99656;
    transform: translateY(-1px);
}

.top-panel{
    width: 100%;
    background-color: var(--grey-9);
    padding: 14px 16px;
    border: 1px solid var(--grey-8);
    border-radius: 5px;
    box-sizing: border-box;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.top-panel span{
    font-size: 40px;
}

.bar-track{
    width: 100%;
    height: 6px;
    background-color: var(--grey-7);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill{
    height: 6px;
    width: 0%;
    background-color: #E8873D;
    border-radius: 3px;
    transition: 0.4s ease;
}

.cart{
    margin-top: 10px;
    width: 100%;
    height: 220px;
    background-color: var(--grey-8);
    border-radius: 5px;
    overflow-y: auto;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.item{
    width: 100%;
    display: flex;
    justify-content: space-between;
    background-color: transparent;
    padding: 12px 14px;
    box-sizing: border-box;
    overflow: hidden;
    transition: 0.2s ease-out;
    gap: 5px;
}

.item:hover{
    background-color: #6b6b6b80;
}

input[type="number"]{
    width: 80px;
    height: 30px;
    border-radius: 3px;
    outline: 0;
    border: 1px solid var(--grey-7);
    padding: 8px 6px;
    box-sizing: border-box;
    background-color: transparent;
    color: var(--grey-1);
}

.carbs-input::-webkit-outer-spin-button,
.carbs-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input::placeholder{
    font-size: 10px;
}

.item button{
    background-color: transparent;
    border: 0;
    color: white;
    font-weight: 700;
    transition: 0.3s ease;
}

.item button:hover{
    cursor: pointer;
    transform: translateY(-1px);
}

.bottom-panel{
    width: 100%;
    gap: 5px;
    background-color: var(--grey-9);
    padding: 16px 18px;
    border: 1px solid var(--grey-8);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bottom-panel button{
    margin-bottom: 10px;
    width: 100%;
    height: 35px;
    font-size: larger;
    border-radius: 5px;
    border: 1px solid var(--grey-8);
    background-color: #E8873D;
    color: white;
    transition: 0.15s ease;
    box-shadow: 5px 5px 10px var(--grey-9);
    margin-top: 20px;
}

.bottom-panel button:hover{
    transform: translateY(-2px);
    cursor: pointer;
    background-color: #e99656;
}

.additionnal-info{
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
}

.remove{
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-module{
    position: fixed;
    left: 50%;
    top: 100%;
    background-color: #dc3c34;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: 0.4s ease;
    opacity: 0;
    transform: translate(-50%, -0%);
    z-index: 11;
}

.result{
    width: 100%;
    height: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
}

#result-count{
    font-size: 30px;
}

.result-panel{
    width: 100%;
    background-color: var(--grey-9);
    border: 1px solid var(--grey-8);
    border-radius: 5px;
    box-sizing: border-box;
    padding: 16px 18px;
    display: flex;
    position: relative;
}

#result{
    font-size: 40px;
    color: var(--grey-1);
}

.overlay{
    background-color: var(--grey-10);
    opacity: 0.8;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border-radius: 5px;
    transition: 0.5s ease;
}

.theme-button{
    background-color: var(--grey-1);
    background-image: url("../images/theme_icon_light_button.svg");
    width: 50px;
    height: 50px;
    border-radius: 25px;
    border: 0;
    position: absolute;
    right: 20px;
    top: 20px;
    transition: 0.3s ease;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60%;
}

.theme-button:hover{
    background-color: var(--grey-4);
    cursor: pointer;
}

.message{
    background-color: var(--grey-8);
    width: fit-content;
    height: fit-content;
    padding: 10px 14px;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}