
/* Styles for header */
header {
    background-color: #01BAEF; /* Blue color */
    padding: 0px;
    display: flex; /* Use flexbox */
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Align items to the left */
}
/* .layout{
    display: grid;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); 
    grid-template-rows: 40px 40px auto 60px 60px 40px;
    grid-template-columns: 1fr;
    grid-template-areas: 'header' 'sidebar' 'main' 'widget' 'statistics' 'footer';
    height: calc(100vh / 4)
} */

header h1{
    text-align: center;
}
#edit-h2 {
    
    text-align: center; /* Center the text */
    padding: 0; /* Remove padding */
    margin: 20px 0; /* Add margin to separate from other elements */
}

.logo {
    margin-top: -15px;
    margin-bottom: -10px;
    margin-left: 3px;
    width: 110px; /* Adjust the width as needed */
    height: auto; /* Maintain aspect ratio */
}


body {
    padding: 0;
    margin: 0; /* Remove default margin */
    background-color: #FFFFFF;
    font-family: Arial, sans-serif;
    align-items: center;
}

/* #wrapper {
    box-shadow: 3px 3px 3px #333333;
    width: 80%;
    margin: 0 auto;
} */

  /* Header styles */
header {
    background-color: #01BAEF;
    color: #FFFFFF;

}
header a {
    text-decoration: none;
    color: #FFFFFF;
}


/* Navigation styles */
nav {
    
    font-size: 120%;
    
  }

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 1em;
    font-weight: bold;
}

nav ul li {
    display: inline;
    margin-right: 20px;
    padding: 0.5em 0;
}

nav ul li a {
    text-decoration: none;
    color: #FFFFFF; /* White color for links */
    transition: color 3s ease-out;
}
nav a:hover {
    color: #001F54;
}

/* Main content styles */
aside {
    padding: 20px; /* Padding inside the box */
    float: left; /* Float the aside box to the left */
    margin-right: 20px; /* Add some margin to separate from the main content */
    height: calc(100vh - 180px);  /* Calculate height to fit perfectly on the left side */
    overflow-y: auto; /* Add vertical scrollbar if content overflows */
    margin-bottom: 20px; /* Add margin to the bottom */
    margin-top: -5px;
}


/* Styles for the main content */
main {
    margin-left: -30px;
    box-shadow: none;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    background-color: #FFFFFF;
    overflow: auto;
    height: 80.5vh;
    padding: 0 0 0 30px;
}


/* Styles for the list inside the aside */
aside ul {
    list-style-type: none; /* Remove default list styles */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

/* Styles for list items */
aside ul li {
    font-size: 120%; /* Adjust font size */
}

/* Styles for the tabs */
.tabs {
    margin-left: 12px;
    margin-right: -5px;
    margin-top: 2px;
    border-radius: 50px;
    margin-bottom: 5px ;
    display: flex;
    flex-direction: column; /* Align tabs vertically */
    height: calc(100vh / 10)
}
.tablinks {
    border: 1px solid #FFFFFF; /* Add border */
    background-color: #01BAEF; /* Blue color */
    font-weight: bold;
    color: #001F54;
    padding: 20px; /* Adjust padding */
    border-radius: 50px; /* Rounded corners */
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s; /* Smooth transition */
    height: calc(100vh / 4);
}

.tablinks:hover {
    background-color: #001f54a7; /* Darker blue on hover */
    color: #fafafa;
}

.tablinks.active {
    background-color: #001F54; /* Darker blue for active tab */
    color: #fafafa;
}


#vaccine-tab{
    border-radius: 0 0 0 0;
}

#medicine-tab {
    margin-top: 5px;
    border-radius: 50px 50px 0 0; /* Adjust border radius */
}

#blood-tab {
    border-radius: 0 0 50px 50px; /* Adjust border radius */
}

/* Styles for tab content */
.tabcontent {
    display: none;
    padding: 20px;
}


/* Styles for table */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

footer {
    background-color: #01BAEF;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%; 
    margin-left: -10px;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
}

footer ul li {
    margin-right: 10px;
}

footer ul li a {
    text-decoration: none;
}
footer ul li img {
    width: 45px; /* Adjust size as needed */
    height: auto;
}

.footer-info {
    padding-left: 1em;
    color: #001F54;
    order: -1;
}
.account-section{
    float: left;
    width: 25%;
    padding: 0 2em;
}

/* Medicine Prescription styles */
.medicine-prescriptions, .vaccine-records, .blood-records{
    display: flex;
    flex-wrap: wrap;
    margin-left:-25px;
    margin-right: 10px;
}
.blood-records{
    padding: 10px;
    margin-left: -10px;
    margin-right: 25px;
    margin-top: -10px;
}

.vaccine-box{
    background-color: #F5FAFC;
    margin-left: 25px;
    margin-bottom: 20px;
    margin-top: 10px;
    min-width: 350px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-right: 10px;
    width: 100%; /* Adjust width as needed */
    position: relative; /* Add relative positioning */
    overflow: hidden; /* Ensure content does not overflow */
}
.medicine-box {
    background-color: #F5FAFC;
    margin-left: 25px;
    margin-top: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-right: 10px;
    width: 350px; /* Adjust width as needed */
    position: relative; /* Add relative positioning */
    overflow: hidden; /* Ensure content does not overflow */
}

