
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #ffffff;
            color: #333;
        }
        .container {
            max-width: 960px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
            border-radius: 8px;
            display: block !important;
            overflow: scroll;
            height: 86vh !important;
        }
        h1, h2, h3 {
            color: #007bff;
            margin-top: 0;
        }


/* Footer Styles */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #007bff;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer nav {
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
}

footer nav button {
    background: none;
    color: white;
    border: none;
    padding: 10px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer nav button i {
    margin-bottom: 5px;
}

footer nav button.active, footer nav button:hover {
    background-color: #0056b3;
}

/* Adjust container padding to prevent content from being hidden behind the footer */
.container {
    padding-bottom: 80px; /* Add enough padding to accommodate the footer */
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    footer nav button {
        font-size: 0.8em;
        padding: 8px;
    }

    .container {
        padding-bottom: 70px; /* Slightly less padding for smaller screens */
    }
}

        nav {
            display: flex;
            justify-content: space-around;
            background-color: #007bff;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        nav button {
            background: none;
            color: white;
            border: none;
            padding: 15px 20px;
            font-size: 1em;
            cursor: pointer;
            transition: background-color 0.3s ease;
            border-radius: 8px;
            display: flex; /* Enable flex layout for icon and text */
            flex-direction: column; /* Stack icon and text vertically */
            align-items: center; /* Center items horizontally */
        }
        nav button i {
            margin-bottom: 5px; /* Space between icon and text */
        }
        nav button.active, nav button:hover {
            background-color: #0056b3;
        }
        .tab-content {
            display: none;
            padding: 15px;
        }
        .tab-content.active {
            display: block;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
        }
        .form-group input, .form-group select, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
        }
        .btn {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 1em;
            transition: background-color 0.3s ease;
        }
        .btn:hover {
            background-color: #0056b3;
        }
        .profile-card {
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
        }
        .profile-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
        }
        .profile-details {
            flex-grow: 1;
        }
        .profile-select-btn {
            background: none;
            border: 1px solid #007bff;
            color: #007bff;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        .profile-select-btn:hover {
            background-color: #007bff;
            color: white;
        }
        .calendar-container {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 5px;
            text-align: center;
        }
        .calendar-day {
            padding: 10px;
            border: 1px solid #eee;
            border-radius: 4px;
            cursor: pointer;
        }
        .calendar-day.today {
            background-color: #e0f7fa;
        }
        .calendar-day.selected {
            background-color: #b2ebf2;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        .data-table th, .data-table td {
            border: 1px solid #ddd;
            padding: 8px;
            text-align: left;
        }
        .data-table th {
            background-color: #f0f0f0;
        }
        .graph-container {
            width: 100%;
            height: 300px;
            margin-top: 15px;
        }
        .water-intake-container {
            margin-top: 10px;
            text-align: center; /* Center align the content */
        }

        .water-controls {
            display: inline-block; /* Keep controls inline with each other */
            margin-bottom: 10px;
        }

        .water-display {
            font-size: 1.2em;
            margin-bottom: 10px;
        }

        .sip-button {
            background-color: #007bff;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 20px; /* Rounded buttons */
            cursor: pointer;
            font-size: 1em;
            margin: 0 5px; /* Space between buttons */
            transition: background-color 0.3s ease;
        }

        .sip-button:hover {
            background-color: #0056b3;
        }

        .water-settings {
            margin-top: 10px;
            font-size: 0.9em;
        }


        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1000;
        }

        .toast {
            background-color: #4CAF50; /* Default success color */
            color: white;
            padding: 15px;
            margin-bottom: 10px;
            border-radius: 5px;
            opacity: 0.9;
            transition: opacity 0.3s ease;
        }

        .toast.error {
            background-color: #f44336; /* Error color */
        }

        .toast.hide {
            opacity: 0;
        }

        .error-message {
            color: red;
            font-size: 0.9em;
            margin-top: 5px;
            display: block; /* Ensure it takes full width */
        }

        #currentProfileDisplay {
            background-color: #f0f0f0;
            padding: 10px;
            border-radius: 8px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        #currentProfileDisplay img {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            margin-right: 10px;
        }
        #currentProfileInfo {
            flex-grow: 1;
        }

        .delete-profile-btn {
            background-color: #f44336;
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            font-size: 0.9em;
        }

        .delete-profile-btn:hover {
            background-color: #d32f2f;
        }

        .weight-loss-plan-section {
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: 8px;
            background-color: #f9f9f9;
        }
        .weight-loss-plan-section h3 {
            color: #007bff;
            margin-top: 0;
        }
        .weight-loss-plan-section ul {
            padding-left: 20px;
        }
        .plan-details-row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 8px;
        }

        .plan-details-row .label {
            font-weight: bold;
        }

        .plan-details-section {
            margin-bottom: 15px;
            padding: 10px;
            border: 1px solid #eee;
            border-radius: 5px;
            background-color: #fff;
        }

        /* Test Mode Styling */
        .test-mode-indicator {
            position: fixed;
            top: 10px;
            left: 10px;
            background-color: orange;
            color: white;
            padding: 8px 15px;
            border-radius: 5px;
            z-index: 999;
        }

        .test-mode-toggle {
            margin-bottom: 15px;
        }

        /* Responsive Container Adjustments */
        @media (min-width: 1200px) {
            .container {
                max-width: 1140px; /* Wider container on large desktops */
            }
        }

        @media (min-width: 992px) {
            .container {
                max-width: 960px; /* Medium desktops */
            }
        }

        /* Mobile Specific Adjustments */
        @media (max-width: 768px) {
            .container {
                margin-left: 0;  /* Full width on mobile */
                margin-right: 0;
                padding-left: 15px; /* Add some side padding on mobile */
                padding-right: 15px;
                border-radius: 0; /* No rounded corners on mobile for full screen feel */
                box-shadow: none; /* Remove shadow for cleaner mobile look */
            }
            nav {
                flex-direction: row; /* Keep tabs horizontal on mobile */
                overflow-x: auto; /* Enable horizontal scrolling for tabs */
                -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS */
                justify-content: flex-start; /* Align tabs to the start */
                padding-left: 10px;
                padding-right: 10px;
                border-radius: 0; /* No rounded corners for nav on mobile */
                margin-bottom: 0px; /* Less bottom margin on mobile */
                white-space: nowrap; /* Prevent tabs from wrapping */
            }
            nav button {
                flex-grow: 1; /* Each tab takes equal space */
                flex-basis: 0; /* To make flex-grow work properly with equal widths */
                margin-bottom: 0; /* No bottom margin for buttons in horizontal nav */
                border-radius: 0; /* Square tabs on mobile */
                padding-top: 12px; /* Adjust padding for mobile tabs */
                padding-bottom: 12px;
                font-size: 0.9em; /* Slightly smaller font on mobile tabs */
            }


            .tab-content {
                padding: 10px; /* Adjust padding for tab content on mobile */
            }

            .graph-container {
                height: 250px; /* Slightly smaller graphs on mobile */
            }
        }

        /* Smaller buttons for calendar navigation */
        .btn.btn-small {
            padding: 5px 10px;
            font-size: 0.8em;
        }

        .calendar-container {
            gap: 2px; /* Reduce gap between days on smaller screens */
        }
        .calendar-day {
            padding: 8px 5px; /* Reduce padding inside day cells */
            font-size: 0.85em; /* Slightly smaller font in calendar days */
        }


        @media (max-width: 768px) {
            .container {
                margin: 10px;
                padding: 10px;
                padding: 0px;
            }
            nav {
                flex-direction: row; /* Ensure row direction for swipeable tabs */
            }
            nav button {
                width: auto; /* Adjust width for mobile tabs to fit content */
                text-align: center;
                margin-bottom: 0px; /* No bottom margin for buttons in horizontal nav */
            }
        }


        nav button i {
            font-size: 25px;
            padding-bottom: 10px;
        }

#currentProfileName{
    position: relative;
    top: 7px;
}