body {
    /*font-family: Arial, sans-serif;*/
    font-family: "Verdana", sans-serif;
    margin: 20px;
    max-width: 700px;
    background-color: white;
    color: black;
}
.feedback-message {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 123, 255, 0.9); /* Semi-transparent blue */
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000; /* Ensures it stays on top */
    display: none; /* Initially hidden */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
/* Different colors for success and error messages */
.feedback-message.success {
    background-color: rgba(40, 167, 69, 0.9); /* Green for success */
}

.feedback-message.error {
    background-color: rgba(187, 0, 0, 0.9); /* Red for errors */
}
fieldset {
    margin-bottom: 30px;
    padding: 10px;
    border-radius: 5px;
}
legend {
    font-size: 20px;
}
input, select, button {
    width: 100%;
    padding: 8px;
}
button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px; /* Rounded corners */
    text-align: center;
    margin-top: 10px; /* Space above buttons */
}
button:hover {
    background-color: #0056b3;
}
.input-container {
    margin-bottom: 15px;
}
.result {
    font-weight: bold;
}
.info-button {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    font-size: 0.8em;
    width: auto;
    margin-left: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
}
.history-table-container {
    width: 100%;  /* Ensure the container takes full width */
    overflow-x: auto; /* Enables horizontal scrolling on small screens */
    border: 1px solid #ddd; /* Optional: Adds a border for clarity */
}
.danger-button {
    background-color: #bb0000;
    color: white;
    border: none;
    cursor: pointer;
    width: 48%;
}
.danger-button:hover {
    background-color: #630000;
}
.info-box {
    display: none;
    margin-left: 10px;
    font-size: 0.9em;
    color: #555;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
th {
    background-color: #f2f2f2;
}
#results {
    font-size: 1.5em;
}
.dark-mode-toggle-container {
    display: flex;
    justify-content: flex-end; /* Pushes the toggle to the right */
}
/* Toggle switch style */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: 0.4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #007bff;
}
input:checked + .slider:before {
    transform: translateX(14px);
}
/* Dark mode styles */
body.dark-mode {
    background-color: #121212;
    color: white;
}
th.dark-mode {
    background-color: #282828;
}
@media (max-width: 768px) {
    .history-table-container {
        max-height: none; /* Allows scrolling only when needed */
    }
}
/* Position buttons in patient details */
.patient-buttons {
    display: flex;
    justify-content: space-between; /* Space them apart */
    align-items: center;
}
.patient-actions {
    display: flex;
    gap: 10px; /* Adds spacing between buttons */
    width: 48%
}
#savePatientButton,
#updatePatientButton {
    width: 100%; /* Ensures button takes full width */
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
}
#deletePatientButton {
    flex-grow: 1; /* Ensures it's always at the end */
    width: 48%;
}
/* Tab Styles */
.tab-container {
    display: flex;
    margin-bottom: 0px;
}

.tab-button {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    background-color: #666666;
    border-radius: 8px 8px 0 0;
    margin: 0px
}

.tab-button.active {
    background-color: #007bff;
    color: white;
}
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.delete-history-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #bb0000;
}

.delete-history-btn:hover {
    color: #630000;
}

#contentSection {
    border: 1px solid #666666;
    display: block;
    padding: 15px;
}