.medicine-row, .vaccine-row {
    display: flex;
    justify-content: space-between;
}

.medicine-name,
.medicine-amount,
.vaccine-name,
.vaccine-amount{
    font-weight: bold;
    font-size: 18px;
    
}
.reminder-title{
    margin-top: 5px;
    font-weight: bold;
    font-size: 20px;
    opacity: 0.5;
}
.medicine-type, .vaccine-type {
    position: relative;
    display: inline-block; 
    background-color: #01BAEF;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    margin-top: 3px; /* Adjust as needed */
    margin-bottom: 5px;
    margin-left: -1px; /* Adjust as needed */
}


.medicine-composition,
.medicine-meal,
.vaccine-composition,
.vaccine-next{
    margin-top: 5px;
    font-size: 14px;
}
.medicine-right,
.vaccine-right{
    margin-top: 5px;
    text-align: right;
}
.medicine-date, .vaccine-date{
    color: #454545;
    margin-top: 10px;
    font-size: 14px;
}


.medicine-frequency,
.vaccine-frequency {
    font-size: 14px;
}

.prescription-info,
.vaccine-info{
    margin-top:10px;
}


.org,
.by,
.location {
    font-size: 14px;
}

/* Submit button styles */
button[type="submit"].save-btn {
    transition: box-shadow 0.3s, transform 0.3s;
    background-color: #01BAEF; /* Green background */
    color: white; /* White text */
    padding: 12px 20px; /* Padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    
    margin-right: 10px; /* Add margin-right for spacing between buttons */
}

/* Change the background color of the button on hover */
button[type="submit"].save-btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Box shadow behind the feature button on hover */
    transform: scale(0.95); /* Scale up the button slightly on hover */
}


button.editButton{
    background-color: #01BAEF; /* Red background */
    color: white; /* White text */
    padding: 12px 20px; /* Padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: box-shadow 0.3s, transform 0.3s; 
}
button.editButton:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Box shadow behind the feature button on hover */
    transform: scale(0.95);
}
button.shareButton{

    margin-left: 48px;
    background-color: #01BAEF; /* Red background */
    color: white; /* White text */
    padding: 12px 20px; /* Padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: box-shadow 0.3s, transform 0.3s; 
}
button.shareButton:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Box shadow behind the feature button on hover */
    transform: scale(0.95);
}
/* Cancel button styles */
button.cancel-btn {
    background-color: rgba(3, 23, 58, 0.673); /* Red background */
    color: white; /* White text */
    padding: 12px 20px; /* Padding */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor */
    transition: box-shadow 0.3s, transform 0.3s; /* Smooth transition for background color */
}

/* Change the background color of the button on hover */
button.cancel-btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Box shadow behind the feature button on hover */
    transform: scale(0.95);
}



/* Styles for form elements */
form {
    padding: 20px;
    display: grid;
    grid-template-columns: max-content 1fr; /* First column for labels, second column for inputs */
    gap: 10px; /* Adjust the gap between grid items */
    align-items: center; /* Center items vertically */
}

/* Adjust margins for labels and inputs */
.form-label {
    margin-right: 10px; /* Add right margin for labels */
    text-align: right; /* Align labels to the right */
}

.form-input {
    padding: 5px;
    font-size: 1em;
    border: 1px solid #ccc;
}

/* Adjust margins for buttons */
.save-btn,
.cancel-btn {
    margin-top: 10px; /* Add top margin for buttons */
    justify-self: start; /* Align buttons to the start of the grid */
}

/* Media query for smaller screens */
@media screen and (max-width: 962px){
    .feature-btn {
        margin-top: 5px;
        margin-bottom: 5px;
        max-width: 80px; /* Adjust the maximum width for smaller screens */
    }
    h2 {
        text-align: center; /* Center the h2 element */
    }
    .medicine-prescriptions, .vaccine-records{
        justify-content: center;
        margin-left: -40px;
    }
    header{
        position: relative;
    }
    main {
        padding: 0 0 30px 0;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
        background-color: #FFFFFF;
        margin: 0;
        justify-content: center;
        
        
    }
    /* Remove float from aside */
    aside {
        float: none;
        margin-bottom: 0; 
        height: auto; /* Calculate height to fit perfectly on the left side */
        overflow-y: auto; /* Add vertical scrollbar if content overflows */
        justify-content: center;
        margin-left: 15px;
    }
    /* Reset styles for tabs */
    .tabs {
        flex-direction: row;
        overflow-x: auto;
        height: auto;
        justify-content: center;
        margin: 0;
        
    }
    .tablinks {
        width: auto;
        height: auto;
        border-radius: 50px; /* Reset border radius */
    }
    
    #medicine-tab {
        margin: 0;
        border-radius: 50px 0 0 50px;
    }
    
    #blood-tab {
        border-radius: 0 50px 50px 0 ; 
    }
    .scan-content {
        height: 100vh; /* Use full viewport height on smaller screens */
        margin-left: 0; /* Remove margin for better phone display */
    }

    .center-box {
        width: 90%;
        max-width: 100%; /* Adjust maximum width for smaller screens */
    }
    
    .vaccine-records{
        margin-left: 0.5px;
    }
    .medicine-prescriptions{
        margin-left: 0.5px;
    }
    .blood-records{
        margin-left: 20px;
    }
    .tabs{
        margin-left:5px;
    }
    
}
.scan-content {
    padding: 0;
    margin-left: 1px; 
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
   
    background-color: #FFFFFF;
    overflow: auto;
    height: 70vh; /* Adjusted height for better phone display */
}

