@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

.body-wrapper {
    padding: 1rem;
    display: flex;
    height: 100vh;
    background: #fafafa;
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    overflow: hidden;
}

.nav-bar{
    width: 15rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 1rem;
    row-gap: 3.75rem;
    background-color: white;
    border-radius: 1rem;
}

.logo-button{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.logo{
    width: 8rem;
    cursor: pointer;
}

.logo img{
    width: 100%;
    height: 100%;
}

.expbtn{
    width: 1.25rem;
    cursor: pointer;
}

.expbtn img{
    width: 100%;
    height: 100%;
}

.navlinks{
    width: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
}

.nav-tab{
    width: 100%;
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    color: #555555;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.page-anchor{
    text-decoration: none;
}

.nav-tab:hover{
    background-color: #F6F6F6;
    color: #9D9D9D;
    border-radius: 0 0.5rem 0.5rem 0;
}

.nav-tab-active{
    border-left: solid 4px;
    border-color: #6195FE;
    color: #6195FE;
    background-color: #FAFAFA;
    border-radius: 0 0.5rem 0.5rem 0;
}

.nav-tab-active:hover{
    color: #6195FE;
}

.content-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    row-gap: 1rem;
    width: 100%;
    height: 100%;
}

.title-bar{
    width: 100%;
    height: auto;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border-radius: 1rem;
}

.title-container{
    display: flex;
    flex-direction: column;
}

.page-heading {
    font-size: 1.5rem;
    color: #555555;
}

.page-sum{
    font-size: 1rem;
    color: #9D9D9D;
}

.search-container{
    width: 800px;
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    position: relative;
    align-items: center;
}

.search{
    width: 100%;
    display: flex;
    flex-direction: row;
    border: none;
    outline: none;
    padding: 1rem 1rem 1rem 3rem;
    border: solid 1px #F6F6F6;
    border-radius: 1rem;
    font-family: 'Prompt';
    font-size: 1rem;
    color: #BBBBBB;
    transition: border 0.2s ease;
}

.search:hover{
    border-color: #61B763;
}

.search:focus{
    border-color: #2E63CE;
}

.search-icon{
    position: absolute;
    left: 1rem ;
    color: #BBBBBB;
}

