body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}
header {
    background-color: #f4f4f4;
    padding: 10px 20px;
    text-align: center;
}
main {
    margin: 20px;
}
form div {
    margin-bottom: 15px;
}
label {
    display: block;
    font-weight: bold;
}
input {
    width: 100%;
    padding: 8px;
}
button {
    background-color: #5cb85c;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}


.nav-item {
    display: inline-block; /* Makes them sit next to each other horizontally */
    margin: 0 10px; /* Adds spacing between items */
}

.nav-link {
    text-decoration: none; /* Removes the default underline */
    color: #007bff; /* Sets a link color */
    font-weight: bold; /* Makes the text bold */
    padding: 5px 10px; /* Adds some padding around the link */
    border: 1px solid transparent; /* Adds a transparent border for hover effects */
    border-radius: 4px; /* Rounds the corners slightly */
    transition: background-color 0.3s, color 0.3s; /* Smooth hover effects */
}

.nav-link:hover {
    background-color: #007bff; /* Changes the background color on hover */
    color: #fff; /* Changes the text color on hover */
    border: 1px solid #007bff; /* Highlights the border on hover */
}

.card {
    border-radius: 10px;
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}


#medication-suggestions {
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    z-index: 1000;
    background-color: white;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#medication-suggestions li {
    padding: 10px;
    cursor: pointer;
}
#medication-suggestions li:hover {
    background-color: #f1f1f1;
}



    /* Scoped styles for the dispense dashboard */
    #dispense-dashboard {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        background: white;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

    #dispense-dashboard th {
        background-color: #007bff;
        color: white;
        text-align: left;
        padding: 10px;
    }

    #dispense-dashboard td {
        padding: 10px;
        border: 1px solid #ddd;
    }

    html body #dispense-dashboard tr:nth-child(odd) {
        background-color: #f7f7f7 !important; /* Light grey for odd rows */
    }
    
    html body #dispense-dashboard tr:nth-child(even) {
        background-color: #ffffff !important; /* White for even rows */
    }
    
    html body #dispense-dashboard tr:hover {
        background-color: #eaf4ff !important; /* Subtle blue hover effect */
    }

    #dispense-dashboard .hidden-row {
        display: none;
        background-color: #f1f1f1; /* Light grey shaded background */
        color: #555;
        padding: 10px;
    }

    #dispense-dashboard .hidden-row td {
        padding: 8px;
        font-size: 14px;
    }

    #dispense-dashboard .hidden-content {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
        line-height: 1.6;
        border: 1px solid #ddd;
        background: #fefefe; /* Slightly brighter background for details box */
        padding: 15px;
        border-radius: 5px;
    }

    #dispense-dashboard .hidden-content div {
        flex: 1 1 45%;
        min-width: 200px;
    }

    #dispense-dashboard .hidden-content strong {
        font-weight: bold;
        color: #333;
    }

    .toggle-button {
        color: #007bff;
        cursor: pointer;
        text-decoration: underline;
    }

    .toggle-button:hover {
        text-decoration: none;
        color: #0056b3;
    }