/* Reset some default styles */
body, h1, h2, h3, form, input, button {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f5f5f5; /* Light gray background */
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Main container for all content */
.container {
    max-width: 1200px; /* Adjust as needed */
    margin: auto;
    padding: 20px;
}

/* Navigation bar */
.navbar {
    display: flex;
    justify-content: center;
    background-color: #4CAF50;
    border-radius: 5px;
    margin-bottom: 20px; /* Space between navbar and content */
}

.navbar a {
    display: inline-block;
    padding: 16px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 4px 2px;
}

.navbar a:hover, .navbar a.active {
    background-color: #45a049;
}

.dropdown {
    display: none; /* Show the dropdown on smaller screens */
}

/* Dropdown menu for smaller screens */
@media (max-width: 768px) {
    .navbar {
        display: none; /* Hide the navbar on smaller screens */
    }

    .dropdown {
        display: block; /* Show the dropdown on smaller screens */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        z-index: 1;
        border-radius: 5px;
    }

    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
        border-radius: 5px;
    }

    .dropdown-content a:hover {
        background-color: #f1f1f1;
    }

    .show {
        display: block;
    }
}


/* Style the form */
.form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 20px auto;
}

.form label, .form input, .form select, .form button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dddddd;
}

/* Style the buttons */
.button, .form button {
    background-color: #18b6ff; /* Blue */
    color: white;
    padding: 16px 32px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition-duration: 0.4s;
    display: inline-block;
    margin: 4px 2px;
    text-align: center;
    text-decoration: none;
}

.button:hover, .form button:hover {
    background-color: #2797ff; /* Darker blue */
}

/* Alternate button style */
.button2 {
    background-color: white; 
    color: black; 
    border: 2px solid #008CBA; /* Blue border */
}

.button2:hover {
    background-color: #008CBA; /* Blue */
    color: white;
}

.button2select {
    background-color: rgb(108, 187, 252); 
    color: black; 
    border: 2px solid #008CBA; /* Blue border */
}

.health-log-table {
    width: 100%;
    border-collapse: collapse;
}

.health-log-table th, .health-log-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.health-log-table th {
    background-color: #f2f2f2;
}

.food { background-color: #ccffcc; }
.health { background-color: #ffcccc; }
.drink { background-color: #cceeff; }

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    text-decoration: none;
    color: #333;
}

.pagination a.active {
    font-weight: bold;
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
}

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

.tasks-table th {
    background-color: #f2f2f2;
}

.tasks-table td.note {
    width: 80%;
}

.tasks-table td.importance {
    width: 16%;
}

.tasks-table td.action {
    width: 4%;
    text-align: center;
}

.routine { background-color: #cceeff; }
.normal { background-color: #ffffff; }
.urgent { background-color: #ffcccc; }

.highlight {
    font-weight: bold;
    color: red;
}

/* Style the verification form */
.form-verification {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 50px auto;
    text-align: center;
}

.form-verification label,
.form-verification input[type="email"],
.form-verification input[type="submit"] {
    display: block;
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dddddd;
}

.form-verification input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.form-verification input[type="submit"]:hover {
    background-color: #45a049;
}
.admin { background-color: #ffffcc; }


.users-table .button {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
    text-decoration: none; /* Remove underline from link */
}

.users-table .delete-button {
    background-color: #ff4d4d;
    color: white;
}

.users-table .delete-button:hover {
    background-color: #ff3333;
}

.users-table .profile-button {
    background-color: #4CAF50;
    color: white;
}

.users-table .profile-button:hover {
    background-color: #45a049;
}


.users-table {
    width: 100%;
    border-collapse: collapse;
}

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

.users-table th {
    background-color: #f2f2f2;
    cursor: pointer;
}

.users-table th:hover {
    background-color: #e2e2e2;
}

.approved { background-color: #ccffcc; }
.guest { background-color: #ffcccc; }


.quick-select-health {
    margin-bottom: 20px;
}

.quick-health-button {
    background-color: pink;
    color: white;
    font-weight: bold;
    border: 2px solid red;
    padding: 10px 20px;
    margin-right: 10px;
    cursor: pointer;
}

.quick-health-button:hover {
    background-color: red;
}


.quick-health-button.selected {
    background-color: darkred; /* Or any darker color you prefer */
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
}

.modal-content table {
    width: 100%;
}

.modal-content td {
    padding: 5px;
}

.form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dddddd;
}

.journal-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 20px auto;
}

.journal-form label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.journal-form input[type="text"],
.journal-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #dddddd;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.journal-form button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.journal-form button:hover {
    background-color: #45a049;
}

.journal-entry {
    margin-bottom: 20px;
}

.journal-entry h3 {
    margin-top: 0;
}

.journal-entry p {
    white-space: pre-wrap; /* Preserves whitespace and line breaks */
}


.journal-entry {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.journal-entry button,
.journal-entry a {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-weight: bold;
    margin-right: 10px;
}

.journal-entry .edit-button {
    background-color: #4CAF50; /* Green */
}

.journal-entry .publish-button {
    background-color: #007BFF; /* Blue */
}

.journal-entry .delete-button {
    background-color: #F44336; /* Red */
}

.journal-entry .publish-button.pressed {
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.2);
}
.container {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full height of the viewport */
    padding: 10px;
    box-sizing: border-box;
}

.header, .footer {
    flex-shrink: 0; /* Prevent these from growing */
}

.chat-area {
    flex-grow: 1; /* This will take all available space */
    overflow-y: auto; /* Enable scrolling if content is too long */
    width: 100%; /* Full width */
    padding: 20px; /* Consistent padding with header and footer */
    background-color: #f0f0f0; /* Light gray background for the chat area */
    border-radius: 0; /* No rounded corners if you prefer */
}

.form-input {
    display: flex;
    width: 100%; /* Full width for the form */
}

.input-field {
    flex-grow: 1; /* Take available space except for the button */
    margin-right: 10px; /* Space between field and button */
    padding: 10px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.submit-button {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}


