/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    text-align: center;
    color: #333;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    margin: 10px 0;
}

ul li a {
    display: block;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
}

ul li a:hover {
    background-color: #0056b3;
}

/* Buttons */
button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: block;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input, select, textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Search Input */
#search_patient {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
}

/* Dropdown for patient search */
#patient_dropdown {
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    background-color: white;
    z-index: 1;
}

#patient_dropdown div {
    padding: 10px;
    cursor: pointer;
}

#patient_dropdown div:hover {
    background-color: #f1f1f1;
}

/* Pop-up Message Styling */
.popup {
    position: fixed;
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Adjust the positioning to center the message */
    background-color: #007BFF; /* Default color for the message */
    color: white;
    padding: 30px 40px; /* Increased padding for a larger pop-up */
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
    font-size: 24px; /* Larger font size */
    width: 50%; /* Make the pop-up bigger */
    min-width: 300px; /* Ensure the pop-up doesn't get too small */
}

/* Success Message */
.success {
    background-color: #28a745; /* Green background for success */
}

/* Error Message */
.error {
    background-color: #dc3545; /* Red background for error */
}

/* General form input styling */
form input, form textarea, form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

/* Back to Dashboard Link Styling */
a.back-to-dashboard {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: #6c4f3d; /* Brown background */
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    border-radius: 5px;
    font-size: 18px;
    margin-top: 20px;
}

a.back-to-dashboard:hover {
    background-color: #4e3a29; /* Darker brown on hover */
}

/* Success and error messages */
.success {
    background-color: green;
    color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 5px;
}

.error {
    background-color: red;
    color: white;
    padding: 10px;
    text-align: center;
    margin-bottom: 15px;
    border-radius: 5px;
}