.center-box {
    width: 80%; /* Adjust the width as needed */
    max-width: 900px; /* Set a maximum width to prevent the box from becoming too wide */
    background-color: #f4f4f4; /* Background color of the box */
    border: 1px solid #ccc; /* Border around the box */
    border-radius: 5px; /* Rounded corners for the box */
    padding: 20px; /* Add padding inside the box */
}

/* Wrapper */
.wrapper {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout by default */
    grid-template-rows: repeat(3, 1fr); /* Three rows with equal height */
    gap: 20px; /* Gap between grid items */
    padding: 20px;
    margin: 0;
}

/* First Row: Daily Supplement Reminder and Vaccine */
.first-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    grid-template-rows: 1fr; /* Single row */
    gap: 20px; /* Gap between grid items */
    margin-bottom: 20px;
}

/* Upper Left Grid: Daily Supplement Reminder */
.upper-left-grid {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding-top: 7px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #F5FAFC;
}

/* Upper Right Grid: Vaccine */
.upper-right-grid {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding-top: 7px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #F5FAFC;
}
.second-row {
    margin-left: -20px;
    margin-right: -20px;
    margin-top: -20px;
    margin-bottom: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    height: auto; /* Change the height to auto */
    position: relative; /* Add position relative */
    z-index: 1; /* Set z-index to 1 */
}

.second-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #01bbef47; /* Semi-transparent blue background */
    backdrop-filter: blur(10px); /* Apply blur effect */
    z-index: -1; /* Send the pseudo-element behind the content of .second-row */
}


/* Styles for the feature buttons */
/* Styles for the feature buttons */
.feature-btn {
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 150px;
    border-radius: 10px;
    overflow: hidden; /* Ensure overflow is hidden to contain the overlay */
    transition: box-shadow 0.3s, transform 0.3s; /* Smooth transition for box shadow and transform */
}

/* Box shadow and scale on hover */
.feature-btn:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Box shadow behind the feature button on hover */
    transform: scale(1.10); /* Scale up the button slightly on hover */
}





/* Third Row: Advertisement */
.third-row {
    margin-top: -77px;
    position: relative;
    overflow: hidden;
}

/* Advertisement Slideshow */
.slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.slides {
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.5s ease;
}

.slide {
    width: 100%;
    max-width: 600px; /* Adjust max-width as needed */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Add box-shadow */
}


.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}



/* Advertisement Navigation Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 8px; /* Adjust the padding to make the buttons smaller */
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    z-index: 1;
    width: 40px; /* Set the width of the buttons */
    height: 40px; /* Set the height of the buttons */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Adjust the font size */
}

.prev {
    left: 0; /* Stick to the left edge */
}

.next {
    right: 0; /* Stick to the right edge */
}

/* Advertisement Navigation Buttons: Hover Effect */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive styling */
@media screen and (max-width: 768px) {
    main {
        height: calc(80.5vh - 30px);
        padding: 0 0 30px 0;
        box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
        background-color: #FFFFFF;
        margin: 0;
        /* padding-left: 30px;
        padding-bottom: 30px; */
        
        justify-content: center;
        
        
    }
    .first-row {
        grid-template-columns: 1fr; /* Single column layout for smaller screens */
    }

    .feature-btn {
     
        max-width: 150px; /* Adjust the maximum width for smaller screens */
    }


}
/* New styles for table */
table {
    border: 1px solid #ccc;
    border-collapse: collapse;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #01bbef47;
}

/* New styles for table headers */
th {
    padding: 0.5em;
    border: 1px solid #ccc;
    text-align: center;
    background-color: #01bbef47;
}

/* New styles for table cells */
td {
    padding: 0.5em;
    border: 1px solid #ccc;
    text-align: center;
}

/* Alternate row background color */
tr:nth-of-type(odd) {
    background-color: #F5FAFC;
}
/* Define styles for Normal and Abnormal statuses */
.normal {
    color: green;
}

.abnormal {
    color: red;
}

  

section {
    float: left;
    width: 33%;
    padding: 0 2em;
  }

.account-preference ul li {
    border-bottom: 1px solid #ccc;
    padding: 0.5em 0;
  }
  
.account-preference ul a {
    color: #001F54;
    text-decoration: none;
    transition: color 3s ease-out;
  }
.account-preference a:hover {
    color: #F5FAFC;
  }

#qrCodeCanvas{
    margin-top: -20px;
    height: 285px;
}
.video-container {
    margin-top: 100px; /* Add margin around the video */
   
  }