/* General Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #f7f7f7; /* Light grey background as seen outside the app body in screenshots */
    color: #333333; /* Default dark text color */
}

.app-container {
    /*max-width: 420px; /* Approximate mobile screen width, adjust as needed */
    margin: 0 auto;
    background-color: #FFFFFF; /* White for the app body background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0,0,0,0.15); /* Shadow for app container */
    position: relative; /* For fixed footer if we bring it back exactly like mobile */
}

/* Main Content Area */
.app-content {
    flex-grow: 1;
    /* The content will now start after the yellow banner, no extra padding needed here */
    overflow-y: auto; /* Allow content to scroll */
    padding-bottom: 70px; /* Space for bottom nav */
}

.content-wrapper {
    /* Let's not add padding here, sections will control their own padding */
    padding: 0; 
}

/* Main Yellow Header Banner styling */
.main-header-banner {
    background-color: #FFDE59; /* A yellow shade from the image */
    padding: 20px 15px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.app-logo {
    font-family: 'Pacifico', cursive;
    text-align: center;
    font-size: 2.5em;
    color: #000000;
    margin: 0 0 15px 0;
    font-weight: 400;
}

/* Big Promo Card (e.g., Blood Sugar) */
.promo-card {
    background-color: #FFFFFF; /* White card */
    color: #424242;
    padding: 20px;
    border-radius: 20px; /* More rounded corners */
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.promo-card-text h1 {
    margin: 0;
    font-size: 1.2em; /* Slightly larger */
    font-weight: 500; /* Regular weight for most text */
    line-height: 1.4;
    color: #000;
}
.promo-card-text h1 strong {
    font-weight: 700; /* Bolder for "Blood Sugar" */
    color: #000;
}

.promo-card-icon .cute-character-icon {
    width: 45px;
    height: 45px;
    background-color: #3A506B; /* Dark blue/grey circle from image */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF; /* White sparkles */
    font-size: 1.5em; /* Make sparkles bigger */
}

/* Search Bar */
.search-bar-form {
    margin: 0; /* Remove default form margin */
}
.search-bar-container {
    margin-bottom: 15px; /* Spacing below search bar */
    padding: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: #FFFFFF;
    border-radius: 30px; /* More rounded pill shape */
    padding: 12px 20px; /* More padding */
    border: 1px solid #E0E0E0; /* Subtle border like the image */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.search-bar .search-icon {
    color: #757575;
    margin-right: 15px; /* More space */
    font-size: 1em;
}

.search-bar input[type="search"] {
    flex-grow: 1;
    border: none;
    outline: none;
    font-size: 0.95em; /* Slightly larger text */
    background-color: transparent;
    margin: 0 10px 0 0; /* Remove left margin, add right margin */
    padding: 0;
    line-height: 1.4; /* Ensure text is vertically centered */
}

/* Clear default search input styling (e.g., clear button in Webkit) */
.search-bar input[type="search"]::-webkit-search-decoration,
.search-bar input[type="search"]::-webkit-search-cancel-button,
.search-bar input[type="search"]::-webkit-search-results-button,
.search-bar input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

.search-bar .mic-icon {
    color: #757575;
    font-size: 1.2em;
    cursor: pointer;
}

/* Remove the button styles as the button is removed */
/*
.search-bar button.search-submit-btn {
    ...
}
.search-bar button.search-submit-btn .search-icon {
    ...
}
*/

/* Quick Filter Tags */
.quick-filter-tags {
    display: flex;
    justify-content: flex-start; /* Align to the left, as items will scroll */
    gap: 10px;
    overflow-x: auto; /* Enable horizontal scrolling */
    flex-wrap: nowrap; /* Ensure items stay on a single line */
    padding-bottom: 5px; /* Add some padding for the scrollbar if visible */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    /* Optional: Hide scrollbar visually */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.quick-filter-tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.quick-filter {
    flex-shrink: 0; /* Prevent items from shrinking */
    text-align: center;
    background-color: #fff;
    color: #555;
    padding: 10px 5px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #eee;
    text-decoration: none;
    white-space: nowrap;
}

.quick-filter:hover, .quick-filter.active {
    background-color: #644d2a7d;
    color: #fff;
    border-color: #644d2a7d;
}

/* Main Category Tabs */
.main-category-tabs {
    display: flex;
    justify-content: flex-start; /* Align to the left */
    padding: 20px 15px 10px 15px;
    gap: 25px; /* Space between tabs */
    border-bottom: 1px solid #eeeeee;
    overflow-x: auto; /* Allow horizontal scrolling on small screens */
}

.main-category-tab {
    text-decoration: none;
    color: #888; /* Default tab color */
    font-weight: 600;
    font-size: 1.1em;
    padding: 0 2px 10px 2px; /* Bottom padding creates space for the border */
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-bottom-color 0.2s ease;
    white-space: nowrap;
}

.main-category-tab.active,
.main-category-tab:hover {
    color: #000; /* Active tab color */
}

/* Main Category Tabs */
.main-category-tab.active {
    border-bottom-color: #FFC107; /* Yellow underline for active tab */
}

/* Hide original filter tags if they are still somehow rendered */
.filter-tags {
    display: none;
}

/* Hide the redundant category header */
.selected-category-header {
    display: none;
}

.category-content-section {
    padding: 20px 15px; /* Default padding for content sections */
    max-height: calc(100vh - 250px); /* Adjust based on header/footer height */
    overflow-y: auto; /* Enable vertical scrolling */
    padding-bottom: 20px; /* Ensure space at the bottom of the scrollable area */
}

.category-list-item {
    background-color: #e7d2114a; /* Change from F8F9FA to white */
    border-radius: 12px; /* Slightly less rounded */
    padding: 15px;
    margin-bottom: 12px; /* A bit more spacing */
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease-in-out; /* Smooth transition for hover */
    box-shadow: 0 2px 8px rgba(0,0,0,0.07); /* Add shadow from other file */
}

.category-list-item:hover {
    background-color: #fffbeb; /* Light yellow on hover */
    transform: translateY(-2px); /* Lift effect */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Stronger shadow on hover */
}

.category-list-item .item-icon {
    width: 50px; /* Adjust size */
    height: 50px; /* Adjust size */
    flex-shrink: 0;
    margin-right: 15px;
    background-color: #FFF3CD; /* Light yellow background for icon container */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-list-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.category-list-item .item-text {
    line-height: 1.4;
}

.category-list-item .item-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.category-list-item .item-text p {
    margin: 0;
    font-size: 0.85em;
    color: #757575;
}

/* Commenting out old styles that might conflict or are not in the new design */
/* .welcome-banner, .health-categories .category-grid, .recent-activity, .quick-actions might need to be removed or heavily adapted */

.welcome-banner { display: none; } /* Hide old welcome banner */
.health-categories { /* This section will be replaced by .main-category-nav and its content */ }
.category-grid { /* Replaced by .category-list-item structure if showing items */ }
.recent-activity { display: none; } /* Hide old recent activity */
.quick-actions { display: none; } /* Hide old quick actions */


/* Bottom Navigation Bar Styles (copied from previous mobile-like version, ensure it matches) */
.bottom-nav {
    background-color: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 5px 0; /* Reduced padding for compact look */
    position: fixed; /* Fixed footer */
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    max-width: 100%; /* Match app-container */
    margin: 0 auto; /* Center fixed footer */
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999; /* Default icon and text color */
    font-size: 0.7em; /* Smaller font for compact nav */
    padding: 5px;
    flex-grow: 1; /* Ensure items take up space */
}

.nav-item i {
    font-size: 1.6em; /* Icon size */
    margin-bottom: 2px;
}

.nav-item.active i,
.nav-item.active span {
    color: #FFD700; /* Active tab color - Yellow */
}

.nav-item:hover i,
.nav-item:hover span {
    color: #FFC107; /* Hover color - slightly darker yellow */
}

/* Breadcrumb Header */
.breadcrumb-header {
    display: flex;
    align-items: center;
    padding: 20px 15px 10px 15px;
    font-size: 1em;
    color: #555;
}

.breadcrumb-header .back-link {
    font-size: 1.2em;
    color: #FFC107;
    margin-right: 10px;
    text-decoration: none;
}

.breadcrumb-header .breadcrumb-parent,
.breadcrumb-header .breadcrumb-current {
    font-weight: 600;
}

.breadcrumb-header .breadcrumb-current {
    color: #333;
}

.breadcrumb-header .breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* Topic List Styling */
.topic-list-section {
    padding: 0 15px 20px 15px; /* Adjust padding to remove top space */
}

.topic-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFF9C4; /* Light yellow background from image */
    padding: 20px 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
    transition: background-color 0.2s ease;
}

.topic-list-item:hover {
    background-color: #FFECB3;
}

.topic-list-item .topic-item-text {
    flex-grow: 1;
}

.topic-list-item .topic-item-text h3 {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.topic-list-item .topic-item-text p {
    font-size: 0.9em;
    color: #757575;
    margin: 0;
}

.topic-list-item .topic-item-arrow {
    color: #BDBDBD;
    font-size: 1em;
    margin-left: 15px;
}

/* Ensure default link styles don't interfere too much */
/* It's better to style links specifically rather than broad 'a' rules */
/* Example:
 a.some-specific-link {
    color: blue;
 }
*/

/* Header for when a single category is selected */
.selected-category-header {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 0;
}

.selected-category-header.with-back-arrow {
    padding-left: 15px;
}

.selected-category-header .back-to-categories {
    color: #333;
    text-decoration: none;
    font-size: 1.5em;
    margin-right: 15px;
}

.selected-category-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #333333;
}

/* Hide original filter tags if they are still somehow rendered */
.filter-tags {
    display: none;
}

/*
.selected-category-header {
    display: none;
}
*/

.category-content-section {
    padding: 20px 15px;
}

/*
 * Survey Page Specific Styles
 * -------------------------------------------------- */

.survey-page .content-wrapper {
    padding: 0;
}

.survey-page .survey-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.survey-page .survey-header h1 {
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 600;
    transform: translateX(-12px); /* Half the back link width */
}

/* Make survey page background grey to contrast with white cards */
.content-wrapper.survey-page {
    background-color: #f8f9fa;
}

/* New Survey Banner Styles */
.survey-page .survey-banner {
    background-color: #FFD700; /* Assuming the same yellow */
    padding: 15px;
    border-radius: 0 0 25px 25px;
}

.survey-page .survey-banner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.survey-page .survey-banner-header h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.survey-page .survey-banner-header .back-link {
    font-size: 1.2rem;
    color: #000;
}

.survey-page .survey-banner-header .mic-icon-placeholder {
    visibility: hidden; /* Keep space for alignment */
    font-size: 1.2rem;
}

.survey-page .search-bar-container {
     background-color: #ffffff;
     border-radius: 25px; /* Make it pill-shaped */
     box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.survey-page .search-bar {
    background-color: #fff;
    border: 1px solid transparent;
}

.survey-form-container {
    padding: 20px 15px;
}

.survey-question-block {
    background-color: #FFFBEB; /* Light yellow background for question cards */
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.survey-question-block fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.survey-question-block legend {
    width: 100%;
}

.survey-question-block .question-number {
    font-size: 0.9em;
    font-weight: 700;
    color: #757575;
    margin-bottom: 5px;
    display: block;
}

.survey-question-block .question-text {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
    display: block;
}

.survey-question-block .options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.survey-question-block .option-item {
    display: flex;
}

.survey-question-block input[type="radio"] {
    display: none; /* Hide the actual radio button */
}

.survey-question-block label {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f0f0f0; /* Light grey for options */
    color: #555;
    border-radius: 20px; /* Pill shape */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

/* Yellow hover for unselected options */
.survey-question-block label:hover {
    background-color: #FFFBEB; /* Very light yellow */
    border-color: #FFD700;
}

.survey-question-block input[type="radio"]:checked + label {
    background-color: #FFD700; /* Yellow background for selected */
    color: #000;
    font-weight: 600;
    border-color: #FFD700;
}

.submit-button-container {
    text-align: center;
    margin-top: 30px;
}

.submit-survey-btn {
    background-color: #FFDE59;
    color: #333;
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-survey-btn:hover {
    background-color: #FFC107;
}

/* Survey Result Page Styles */
.survey-result-wrapper {
    padding: 20px 15px;
    text-align: center;
}

.survey-result-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
}

.survey-result-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.result-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.result-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

.retake-survey-link {
    display: inline-block;
    background-color: #FFD700;
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

.retake-survey-link:hover {
    background-color: #f0c400;
}

.submit-button-container {
    text-align: center;
    padding: 10px 15px 30px;
}

.gauge-container {
    max-width: 250px;
    margin: 0 auto 20px auto;
    position: relative;
}

.info-message {
    background-color: #e6f7ff;
    color: #005c99;
    border: 1px solid #b3e0ff;
}

/* --- Page Headers --- */
.main-header-banner .page-title {
    text-align: center;
    color: #333;
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

/* --- Profile Page --- */
.profile-page-container {
    padding: 20px 15px;
}

.profile-info-card {
    background-color: #ffd7003d;
    border-radius: 12px;
    box-shadow: 0 4px 15px #ffc10785;
    padding: 15px 25px;
    margin-top: 20px;
    margin-bottom: 25px;
}

.profile-info-item {
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1em;
}

.profile-info-item:last-child {
    border-bottom: none;
}

.info-label {
    color: #666;
    font-weight: 500;
}

.info-value {
    color: #333;
    font-weight: 600;
}

.profile-actions {
    text-align: center;
}

.logout-button {
    display: inline-block;
    padding: 12px 40px;
    background-color: #E57373; /* Softer red */
    color: white;
    text-decoration: none;
    border-radius: 25px; /* Pill shape */
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logout-button:hover {
    background-color: #D85C5C; /* Darker shade */
}

/* --- Login/Registration Forms --- */
.auth-container {
    max-width: 400px; /* A good narrow width for focus */
    margin: 30px auto 40px auto; /* Balanced vertical margin */
    padding: 40px;
    background-color: #ffffff;
    border-radius: 24px; /* Softer, larger radius */
    box-shadow: 0 8px 30px rgba(0,0,0,0.07); /* More subtle shadow */
    text-align: center;
}

.auth-container h2 {
    color: #2c2c2c;
    margin-bottom: 12px;
    font-size: 1.8em; /* Adjusted to help fit on one line */
    font-weight: 600;
}

.auth-container p {
    color: #777;
    margin-bottom: 40px;
    line-height: 1.6;
    font-size: 0.95em;
}

.auth-container .form-group {
    margin-bottom: 25px;
    text-align: left;
}

.auth-container .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

/* Updated base input style */
.auth-container input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px; /* Softly rounded corners for inputs */
    box-sizing: border-box;
    font-size: 1em;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
}

.auth-container input:focus {
    outline: none;
    border-color: #FCDA5B;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(252, 218, 91, 0.3);
}

.auth-container .mobile-input-group {
    display: flex;
    align-items: center;
}

.auth-container .country-code {
    padding: 15px;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 12px 0 0 12px; /* Match input radius */
    color: #555;
}

.auth-container .mobile-input-group input {
    border-radius: 0 12px 12px 0; /* Adjust radius for group */
}

/* Updated button style */
.auth-container .auth-button {
    width: 100%;
    padding: 16px;
    background-color: #FCDA5B;
    color: #333;
    border: none;
    border-radius: 12px; /* Match input fields for a consistent look */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(252, 218, 91, 0.3);
}

.auth-container .auth-button:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    box-shadow: none;
}

.auth-container .auth-button:hover:not(:disabled) {
    background-color: #fbc72d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(252, 218, 91, 0.5);
}

.auth-container .switch-form-link {
    margin-top: 25px;
    font-size: 0.9em;
}

.auth-container .switch-form-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.auth-container .switch-form-link a:hover {
    text-decoration: underline;
}

/* --- Form Messages (Success/Error) --- */
.form-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9em;
    text-align: center;
}

.form-message.error {
    background-color: #f8d7da; /* Light pink background */
    color: #dc3545; /* A clear, strong red for the text */
    border: 1px solid #f5c6cb;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* --- Search Results Page --- */
.search-results-page .search-results-section {
    padding: 0 15px 20px 15px;
}

.search-results-page .search-results-header {
    margin-bottom: 25px;
}

.search-results-page .search-results-header h2 {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.search-results-page .results-group-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin: 25px 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

/* Style for individual result items */
.search-result-item {
    background-color: #fce175; /* Light yellow background from screenshots */
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #fefede;
}

.search-result-item .item-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    margin-right: 15px;
    background-color: #fff; /* White circle behind icon */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.search-result-item .item-icon img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.search-result-item .item-text h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.search-result-item .result-context {
    font-size: 0.85em;
    color: #777;
    margin: 0;
}

.search-result-item .topic-item-arrow {
    margin-left: auto;
    color: #aaa;
}

.search-result-item.topic-result .item-icon {
    background-color: #E3F2FD; /* Lighter blue for topics */
}

/* My Surveys Page (survey_history) */
.no-surveys-message {
    text-align: center;
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin: 20px;
}

.no-surveys-message p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #FFDE59;
    color: #333;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #ffca28;
}

.survey-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.survey-history-item {
    background-color: #e5ea4754;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.survey-history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.survey-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.survey-item-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
    line-height: 1.4;
}

.survey-date {
    font-size: 0.8em;
    color: #888;
    white-space: nowrap;
    padding-left: 15px;
    flex-shrink: 0;
    font-weight: 500;
}

.survey-item-body p {
    margin: 10px 0;
    font-size: 1em;
    color: #555;
    display: flex;
    align-items: center;
}

.survey-item-body p strong {
    color: #333;
    font-weight: 600;
    margin-right: 8px;
    min-width: 50px;
}

.risk-level-badge {
    padding: 3px 12px;
    border-radius: 15px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
}

.risk-level-badge.risk-normal { background-color: #4CAF50; /* Green */ }
.risk-level-badge.risk-low { background-color: #2196F3; /* Blue */ }
.risk-level-badge.risk-medium { background-color: #FF9800; /* Orange */ }
.risk-level-badge.risk-high { background-color: #f44336; /* Red */ }
.risk-level-badge.risk-netural { background-color: #795548; /* Brown */ }
.risk-level-badge.risk-unknown { background-color: #9E9E9E; /* Grey */ }


.survey-item-footer {
    text-align: right;
    margin-top: 20px;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #555;
    padding: 10px 22px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.user-survey-count-card {
    text-decoration: none;
    display: block;
    margin-bottom: 20px;
}

/* Custom styles for My Surveys page to match the screenshot */
.my-surveys-page .page-header {
    background-color: #FFDE59;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.my-surveys-page .page-header .back-link {
    font-size: 1.6em;
    color: #333;
    text-decoration: none;
    margin-right: 20px;
    display: inline-block; /* Changed back from block */
    margin-bottom: 0; /* Changed back from 15px */
}

.my-surveys-page .page-header h1 {
    margin: 0;
    font-size: 1.25em;
    font-weight: 700;
    color: #333;
    line-height: 1; /* Changed back */
}

.my-surveys-page .category-content-section {
    background-color: #f8f9fa; /* Light grey background for the content area */
    min-height: calc(100vh - 140px); /* Adjust based on header/footer height */
}

/* Immediate Action Page Styles */
.immediate-action-page .page-header {
    background-color: #f44336; /* Red for high alert */
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

.immediate-action-page .page-header h1,
.immediate-action-page .page-header .back-link {
    color: #fff;
    text-decoration: none;
}

.immediate-action-page .page-header .back-link {
    font-size: 1.6em;
    margin-right: 20px;
    display: inline-block;
    margin-bottom: 0;
}

.immediate-action-page .page-header h1 {
    font-size: 1.25em;
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

.action-banner {
    background-color: #fff3cd;
    color: #664d03;
    padding: 20px;
    margin: 20px 15px;
    border-radius: 12px;
    border: 1px solid #ffecb5;
    display: flex;
    align-items: center;
}

.action-banner .action-icon {
    font-size: 2.5em;
    margin-right: 20px;
}

.action-banner .action-text h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

.action-banner .action-text p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.action-banner .action-text .appointment-btn {
    background-color: #f44336;
    color: #fff;
    font-weight: 700;
}

.immediate-action-page .section-title {
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 15px 15px 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.high-risk-alert-banner {
    background-color: #f44336;
    color: #fff;
    padding: 15px 20px;
    margin: 20px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.high-risk-alert-banner .action-icon {
    font-size: 1.8em;
    margin-right: 15px;
}

.high-risk-alert-banner .action-text h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.high-risk-alert-banner .action-text p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9em;
}

.high-risk-alert-banner .btn-primary {
    background-color: #fff;
    color: #f44336;
    flex-shrink: 0;
    margin-left: 15px;
} 