*{
    padding: 0;
    margin:0;
    box-sizing: border-box;
    overflow-x: hidden;
}

button{
    cursor: pointer;
}

::-webkit-scrollbar{
    appearance: none;
    width: 10px;
}

::-webkit-scrollbar-track{
    background: #6344c6;
}

::-webkit-scrollbar-thumb{
    background: #ebce72;
    /* border-radius: 8px; */
    border: 1px solid black;
}

body {
    font-family: Arial, sans-serif;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1.app-header{
    width: 100%;
    height: 50px;
    background: #6344c6;
    color: white;
    font-size: 20px;
    text-shadow: 0 1px 1px black;
    padding-inline: 50px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 5px solid #ebce72; */
}

.app-container{
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 40px);
    display: flex;
    flex-direction: row;
}

/* using .blur class to add background blur when modal opens */

.app-container.blur{
    filter: blur(10px);
}

.medicines-list-container{
    width: 40%;
    height: 100%;
    min-width: 500px;
    border-inline: 5px solid #6344c6;
}

.medicines-list-container input{
    width: 100%;
    height: 40px;
    text-indent: 15px;
    font-size: 15px;
    font-style: italic;
    border: none;
}


.medicines-list-container table {
    border-collapse: collapse;
    width: 100%;
    border: 1px solid #6344c6;
}

.medicines-list-container tbody button{
    background: #ebce72;
    width: 30px;
    height: 30px;
    color: black;
    font-weight: bolder;
    font-size: 16px;
    border: none;
    outline: none;
    transition: all .2s ease;
}

tbody button:hover{
    background: #ffe798;
}

th,
td {
    border-bottom: 2px solid #6344c6;
    text-align: left;
    padding: 8px;
    background: #ffffff;
}

th {
    background-color: #ebce72;
    border: 1px solid black;
    height: 30px;
    font-size: 14px;
}

.cart-container{
    width: 60%;
    height: 100%;
    min-width: 800px;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.cart-div h2.cart-header{
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #ebce72;
    font-weight: 100;
    font-size: 18px;
    padding-inline:20px;
    box-shadow: 0 0 40px 0px #6244c697;
    border: 1px solid #6344c6;
}

.cart-div h3.cart-sub-header{
    margin-top: 20px;
    font-size: 16px;
    font-weight: 100;
    text-indent: 10px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-container .cart-div{
    width: 100%;
    height: calc(100% - 100px);
    /* background: red; */
}

.cart-container .cart-div ul{
    width: 100%;
    max-width: 100%;
    height: calc(100% - 40px - 40px);
    margin-inline: 20px;
    padding-inline-start: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-block: 20px;
    overflow-y: scroll;
}

ul li{
    height: 30px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid #6344c6;
    min-height: 30px;
}


.cart-container .btns-div{
    width: 100%;
    height: 100px;
    background: #6344c6;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding-inline: 40px;
}
.btns-div button {
    padding-inline: 20px;
    width: fit-content;
    height: 40px;
    min-height: 40px;
    font-weight: bolder;
    background: #ebce72;
    border: none;
    outline: none;
    color: black;
    transition: all .25s ease;
}

.btns-div button:hover{
    background: #ffe798;
}

/* Code for bill details modal box */

.modal{
    position: absolute;
    display: none;
    top: 100px;
    left: 200px;
    width: 700px;
    height: fit-content;
    min-height: 400px;
    background: white;
    flex-direction: column;
    /* border: 1px solid grey; */
    box-shadow: 0 2px 6px 3px #C9C9C9;
    border-radius: 8px;
    padding-block-end: 60px;
    transition: top 2s ease;
}

/* using .show class to show the modal */

.modal.show{
    display: flex;
    width: 700px;
    height: fit-content;
    transition: all 2s ease;
}


.modal h1.modal-heading{
    width: 100%;
    height: fit-content;
    padding-block: 10px;
    padding-inline: 20px;
    background: #F2F2F2;
    box-shadow: 0 0 5px 2px #BEBEBE;
    font-size: 17px;
    color: #979797;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid #dfdfdf;
}

h1.modal-heading button.modal-close-btn{
    font-size: 20px;
    color: #757575;
    border: none;
    outline: none;
    font-family: monospace;
    transition: all .2s ease;
}

h1 button.modal-close-btn:hover{
    color: #d01616;
}

.modal .bill-details-list{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.bill-details-list li.list-item{
    width: 100%;
    height: 30px;
    padding-inline: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #F2F2F2;
    font-size: 14px;
    color: #757575;
    list-style-type: none;

}

.bill-details-list li:nth-child(1){
    background: #f7f7f7cd;
    height: 40px;
    font-weight: bold;
    color: #a2a2a2;
}

li.list-item span{
    text-align: left;
}

li.list-item span.item-name{
    width: 50%;
}
li.list-item span.item-count{
    width: 25%;
}
li.list-item span.item-price{
    width: 25%;
}

.modal .total-details{
    width: 100%;
    height: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-inline: 50px;
    list-style: none;
    color: #a2a2a2;
    background: #f7f7f7cd;
    font-weight: bold;
    font-size: 14px;
}

.total-details li{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.modal .modal-btn-div{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    padding-inline: 20px;
    gap: 15px;
}

.modal-btn-div button{
    padding-inline: 20px;
    padding-block: 10px;
    border: none;
    outline: none;
    background: #F2F2F2;
    color: #757575;
    border-radius: 5px;
    transition: all .25s ease;
    border: 1px solid #e6e6e6;
}

.modal-btn-div button:hover{
    background: #dcdcdc;
}