.profile-container{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.notification{
    width: 2rem;
}

.notification img{
    width: 100%;
    height: 100%;
}

.profile-pic{
    width: 4rem;
    height: 4rem;
}

.profile-pic img{
    width: 100%;
    height: 100%;
}

.card-wrapper{
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    padding: 2px 0;
}

.card{
    height: auto;
    display: flex;
    flex: 1 1;
    flex-direction: column;
    row-gap: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 1rem;
    border: solid 1px #F6F6F6;
    transition: all 0.3ms;
}

.card:hover{
    border-color: #6195FE;
}

.card-title{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card-title p{
    color: #909090;
}

.desc-icon{
    color: #9661F1;
}

.desc-icon-1{
    color: #B3B761;
}

.desc-icon-2{
    color: #6195FE;
}

.desc-icon-3{
    color: #61B763;
}

.card-details{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    align-items: center;
}

.card-fig p{
    font-size: 1.5rem;
    font-weight: 500;
    color: #444444;
}

.card-chip{
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    color: #61B763;
    font-size: 1rem;
}

.filter-wrapper{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
}

.tab-container{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    align-items: center;
}

.tab{
    font-size: 1rem;
    color: #9d9d9d;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    transition: all 0.3s ease;
}

.tab:hover{
    background-color: #F6F6F6;
    color: #55555D;
}

.active-tab{
    border-radius: 0.8rem 0.8rem 0 0;
    border-bottom: solid 2px #6195FE;
    color: #2E63CE;
}

.tab-content {
  display: none;
}

.active-table {
  display: flex;
  flex-direction: column;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-btn{
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background-color: white;
    border-radius: 0.8rem;
    border: solid 1px #F6F6F6;
    color: #8E8E8E;
    cursor: pointer;
    font-size: 0.95rem;
    font-size: 300;
}

.filter-btn:hover{
    background-color: #FAFAFA;
}

.filter-main{
    background-color: #6195FE;
    color: white;
}

.filter-main:hover{
    background-color: #89AFFE;
}

.tab-content{
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.3s ease-in-out;
    overflow: auto;
}

.appointments-table{
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0;
    border-radius: 1rem;
    overflow: auto;
}

.appointment-card{
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    flex: 1 1 calc(25% - 1rem);
    padding: 1.5rem;
    background-color: white;
    border-radius: 1rem;
    border: solid 1px #F6F6F6;
}

.appointment-card:hover{
    border-color: #3A7AFE;
}

.card-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.doctor-role{
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
}

.doctor-specialty{
    font-size: 0.9rem;
    color: #9D9D9D;
}

.card-content{
    width: 100%;
    display: flex;
    height: auto;
    flex-direction: column;
    row-gap: 1rem;
}

.info-item{
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    color: #555555;
}

.doctor-name{
    font-size: 1.2rem;
    font-weight: 500;
    color: #444444;
}


.table-title{
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 0 0.5rem;
    border-bottom: solid 1px #f6f6f6;
}

.info-label{
    font-size: 1rem;
    color: #555555;
    font-weight: 400;
}

.button-wrapper{
    display: flex;
    flex-direction: row;
    column-gap: 2rem;
}

.action-button{
    width: 50%;
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: white;
    border-radius: 0.8rem;
    border: solid 1px;
    color: #8E8E8E;
    cursor: pointer;
    font-size: 1rem;
    color: #6195FE;
}

.reschedule-btn:hover{
    background-color: #6195FE;
    color: white;
}

.cancel-btn{
    border-color: #f0f0f0;
    color: #FF2D55;
}

.cancel-btn:hover{
    background-color: #FF2D55;
    color: white;
}

.appointment-card-chip{
    width: 7rem;
    border: solid 1px #6195FE;
    border-radius: 10rem;
    background-color: #89AFFE;
    padding: 0.2rem 1rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

.appointmnet-completed{
    width: 7rem;
    border: solid 1px #7DC47F;
    border-radius: 10rem;
    background-color: #7DC47F;
    padding: 0.2rem 1rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

.appointment-canceled{
    width: 7rem;
    border: solid 1px #FF7D75;
    border-radius: 10rem;
    background-color: #FF7D75;
    padding: 0.2rem 1rem;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

/* .prescriptions-table{
   display: none;
} */

.prescriptions-table{
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 0; 
    border-radius: 1rem;
    overflow: auto;
} 

.prescriptions-card{
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    flex: 1 1 calc(25% - 1rem);
    padding: 1.5rem;
    background-color: white;
    border-radius: 1rem;
    border: solid 1px #F6F6F6;
}

.prescriptions-card:hover{
    border-color: #3A7AFE;
}

.prescriptions-card-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.med-detail{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    align-items: center;
}

.med-avatar{
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background-color: #F6F6F6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.med-avatar img{
    width: 100%;
    height: 100%;
}

.pill-color{
    color: #6195FE;
    font-size: 2.5rem;
}

.medcine{
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
}

.med-name{
    font-size: 1.2rem;
    font-weight: 500;
    color: #444444;
}

.med-quantity{
    font-size: 0.9rem;
    color: #9D9D9D;
}

.freq-refills{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;

}

.freq, .refills{
    width: 50%;
    display: flex;
    flex-direction: column;
    row-gap: 0.2rem;
    border: solid 1px #F6F6F6;
    border-radius: 1rem;
    padding: 0.5rem 1rem;
}

.freq-title, .refills-title{
    font-size: 0.8rem;
    color: #9D9D9D;
}

.freq-detail, .refills-detail{
    font-size: 1rem;
    color: #555555;
    font-weight: 500;
}

.info-wrapper{
    display: flex;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    border-radius: 1rem;
    padding: 1rem;
    background-color: #F5F8FF;
}

.info-alert-icon{
    color: #6195FE;
}

.info-wrapper p{
    font-size: 0.9rem;
    color: #737373;
    font-weight: 300;
}

.med-records-table{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    background-color: white;
    border-radius: 1rem;
    overflow: auto;
}


.cell{
    display: flex;
    flex: 1 1;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    color: #222222;
}

.column-cell{
    display: flex;
    flex: 1 1;
    flex-direction: column;
    row-gap: 0.2rem;
    padding: 1rem;
}

.test-title{
    font-size: 1rem;
    font-weight: 500;
    color: #444444;
}

.test-title-p{
    font-size: 0.9rem;
    color: #9D9D9D;
}

.title-check{
    color: #D8D8D8;
    border-radius: 0.5rem;
}

.menu-cell{
    justify-content: center;
    align-items: center;
}

.table-wrapper{
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0.8rem 0;
    overflow-y: auto;
}

.row{
    display: flex;
    flex-direction: row;
    padding: 0.5rem;
    cursor: pointer;
}

.grey-row{
    background-color: #fafafa;
}

.table-cell{
    display: flex;
    flex: 1 1;
    flex-direction: row;
    column-gap: 0.5rem;
    align-items: center;
    padding: 1rem;
    color: #555555;
}

.table-icon{
    width: 4rem;
}

.table-icon img{
    width: 100%;
    height: 100%;
}

.table-chip{
    width: 8rem;
    border: solid 1px;
    border-radius: 10rem;
    padding: 0.2rem 1rem;
    justify-content: center;
    align-items: center;
}

.table-chip{
    text-align: center;
}

.completed{
    color: #61B763;
    justify-content: center;
    align-items: center;
}

.pending{
    color: #B3B761;
    justify-content: center;
    align-items: center;
}

.shipped{
    color: #2E63CE;
    justify-content: center;
    align-items: center;
}

.processing{
    color: #632EBE;
    justify-content: center;
    align-items: center;
}

.canceled{
    color: #FF2D55;
    justify-content: center;
    align-items: center;
}

.pagination-wrapper{
    height: auto;
    display: flex;
    flex-direction: row;
    padding: 1rem 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.direction{
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 2rem;
}

.previous{
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.5rem;
    color: #9D9D9D;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
}

.next{
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 0.5rem;
    color: #8E8E8E;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 0.8rem;
    
}

.next:hover{
    background-color: #f5f5f5;
    border-radius: 1rem;
}

.pages{
    display: flex;
    flex-direction: row;
    column-gap: 1rem;
    align-items: center;
}

.num{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 6px;
    height: 6px;
    padding: 1rem;
    border-radius: 0.5rem;
    color: #909090;
    cursor: pointer;
}

.num:hover{
    background-color: #9D9D9D;
    color: white;
}

.act-num{
    background-color: #9D9D9D;
    color: white;
}

.act-num:hover{
    background-color: #555555;
}

.menu-button {
    display: none;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: white;
    z-index: 10;
    transition: left 0.3s ease;
    flex-direction: column;
    padding: 1rem;
    row-gap: 1.5rem;
}

.mobile-nav.show {
    left: 0;
}

@media (max-width: 768px) {
    .nav-bar {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .body-wrapper {
        height: auto;
        flex-direction: column;
        overflow: auto;
    }

    .title-bar {
        align-items: center;
        position: fixed;
        width: 90%;
        top: 1rem;
        left: 50%;
        transform: translateX(-50%);
    }

    .profile-container {
        display: none;
    }

    .search-container {
        display: none;
    }

    .content-wrapper {
        padding-top: 8rem;
        height: auto;
        overflow: auto;
    }


    .card-wrapper {
        flex-wrap: wrap;
    }

    .card {
        flex-basis: 48%;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 1rem;
    }

    .filter-btn-container {
        flex-wrap: wrap;
        row-gap: 1rem;
    }

    .order-table {
        overflow-x: auto;
    }

    .table-title {
        width: max-content;
    }

    .table-wrapper {
        width: max-content;
    }

    .pagination-wrapper {
        flex-direction: column;
        row-gap: 1rem;
    }


}

@media (max-width: 480px) {

    .card-wrapper{
        gap: 1rem;
    }

    .card {
        flex-basis: 100%;
    }

    .med-records-table{
        padding-bottom: 4rem;
    }

    .pagination-wrapper {
        width: 90%;
        border-radius: 1rem;
        background-color: white;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        row-gap: 1rem;
    }

}

@media (min-width: 1000px) {
    .nav-bar {
        width: 12rem;
    }

    .search-container {
        width: 600px;
    }

    .card {
        flex-basis: 48%;
    }
}


.tab-content {
    display: none;
}

.active-table {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5;
}