body {
    font-family: 'Nunito', 'Segoe UI', 'Roboto', sans-serif;
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: auto;
    box-sizing: border-box; /* Ensure consistent sizing */
    padding-top: 62px; /* This is to accomodate the fixed top navigation, height = 62px, on screens >= 992px */
    /*padding-bottom: 52px; /* This is to accomodate the fixed bottom bar for all scren sizes */
    background-color: #4fa6f7;
}

/* Smaller padding for mobile (screens narrower than 576px) */
@media (max-width: 992px) {
    body {
        padding-top: 40px; /* or whatever you find optimal */
    }
}

.uppercase-text {
    text-transform: uppercase;
}

.three-column-list {
    column-count: 3;
    column-gap: 2em;
}

.alphabet-button {
  background-color: rgb(122, 48, 68);
  color: white;
  padding: 1px 1px;
  border-radius: 5px;
}

.youtube-embed-responsive-16-9 {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: auto;  
    aspect-ratio: 16 / 9;

  }

  .youtube-embed-responsive-9-16 {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: auto;  
    aspect-ratio: 9 / 16;

  }
button.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}  
/* this is to make the Invite parent on the parent_dashboard page look better */
.invite-parent-btn {
    display: inline-block;
    text-align: center;
    font-weight: bold;
    padding: 12px 24px;
    border-radius: 8px;
    text-transform: uppercase;
    background-color: #8e9046; /* Blue color */
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    border: 2px solid #3d3d3e; /* Border color */
    transition: all 0.3s ease-in-out; /* Smooth hover effect */
}
/* Hover Effect */
.invite-parent-btn:hover {
    background-color: #3b3e27; /* Darker Blue */
    border-color: #595736;
    color: white;
    text-decoration: none;
}
/* GSP added new class  to make images responsive */
.responsive {
    width: 100%;
    max-width: 1200px;
    height: auto;
    margin: auto;   
}
/* GSP added new class  to make images responsive */

h1, h2, h3, h4, h5, h6 {
    font-weight: 100;
    font-family: 'Nunito', sans-serif;
}

hr {
    border-color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    font-size: 2.25rem;
    line-height: 2rem;
}

/* Default tab styles */
.nav-tabs .nav-link {
    color: #007bff; /* Default text color */
}

/* Change color of the active tab */
.nav-tabs:not(.user-page-nav-tabs) .nav-link.active {
    background-color: rgb(122, 48, 68);/* Background color for active tab */
    color: white !important; /* Text color for active tab */
    font-weight: bold;
}

@media (min-width: 992px) {
    section h2 {
        font-size: 3rem;
        line-height: 2.5rem;
    }
}

.bg-dark {
    background-color: #ffffff !important;
}

.btn-social {
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.25rem;
    line-height: 2rem;
    color: #fff;
}
header.masthead {
  width: 100%;
  padding-top: 16px; 
  display: block;
  position: relative;

}

header.masthead h1 {
    font-size: 1.5rem;
    line-height: 3rem;
}

header.masthead h2 {
    font-size: 1.3rem;
}

@media (min-width: 992px) {

    header.masthead h1 {
        font-size: 4.75em;
        line-height: 4rem;
    }
    header.masthead h2 {
        font-size: 1.75em;
    }
}

.brand-statement, .about-me {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: 0;
    line-height: 1.5;
    text-align: left;
    
}

.skills-row {
    margin-top: 50px;
}

.portfolio {
    margin-bottom: -15px;
}

.portfolio .portfolio-item {
    position: relative;
    display: block;
    max-width: 25rem;
    margin-bottom: 15px;
}

.portfolio .portfolio-item .portfolio-item-caption {
    -webkit-transition: all ease 0.5s;
    transition: all ease 0.5s;
    opacity: 0;
    background-color: #007bff;
}

.portfolio .portfolio-item .portfolio-item-caption:hover {
    opacity: 1;
}

.portfolio .portfolio-item .portfolio-item-caption .portfolio-item-caption-content {
    font-size: 1.5rem;
}

@media (min-width: 576px) {
    .portfolio {
        margin-bottom: -30px;
    }
    .portfolio .portfolio-item {
        margin-bottom: 30px;
    }
}

.portfolio-modal .portfolio-modal-dialog {
    padding: 3rem 1rem;
    min-height: calc(100vh - 2rem);
    margin: 1rem calc(1rem - 8px);
    position: relative;
    z-index: 2;
    -webkit-box-shadow: 0 0 3rem 1rem rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 3rem 1rem rgba(0, 0, 0, 0.5);
}

.portfolio-modal .portfolio-modal-dialog .close-button {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.portfolio-modal .portfolio-modal-dialog .close-button i {
    line-height: 38px;
}

.portfolio-modal .portfolio-modal-dialog h2 {
    font-size: 2rem;
}

@media (min-width: 768px) {
    .portfolio-modal .portfolio-modal-dialog {
        min-height: 100vh;
        padding: 5rem;
        margin: 3rem calc(3rem - 8px);
    }
    .portfolio-modal .portfolio-modal-dialog h2 {
        font-size: 3rem;
    }
}

.education {
    margin-bottom: -15px;
}

.education .location {
    font-size: 1.6rem;
    font-weight: 500;
}

.education .credential-date {
    font-size: 1rem;
    font-weight: 300;
}

.education .credential-description {
    max-width: 700px;
}

.education .credential-divider {
    border-color: rgba(0, 0, 0, 0.3);
}

.footer {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color:black;
    color: #fff;
}

.copyright {
    background-color: #1a252f;
}

a:focus, a:hover, a:active {
    color: #462525;
}

.close-link {
    color: #30336b;
}

.close-link:focus,
.close-link:hover,
.close-link:active {
    color: #30336b;
}

.btn {
    border-width: 2px;
}

.bg-primary {
    background-color: #007bff !important;
}

.bg-secondary {
    background-color: #ffffff !important;
}

.text-primary {
    color: #151ed4 !important;
}

.text-secondary {
    color: #2c3e50 !important;
}

.btn-primary {
    background-color: #30336b;
    border-color: #30336b;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #30336b !important;
    border-color: #30336b !important;
    color: #fff;
}

h4.mb-0 {
    font-size: clamp(1.2rem, 2.5vw, 2rem); /* Min 1.2rem, fluid scaling, Max 2rem */
    font-weight: bold;
    margin: 0;
}

@media (max-width: 768px) {
    h4.mb-0 {
        font-size: 1.3rem;
        font-weight: bold;
        line-height: 1.4;
        height: calc(2 * 1.4em);  /* Calculate height for 2 lines */
    }
}

@media (max-width: 480px) {
    h4.mb-0 {
        font-size: 1rem;
        line-height: 1.3;
        font-weight: bold;
        height: calc(2 * 1.4em);  /* Calculate height for 2 lines */
    }
}

.bottom-bar {
    position: fixed; /* Fix the bar to the bottom of the viewport */
    bottom: 0; /* Align the bar at the bottom */
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1200px;
    background-color: #333; /* Dark background */
    color: white; /* Text color */
    text-align: center; /* Center-align content */
    padding: 10px 0; /* Add some vertical padding */
    z-index: 1000; /* Ensure it stays above other content */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add shadow for depth */
}

.bottom-bar a {
    color: white; /* Link color */
    text-decoration: none; /* Remove underline from links */
    padding: 0 15px; /* Spacing between links */
}

.bottom-bar a:hover {
    color: #4CAF50; /* Highlight on hover */
}

/* Home page sticky CTA behavior */
#home-html-page #home-sticky-signup-bar {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

#home-html-page #home-sticky-signup-bar.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

#home-html-page .home-sticky-signup-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #af6b4c;
    color: #ffffff;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

#home-html-page .home-sticky-signup-btn:hover,
#home-html-page .home-sticky-signup-btn:focus {
    background-color: #92563d;
}

/* ----------------------------------------- */
/* Default layout for larger screens*/
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 50px; /* Space between columns */
    height: auto; /* Full viewport height */
    padding: 30px; /* Optional padding around the grid container */
}

/* Column styles */
.grid-column {
    /*background-color: #f4f4f4; Light background for visibility
    padding: 20px; /* Inner spacing */
    text-align: center; /* Center align content */
    /* background-color: #f4f4f4; */
    /*border: 1px solid #ddd; Optional border
    border-radius: 5px; /* Optional rounded corners */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr; /* Switch to a single column layout */
        gap: 20px; /* Space between columns */
    }
}

.horizontal-line-border {
    height: 2px; /* Line thickness */
    background-color: white; /* White color for the line */
    width: 100%; /* Full width */
    margin: 0;
}

/* ----------------------------------------- */
/* Default layout for larger screens - REVERSE ORDER for smaller screens */
.grid-container-reverse-order {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-areas: "column1 column2"; /* Default order */
    gap: 50px; /* Space between columns */
    height: auto; /* Adjust height based on content */
    padding: 30px; /* Optional padding around the grid container */
}

.grid-item-reverse {
    
    /* background-color: #f4f4f4; */
    text-align: center;
}

/* Assign grid areas */
.item-1 {
    grid-area: column1;
}

.item-2 {
    grid-area: column2;
}

/* Reverse order on smaller screens */
@media (max-width: 768px) {
    .grid-container-reverse-order {
        grid-template-columns: 1fr; /* Single column layout */
        grid-template-areas: 
            "column2"
            "column1"; /* Reverse the order */
    }
}
/* Default layout for larger screens*/
.grid-container-3-columns {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr; /* Two equal columns */
    gap: 20px; /* Space between columns */
    height: auto; /* Full viewport height */
    padding: 20px; /* Optional padding around the grid container */
}

/* Column styles */
.grid-column-3-columns {
    /* background-color: #f4f4f4; Light background for visibility */
    padding: 10px; /* Inner spacing */
    text-align: left; /* Center align content */
    /* background-color: #f4f4f4; */
    /*border: 1px solid #ddd; Optional border
    border-radius: 5px; /* Optional rounded corners */
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .grid-container-3-columns {
        grid-template-columns: 1fr; /* Switch to a single column layout */
    }
}

.white-link {
    color: white; /* Make the text white */
    text-decoration: none; /* Remove the underline */
}
.white-link:hover {
    text-decoration: underline; /* Add underline on hover */
    color: white; /* Make the text white */
}

/* Footer terms links - ToS, Privacy Policy, Cookies */
.footer-terms-links a {
    margin-right: 10px; /* Adjust as needed */
    text-decoration: none;
    color: #ffffff; /* optional: match your footer theme */
}
.footer-terms-links a:last-child {
    margin-right: 0; /* No spacing after the last link */
}
.footer-terms-links a:hover {
    text-decoration: underline;
}
/* Style for the popup */
/* Style for the popup and overlay */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    max-height: 400px;
    overflow-y: auto;
}

.popup-content h2 {
    margin: 0 0 10px;
    font-size: 1.5rem;
}

.popup-content p {
    margin: 0 0 20px;
    font-size: 1rem;
}

.popup-content button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content .close-button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #45a049;
}

/* Disable interactions for the entire page when the popup is visible */
body.popup-visible {
    pointer-events: none;
}

body.popup-visible .popup {
    pointer-events: auto;
}

/* Normal state for no-hover-change links */
.no-hover-change {
    color: blue; /* Keeps the current color */
    text-decoration: underline; /* Optional: removes underline */
}

/* Hover state for no-hover-change links */
.no-hover-change:hover {
    color: brown; /* Keeps the current color on hover */
    text-decoration: underline; /* Ensures underline appears on hover */
}
/* Table - used on the policy_archive page */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
th, td {
    text-align: left;
    padding: 10px;
    border: 1px solid #ddd;
}
th {
    background-color: #f4f4f4;
    color: #2c3e50;
}
tr:nth-child(even) {
    background-color: #f9f9f9;
}
/* Code for the parent-signup page starts here */
.form-container {
    width: 100%;
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group {
    display: flex;
}

.input-group select {
    width: 30%;
    margin-right: 10px;
}

.btn {
    display: inline-block;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn:disabled {
    background-color: #d6d6d6;
    cursor: not-allowed;
}

/* Popup */
/* Popup styles */
#signup-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

#signup-popup.active {
    display: block;
}

#signup-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#signup-popup-overlay.active {
    display: block;
}

/* Disable interactions when popup is visible */
body.popup-visible {
    pointer-events: none;
}

body.popup-visible #signup-popup,
body.popup-visible #signup-popup-overlay {
    pointer-events: auto;
}
/* Code for the parent-signup page ends here */

/* Style the modal and table for consistency. */
#add-child-modal .modal-content {
    border-radius: 8px;
    padding: 20px;
}

#add-child-modal .modal-title {
    font-weight: bold;
    font-size: 1.5rem;
}

#children-tasks table {
    margin-top: 20px;
}

#children-tasks th, #children-tasks td {
    text-align: center;
    vertical-align: middle;
}
/* Styles for task rows */
/* Styles for task rows */
/* Styles for the task rows */
/* Styles for task rows */
.task-row {
    transition: background-color 0.3s ease;
}

.task-row.completed {
    background-color: #d4edda; /* Light green for completed tasks */
    transition: background-color 0.3s ease;
}

/* Rating icons container */
.rating-icons {
    display: flex;
    gap: 8px; /* Spacing between emojis */
    cursor: pointer;
    justify-content: start; /* Align emojis to the left */
}

/* Default styling for rating icons */
.rating-icon {
    fill: grey; /* Default gray color */
    transition: transform 0.2s ease, fill 0.2s ease;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

/* Enlarge icons on hover */
.rating-icon:hover {
    transform: scale(1.5); /* Slightly larger size on hover */
}

/* Styling for selected icons */
.rating-icon.selected {
    transform: scale(1.5); /* Slightly larger for selected state */
}

/* Custom selected colors for each emoji */
.rating-icon[data-rating="1"].selected {
    fill: darkred; /* Angry face */
}

.rating-icon[data-rating="2"].selected {
    fill: orange; /* Thumbs down */
}

.rating-icon[data-rating="4"].selected {
    fill: green; /* Thumbs up */
}

.rating-icon[data-rating="5"].selected {
    fill: crimson; /* Heart */
}

/* Feedback input styling */
.feedback-input {
    width: 100%;
    max-width: 300px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Feedback button styling */
.feedback-submit-btn {
    margin-left: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
}

.feedback-submit-btn:hover {
    background-color: #0056b3;
}
.nav-tabs .nav-link {
    font-weight: bold;
}
/* This is to make the Create New Task appear in bold on the page 'Parent_dashboard.html' while creating a custom task */
#recent-custom-tasks option:last-child {
    font-weight: bold;
}
/* Make Table Scrollable on Small Screens */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Enables horizontal scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for mobile */
}
/* Notification Bell Styling */
#notification-bell-container {
    position: relative;
    /* font-weight: bold; */
}
.bell-icon {
    position: relative;
    /* font-size: 18px; */
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    /* font-size: 14px; */
    /* font-weight: bold; */
    /* padding: 3px 6px; */
    border-radius: 50%;
}
/* Style for the Top-Level Tabs (Family Members) */
.nav-tabs {
    border-bottom: 3px solid #e3940c; /* Blue underline for separation */
    font-size: 18px; /* Bigger text for visibility */
    font-weight: bold;
}

.nav-tabs .nav-item {
    margin-right: 5px; /* Space between family members */
}

.nav-tabs .nav-link {
    color: #333; /* Dark text */
    background: #f8f9fa; /* Light background */
    border-radius: 5px 5px 0 0;
    padding: 10px 20px;
    transition: all 0.3s ease-in-out;
}

.nav-tabs .nav-link:hover {
    background: #858586; /* Light hover effect */
    color: #007bff;
}

.nav-tabs .nav-link.active {
    background: #e0a70a; /* Active tab blue */
    color: white;
    border-bottom: 7px solid #e56606;
}

/* Style for the Inner Sub-Tabs (Tasks, Notifications, etc.) */
.nav-pills {
    margin-top: 5px;
    background: #f1f1f1; /* Light gray background for distinction */
    /* padding: 5px; */
    border-radius: 5px;
}

.nav-pills .nav-link {
    color: #555;
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.nav-pills .nav-link:hover {
    background: #d4edda; /* Light green on hover */
    color: #155724;
}

.nav-pills .nav-link.active {
    background: #74df8d; /* Green active tab */
    color: white;
    border-bottom: 3px solid #6e7e1e;
}

/* Add Padding & Distinction Between Sections */
.tab-content {
    padding: 5px;
    background: #ffffff; /* White background */
    border: 1px solid #5f5959;
    border-radius: 5px;
    margin-top: 5px;
}
/* General Styling of the manage my family page*/
/* General Container Styling */
/* General Container Styling */
/* General Family Tree Container */
/* General Family Tree Container */
.family-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 1000px;
    margin: 20px auto;
    text-align: center;
    position: relative;
}

/* Family Profile Box */
.family-profile-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.family-profile-box h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.family-profile-box .profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.family-profile-box .family-name-box {
    font-size: 24px;
    font-weight: bold;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    border: 2px solid #ddd;
    width: 100%;
}

/* Parents Box */
.family-parents-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #e8f0ff;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-bottom: 40px;
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevents wrapping */
}

.family-parents {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: max-content; /* Ensures flexbox does not shrink */
}

/* Parent Profile Card */
.family-parents .family-member {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 200px; /* Fixed width to prevent shrinking */
    max-width: 250px;
    min-width: 200px; /* Prevents shrinking */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure Parent Profile Images Stay Fixed Size */
.family-parents .family-member .profile-pic {
    width: 150px; /* Fixed width */
    height: 150px; /* Fixed height */
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #ccc;
}

/* Children Box */
.family-children-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    margin-top: 40px;
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevents wrapping */
}

.family-children {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    width: max-content; /* Ensures flexbox does not shrink */
}

/* Child Profile Card */
.family-children .family-member {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    width: 180px; /* Fixed width */
    max-width: 220px;
    min-width: 180px; /* Prevents shrinking */
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure Child Profile Images Stay Fixed Size */
.family-children .family-member .profile-pic {
    width: 150px; /* Fixed width */
    height: 150px; /* Fixed height */
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #ccc;
}
/* Responsive Fix for Mobile Screens */
@media screen and (max-width: 768px) {
    .family-parents-container, .family-children-container {
      overflow-x: auto; /* Enables horizontal scrolling on smaller screens */
      padding-bottom: 10px; /* Provides space for scrollbar */
    }

    .family-parents, .family-children {
      flex-wrap: nowrap; /* Ensures items stay in a single row */
    }
}

@media screen and (max-width: 480px) {
    .family-tree-container {
        width: 95%;
    }

    .family-profile-box {
        max-width: 400px;
    }

    .family-parents-container, .family-children-container {
        max-width: 100%;
    }

    /* Ensure Fixed Image Sizes in Mobile */
    .family-parents .family-member .profile-pic,
    .family-children .family-member .profile-pic {
        width: 150px;
        height: 150px;
    }
}
/* I created the below for the parent_dashboard page - user profile */
/* Cover Image: Full Width */
.cover-img {
    width: 100%;
    max-height: 250px;  /* Adjust height as needed */
    object-fit: cover;
}

/* Profile Section */
.profile-container {
    display: flex;
    align-items: center;
}

/* Profile Picture */
.profile-img {
    width: 70px; /* Adjust size as needed */
    height: 70px;
    object-fit: cover;
    border: 3px solid #ddd; /* Optional: Adds a border */
}

/* Profile Info */
.profile-info {
    flex: 1;
}
/* For the Search form on the My Cirle -> Grow Circle tab */
.form-check-inline {
    margin-right: 1.5rem;
    font-size: 0.95rem;
}
.form-check-input {
    margin-top: 0.3rem;
}
/* This is for the form that appears when a user click on Leave Family on 'My Settings' page */
/* Scoped only to the Leave Family modal using a parent wrapper */
#leave-family-modal {
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.4);
}

#leave-family-modal .modal-content {
background: #fff;
margin: 10% auto;
padding: 20px;
width: 90%;
max-width: 500px;
border-radius: 8px;
position: relative;
}

#leave-family-modal .modal-actions {
margin-top: 15px;
display: flex;
justify-content: space-between;
}

#leave-family-modal .danger-button {
background: crimson;
color: white;
padding: 10px;
border: none;
border-radius: 4px;
}

#leave-family-modal .confirm-btn {
background: darkred;
color: white;
padding: 8px 16px;
border: none;
border-radius: 4px;
}

#leave-family-modal .neutral-btn,
#leave-family-modal .cancel-btn {
background: #aaa;
color: white;
padding: 8px 16px;
border: none;
border-radius: 4px;
}

#leave-family-modal .close-button,
#leave-family-modal .leave-family-close-button {
position: absolute;
top: 10px;
right: 15px;
font-size: 24px;
font-weight: bold;
color: #333;
cursor: pointer;
user-select: none;
}

#leave-family-modal .close-button:hover,
#leave-family-modal .leave-family-close-button:hover {
color: crimson;
}

/* Scoped modal styling for account actions on My Settings */
#deactivate-account-modal,
#delete-account-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
}

#deactivate-account-modal .account-action-modal-content,
#delete-account-modal .account-action-modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 20px;
    width: 92%;
    max-width: 520px;
    border-radius: 10px;
    position: relative;
}

.account-action-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.account-action-close-button:hover {
    color: #c62828;
}

#deactivate-account-modal input,
#delete-account-modal input {
    width: 100%;
    margin-bottom: 10px;
    padding: 9px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

#delete-account-modal .delete-impact-ack-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

#delete-account-modal .delete-impact-ack-checkbox {
    width: auto;
    margin: 0;
    transform: none;
    flex: 0 0 auto;
}

#delete-account-modal .delete-impact-ack-label {
    margin: 0;
    line-height: 1.3;
}

#deactivate-account-modal .modal-actions,
#delete-account-modal .modal-actions {
    margin-top: 8px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#deactivate-account-modal .confirm-btn,
#delete-account-modal .confirm-btn {
    background: #b71c1c;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
}

#deactivate-account-modal .confirm-btn:disabled,
#delete-account-modal .confirm-btn:disabled {
    background: #d6d6d6;
    color: #ffffff;
    cursor: not-allowed;
}

#deactivate-account-modal .cancel-btn,
#delete-account-modal .cancel-btn {
    background: #8a98ab;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
}

#delete-account-modal .delete-success-view {
    text-align: center;
    padding: 12px 0;
}

#delete-account-modal .delete-success-card {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    border-radius: 12px;
    padding: 22px 16px;
}

#delete-account-modal .delete-success-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 8px;
}

#delete-account-modal .delete-success-message {
    font-size: 1.05rem;
    color: #1f2937;
}

#delete-account-modal .delete-success-redirect {
    font-size: 0.95rem;
    color: #4b5563;
}
/* CSS localized to the connection tab on My Circle Connections */
.connections-tab .connection-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.connections-tab .profile-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ccc;
}

.connections-tab .middle-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.connections-tab .name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.connections-tab .short-text {
    font-size: 0.85rem;
    color: #666;
}

.connections-tab .connected-date {
    font-size: 0.8rem;
    color: #999;
}

.connections-tab .right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 80px;
}

.connections-tab .icon-btn {
    font-size: 1.2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #007bff;
    padding: 0.3rem;
}

.connections-tab .icon-btn:hover {
    color: #0056b3;
    background-color: #f1f1f1;
    border-radius: 50%;
}

.connections-tab .three-dots {
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.3rem;
    color: #444;
    border-radius: 50%;
}

.connections-tab .three-dots:hover {
    background-color: #f1f1f1;
}

.connections-tab .dropdown-wrapper {
    position: relative;
}

.connections-tab .dropdown-menu {
    position: absolute;
    right: 0;
    top: 1.8rem;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 5px;
    width: 140px;
    z-index: 100;
}

.connections-tab .dropdown-item {
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    color: #333;
}

.connections-tab .dropdown-item:hover {
    background-color: #f2f2f2;
}
/* Grow Circle Suggestions - on parent_dashboard -> Grow Circle*/
/* Name Search Results - List Items */
.grow-circle-results .list-group-item {
    background-color: #fff;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 0.75rem 1rem;
}

.grow-circle-results .profile-img,
.suggestion-card .profile-img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ddd;
    margin-right: 1rem;
}

.grow-circle-results strong,
.suggestion-card strong {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.grow-circle-results small,
.suggestion-card small {
    color: #777;
    font-size: 0.85rem;
}

.mutual-list {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #555;
}

.action-button-area {
    margin-left: 1rem;
}

/* Grid Suggestion Cards */
.grow-circle-grid {
    margin-top: 1rem;
}

.grow-circle-grid .suggestion-card {
    transition: transform 0.2s ease-in-out;
    border-radius: 10px;
    background-color: #fff;
}

.grow-circle-grid .suggestion-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.grow-circle-grid .suggestion-card strong {
    font-size: 1rem;
    font-weight: 600;
}

.grow-circle-grid .suggestion-card .text-muted {
    font-size: 0.85rem;
}

.grow-circle-grid .suggestion-card button {
    margin-top: 0.5rem;
}

/* Responsive Tweaks */
@media (max-width: 576px) {
    .action-button-area {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .grow-circle-results .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* This is for displaying the more connections with this person under Adult -> My Circle -> Connections */
/* Main list styling */
.connection-row {
    position: relative;
    padding: 12px 16px;
  }
  
 /* Profile image */
  .profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }
  
 /* Inline name + description section */
  .middle-section {
    display: flex;
    flex-direction: column;
  }
  
  .name {
    font-weight: 600;
    font-size: 1rem;
  }
  
  .short-text {
    font-size: 0.9rem;
    color: #666;
  }
  
  .connected-date {
    font-size: 0.8rem;
    color: #999;
  }
  
 /* Related connections */
  .related-toggle {
    font-size: 0.88rem;
    margin-top: 6px;
    color: #007bff;
    cursor: pointer;
  }
  
  .related-connections-list {
    list-style-type: none;
    margin: 8px 0 0 0;
    padding-left: 15px;
    font-size: 0.9rem;
  }
  
  .related-connections-list li {
    background-color: #f9f9f9;
    border-radius: 4px;
    padding: 6px 10px;
    margin-bottom: 4px;
    color: #333;
  }
  
 /* Dropdown (used for main connections, not related minors) */
  .dropdown-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .three-dots {
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    padding: 2px 8px;
  }
  
  .dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    min-width: 130px;
    z-index: 9999;
    display: none;
  }
  
  .dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .dropdown-item:hover {
    background-color: #f0f0f0;
  }
  /* This is for correcting the spacing b/w + child connection, chat and three dots on Parent -> My Circle -> conenctions */
.right-section .icon-btn,
.right-section .btn {
  margin-left: 4px;
}

.right-section .icon-btn {
    border: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 4px 8px;
    cursor: pointer;
  }
  
  .dropdown-wrapper {
    position: relative;
    display: inline-block;
  }
  
  .three-dots {
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    padding: 4px;
  }

  .icon-btn {
    background: transparent;
    border: none;
    padding: 4px 6px;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  @media (max-width: 576px) {
    .btn-sm.emoji-icon {
      font-size: 1.1rem;
      padding: 2px 6px;
    }
  }
/* **************************** */  
/* Specifically for chat  */
/* **************************** */

/* Make Contact List Scrollable */
#chat-thread-list {
    scroll-behavior: smooth;
}

/* Common chat message bubble */
.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* Sent messages (by me) */
.chat-message.sent {
    align-items: flex-end;
}

.chat-message.sent .bubble {
    background-color: #d1e7dd; /* Light green */
    color: black;
    padding: 10px 15px;
    border-radius: 20px 20px 5px 20px;
    max-width: 70%;
    word-wrap: break-word;
}

/* Received messages (by others) */
.chat-message.received {
    align-items: flex-start;
}

.chat-message.received .bubble {
    background-color: #f1f0f0; /* Light grey */
    color: black;
    padding: 10px 15px;
    border-radius: 20px 20px 20px 5px;
    max-width: 70%;
    word-wrap: break-word;
}

/* Timestamp under bubbles */
.timestamp {
    font-size: 0.75rem;
    margin-top: 2px;
}

.name-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.name-time-row .timestamp {
    font-size: 0.75rem;
    color: #371515;
    white-space: nowrap;
}

/* Timestamp Styling */
.chat-timestamp {
    font-size: 0.75rem;      /* Smaller text */
    color: #270707;             /* Light gray */
    white-space: nowrap;     /* Prevent wrapping */
}

/* Hover Effect for Chat Thread Items */
ul[id^="chat-thread-list"] .list-group-item:hover {
    background-color: #9997bd; /* Light gray background */
    cursor: pointer;          /* Pointer cursor */
}

/* Override selected chat thread background and text colors */
ul[id^="chat-thread-list"] .list-group-item.active {
    background-color: #86a3a9 !important; /* Light blue */
    color: #000 !important;               /* Dark text */
    border-color: #cce0ff !important;     /* Soft border */
}

ul[id^="chat-thread-list"] .list-group-item.active .text-muted {
    color: #333 !important;               /* Fix grey preview text */
}

.chat-thread-header {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
}

.chat-thread-header .settings-btn {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.92) !important;
    background-color: rgba(255, 255, 255, 0.16) !important;
}

.chat-thread-header .settings-btn:hover,
.chat-thread-header .settings-btn:focus {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.28) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

.chat-thread-header .chat-header-subtitle {
    display: inline-block;
    font-size: 0.96rem;
    font-weight: 500;
    color: #f6faff;
    line-height: 1.25;
}

.chat-thread-header .chat-header-subtitle-link {
    color: #f6faff;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.chat-thread-header .chat-header-subtitle-link:hover,
.chat-thread-header .chat-header-subtitle-link:focus {
    color: #ffffff;
}
/* This is for stopping the polling (5 as on 2025/4/29) and showing a pop up */
/* Blur Overlay */
#blur-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    backdrop-filter: blur(4px);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    display: none;
}

#blur-overlay.active {
    display: block;
}

/* Inactivity Popup */
#inactivity-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

#inactivity-popup.active {
    display: flex;
}

#inactivity-popup .popup-content {
    background: white;
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}
/* Automcomplete on user selection dropdown on chat */
#group-autocomplete-dropdown {
    z-index: 1050; /* higher than modal content */
    top: 100%;
    left: 0;
}
/* Core Layout Setup */
.row.no-gutters.h-100 {
    min-height: 75vh;
    max-height: 100vh;
 overflow: hidden; /* Needed on .row to prevent bleed */
}

/* Left & Right panels (do NOT clip children) */
#chat-thread-list-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
 /* DO NOT use overflow: hidden here WILL DeFINITELY BREAK 'SEARCH MY CIRCLE' on chat tab */
}

#chat-thread-list {
    flex-grow: 1;
    overflow-y: auto;
    max-height: 100%;
}

/* Chat message view */
#chat-message-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    /* overflow: hidden; Commented ------- might have to use in extraordinary situations of message box bleeding     */
}

/* Chat scrolls */
#chat-messages {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
    scroll-behavior: smooth;
    padding: 1rem;
    background: #f8f9fa;
 min-height: 0; /* Ensures proper flex behavior */
    flex-direction: column-reverse;
}

#chat-messages-wrapper {
  display: flex;
 flex-direction: column-reverse; /* Flip messages to stack bottom-up */
  flex-grow: 1;
}

/* Universal scroll styling for chat areas */
.chat-messages-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 100%;
    scroll-behavior: smooth;
    padding: 1rem;
    background: #f8f9fa;
    min-height: 0;
    flex-direction: column-reverse;
}

.chat-messages-wrapper > div {
    display: flex;
 flex-direction: column; /* instead of column-reverse */
    gap: 12px;
}

/* Input and emoji */
.emoji-wrapper {
    position: relative;
    flex-shrink: 0;
    background-color: white;
}

#chat-message-view .input-group {
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
}

#chat-message-view .input-group input {
    flex-grow: 1;
    min-width: 0;
}

/* Emoji Picker floating above input */
#emoji-picker {
    position: absolute;
    bottom: 60px;
    right: 70px;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Search My Circle Wrapper */
.chat-thread-search-wrapper {
    position: relative;
    z-index: 10; /* Keeps dropdown on top */
}

.chat-search-input {
    padding-right: 2.5rem !important;
}

.clear-search-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 1.2rem;
    display: none;
    z-index: 20;
}

/* Autocomplete Dropdown */
.chat-search-dropdown,
#group-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    width: 100%;
    background: #ffffff;
    z-index: 1050;
    border: 1px solid #ccc;
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
}

.chat-search-dropdown .list-group-item,
#group-autocomplete-dropdown .list-group-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.chat-search-dropdown .list-group-item:hover,
#group-autocomplete-dropdown .list-group-item:hover {
    background-color: #f0f0f0;
}

/* Mobile View */
@media (max-width: 767px) {
    #chat-thread-list-view {
        display: block;
        width: 100%;
    }
    
    #emoji-picker {
        bottom: 100px;
        right: 20px;
    }
    #chat-message-view {
        display: none;
        width: 100%;
    }

    #chat-message-view.active {
        display: flex;
    }

    #chat-thread-list-view.hidden {
        display: none;
    }
}

/* This is for loading <20> older messages in the chat message windows */
#load-older-messages-container {
    margin-bottom: 10px;
}

#load-older-messages-btn {
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    transition: background-color 0.2s, color 0.2s;
}

#load-older-messages-btn:hover {
    background-color: #007bff;
    color: white;
}
/* This is to style system messages - center them, color, etc */
/* Style for system-generated messages */
.chat-message.system {
    text-align: center;
    background-color: #dbdcdc;
    color: #444;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
    font-style: italic;
    font-weight: 500;
}

.chat-message.system .system-message strong {
    display: block;
    color: #2c3e50;
}
/* The below is for media preview while upload to a chat */
#chat-image-preview {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    background-color: #b8d3ad; /* Light green, neutral tone */
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
#chat-preview-img {
    max-width: 200px;
    border-radius: 10px;
    border: 1px solid #ccc;
}
#remove-preview-btn {
    font-size: 12px;
    padding: 2px 6px;
    border: none;
    background-color: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    cursor: pointer;
}

/* Below are for creating animation when a user clicks on a chat thread that has no messages */
@keyframes gentlePop {
  0% {
    transform: scale(0.95);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.chat-welcome-animated {
  animation: gentlePop 0.6s ease-out forwards;
  transform-origin: center center; /* Ensures scaling is centered */
  will-change: transform, opacity; /* Hint for performance */
}

/* below is for Group chat - settings form */
.small-text {
    font-size: calc(0.8rem + 0.2vw); /* Responsive font scaling */
}
/*  */
/* Pre Builds\v.1.0.0\v0.0.0-alpha.0.64 build script for .navbar */

/*The background of the top navigation  */
#mainNav {
  background-color: #B3D7FF;
  width: 100%;
  max-width: 1200px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

#mainNav .d-flex {
  flex-wrap: nowrap !important;
}
#mainNav .navbar-nav {
    letter-spacing: 0.025rem; 
}
#mainNav .navbar-nav li.nav-item a.nav-link {
    color: #007bff; 
}
#mainNav .navbar-nav li.nav-item a.nav-link:active,
#mainNav .navbar-nav li.nav-item a.nav-link:focus {
    color: #fff;    
}
/* Top right menu when on smaller screen, change the hamgurger menu to X */
/* Default state: Hamburger icon */
.navbar-toggler .fa-bars,
.navbar-toggler .fa-times {
    width: 20px; /* Set a fixed width */
    height: 20px; /* Optional: Keep height consistent */
    text-align: center; /* Align icons properly */
    display: inline-block;
    vertical-align: middle; /* Align with other elements */
    transition: all 0.2s ease; /* Smooth transitions */
}
/* When toggled: Hide the hamburger and show the X icon */
.navbar-toggler.toggled .fa-bars {
    display: none;
}
.navbar-toggler.toggled .fa-times {
    display: inline-block;
}
/* Default state: Hide the X icon */
.navbar-toggler .fa-times {
    display: none;
}
/* POST Builds\v.1.0.0\v0.0.0-alpha.0.64 build script for .navbar */
/* Smaller logo for mobile */
/* Logo resizing */
/* Logo Resizing */
/* Full Logo - already styled */
.navbar-brand img.full-logo {
  height: 25px;
}

@media (max-width: 576px) {
  .navbar-brand img.full-logo {
    height: 25px;
  }
}

/* Square Logo - only visible on mobile */
.navbar-brand img.square-logo {
  height: 32px;
  width: 32px;
  display: none; /* Default: hidden on large screens */
}

@media (max-width: 576px) {
  .navbar-brand img.square-logo {
    display: inline-block !important;
  }
}

/* Icons: Shrink + Hide Text */
.icon-group a.nav-link {
  font-size: 1rem;
  padding: 0 0.25rem;
}
@media (max-width: 576px) {
  .icon-group a.nav-link {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }
  .icon-group span.ml-1 {
    display: none !important;
  }
}

/* Badge styling */
.navbar .badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: #dc3545;
  color: white;
  font-size: 0.6rem;
  padding: 0.15em 0.35em;
  border-radius: 999px;
  min-width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Hamburger on Right */
.navbar-toggler {
  margin-left: auto;
  flex-shrink: 0;
}

/* Custom background for dropdown (Settings + Logout) */
@media (max-width: 576px) {
  .navbar-collapse {
    background-color: #FFFFFF; /* semi-transparent white */
    padding: 1rem;
    border-radius: 0 0 10px 10px;
  }

  .navbar-collapse .nav-link {
    color: #FFFFFF;
    font-weight: bold;
  }

  .navbar-collapse .nav-link:hover {
    color: #007bff;
  }
}
@media (min-width: 992px) {
  #mainNav .icon-group .nav-link span.ml-1 {
    display: inline;
  }

  #mainNav .container {
    max-width: 1140px; /* or 960px if you prefer tighter layout */
    margin: 0 auto;
  }
}
@media (max-width: 991.98px) {
  #navbarResponsive .navbar-nav {
    text-align: right;
    width: 100%;
  }

  #navbarResponsive .nav-item {
    justify-content: flex-end;
  }

  #navbarResponsive .nav-link {
    display: inline-flex;
    justify-content: flex-end;
    width: 100%;
  }
}
/* Mid-screen fix: Prevent top nav from breaking lines */
@media (min-width: 576px) and (max-width: 991.98px) {
  
  .icon-group a.nav-link {
    font-size: 0.9rem;
    padding: 0 0.3rem;
  }

 /* Hide text beside icons below 768px */
  @media (max-width: 767.98px) {
    .icon-group span.ml-1 {
      display: none !important;
    }
  }

 /* Ensure navbar stays in one line */
  #mainNav .container,
  .navbar {
    flex-wrap: nowrap !important;
  }

  .icon-group {
    flex-shrink: 1;
    flex-wrap: nowrap;
    overflow-x: auto;
    min-width: 0;
  }

  .navbar-brand {
    flex-shrink: 0;
  }

  .navbar-toggler {
    flex-shrink: 0;
    margin-left: auto;
  }

 /* Refine badge styling for compact layouts */
  .navbar .badge {
    top: -4px;
    right: -4px;
    font-size: 0.5rem;
    padding: 0.1em 0.3em;
    height: 12px;
    min-width: 12px;
  }
}
/* this stops the top navigation elements (icon + text) to stack over each other in case of smaller screen  */
.icon-group a.nav-link {
  min-width: 0;
  flex-shrink: 1;
  white-space: nowrap;
}

/* Ensure nav-link icons and badges are vertically centered */
.icon-group .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  height: 42px; /* Enough height to accommodate badge */
  padding-top: 6px;
  padding-bottom: 6px;
  overflow: visible; /* Prevent clipping */
  position: relative;
}

/* Ensure the badge doesn't overflow out of view */
.icon-group .badge {
  top: -6px !important;  /* Pull it slightly above icon */
  right: -6px;
  position: absolute;
  z-index: 2;
}

@media (max-width: 991.98px) {
  /* Ensure collapse nav fills width and appears below navbar */
  #navbarResponsive {
    width: 100% !important;
    flex-basis: 100%;
    flex-grow: 1;
    margin-top: 0.5rem;
  }

  .navbar-collapse {
    position: relative;
    z-index: 10;
    background-color: #FFFFFF;
    border-radius: 0 0 10px 10px;
    padding: 0.75rem 1rem;
  }

  .navbar-toggler {
    z-index: 20;
  }

  /* Prevent menu from being partially off-screen */
  .navbar-nav {
    width: 100%;
    text-align: right;
  }

  .navbar-nav .nav-link {
    width: 100%;
    justify-content: flex-end;
    text-align: right;
  }
}

@media (max-width: 991.98px) {

 /* Reduce navbar vertical padding */
  #mainNav {
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
  }

 /* Shrink mobile logo */
  #mainNav .navbar-brand img {
    height: 28px !important;
  }

 /* Reduce padding around the toggle and icons */
  #mainNav .nav-link {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
  }

  #mainNav .icon-group {
    gap: 0.25rem;
  }

 /* Shrink hamburger icon size */
  #mainNav .navbar-toggler i {
    font-size: 1rem;
  }

 /* Slightly reduce padding in dropdown */
  #mainNav .navbar-collapse {
    padding: 0.5rem 0.5rem;
  }

  #mainNav .navbar-collapse {
    width: 100% !important;
    flex-basis: 100% !important;
    flex-grow: 1;
    margin-top: 0.05rem;
    background-color: #B3D7FF; /* Consistent dropdown */
    border-radius: 0 0 10px 10px;
    padding: 0.75rem 1rem;
  }

  #mainNav .navbar-nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
  }

  #mainNav .navbar-nav .nav-link {
    width: 100%;
    text-align: right;
    justify-content: flex-end;
    padding: 0.25rem 0;
  }
}
@media (max-width: 991.98px) {
  /* Prevent the collapse section from affecting layout */
  #navbarResponsive {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
  }  
}

@media (max-width: 576px) {
  #mainNav img {
    height: 40px !important; /* instead of 36px */
  }
}

/* Below is for making the images in a chat large and responsive */
.modal-enlarged-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Group member list as it appears in the chat tabs under a group chat thread */
.group-member-list-bg {
    background-color: #7e94dd; /* Light grey */
    padding: 10px;             /* Optional: adds spacing inside */
    border-radius: 6px;        /* Optional: soft rounded corners */
}

/* Add extra bottom padding or margin to the scrollable message container (chat-messages-{{ member.id }} or chat-messages) so the last message doesnt get pushed beneath the fold. */
.chat-messages-wrapper {
    padding-bottom: 120px !important; /* Prevents footer from overlapping messages */
    position: relative;
}
/* // top navigation button for login  */
.navbar .btn {
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 20px;
}
/* Force collapse always on adult/minor dashboard only */
.dashboard #mainNav .navbar-collapse {
  display: none !important;
}
.dashboard #mainNav .navbar-toggler {
  display: block !important;
}
/* On toggled state, show menu */
.dashboard #mainNav .navbar-collapse.show {
  display: block !important;
  position: absolute;
  top: 100%;
  right: 0;
  background: #7cade5;
  z-index: 9999;
  width: max-content;
  text-align: right; /* Align text to the right */
  padding: 1rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* Optional: ensure list items follow the alignment */
.dashboard #mainNav .navbar-collapse.show .nav-link {
  text-align: right;
}
/* Force right-alignment always on dashboard nav items */
.dashboard #mainNav .navbar-nav {
  justify-content: flex-end;
  text-align: right;
  width: 100%;
}
.dashboard #mainNav .navbar-nav .nav-link {
  justify-content: flex-end;
  display: inline-flex;
  width: 100%;
  text-align: right;
}
/* this is to get the hero image and text on the left working as expected */
/* Wrapper: full height, 3-row grid */
.text-and-buttons-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spacer-top {
    flex: 1.0; /* Reduced from 1 to 0.5 to lift text up */
}

.moving-text-container {
    flex: 1.2; /* Holds the moving text in middle area */
    display: flex;
    align-items: flex-start; /* Keep text aligned to top of this row */
    justify-content: flex-start;
    padding-left: 5%; /* Optional: Add some breathing room */
}

.moving-text-content {
    margin: 0;
    font-size: 2.5rem;
    line-height: 1.4;
    text-align: left;
}

#home-html-page .home-hero-actions {
    flex: 0 0 auto;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: auto;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 20px;
}

#home-html-page .home-hero-actions #home-primary-cta {
    min-width: 260px;
}

#home-html-page .home-hero-actions button {
    white-space: nowrap;
}

.buttons-container {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    padding-bottom: 20px;
}

.buttons-container button {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    border-radius: 5px;    
}

.buttons-container button:first-child {
    background-color: #1E3A8A;  /* Deep Blue - Crisp against light blue background */
    color: white;
    
}

.buttons-container button:last-child {
    background-color: #4CAF50;
    color: white;
    
}

@media (max-width: 768px) {
    .text-and-buttons-wrapper {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 20px 15px;
    }

    .spacer-top {
        height: 10px;
    }

    .moving-text-container {
        display: flex;
        justify-content: flex-start; /* Left-align container */
        align-items: flex-start;
        min-height: 4.2em; /* Reserve ~3 lines of space */
        padding: 0;
    }

    .moving-text-content {
        font-size: 1.2rem;
        text-align: left; /* Left-align text */
        line-height: 1.4em;
        min-height: 4.2em;
        padding-left: 5px;
        padding-right: 5px;
        margin: 0;
        
    }

    .buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
    }

    .buttons-container button {
        width: 90%;
        font-size: 1rem;
        font-weight:400;
        padding: 10px 20px;
        font-weight: bold;
        border-radius: 5px;
        border: none;
        cursor: pointer;
    }

    .buttons-container button:first-child {
        background-color: #1E3A8A;  /* Deep Blue - Crisp against light blue background */
        color: white;
        
    }

    .buttons-container button:last-child {
        background-color: #4CAF50;     /* Green */
        color: white;
        
    }
}
.image-center-wrapper {
    text-align: center;
}
.why-this-app-section {
  text-align: center;
  padding: 60px 20px;
  background-color: #f5f5f5;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
  color: #555; /* match your theme */
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  justify-items: center;
}

.feature-card {
  max-width: 250px;
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.feature-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 160px;
}

.feature-card h4 {
  font-size: 1.1rem;
  margin: 15px 0 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: #555;
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .feature-card {
    padding: 15px;
  }

  .feature-card img {
    height: 140px;
  }

  .feature-card h4 {
    font-size: 1rem;
  }

  .feature-card p {
    font-size: 0.9rem;
  }
}
.feature-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  transition: all 0.3s ease;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* default: 1x4 on wide screens */
  gap: 30px;
  justify-items: center;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout on medium screens */
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr; /* 4x1 layout on mobile */
  }
}

.grid-item-reverse {
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* distributes space between top and bottom */
  height: 100%;
}

.flex-column-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flex-grow-section {
  flex-shrink: 0;     /* don't shrink */
}

.buttons-container {
  margin-top: auto;   /* pushes it to the bottom */
  padding-top: 20px;
}

#home-html-page .home-final-cta-section {
  padding: 56px 20px 64px;
}

#home-html-page .home-final-cta-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 24px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

#home-html-page .home-final-cta-content h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw + 0.4rem, 2.05rem);
  font-weight: 700;
  color: #1f2937;
}

#home-html-page .home-final-cta-content p {
  margin: 0.8rem 0 1.2rem;
  font-size: 1.04rem;
  color: #4b5563;
}

#home-html-page .home-final-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

#home-html-page .home-final-cta-actions button {
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: #1e3a8a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#home-html-page .home-final-cta-actions button:hover,
#home-html-page .home-final-cta-actions button:focus {
  background: #172d6f;
}

#home-html-page .home-final-cta-actions a {
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#home-html-page .home-final-cta-actions a:hover,
#home-html-page .home-final-cta-actions a:focus {
  color: #172d6f;
}

h2.mb-0 {
  font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
  line-height: 1.2;
}

.brand-statement {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  line-height: 1.6;
  margin-top: 1rem;
}

.grid-item-reverse {
  padding: clamp(1rem, 2vw, 2rem);
}
@media (max-width: 768px) {
  .grid-container-reverse {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  .image-center-wrapper,
  .grid-item-reverse {
    width: 100%;
    text-align: center;
  }

  .buttons-container {
    justify-content: center;
  }

  #home-html-page .home-hero-actions {
    margin-top: auto;
    align-items: center;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 20px;
  }

  #home-html-page .home-hero-actions #home-primary-cta {
    min-width: 0;
    width: 90%;
  }

  #home-html-page .home-hero-actions button {
    white-space: nowrap;
    max-width: 360px;
  }

  #home-html-page .home-final-cta-content {
    padding: 24px 18px;
  }
}
.bg-theme {
  background-color: #f5f5f5;
  color: #555;
}
/* Sign up page form */

.form-input-modern {
  background-color: #007bff;
  color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1px 14px;
  font-size: 1rem;
  line-height: 1.5; /* fix text cutoff */
  appearance: none; /* helps normalize <select> styles */
  -webkit-appearance: none;
  -moz-appearance: none;
}
.form-input-modern::placeholder {
  color: #ffffff;
  opacity: 1;
}

.form-input-modern:focus {
  border-color: #8ab4f8;
  outline: none;
  box-shadow: 0 0 0 1px #8ab4f8;
}

.password-toggle-btn {
  width: auto !important;
  min-width: 64px;
  padding: 0 10px;
  border: 1px solid #8ab4f8;
  background-color: #0b69d2;
  color: #ffffff;
  font-size: 0.85rem;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
  background-color: #0a5bb7;
  color: #ffffff;
}

.input-group .password-toggle-btn {
  border-radius: 0 6px 6px 0;
}

.signup-password-help {
  color: #d8ebff;
  font-size: 0.8rem;
  line-height: 1.3;
}

#signup-page .signup-page-title {
  margin: 0 0 0.2rem 0;
  font-family: 'Nunito', 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 100;
  color: #ffffff;
  letter-spacing: 0;
  line-height: 1.2;
}

#signup-page .signup-welcome-note {
  margin: 0 0 0.35rem 0;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 100;
  line-height: 1.2;
}

#signup-page .signup-page-subtitle {
  margin: 0 0 1.15rem 0;
  color: #d7e9ff;
  font-size: 0.95rem;
  line-height: 1.35;
}

#signup-page .step-counter {
  display: inline-block;
  margin-bottom: 0.75rem !important;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

#signup-page .form-input-modern {
  min-height: 48px;
  padding: 10px 14px;
}

#signup-page .input-group .password-toggle-btn {
  min-height: 48px;
  font-weight: 700;
}

#signup-page .signup-name-row {
  margin-bottom: 0;
}

#signup-page #signup-password-fields {
  margin-top: 0.75rem;
}

#signup-page .form-check-label {
  font-size: 0.94rem;
  line-height: 1.35;
}

#signup-page .signup-inline-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: center;
}

#signup-page #signup-otp-section {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

#signup-page #signup-otp {
  text-align: center;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

#signup-page #signup-otp::placeholder {
  text-align: center;
  letter-spacing: normal;
}

#signup-page .signup-verify-otp-btn {
  width: 100%;
}

#signup-page .signup-resend-otp-link {
  color: #d9ecff;
  text-decoration: underline;
  font-size: 0.92rem;
}

#signup-page .signup-resend-otp-link:hover,
#signup-page .signup-resend-otp-link:focus {
  color: #ffffff;
}

#signup-page #signup-continue-btn,
#signup-page #signup-create-account-btn {
  width: 100%;
  min-height: 46px;
  font-size: 1.05rem;
}

.btn-custom-otp {
  background-color: #f5f5f5;
  color: #555;
  border: 1px solid #ccc;
  font-weight: 600;
  border-radius: 6px;
  padding: 10px 16px;
  width: auto;
  transition: background-color 0.2s ease;
}

.btn-custom-otp:hover {
  background-color: #e0e0e0;
  color: #333;
}
/* Shared modal styling for signup modals */
.signup-modal-content {
  background-color: #555 !important;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
/* Close button (shared selector based on IDs) */
#whyPhoneModal .modal-header .close,
#whyNameLockedModal .modal-header .close {
  font-size: 1.5rem;
  opacity: 0.8;
  color: #fff;
}
/* Footer button (shared selector) */
#whyPhoneModal .modal-footer .btn-secondary,
#whyNameLockedModal .modal-footer .btn-secondary {
  background-color: #444;
  border: none;
  color: #fff;
}
/* Hide the default red 'x' icon in Bootstrap for invalid fields - especially for the 3-stage Signup*/
input.is-invalid,
select.is-invalid {
  border: 2.5px solid #f0ad4e !important;  /* Amber with thicker border */
  background-image: none !important;       /* Remove the Bootstrap red "x" */
  padding-right: 0.75rem;                  /* Keep spacing clean */
  box-shadow: none !important;             /* Optional: remove red glow */
}

#signup-otp-error,
#parent-login-otp-error,
#minor-login-otp-error {
  color: #fff700;              /* Bright yellow */
  font-weight: 600;            /* Semi-bold for visibility */
  font-size: 0.9rem;
  padding-top: 4px;
}
/* Add a visible outline when the checkbox for policies (Cookies, Terms of Service, Privacy Policy) on the Signup is not selected */
input[type="checkbox"].is-invalid {
    outline: 4px solid #f0ad4e;
    outline-offset: 2px;
}
/* Make links inside the signup forms white with underline */
.signup-form-step a {
  color: #ffffff;         /* White text */
  text-decoration: underline;  /* Underline */
}
/* Prevent hover on the signup forms from changing color */
.signup-form-step a:hover {
  color: #ffffff;         /* Keep white on hover */
  text-decoration: underline;
}

/* this is for the sign in page*/
.login-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    text-align: center;
}

/* Images */
.login-option img {
    width: 100px;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.login-option button {
    width: 180px;
    font-weight: bold;
}

/* SMALL SCREEN OVERRIDES */
@media (max-width: 600px) {
    .login-option {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start; /* <-- Left-align */
        text-align: left;
    }

    .login-option img {
        margin: 0 1rem 0 0;            /* space between image and button */
    }

    .login-option button {
      width: 180px; /* Fixed width for consistency */
    }
}
/* CSS for the new parent dashboard template - 1st chosen on 2025/7/30 */
/* Adult dashboard page container color */
.adult-page-parent-dashboard {
  background-color: #f5f5f5;
}

/* Profile Image Styling */
.adult-page-profile-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4A90E2;
  display: block;
  margin: 0 auto;
  transition: width 0.3s ease, height 0.3s ease;
}

/* Child Name Styling */
.adult-page-user-name {
  margin-top: 0.1rem;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}

.adult-page-profile-label {
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 1rem;
  display: block;
}

/* Responsive Section: Profile Text + Images */
.adult-page-profile-section {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

/* Heading Styling */
.adult-page-heading {
  font-size: 1.0rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Button Row Styling */
.adult-page-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

/* Assign/Add Button Styling */
.adult-page-btn {
  font-size: 1rem;
  padding: 0.15rem 1.3rem;
  border-radius: 6px;
  white-space: nowrap;
  max-width: 210px;
  flex: 0 1 auto;
}

/* Subtitle Styling */
.adult-page-subtitle {
  font-weight: 500;  
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Tab Nav Styling */
.adult-page-tab-nav {
  text-align: center;
  margin-top: 0rem;
}
.adult-page-tab-nav a {
  margin: 0 1rem;
  text-decoration: none;
  font-weight: 500;
  color: #333;
}
.adult-page-tab-nav a.active {
  color: #007bff;
  font-weight: 600;
  border-bottom: 6px solid #007bff;
}
/* Make the user-page nav-tabs look like profile selectors */
/* Tab List (ul) styling */
.user-page-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0rem;
    border-bottom: none;
    width: max-content; /* KEY TO FIX MOBILE CUT-OFF */
    margin: 0 auto; /* Centers the content horizontally */
}
/* Scroll wrapper: enables horizontal scroll on the parent page for user profiles*/
.profile-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;          /* Firefox */
    scrollbar-color: #80d8f3 transparent;
    padding-bottom: 0.5rem;

 /* Force visible scrollbar on desktop */
    max-width: 100%;
    white-space: nowrap;
}
/* Optional: To center it inside the wrapper on larger screens */
.profile-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}
.profile-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #bbb;
    border-radius: 4px;
}
.profile-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}
.user-page-nav-tabs .nav-item {
    margin-bottom: 0; /* Remove spacing between stacked items */
    flex: 0 0 auto; /* No shrinking/wrapping */
    text-align: center;
}

.user-page-nav-tabs .nav-link {
  background-color: transparent;
  border: none;
  text-align: center;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background-color 0.2s ease-in-out;
}

/* Neutral image style otherwise */
.user-page-nav-tabs .profile-img-tab {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: all 0.2s ease-in-out;
}

/* Hover (not selected) */
.user-page-nav-tabs .nav-link:hover .profile-img-tab {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.4);
}

/* Active (selected) profile */
/* Visually active tab */
.user-page-nav-tabs .nav-link.active {
    background-color: #f6b300 !important; /* Your intended yellow */
    color: #000 !important;
    border-bottom: none !important; /* Remove red underline */
    border-radius: 6px;
}

/* Blue border around image only when active */
.user-page-nav-tabs .nav-link.active .profile-img-tab {
  border: 3px solid #007bff;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
}

/* Text under image */
.user-page-nav-tabs .tab-name {
  font-size: 0.95rem;
  color: #333;
  margin-top: 0.5rem;
}

/* Responsive Text & Layout */
@media (max-width: 768px) {

  .adult-page-profile-img {
    width: 60px;
    height: 60px;
  }

  .adult-page-heading {
    font-size: 1.6rem;
  }

  .adult-page-user-name {
    font-size: 0.9rem;
  }
  .adult-page-tab-nav a {
    font-size: 0.85rem;
  }

  .adult-page-profile-label {
    font-size: 0.9rem;
  }

  .adult-page-btn {
    font-size: 0.95rem;
    padding: 0.15rem 1rem;
  }

  .user-page-nav-tabs {
    justify-content: center;
    gap: 0.50rem;
  }

  .user-page-nav-tabs .profile-img-tab {
    width: 60px;
    height: 60px;
  }

  .user-page-nav-tabs .tab-name {
    font-size: 0.85rem;
  }
}

/* Remove stacking behavior */
@media (max-width: 576px) {
  .adult-page-button-row {
    flex-direction: row; /* Keep in a row */
    flex-wrap: wrap; /* Allow wrapping if needed */
    justify-content: center;
    gap: 0.5rem;
  }

  .adult-page-btn {
    flex: 1 1 40%; /* Flexibly take ~40% width */
    max-width: none;
    min-width: 120px;
  }

  .adult-page-subtitle {
    font-size: 0.95rem;
    }

  .adult-page-tab-nav a {
    font-size: 0.82rem;
  }
}

/* Small screens (e.g. iPhone SE) */
@media (max-width: 480px) {
  .adult-page-btn {
    font-size: 0.85rem;
    padding: 0.15rem 0.8rem;  /* less vertical padding */
  }

  .adult-page-profile-img {
    width: 50px;
    height: 50px;
  }

  .adult-page-user-name {
    font-size: 0.7rem;
  }

  .adult-page-profile-label {
    font-size: 0.85rem;
  }

  .user-page-nav-tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .user-page-nav-tabs .nav-item {
    flex: 0 0 auto; /* prevent wrapping */
  }

  .user-page-nav-tabs .profile-img-tab {
    width: 40px;
    height: 40px;
  }

}

/* Extra small screens or narrow windows */
@media (max-width: 360px) {
  .adult-page-btn {
    font-size: 0.78rem;
    padding: 0.15rem 0.7rem;
  }
}
/* =========================================================
This is for the parent dashboard page to keep the same size of the viewport - w/o scrolling the page and only scrolling inside the content container
========================================================= */
/* Applies only to this page */
body#adult-dashboard-html-page.dashboard.adult-dashboard {
  display: flex;
  flex-direction: column;
  padding-top: 52px;          /* dedicated offset for fixed parent navbar on mobile/tablet */
  min-height: 100vh;          /* Fallback for older browsers */
  min-height: 100dvh;         /* Dynamic viewport on mobile (accounts for browser UI) */
  height: 100vh;              /* Fallback for older browsers */
  height: 100dvh;             /* Dynamic viewport on mobile (accounts for browser UI) */
  overflow: hidden;           /* Prevent page scroll */
}

@media (min-width: 992px) {
  body#adult-dashboard-html-page.dashboard.adult-dashboard {
    padding-top: 62px;        /* desktop navbar offset */
  }
}

/* Main masthead fills remaining vertical space below top nav */
.masthead.adult-page-parent-dashboard {
  display: flex;
  flex-direction: column;
  flex: 1;                    /* Take remaining height after navbar */
  overflow: hidden;
}

/* Remove inherited masthead top gap so profile band sits flush below fixed nav */
#adult-dashboard-html-page .masthead.adult-page-parent-dashboard {
  padding-top: 0;
}

/* The tab content wrapper */
.masthead.adult-page-parent-dashboard #family-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* allows flex children to shrink and scroll properly */
  width: 100%;
  max-width: 720px;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #007bff;
  border: 0 !important;
  border-radius: 0;
  margin-top: 0 !important;
  padding: 8px !important;
}

/* Each tab-pane (profile view) */
#family-tab-content .tab-pane {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-height: 0; /* prevents cutting off bottom area */
}

/* Only show active tab-pane */
#family-tab-content .tab-pane.active {
  display: flex !important;
}

/* Scrollable inner tab content */
#family-tab-content .tab-pane .tab-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  background: #fff;
  border-top: 0 !important;
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  padding-bottom: 0.75rem;
  scroll-padding-bottom: 0.75rem;
}

@media (max-width: 992px) {
  #adult-dashboard-html-page #family-tab-content .tab-pane .tab-content {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Optional: nice scrollbars */
#family-tab-content .tab-pane .tab-content::-webkit-scrollbar {
  width: 8px;
}
#family-tab-content .tab-pane .tab-content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
/* =========================================================
   CHAT PANE - HEIGHT-CONTAINED FLEX STRUCTURE
   ========================================================= */

/* 1 Tab Pane (outermost) */
.tab-pane-noscroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;       /* Prevent page scroll */
  min-height: 0;
}
.tab-pane-noscroll.fade {
  opacity: 0;
  transition: opacity 0.15s linear;
}
.tab-pane-noscroll.fade.show {
  opacity: 1;
}

/* 2 Main Chat Row */
.chat-main-row {
  display: flex;
  flex: 1;
  min-height: 0;          /* Critical for scrollable children */
  overflow: visible;      /* Sticky elements rely on this */
}

/* 3 Column Containers */
.inner-tab-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

/* 4 Scrollable Sections */
.scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* 5 Sticky Header + Footer */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
}

.sticky-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fff;
}

/* 6 Scrollbars (optional styling) */
.scrollable::-webkit-scrollbar {
  width: 8px;
}
.scrollable::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
/* =========================================================
   CHAT PANE - HEIGHT-CONTAINED FLEX STRUCTURE
   ========================================================= */

/* 1 Outermost container (no scroll) */
.tab-pane-noscroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  overflow: hidden;
  min-height: 0;
}

/* 2 Chat Main Row (shared height) */
.chat-main-row {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 3 Thread List & Chat Columns */
#chat-thread-list-view,
#chat-message-view {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

/* 4 Sticky Header + Scrollable Section inside Thread List */
#chat-thread-list-view .sticky-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #dee2e6;
}

#chat-thread-list-view .scrollable {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* 5 Chat Message Column */
#chat-message-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* Sticky Input at Bottom */
#chat-message-view .emoji-wrapper {
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 1px solid #dee2e6;
  z-index: 10;
}

/* =========================================================
 MOBILE FIXES
   ========================================================= */

/* On small screens, columns stack we restore height containment */
@media (max-width: 767.98px) {
  .chat-main-row {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  #chat-thread-list-view,
  #chat-message-view {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  /* Threads list gets its own scroll */
  #chat-thread-list-view .scrollable {
    height: calc(100vh - 130px); /* Adjust for Create Group + Search height */
    overflow-y: auto;
  }

  /* Message list scrolls within available space */
  #chat-messages {
    flex: 1;
    height: calc(100vh - 180px); /* Adjust for header + input field */
    overflow-y: auto;
  }

  #chat-message-view .emoji-wrapper {
    position: sticky;
    bottom: 0;
  }
}
/* Back button  */
.back-btn-mobile {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #000000;
  border-radius: 50%;
  padding: 0;
  margin-right: 4px;
  color: #ffffff;
  font-size: 1.32rem;
  cursor: pointer;
  flex-shrink: 0 !important;
  box-shadow: none;
  transition: background 0.2s;
}
.back-btn-mobile:active,
.back-btn-mobile:focus {
  background: #e0e0e0;
  outline: none;
}
.back-btn-mobile:hover {
  background: #e8f0fe;
}

/* Truncate center content cleanly */
.chat-thread-header .flex-grow-1 {
  min-width: 0 !important;
}
#chat-partner-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
/* FullCalandar related */
#calendar-area {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0001;
  padding: 12px 8px;  
}
.fc {
  font-family: inherit;
}
@media (max-width: 600px) {
  #calendar-area { padding: 3px 1px; }
  .fc { font-size: 1.08em; }
}
.fc-daygrid-day-top {
  flex-direction: row !important;         /* <--- This makes the dates left aligned */
}
/* Calendar -> event click/select -> form -> rating colors */
.modal-rating-icon.selected {
  transform: scale(1.25);
  transition: transform 0.1s;
}
/* Change color when selected */
.modal-rating-icon.selected[data-rating="30"] path {
  fill: #e53935 !important;   /* Heart - red */
}
.modal-rating-icon.selected[data-rating="10"] path {
  fill: #43a047 !important;   /* Thumbs up - green */
}
.modal-rating-icon.selected[data-rating="-10"] path {
  fill: #040404 !important;   /* Thumbs down - gray; change if you want orange/red */
}
/* Optional: pointer on hover for better UX */
.modal-rating-icon:hover {
  filter: brightness(1.15);
}
/* Calendar -> event click/select -> task form -> color of status and rating not selected errors */
.modal-status-error, .modal-rating-error {
    color: #dc3545;
    font-size: 0.95em;
    margin-top: 4px;
}

/* Below are to make the FullCalander implementation with better UI and more responsive */
.fc .fc-daygrid-day-number {
    font-size: 0.9em;    /* Smaller than default */
    font-weight: 400;    /* Less bold */
    padding: 2px 0;
}
@media (max-width: 600px) {

  /* Toolbar title (month, etc.) */
  .fc .fc-toolbar-title { font-size: 1em !important; }

  /* Header navigation buttons (prev/next/today) */
  .fc .fc-button, .fc .fc-button-primary {
    font-size: 0.92em !important;
    padding: 2px 8px !important;
    min-width: 32px !important;
    min-height: 30px !important;
    border-radius: 5px !important;
  }
  
  /* Button group spacing */
  .fc .fc-button-group { gap: 2px; }

  /* Day names (Su, Mo, etc.) */
  .fc .fc-col-header-cell {
    font-size: 0.95em !important;
    padding: 2px 0 !important;
  }

  /* Day numbers */
  .fc .fc-daygrid-day-number {
    font-size: 0.8em !important;
    padding: 1px 2px !important;
    font-weight: 400 !important;
  }

  /* Events in day cells */
  .fc .fc-daygrid-event, .fc .fc-event {
    font-size: 0.9em !important;
    padding: 1px 2px !important;
    line-height: 1.2 !important;
  }

  /* Popovers (event detail popups) */
  .fc-popover, .fc-popover-header, .fc-popover-body {
    font-size: 0.95em !important;
    padding: 6px !important;
  }

  /* List view tweaks */
  .fc .fc-list-day {
    font-size: 0.98em !important;
    padding: 2px 0 !important;
  }
  .fc .fc-list-event-title, .fc .fc-list-event-dot {
    font-size: 0.96em !important;
  }

  /* Today button, active/selected state */
  .fc .fc-button-active, .fc .fc-button-primary:active {
    font-size: 0.95em !important;
  }

  /* Month/week/day/list buttons */
  .fc .fc-button-group .fc-button {
    padding: 2px 7px !important;
    font-size: 0.92em !important;
  }

  /* Scrollbar (optional, makes scrolling easier on mobile) */
  .fc-scrollgrid, .fc-scroller {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  /* General font family override (optional, for consistency) */
  .fc { font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important; }
  /* Padding/margin adjustments: */
  .fc .fc-toolbar { padding: 0 !important; margin: 0 0 4px 0 !important; }

}
/* Action bar between header and grid */
.calendar-pane .hj-calendar-actions { padding: 6px 8px 8px; }
.calendar-pane .hj-calendar-actions .form-row { display:flex; gap:8px; flex-wrap:wrap; }
.calendar-pane .hj-calendar-actions .form-row > * { flex:1 1 180px; }
/* Calendar filter dropdown styling */
.hj-filter-group {
  margin-right: 8px;
}
.hj-filter-select {
  font-size: 1rem;              /* Larger text for visibility */
  font-weight: 600;
  color: #212529;               /* Bootstrap dark text */
  background-color: #ffffff;
  border: 1.5px solid #4fa6f7; /* Match your apps blue theme */
  border-radius: 6px;
  padding: 6px 10px;
  height: auto;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}
.hj-filter-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}
.hj-filter-select option {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
}
/* This class is in main.js and is for the scroll of Task assignees */
.assignees-scroll {
  max-height: 200px;          /* adjust to taste */
  overflow-y: auto;
  padding: .5rem .75rem;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background: #fff;
}
.assignees-scroll .form-check { margin-bottom: .25rem; }
/* This is for the Overview tab */
.hj-overview { max-width: 680px; margin: 0 auto; }
.hj-overview-hero { padding: 10px 6px; }
.hj-hero-emoji { font-size: 26px; line-height: 1.2; }
.hj-hero-sub { font-size: 14px; color: #4b5563; }
.hj-highlight { font-weight: 700; }
.hj-hero-badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: #f3f4f6; }

.hj-card { border-radius: 16px; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); background: #fff; }
.hj-card + .hj-card { margin-top: 16px; }
.hj-card-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.hj-card-number { font-weight: 800; font-size: 32px; line-height: 1.1; }
.hj-card-sub { margin-top: 6px; }

.hj-card-primary { background: linear-gradient(135deg, #e6fffb, #e0f2fe); }
.hj-card-avatar { background: linear-gradient(135deg, #fff7ed, #fef3c7); }
.hj-card-neutral { background: #ffffff; }

.hj-pill { border-radius: 999px; padding: 4px 10px; background: rgba(0,0,0,0.06); }

.hj-avatar-wrap { min-width: 120px; }
.hj-avatar-circle, .hj-avatar-circle-lg {
  border-radius: 999px; background: #f3f4f6; display: flex; align-items: center; justify-content: center;
  border: 2px solid rgba(0,0,0,0.05);
}
.hj-avatar-circle { width: 68px; height: 68px; }
.hj-avatar-circle-lg { width: 96px; height: 96px; }
.hj-avatar-emoji { font-size: 34px; }

.hj-link { color: #0ea5e9; text-decoration: none; }
.hj-link:hover { text-decoration: underline; }

.hj-mini-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 8px; }
@media (min-width: 576px) { .hj-mini-grid { grid-template-columns: 1fr 1fr 1fr; } }
.hj-mini-item { background: #f9fafb; border-radius: 12px; padding: 10px; }
.hj-mini-label { font-size: 12px; color: #6b7280; }
.hj-mini-value { font-size: 18px; font-weight: 800; }

.hj-list { display: flex; flex-direction: column; gap: 8px; }
.hj-list-item { padding: 10px 12px; background: #f9fafb; border-radius: 12px; }
.hj-favorite { padding: 10px 12px; background: #f9fafb; border-radius: 12px; }

.hj-hero-message {
  display: inline-block; /* required for transform */
  animation: hjZoomIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes hjZoomIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes hjZoomIn {
  0%   { transform: scale(0.85); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
/* Calanders -> Task completion form -> Task type emphasis */
#modal-task-type.task-type-standard {
  color: #c0392b;            
  font-weight: 600;
}

#modal-task-type.task-type-custom {
  color: #0d0dec;            
  font-weight: 500;
}
/* =========================
   My Settings Page Polish
   ========================= */

#my_settings_html_page .masthead {
  padding-top: 90px;   /* fixed nav spacing */
  padding-bottom: 30px;
}

#my_settings_html_page .masthead h2 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 8px;
}

#my_settings_html_page .masthead .brand-statement {
  font-size: 15px;
  opacity: 0.85;
  margin-bottom: 0;
}

#my_settings_html_page .settings-page-wrapper {
  padding-top: 18px;
  padding-bottom: 24px;
}

/* Base card style for non-danger settings */
#my_settings_html_page .settings-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

/* Danger zone: keep it visually distinct but not loud */
#my_settings_html_page .danger-zone {
  background: #fff;
  border: 1px solid rgba(220,53,69,0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

#my_settings_html_page .danger-zone h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Settings section headings */
#my_settings_html_page .settings-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Better spacing and layout for the timezone row */
#my_settings_html_page .settings-section .form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#my_settings_html_page #timezone-select {
  min-width: 260px;
  max-width: 100%;
}

/* Make save button consistent width on mobile */
#my_settings_html_page #save-timezone-btn {
  min-width: 110px;
}

/* Messages */
#my_settings_html_page #timezone-msg {
  margin-top: 8px;
  font-weight: 500;
}

/* Leave family button: force it to look like Bootstrap danger */
#my_settings_html_page #leave-family-btn.danger-button {
  background: #dc3545;
  border: 1px solid #dc3545;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

#my_settings_html_page #leave-family-btn.danger-button:hover {
  filter: brightness(0.95);
}

/* Mobile typography tuning */
@media (max-width: 576px) {
  #my_settings_html_page .masthead h2 {
    font-size: 22px;
  }

  #my_settings_html_page .settings-section h3,
  #my_settings_html_page .danger-zone h3 {
    font-size: 17px;
  }

  #my_settings_html_page #timezone-select {
    min-width: 100%;
  }

  #my_settings_html_page #save-timezone-btn {
    width: 100%;
  }
}
/* Fix clipped text inside timezone dropdown (Bootstrap 4 + custom CSS conflicts) */
#my_settings_html_page #timezone-select.form-control,
#my_settings_html_page #timezone-select.form-control-sm {
  height: auto !important;                 /* undo forced small height */
  min-height: 38px !important;             /* safe default for readability */
  line-height: 1.4 !important;             /* prevents vertical clipping */
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  font-size: 14px !important;
  box-sizing: border-box;
}
/* =========================
   My Settings: Hero (new)
   ========================= */

#my_settings_html_page .settings-hero {
  background: #0b78ff;          /* match your brand blue */
  color: #0b0b0b;               /* black-ish text as you want */
  padding-top: 50px;            /* accounts for fixed navbar */
  padding-bottom: 18px;         /* smaller -> keeps dropdown above fold */
}

#my_settings_html_page .settings-hero-inner {
  max-width: 900px;             /* prevents giant wide text blocks */
}

#my_settings_html_page .settings-hero-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 6px 0;
}

#my_settings_html_page .settings-hero-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
}

/* Tighten the space between hero and first card */
#my_settings_html_page .settings-page-wrapper {
  padding-top: 12px !important;
}

/* Mobile tuning */
@media (max-width: 576px) {
  #my_settings_html_page .settings-hero {
    padding-top: 45px;
    padding-bottom: 14px;
  }

  #my_settings_html_page .settings-hero-title {
    font-size: 22px;
  }

  #my_settings_html_page .settings-hero-subtitle {
    font-size: 13px;
  }
}
/* Fix clipped text inside timezone dropdown in Edit Member modal */
#manage_my_family_html_page #edit-member-timezone.form-control,
#manage_my_family_html_page #edit-member-timezone.form-control-sm {
  height: auto !important;
  min-height: 38px !important;
  line-height: 1.4 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  font-size: 14px !important;
  box-sizing: border-box;
}

/* Optional: helps some browsers render select text cleanly */
#manage_my_family_html_page #edit-member-timezone {
  -webkit-appearance: menulist !important;
  appearance: menulist !important;
}
/* Parent signup: subtle outline around form panel */
.signup-content-outline {
  background: rgba(7, 86, 184, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
  .signup-content-outline {
    margin-top: 12px;
    padding: 10px;
  }

  #signup-page .signup-page-subtitle {
    font-size: 0.9rem;
  }

  #signup-page .signup-welcome-note {
    font-size: 1.3rem;
  }
}

/* Combined login page layout: keep footer pinned to viewport bottom */
#combined-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#combined-login-page .masthead {
  flex: 1 0 auto;
}

#combined-login-page .footer {
  margin-top: auto;
}

/* Parent signup page layout: keep footer pinned to viewport bottom */
#signup-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#signup-page .masthead {
  flex: 1 0 auto;
}

#signup-page .footer {
  margin-top: auto;
}

/* Public content pages (contact + learning center + articles):
   keep hero compact, match policy-page typography, and avoid blue empty gap above footer. */
.public-info-page {
  background-color: #f5f7fb;
}

.public-info-page .masthead {
  flex: 0 0 auto !important;
  padding-top: 18px;
  padding-bottom: 20px;
}

.public-info-page .public-hero-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.public-info-page .public-hero-title {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.2;
  font-weight: 100;
}

.public-info-page .public-hero-subtitle {
  margin: 10px auto 0;
  max-width: 980px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.public-info-page .public-hero-actions {
  margin-top: 14px;
}

.public-info-page .why-this-app-section,
.public-info-page .article-content-section {
  flex: 1 0 auto;
  background: #f5f7fb;
}

.public-info-page .why-this-app-section {
  padding: 48px 16px 56px;
}

.public-info-page .section-title {
  font-size: 1.85rem;
  font-weight: 400;
  margin-bottom: 34px;
}

.public-info-page .feature-card h4 {
  font-size: 1.1rem;
  font-weight: 400;
}

.public-info-page .feature-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: #374151;
}

.public-info-page .article-content-section {
  padding: 48px 16px 56px;
}

.public-info-page .article-content-card {
  max-width: 980px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  padding: 28px 24px;
}

.public-info-page .article-content-card h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.public-info-page .article-content-card p,
.public-info-page .article-content-card li {
  color: #374151;
  line-height: 1.6;
  font-size: 0.96rem;
}

.public-info-page .article-content-card ul {
  margin-bottom: 12px;
  padding-left: 20px;
}

.public-info-page .footer {
  margin-top: 0 !important;
}

@media (min-width: 992px) {
  .public-info-page .public-hero-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .public-info-page .masthead {
    padding-top: 14px;
    padding-bottom: 16px;
  }

  .public-info-page .section-title {
    font-size: 1.6rem;
  }

  .public-info-page .why-this-app-section,
  .public-info-page .article-content-section {
    padding: 36px 14px 44px;
  }

  .public-info-page .article-content-card {
    padding: 20px 16px;
  }
}

/* Parent login page layout: keep footer pinned to viewport bottom */
#adult-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#adult-login-page .masthead {
  flex: 1 0 auto;
}

#adult-login-page .footer {
  margin-top: auto;
}

/* Forgot password page layout: keep footer pinned to viewport bottom */
#forgot-password-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#forgot-password-page .masthead {
  flex: 1 0 auto;
}

#forgot-password-page .footer {
  margin-top: auto;
}

/* Parent login OTP field alignment */
#parent-login-otp {
  text-align: center;
}

#parent-login-otp::placeholder {
  text-align: center;
}

/* Minor login page layout: keep footer pinned to viewport bottom */
#minor-login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#minor-login-page .masthead {
  flex: 1 0 auto;
}

#minor-login-page .footer {
  margin-top: auto;
}

/* Minor login OTP field alignment */
#minor-login-otp {
  text-align: center;
}

#minor-login-otp::placeholder {
  text-align: center;
}

/* Parent dashboard visual polish pass (UI-only) */
#adult-dashboard-html-page .hj-selected-user-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  color: #334155;
}
#adult-dashboard-html-page .hj-selected-user-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}
#adult-dashboard-html-page .hj-selected-user-name {
  color: #1f2937;
  font-weight: 700;
}
#adult-dashboard-html-page .hj-selected-user-hint {
  font-size: 13px;
  color: #64748b;
}
#adult-dashboard-html-page .hj-overview-updated {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4f91;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
#adult-dashboard-html-page .hj-overview-hero {
  padding: 4px 4px 0;
  margin-bottom: 10px !important;
}
#adult-dashboard-html-page .hj-overview-hero .hj-hero-emoji {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 2px;
}
#adult-dashboard-html-page .hj-overview-hero h4 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 2px;
}
#adult-dashboard-html-page .hj-overview-parent .hj-hero-message {
  color: #1F3B5C;
  font-size: clamp(1.12rem, 4.6vw, 1.32rem);
  font-weight: 700;
}
#adult-dashboard-html-page .hj-card-title {
  font-size: 15px;
}
#adult-dashboard-html-page .hj-link {
  font-weight: 600;
}
#adult-dashboard-html-page #parent-tab-list {
  gap: 8px;
  margin-top: 0 !important;
}
#adult-dashboard-html-page #parent-tab-list .nav-link {
  border-radius: 10px;
  font-weight: 600;
}
#adult-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
  font-size: 1.18rem;
}
#adult-dashboard-html-page .icon-group .badge {
  top: -8px !important;
  right: -5px;
}
@media (max-width: 576px) {
  #adult-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
    font-size: 1.38rem;
  }
  #adult-dashboard-html-page .icon-group .nav-link {
    padding: 0.35rem 0.6rem;
  }
  #adult-dashboard-html-page #parent-tab-list {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    row-gap: 6px;
    padding-bottom: 4px;
  }
  #adult-dashboard-html-page #parent-tab-list .nav-item {
    float: none;
    display: inline-flex;
    flex: 0 1 auto;
  }
  #adult-dashboard-html-page .hj-overview-hero {
    padding: 2px 2px 0;
    margin-bottom: 6px !important;
  }
  #adult-dashboard-html-page .hj-overview-hero .hj-hero-emoji {
    font-size: 20px;
  }
  #adult-dashboard-html-page .hj-overview-hero h4 {
    font-size: 18px;
  }
  #adult-dashboard-html-page .hj-overview-updated {
    font-size: 10px;
    padding: 2px 8px;
  }
  #adult-dashboard-html-page .hj-card {
    padding: 14px;
  }
  #adult-dashboard-html-page .hj-selected-user-banner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    border-radius: 14px;
  }
}
/* Parent dashboard UI polish (frontend-only) */
#adult-dashboard-html-page .hj-selected-user-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #dbe5ef;
  color: #334155;
}
#adult-dashboard-html-page .hj-selected-user-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}
#adult-dashboard-html-page .hj-selected-user-name {
  color: #1f2937;
  font-weight: 700;
}
#adult-dashboard-html-page .hj-selected-user-hint {
  font-size: 13px;
  color: #64748b;
}
#adult-dashboard-html-page .hj-overview-updated {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4f91;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
#adult-dashboard-html-page .hj-overview-hero {
  padding: 4px 4px 0;
  margin-bottom: 10px !important;
}
#adult-dashboard-html-page .hj-overview-hero .hj-hero-emoji {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 2px;
}
#adult-dashboard-html-page .hj-overview-hero h4 {
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 2px;
}
#adult-dashboard-html-page .hj-card-title {
  font-size: 15px;
}
#adult-dashboard-html-page .hj-link {
  font-weight: 600;
}
#adult-dashboard-html-page #parent-tab-list {
  gap: 8px;
}
#adult-dashboard-html-page #parent-tab-list .nav-link {
  border-radius: 10px;
  font-weight: 600;
}
#adult-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
  font-size: 1.18rem;
}
#adult-dashboard-html-page .icon-group .badge {
  top: -8px !important;
  right: -5px;
}

/* Parent dashboard CTA (compact, visible, action-first) */
#adult-dashboard-html-page .hj-overview-cta {
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #cfd8e3;
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  text-align: center;
}
#adult-dashboard-html-page .hj-overview-cta-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 8px;
  border-radius: 999px;
  background: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
#adult-dashboard-html-page .hj-overview-cta-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  color: #111827;
  margin-bottom: 8px;
}
#adult-dashboard-html-page .hj-overview-cta-text {
  font-size: 13px;
  color: #334155;
  margin-bottom: 10px;
}
#adult-dashboard-html-page .hj-overview-cta-btn-primary,
#adult-dashboard-html-page .hj-overview-cta-btn-secondary {
  display: block;
  width: fit-content;
  min-width: 160px;
  margin: 0 auto 8px;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 12px;
}
#adult-dashboard-html-page .hj-overview-cta-btn-secondary {
  margin-bottom: 0;
  border: 1px solid #cbd5e1;
}

@media (max-width: 576px) {
  #adult-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
    font-size: 1.38rem;
  }
  #adult-dashboard-html-page .icon-group .nav-link {
    padding: 0.35rem 0.6rem;
  }
  #adult-dashboard-html-page #parent-tab-list {
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    row-gap: 6px;
    padding-bottom: 4px;
  }
  #adult-dashboard-html-page #parent-tab-list .nav-item {
    float: none;
    display: inline-flex;
    flex: 0 1 auto;
  }
  #adult-dashboard-html-page .hj-overview-hero {
    padding: 2px 2px 0;
    margin-bottom: 6px !important;
  }
  #adult-dashboard-html-page .hj-overview-hero .hj-hero-emoji {
    font-size: 20px;
  }
  #adult-dashboard-html-page .hj-overview-hero h4 {
    font-size: 18px;
  }
  #adult-dashboard-html-page .hj-overview-updated {
    font-size: 10px;
    padding: 2px 8px;
  }
  #adult-dashboard-html-page .hj-card {
    padding: 14px;
  }
  #adult-dashboard-html-page .hj-selected-user-banner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  #adult-dashboard-html-page .hj-overview-cta {
    padding: 12px 10px;
  }
  #adult-dashboard-html-page .hj-overview-cta-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  #adult-dashboard-html-page .hj-overview-cta-title {
    font-size: 18px;
  }
  #adult-dashboard-html-page .hj-overview-cta-text {
    font-size: 13px;
  }
  #adult-dashboard-html-page .hj-overview-cta-btn-primary,
  #adult-dashboard-html-page .hj-overview-cta-btn-secondary {
    min-width: 150px;
  }
}

/* Keep CTA width identical to overview card column */
#adult-dashboard-html-page .hj-overview .hj-overview-cta {
  width: 100%;
  box-sizing: border-box;
}
/* Parent dashboard visual lift: subtle blue character */
#adult-dashboard-html-page .tab-content {
  background: linear-gradient(180deg, #f8fbff 0%, #f3f8ff 100%);
}

/* Parent body color pass #2: Warm Ivory + Slate Navy */
#adult-dashboard-html-page #family-tab-content .tab-pane .tab-content {
  background: #F9F5EC;
  color: #2F3B52;
}

#adult-dashboard-html-page #family-tab-content .tab-pane .tab-content .text-muted {
  color: #5f6475 !important;
}

#adult-dashboard-html-page .hj-selected-user-banner {
  background: #f1f7ff;
  border-color: #c9dcf6;
  box-shadow: 0 1px 4px rgba(13, 110, 253, 0.08);
}

#adult-dashboard-html-page:not(.hj-parent-tabs-ready) #family-tab-content {
  visibility: hidden;
}

#child-dashboard-html-page:not(.hj-parent-tabs-ready) #family-tab-content {
  visibility: hidden;
}

#adult-dashboard-html-page #parent-tab-list {
  background: #b85a00;
  border: 1px solid #8f4500;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  padding: 4px 0 0 0;
  margin-bottom: 0 !important;
  --hj-tab-row-anim-duration: 1400ms;
}

#adult-dashboard-html-page #parent-tab-list .nav-link {
  color: #F9F5EC !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  position: relative;
}

#adult-dashboard-html-page #parent-tab-list .nav-link:hover,
#adult-dashboard-html-page #parent-tab-list .nav-link:focus {
  color: #F9F5EC !important;
}

#adult-dashboard-html-page #parent-tab-list .nav-link.active {
  background: #F9F5EC !important;
  color: #2F3B52 !important;
  border-color: #d5dde8 !important;
  border-bottom-color: #F9F5EC !important;
  border-radius: 10px 10px 0 0 !important;
  box-shadow: none !important;
  z-index: 2;
  opacity: 1;
}

#adult-dashboard-html-page .hj-card {
  border: 1px solid #d9e7fa;
  border-left: 4px solid #6ba9e6;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.06);
}

#adult-dashboard-html-page .hj-card-title {
  color: #1f3a5c;
}

#adult-dashboard-html-page .hj-overview-cta {
  border-color: #bcd4f2;
  background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
  box-shadow: 0 3px 10px rgba(13, 110, 253, 0.10);
}

#adult-dashboard-html-page .hj-overview-cta-icon {
  background: #dcecff;
  color: #0d6efd;
}

/* Calendar tab: hide bottom timezone advisory block (adult + child) */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] > .small.text-muted.mt-3 {
  display: none !important;
}

/* Calendar header layout: row1 views, row2 today/nav/title, row3 actions bar */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
  margin-bottom: 6px !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk {
  width: 100%;
  display: flex;
  align-items: center;
}

/* Row 1: view tabs */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:first-child {
  order: 1;
  justify-content: flex-end;
}

/* Row 2: today + nav + title */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child {
  order: 2;
  justify-content: flex-start;
  gap: 6px;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-toolbar-title {
  margin-left: 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

/* Mobile: keep both rows left-aligned and tighter */
@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:first-child {
    justify-content: flex-start;
  }

  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-toolbar-title {
    margin-left: 0;
    font-size: 1.15rem;
  }
}

/* Calendar cleanup: remove duplicate lower Add Task button (keep hidden trigger button for JS) */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .adult-page-parent-dashboard.adult-page-button-row {
  display: none !important;
}

/* Calendar cleanup: tighter empty-state height (especially list/day/week no-event states) */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty {
  padding: 16px 0 !important;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
  padding: 18px 8px !important;
  font-size: 1.05rem;
}

@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-view-harness {
    min-height: 300px;
  }
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
    padding: 14px 6px !important;
    font-size: 0.98rem;
  }
}

/* Calendar toolbar contrast + row-2 alignment refinements */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-button-primary {
  background: #b9c4d1;
  border-color: #b9c4d1;
  color: #233447;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-button-primary:hover {
  background: #aab7c7;
  border-color: #aab7c7;
  color: #162538;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-button-primary.fc-button-active,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-button-primary:active {
  background: #173a5e;
  border-color: #173a5e;
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(23, 58, 94, 0.25);
}

/* Row 2: title on left; prev/next/today aligned right */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child {
  justify-content: flex-start;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-toolbar-title {
  order: 1;
  margin-left: 0;
  margin-right: auto;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-prev-button {
  order: 2;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-next-button {
  order: 3;
}
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-today-button {
  order: 4;
}

@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child {
    flex-wrap: nowrap;
    gap: 4px;
  }
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:last-child .fc-toolbar-title {
    font-size: 1.2rem;
  }
}

/* Calendar toolbar final layout: Row1 Today/nav/title (left), Row2 views (left) */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar {
  display: flex;
  flex-wrap: wrap;
  row-gap: 6px;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) {
  order: 1;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(2) {
  order: 2;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(3):empty {
  display: none;
}

/* Keep title inline in row 1 after controls */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-toolbar-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.15;
}

@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-toolbar-title {
    font-size: 1.5rem;
  }
}

/* Calendar top row color separation + stronger Today state */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-button-primary {
  background: #95a8bc;
  border-color: #95a8bc;
  color: #1f3348;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-button-primary:hover {
  background: #8298af;
  border-color: #8298af;
  color: #15283a;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-today-button.fc-button-primary {
  background: #365a7e;
  border-color: #365a7e;
  color: #ffffff;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-today-button.fc-button-primary:hover {
  background: #2b4a68;
  border-color: #2b4a68;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-today-button.fc-button-primary:active,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-today-button.fc-button-primary:focus {
  background: #1f3953;
  border-color: #1f3953;
  box-shadow: 0 0 0 2px rgba(31, 57, 83, 0.25);
}

/* FullCalendar disables Today when already at current range; keep it visibly dark */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-today-button.fc-button-primary:disabled {
  background: #1f3953;
  border-color: #1f3953;
  color: #ffffff;
  opacity: 1;
}

/* Today button state fix: neutral when disabled (already on current range) */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:nth-child(1) .fc-today-button.fc-button-primary:disabled {
  background: #95a8bc;
  border-color: #95a8bc;
  color: #1f3348;
  opacity: 0.85;
  box-shadow: none;
}

/* Calendar row-3 alignment: visible filter border + equal Add Task height */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-filter-select {
  border: 1px solid #9db5d1 !important;
  border-left: 1px solid #9db5d1 !important;
  box-shadow: none;
  min-height: 48px;
  line-height: 1.2;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] #calendar-actions- .hj-add,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-calendar-actions .hj-add {
  min-height: 48px;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  display: inline-flex;
  align-items: center;
}

/* Calendar row-3 alignment fix (override): exact filter border + matching Add Task height */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-calendar-actions .hj-filter-select {
  border: 1px solid #9db5d1 !important;
  box-sizing: border-box;
  height: 48px;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-calendar-actions .hj-add {
  box-sizing: border-box;
  height: 48px;
  display: inline-flex;
  align-items: center;
}

/* Calendar row-3 compact sizing + visible filter left edge */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-calendar-actions .hj-filter-select {
  height: 40px !important;
  min-height: 40px !important;
  padding: 6px 10px !important;
  border: 1px solid #8fb0d3 !important;
  border-left: 1px solid #8fb0d3 !important;
  box-shadow: inset 1px 0 0 #8fb0d3 !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-calendar-actions .hj-add {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 12px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Calendar list view empty-state: extend grey area to bottom of visible pane */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty {
  background: #f3f4f6;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
  min-height: calc(100vh - 420px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
}

@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
    min-height: calc(100vh - 360px);
  }
}

/* List-view empty-state fix: keep normal message position, fill area via container tint */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
  background: transparent !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
  min-height: 0 !important;
  display: block !important;
  padding: 18px 8px !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"] {
  background: transparent;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active {
  background: #f3f4f6;
}

/* List view visual continuity: eliminate mismatched horizontal band */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-view-harness,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-scrollgrid,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-scroller,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-list,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-list-table,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-list-empty,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc-list-empty-cushion {
  background: #f3f4f6 !important;
}

/* Fix global table style bleed into FullCalendar list view */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table tr,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table th,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table td {
  background: #f3f4f6 !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table th,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table td {
  padding: 0 !important;
  border-color: #d9dce2 !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table tr:nth-child(even),
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table tr:nth-child(odd) {
  background: #f3f4f6 !important;
}

/* Robust list-empty rendering: full-height grey fill without table banding */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"] .hj-list-empty-fill {
  display: none;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-empty-state .fc-view-harness {
  display: none !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-empty-state .hj-list-empty-fill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 380px);
  background: #f3f4f6;
  border: 1px solid #d9dce2;
  border-top: 0;
  color: #1f2a37;
  font-size: 2rem;
  font-weight: 500;
}

@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-empty-state .hj-list-empty-fill {
    min-height: calc(100vh - 330px);
    font-size: 2rem;
  }
}

/* Rollback custom list empty-state overlay; use native FullCalendar text/layout */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"] .hj-list-empty-fill,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-empty-state .hj-list-empty-fill {
  display: none !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-empty-state .fc-view-harness {
  display: block !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-empty-cushion {
  min-height: 0 !important;
  display: table-cell !important;
  padding: 18px 8px !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  color: inherit !important;
}

/* List view final cleanup: remove leftover bottom strip/footer row */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc .fc-scrollgrid-section-footer,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc .fc-scrollgrid-section-footer > *,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc .fc-scrollgrid-section-footer td,
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc .fc-scrollgrid-section-footer th {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] [id^="calendar-area-"].hj-list-view-active .fc .fc-list-table {
  margin-bottom: 0 !important;
}

/* Fill remaining tab area in list mode so lower section matches list background */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] {
  background: transparent;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"].hj-list-view-active {
  background: #f3f4f6;
}

/* Calendar toolbar final alignment fix: force top row left on desktop */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-header-toolbar .fc-toolbar-chunk:first-child {
  justify-content: flex-start !important;
}

/* Parent calendar polish: spacing + readable list layout */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] {
  padding-top: 12px;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc {
  font-size: 1rem;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-toolbar-title {
  font-size: clamp(1.12rem, 4.6vw, 1.32rem) !important;
  font-weight: 700;
  line-height: 1.2;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-day-cushion {
  padding: 12px 14px !important;
  font-size: clamp(1.05rem, 4vw, 1.2rem) !important;
  font-weight: 700 !important;
  color: #1f3a5c !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table td.fc-list-event-time {
  padding: 10px 8px 10px 14px !important;
  color: #1f3348 !important;
  white-space: nowrap !important;
  font-size: 1rem !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-table td.fc-list-event-title {
  padding: 10px 14px 10px 6px !important;
  font-size: 1rem !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-event-title a {
  color: #1f3552 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Parent list view: replace blue event dot with checkbox marker */
#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc .fc-list-event-dot {
  display: none !important;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-list-title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-list-status-box {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 2px solid #8fa8c4;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #11e66a;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  background: #ffffff;
}

#adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .hj-list-status-box.is-completed {
  border-color: #0a0a0a;
  background: #0a0a0a;
}

@media (max-width: 600px) {
  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] {
    padding-top: 14px;
  }

  #adult-dashboard-html-page .tab-pane[id^="calendar-tab-"] .fc {
    font-size: 1.02rem;
  }
}

/* Assign Task modal UX polish */
#assign-task-modal .assign-task-modal-content {
  border-radius: 12px;
  overflow: visible;
  max-height: calc(100vh - 1.5rem);
}

#assign-task-modal .assign-task-modal-body {
  background: #f8fafc;
  padding: 16px;
  overflow-y: auto;
  max-height: calc(100vh - 110px);
}

@media (max-width: 576px) {
  #assign-task-modal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100vw - 1rem);
  }

  #assign-task-modal .assign-task-modal-content {
    max-height: calc(100vh - 1rem);
  }

  #assign-task-modal .assign-task-modal-body {
    max-height: calc(100vh - 96px);
    padding: 14px;
  }
}

#assign-task-modal .hj-task-save-helper-top {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef2f7;
  border: 1px solid #dbe4ef;
}

#assign-task-modal .hj-section-label {
  font-weight: 700;
  margin-bottom: 8px;
}

#assign-task-modal .hj-task-type-group .hj-task-type-option {
  display: block;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
}

#assign-task-modal .hj-task-type-title {
  font-weight: 700;
  margin-left: 4px;
}

#assign-task-modal .hj-task-type-subtitle {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-left: 22px;
  margin-top: 2px;
}

#assign-task-modal .hj-selected-task-details {
  background: #eef7ff;
  border: 1px solid #cfe6ff;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

#assign-task-modal #task-assignees {
  min-height: 88px;
}

#assign-task-modal .hj-assign-task-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

#assign-task-modal .task-save-helper {
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}

@media (max-width: 576px) {
  #assign-task-modal .hj-assign-task-footer {
    align-items: stretch;
  }

  #assign-task-modal #save-task-btn {
    width: 100%;
  }
}
/* Assign Task modal: explicit apply button for native time pickers */
.hj-time-input-group .form-control {
  border-right: 0;
}
.hj-time-apply-btn {
  min-width: 44px;
  font-weight: 700;
  color: #1f4a7a;
}

/* Assign Task modal: recurrence select vertical text alignment fix */
#assign-task-modal #recurrence-pattern {
  min-height: 44px;
  line-height: 1.25 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Assign Task modal: recurrence detail controls vertical text alignment */
#assign-task-modal #repeat-every,
#assign-task-modal #recurrence-end-date,
#assign-task-modal #number-of-occurrences {
  min-height: 44px;
  line-height: 1.25 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
/* Assign Task modal: custom recurrence dropdown */
#assign-task-modal .hj-custom-select-wrap {
  position: relative;
  width: 100%;
}
#assign-task-modal .hj-custom-select-btn {
  width: 100%;
  min-height: 44px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #fff;
  color: #495057;
  text-align: left;
  padding: 8px 36px 8px 12px;
  position: relative;
}
#assign-task-modal .hj-custom-select-btn::after {
  content: '\25BE';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #495057;
}
#assign-task-modal .hj-custom-select-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  z-index: 2000;
  margin: 0;
  padding: 4px 0;
  list-style: none;
}
#assign-task-modal .hj-custom-select-wrap.is-open .hj-custom-select-menu {
  display: block;
}
#assign-task-modal .hj-custom-select-wrap.open-down .hj-custom-select-menu {
  top: calc(100% + 4px);
  bottom: auto;
}
#assign-task-modal .hj-custom-select-wrap.open-up .hj-custom-select-menu {
  bottom: calc(100% + 4px);
  top: auto;
}
#assign-task-modal .hj-custom-select-option {
  padding: 8px 12px;
  cursor: pointer;
}
#assign-task-modal .hj-custom-select-option:hover,
#assign-task-modal .hj-custom-select-option.is-selected {
  background: #e9f2ff;
}

/* Assign Task modal: fallback styling for Choices.js searchable standard-task dropdown */
#assign-task-modal .choices {
  position: relative;
  margin-bottom: 0.5rem;
}

#assign-task-modal .choices__inner {
  min-height: 44px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #fff;
  padding: 6px 10px;
}

#assign-task-modal .choices__list--single {
  display: block;
  padding: 2px 20px 2px 0;
}

#assign-task-modal .choices__list--single .choices__item {
  color: #495057;
}

#assign-task-modal .choices[data-type*="select-one"]::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6c757d;
  border-bottom: 2px solid #6c757d;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

#assign-task-modal .choices__list--dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 2050;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
}

#assign-task-modal .choices.is-open .choices__list--dropdown {
  display: block;
}

#assign-task-modal .choices__list--dropdown .choices__input {
  width: calc(100% - 16px);
  margin: 8px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 6px 10px;
}

#assign-task-modal .choices__list--dropdown .choices__item--choice {
  padding: 8px 10px;
  cursor: pointer;
  color: #343a40;
}

#assign-task-modal .choices__list--dropdown .choices__item--choice.is-highlighted {
  background: #e9f2ff;
}
/* Assign Task modal: enforce full-height layout so body has real scroll room */
#assign-task-modal .modal-dialog {
  height: calc(100vh - 1rem);
  margin: 0.5rem auto;
  max-width: 560px;
  display: flex;
  align-items: stretch;
}

#assign-task-modal .assign-task-modal-content {
  width: 100%;
  height: 100%;
  max-height: none;
  display: flex;
  flex-direction: column;
}

#assign-task-modal .modal-header,
#assign-task-modal .modal-footer {
  flex: 0 0 auto;
}

#assign-task-modal .assign-task-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: none;
}

@media (max-width: 576px) {
  #assign-task-modal .modal-dialog {
    height: calc(100vh - 0.75rem);
    margin: 0.375rem;
    max-width: calc(100vw - 0.75rem);
  }
}

/* Choices dropdown must overlay, not push modal content down */
#assign-task-modal .choices {
  position: relative;
}

#assign-task-modal .choices__list--dropdown {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  max-height: 220px !important;
  overflow-y: auto !important;
  z-index: 3000 !important;
}

/* Standard task searchable dropdown: larger selectable area */
#assign-task-modal .choices__list--dropdown {
  max-height: min(78vh, 640px) !important;
}

#assign-task-modal .choices__list--dropdown .choices__list {
  max-height: calc(min(78vh, 640px) - 56px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 576px) {
  #assign-task-modal .choices__list--dropdown {
    max-height: min(80vh, 680px) !important;
  }

  #assign-task-modal .choices__list--dropdown .choices__list {
    max-height: calc(min(80vh, 680px) - 56px);
  }
}

/* Standard task dropdown: hide placeholder row in opened list */
#assign-task-modal .choices__list--dropdown .choices__item--choice[data-value=""] {
  display: none !important;
}

/* Assign Task: make dropdown typing box stand out from selectable rows */
#assign-task-modal .choices__list--dropdown .choices__input {
  background: #ffffff;
  border: 2px solid #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
  border-radius: 8px;
  font-weight: 600;
}

#assign-task-modal .choices__list--dropdown .choices__item--choice {
  border-top: 1px solid #e5e7eb;
}

/* Choices.js: hide non-matching options during search */
#assign-task-modal .choices__list--dropdown .choices__item--choice.is-hidden {
  display: none !important;
}

/* Assign Task modal: tighten Start/End time input width and explicit Confirm button */
#assign-task-modal .hj-time-input-group {
  max-width: 420px;
}
#assign-task-modal .hj-time-input-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
}
#assign-task-modal .hj-time-apply-btn {
  min-width: 96px;
  padding: 0 14px;
  font-size: 0.95rem;
}

/* Assign Task modal: separate Confirm button from time input (no merged control) */
#assign-task-modal .hj-time-input-group {
  max-width: 420px;
}
#assign-task-modal .hj-time-input-group .form-control {
  border-right: 1px solid #ced4da !important;
  border-radius: .25rem !important;
}
#assign-task-modal .hj-time-input-group .input-group-append {
  margin-left: 8px;
}
#assign-task-modal .hj-time-input-group .hj-time-apply-btn {
  width: auto !important;
  min-width: 96px;
  border: 1px solid #ced4da !important;
  border-radius: .25rem !important;
  background: #fff !important;
}
/* Assign Task modal: Confirm button gives pressed feedback, then remains readable */
#assign-task-modal .hj-time-input-group .hj-time-apply-btn {
  color: #1f4a7a !important;
  background-color: #ffffff !important;
  border-color: #ced4da !important;
  transition: background-color .12s ease, color .12s ease, box-shadow .12s ease;
}
#assign-task-modal .hj-time-input-group .hj-time-apply-btn:hover {
  color: #1f4a7a !important;
  background-color: #f8f9fa !important;
  border-color: #bfc8d1 !important;
}
#assign-task-modal .hj-time-input-group .hj-time-apply-btn:focus,
#assign-task-modal .hj-time-input-group .hj-time-apply-btn:active,

#assign-task-modal .hj-time-input-group .hj-time-apply-btn.is-applied {
  color: #ffffff !important;
  background-color: #1f4a7a !important;
  border-color: #16385c !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.15) !important;
}

/* Assign Task modal: compact layout override (final) */
#assign-task-modal .assign-task-modal-body {
  padding: 12px !important;
}

#assign-task-modal .form-group {
  margin-bottom: 0.6rem !important;
}

#assign-task-modal .hj-section-label,
#assign-task-modal label {
  margin-bottom: 4px !important;
  line-height: 1.2 !important;
}

#assign-task-modal .hj-task-save-helper-top {
  margin-bottom: 6px !important;
  padding: 8px 10px !important;
}

#assign-task-modal .hj-task-type-group .hj-task-type-option {
  padding: 8px 10px !important;
  margin-bottom: 6px !important;
}

#assign-task-modal .hj-selected-task-details {
  padding: 10px !important;
  margin-top: 8px !important;
  margin-bottom: 6px !important;
}

#assign-task-modal .hj-selected-task-details p,
#assign-task-modal .hj-selected-task-details .mb-0,
#assign-task-modal .hj-selected-task-details .mb-1,
#assign-task-modal .hj-selected-task-details .mb-2 {
  margin-bottom: 4px !important;
}

#assign-task-modal input.form-control,
#assign-task-modal select.form-control,
#assign-task-modal .hj-custom-select-btn,
#assign-task-modal #repeat-every,
#assign-task-modal #recurrence-end-date,
#assign-task-modal #number-of-occurrences {
  min-height: 38px !important;
  height: 38px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

#assign-task-modal .custom-control,
#assign-task-modal .form-check {
  margin-bottom: 2px !important;
}

#assign-task-modal .hj-time-input-group {
  max-width: 380px !important;
}

#assign-task-modal .hj-time-input-group .input-group-append {
  margin-left: 6px !important;
}

#assign-task-modal .hj-time-input-group .hj-time-apply-btn {
  min-width: 88px !important;
  height: 38px !important;
  padding: 0 12px !important;
}

#assign-task-modal .hj-assign-task-footer {
  padding: 8px 12px !important;
}

#assign-task-modal #save-task-btn {
  height: 42px !important;
}

@media (max-width: 576px) {
  #assign-task-modal .assign-task-modal-body {
    padding: 10px !important;
  }

  #assign-task-modal .hj-time-input-group {
    max-width: 100% !important;
  }

  #assign-task-modal .hj-time-input-group .hj-time-apply-btn {
    min-width: 96px !important;
  }
}

/* Assign Task modal: custom-task category checklist */
#assign-task-modal #category-selection-count {
  color: #4b5e7f;
}

#assign-task-modal #category-toggle-btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.22rem 0.7rem;
}

#assign-task-modal .hj-category-picker-panel {
  border: 1px solid #d3e1f6;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px;
}

#assign-task-modal #category-suggestions {
  max-height: min(44vh, 360px);
  overflow-y: auto;
  border: 1px solid #ced4da;
  border-radius: 6px;
  background: #fff;
}

#assign-task-modal #category-suggestions .hj-category-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
}

#assign-task-modal #category-suggestions .hj-category-option:first-child {
  border-top: 0;
}

#assign-task-modal #category-suggestions .hj-category-option:hover {
  background: #f8fbff;
}

#assign-task-modal #category-suggestions .hj-category-checkbox {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
}

#assign-task-modal #category-suggestions .hj-category-label {
  line-height: 1.2;
}

#assign-task-modal .hj-category-picker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

#assign-task-modal #category-clear-btn,
#assign-task-modal #category-done-btn {
  min-width: 110px;
}

/* Assign Task modal: selected-category remove button cleanup */
#assign-task-modal #category-list .list-group-item {
  gap: 10px;
}

#assign-task-modal #category-list .btn.btn-danger.btn-sm {
  margin-left: auto;
  width: auto !important;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  line-height: 1;
  box-shadow: none;
}

#assign-task-modal #category-list .btn.btn-danger.btn-sm:hover {
  background: #eef2f7;
  border-color: #94a3b8;
  color: #334155;
}

/* Assign Task modal: first-screen visual refresh (compact + less dead space) */
#assign-task-modal .modal-dialog {
  height: auto !important;
  max-height: calc(100vh - 1rem) !important;
  margin: 0.5rem auto !important;
  display: block !important;
}

#assign-task-modal .assign-task-modal-content {
  height: auto !important;
  max-height: calc(100vh - 1rem) !important;
  border: 1px solid #c9d8f3;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 16px 36px rgba(18, 53, 96, 0.22);
}

#assign-task-modal .modal-header {
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%);
  border-bottom: 1px solid #d5e2f7;
  padding: 14px 18px;
}

#assign-task-modal .modal-title {
  font-weight: 700;
  color: #1f3f74;
}

#assign-task-modal .modal-header .close {
  opacity: 0.75;
  color: #1f3f74;
  text-shadow: none;
}

#assign-task-modal .assign-task-modal-body {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%) !important;
  padding: 14px !important;
  max-height: calc(100vh - 128px) !important;
}

#assign-task-modal #assign-task-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#assign-task-modal .hj-task-save-helper-top {
  background: #eaf2ff !important;
  border: 1px solid #c8daf6 !important;
  border-radius: 10px !important;
  color: #22497b;
  font-size: 12px;
  line-height: 1.35;
}

#assign-task-modal .hj-task-type-group {
  background: #ffffff;
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 5px 14px rgba(37, 85, 156, 0.07);
}

#assign-task-modal .hj-task-type-group.hj-task-type-group-selected .hj-task-type-option-hidden {
  display: none !important;
}

#assign-task-modal .hj-section-label {
  font-size: 1.05rem;
  color: #1f3f74;
  margin-bottom: 10px !important;
}

#assign-task-modal .hj-task-type-group .hj-task-type-option {
  border: 1px solid #d6e2f4 !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin-bottom: 10px !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

#assign-task-modal .hj-task-type-group .hj-task-type-option:last-child {
  margin-bottom: 0 !important;
}

#assign-task-modal .hj-task-type-group .hj-task-type-option:hover {
  background: #f8fbff;
  border-color: #9bbcf0 !important;
}

#assign-task-modal .hj-task-type-option .form-check-input {
  margin-top: 0.2rem;
}

#assign-task-modal .hj-task-type-option .form-check-input:checked ~ .hj-task-type-title {
  color: #1152a5;
}

#assign-task-modal .hj-task-type-option .form-check-input:checked ~ .hj-task-type-subtitle {
  color: #2a5fa6;
}

#assign-task-modal #save-task-btn {
  border-radius: 10px !important;
  font-weight: 700;
}

@media (max-width: 576px) {
  #assign-task-modal .modal-dialog {
    max-height: calc(100vh - 0.75rem) !important;
    margin: 0.375rem !important;
  }

  #assign-task-modal .assign-task-modal-content {
    max-height: calc(100vh - 0.75rem) !important;
  }

  #assign-task-modal .assign-task-modal-body {
    max-height: calc(100vh - 118px) !important;
    padding: 12px !important;
  }
}

/* Assign Task: keep standard-task choices list inline and tall (better mobile scan/scroll). */
#assign-task-modal #standard-task-section .choices {
  margin-bottom: 0 !important;
}

#assign-task-modal #standard-task-section .choices__list--dropdown {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  margin-top: 8px !important;
  width: 100% !important;
  max-height: min(64vh, 520px) !important;
  overflow: hidden !important;
  border: 1px solid #bcd1ef !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 20px rgba(18, 53, 96, 0.16) !important;
}

#assign-task-modal #standard-task-section .choices__list--dropdown .choices__list {
  max-height: calc(min(64vh, 520px) - 58px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

#assign-task-modal #standard-task-section .choices__list--dropdown .choices__item--choice {
  min-height: 42px;
  display: flex;
  align-items: center;
}

@media (max-width: 576px) {
  #assign-task-modal #standard-task-section .choices__list--dropdown {
    max-height: min(66vh, 540px) !important;
  }

  #assign-task-modal #standard-task-section .choices__list--dropdown .choices__list {
    max-height: calc(min(66vh, 540px) - 58px) !important;
  }
}

/* Complete Task modal visual polish only (no layout/expansion overrides) */
#taskEventEditModal .modal-content {
  border: 1px solid #c9d8f3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(18, 53, 96, 0.2);
}

#taskEventEditModal .modal-header {
  background: linear-gradient(180deg, #f4f8ff 0%, #eaf2ff 100%);
  border-bottom: 1px solid #d5e2f7;
}

#taskEventEditModal .modal-title {
  font-weight: 700;
  color: #1f3f74;
}

#taskEventEditModal .modal-header .close {
  opacity: 0.75;
  color: #1f3f74;
  text-shadow: none;
}

#taskEventEditModal .modal-body {
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
}

#taskEventEditModal .form-group {
  background: #ffffff;
  border: 1px solid #d8e5f8;
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 10px;
  box-shadow: 0 4px 10px rgba(37, 85, 156, 0.06);
}

#taskEventEditModal .form-group label {
  margin-bottom: 5px;
  font-weight: 700;
  color: #1f3f74;
}

#taskEventEditModal input.form-control[readonly],
#taskEventEditModal textarea.form-control[readonly] {
  background: #f8fbff;
  border-color: #d5e2f7;
  color: #28466f;
}

#taskEventEditModal #modal-rating-icons {
  border: 1px solid #d8e5f8;
  border-radius: 10px;
  background: #f8fbff;
  padding: 7px 9px;
}

#taskEventEditModal .modal-footer {
  background: #ffffff;
  border-top: 1px solid #d5e2f7;
}

#taskEventEditModal #save-task-edit,
#taskEventEditModal #close-task-edit {
  border-radius: 10px;
  font-weight: 700;
}

#taskEventEditModal .hj-taskedit-row-top,
#taskEventEditModal .hj-taskedit-row-status-rating {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 10px 0;
}

#taskEventEditModal .hj-taskedit-row-top > .form-group,
#taskEventEditModal .hj-taskedit-row-status-rating > .form-group {
  margin-bottom: 0;
  min-width: 0;
}

#taskEventEditModal .hj-taskedit-col-task-type {
  flex: 2.1 1 0;
}

#taskEventEditModal .hj-taskedit-col-points {
  flex: 1 1 0;
}

#taskEventEditModal .hj-taskedit-col-status {
  flex: 1.25 1 0;
}

#taskEventEditModal .hj-taskedit-col-rating {
  flex: 1.05 1 0;
}

#taskEventEditModal .hj-taskedit-row-status-rating #modal-rating-icons {
  justify-content: flex-start;
}

#taskEventEditModal .hj-taskedit-row-status-rating .custom-control {
  margin-bottom: 2px;
}

/* Notifications panel refresh */
.notifications-panel {
    background: #f6f9ff;
    border: 1px solid #c9d8f3;
    border-radius: 10px;
    padding: 12px;
}

.notifications-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.notifications-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f3f74;
}

.notifications-mark-read-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1558c0;
    background: #e9f1ff;
    border: 1px solid #bcd1f7;
    border-radius: 8px;
    padding: 6px 10px;
    text-decoration: none;
    line-height: 1.2;
}

.notifications-mark-read-btn:hover,
.notifications-mark-read-btn:focus {
    color: #0f4698;
    background: #dce9ff;
    text-decoration: none;
}

.notifications-list-ui {
    border-radius: 8px;
    overflow: hidden;
}

.notifications-list-ui .list-group-item {
    border-color: #d7e2f5;
    background: #ffffff;
}

.notifications-list-ui .hj-notification-item {
    transition: background-color 120ms ease;
}

.notifications-list-ui .hj-notification-item:hover {
    background: #f2f7ff;
}

@media (max-width: 576px) {
    .notifications-panel-header {
        flex-direction: column;
        align-items: stretch;
    }

    .notifications-mark-read-btn {
        width: 100%;
    }
}

/* My Circle layout */
.my-circle-shell {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 12px 0 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
}

.my-circle-subtabs-wrap {
    margin-bottom: 0;
    padding: 0;
    border-bottom: 0;
}

.my-circle-subtabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border: none;
    border-radius: 0;
    background: transparent;
}

.my-circle-subtabs .nav-item {
    flex: 1 1 50%;
    margin: 0;
    display: flex;
}

.my-circle-subtabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    width: 100%;
    min-height: 62px;
    height: 62px;
    padding: 0.62rem 0.75rem;
    margin: 0;
    border-radius: 12px 12px 0 0;
    border: 1px solid #1f3f74;
    border-bottom-color: #1f3f74;
    background: #1f3f74;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: normal;
}

.my-circle-subtabs .nav-item + .nav-item .nav-link {
    border-left-width: 0;
}

.my-circle-subtabs .nav-link:hover,
.my-circle-subtabs .nav-link:focus {
    color: #ffffff;
    background: #17315b;
    text-decoration: none;
}

.my-circle-subtabs .nav-link.active {
    background: #dbeeff;
    color: #1f3f74;
    border-color: #9ec7ff;
    border-bottom-color: #dbeeff;
    margin-bottom: -1px;
    position: relative;
    z-index: 2;
}

.my-circle-subbody {
    border: 1px solid #9ec7ff;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #dbeeff;
    padding: 12px;
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    max-height: none;
    -webkit-overflow-scrolling: touch;
}

.my-circle-subbody .my-circle-connections-search-wrap {
    width: 100%;
    margin: 0 0 12px 0;
}

.my-circle-subbody .my-circle-connections-search-group {
    width: 100%;
}

.my-circle-subbody .my-circle-connections-search-icon {
    border-color: #b7cfee !important;
    border-right: 0 !important;
    background: #eaf4ff !important;
    color: #54729a;
    font-size: 1rem;
    line-height: 1;
    padding-left: 12px;
    padding-right: 10px;
}

.my-circle-subbody .my-circle-connections-search-group .form-control {
    border-left: 0 !important;
}

#adult-dashboard-html-page .tab-pane[id^="requests-section-"] > .my-circle-shell,
#adult-dashboard-html-page .tab-pane[id^="connections-section-"] > .my-circle-shell {
    height: 100%;
    min-height: 0;
}

.my-circle-subbody .list-group-item {
    border-color: #d5dbe6;
}

/* My Circle panes should consume full available profile-pane height */
#adult-dashboard-html-page #family-tab-content .tab-pane .tab-content > .tab-pane[id^="requests-section-"],
#adult-dashboard-html-page #family-tab-content .tab-pane .tab-content > .tab-pane[id^="connections-section-"] {
    height: 100%;
    min-height: 0;
}

/* My Circle unified surface: tint inner content light-blue */
.my-circle-subbody .my-circle-invitations-header,
.my-circle-subbody [id^="request-list-"],
.my-circle-subbody [id^="request-list-"] .list-group-item,
.my-circle-subbody .my-circle-suggestions-header,
.my-circle-subbody .my-circle-suggestions,
.my-circle-subbody .my-circle-suggestions .suggestion-card,
.my-circle-subbody .my-circle-suggestions .suggestion-card .suggestion-card-body,
.my-circle-subbody [id^="connections-list-"] .list-group-item,
.my-circle-subbody .form-control,
.my-circle-subbody .custom-select {
    background: #eaf4ff !important;
}

.my-circle-subbody .my-circle-invitations-header,
.my-circle-subbody [id^="request-list-"],
.my-circle-subbody .my-circle-suggestions-header,
.my-circle-subbody .my-circle-suggestions,
.my-circle-subbody .my-circle-suggestions .suggestion-card,
.my-circle-subbody .form-control,
.my-circle-subbody .custom-select {
    border-color: #b7cfee !important;
}

/* Keep Invitations title band light gray for contrast */
.my-circle-subbody .my-circle-invitations-header {
    background: #cfd4da !important;
}

.my-circle-subbody .my-circle-suggestions-header {
    background: #cfd4da !important;
}

@media (max-width: 576px) {
    .my-circle-shell {
        border-radius: 0;
        padding: 10px 0 0;
    }

    .my-circle-subtabs .nav-link {
        font-size: 0.96rem;
        padding: 0.52rem 0.5rem;
        min-height: 56px;
        height: 56px;
        margin: 0;
    }

    .my-circle-subbody {
        padding: 10px;
        max-height: none;
    }
}


.my-circle-suggestions-header {
    padding: 10px 14px;
    border: 1px solid #d5dbe6;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #ffffff;
    color: #1f2d45;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}

.my-circle-suggestions {
    border: 1px solid #d5dbe6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
    padding: 12px;
    margin-top: 0;
    overflow: visible;
}

.grow-circle-grid .suggestion-card {
    border: 1px solid #d5dbe6 !important;
    border-radius: 10px;
    box-shadow: none !important;
}

.grow-circle-grid .suggestion-card .btn {
    width: 100%;
}

[id^="name-search-form-"] {
    margin-bottom: 0.75rem;
}

.my-circle-suggestions [id^="name-search-form-"] {
    margin: 0 6px 0.4rem;
}

.my-circle-suggestions [id^="name-search-form-"] .form-control {
    width: 100%;
}
.my-circle-suggestions .grow-circle-grid {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.my-circle-suggestions .grow-circle-results {
    margin-bottom: 0.4rem !important;
}

.my-circle-suggestions .grow-circle-results:empty {
    margin-bottom: 0 !important;
    border: 0 !important;
    padding: 0 !important;
}

.my-circle-suggestions .grow-circle-grid > [class*="col-"] {
    display: flex;
    align-items: stretch;
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 6px !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card {
    width: 100%;
    height: 100%;
    padding: 0.45rem !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .profile-img,
.my-circle-suggestions .grow-circle-grid .suggestion-card .rounded-circle {
    width: 56px !important;
    height: 56px !important;
    margin-right: 0.6rem !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card strong {
    font-size: 0.95rem;
    line-height: 1.15;
}


.my-circle-suggestions .grow-circle-grid .suggestion-card .d-flex.align-items-center {
    margin-bottom: 0 !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card small,
.my-circle-suggestions .grow-circle-grid .suggestion-card .text-muted {
    display: block !important;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #5a6472;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .btn {
    margin-top: 0.25rem !important;
    padding: 0.3rem 0.5rem;
}
/* My Circle invitation rows */
.request-row-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.request-row-compact.request-unread {
    background: #f7fbff;
}

.request-row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.request-avatar {
    border-radius: 999px;
    border: 1px solid #d7e2f5;
    flex: 0 0 44px;
}

.request-name {
    font-size: 1.03rem;
    font-weight: 700;
    color: #18253f;
    line-height: 1.2;
    word-break: break-word;
}

.request-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.request-row-actions .btn {
    margin-right: 0 !important;
    width: 92px;
    min-width: 92px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .request-row-compact {
        align-items: flex-start;
        gap: 10px;
    }

    .request-row-left {
        align-items: flex-start;
        gap: 10px;
    }

    .request-name {
        font-size: 1.02rem;
    }

    .request-row-actions {
        gap: 6px;
    }

    .request-row-actions .btn {
        width: 82px;
        min-width: 82px;
        padding: 0.22rem 0.35rem;
        font-size: 0.88rem;
    }
}

.my-circle-invitations-header {
    padding: 10px 14px;
    border: 1px solid #d5dbe6;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
    background: #ffffff;
    color: #1f2d45;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.2;
}
/* My Circle invitations list: keep tall lists scrollable without pushing Suggestions down */
[id^="request-list-"] {
    display: block;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #d5dbe6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
}

@media (min-width: 769px) {
    [id^="request-list-"] {
        max-height: 420px;
    }
}






















/* Parent tabs mobile wrap override (allows Analytics on second row) */
@media (max-width: 768px) {
  #adult-dashboard-html-page #parent-tab-list,
  #child-dashboard-html-page #parent-tab-list {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px !important;
    overflow: visible !important;
    white-space: normal !important;
    align-items: stretch !important;
    padding: 2px 0 0 !important;
  }

  #adult-dashboard-html-page #parent-tab-list .nav-item,
  #child-dashboard-html-page #parent-tab-list .nav-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    margin: 0 !important;
  }

  #adult-dashboard-html-page #parent-tab-list .nav-link,
  #child-dashboard-html-page #parent-tab-list .nav-link {
    display: block !important;
    width: 100% !important;
    font-size: 0.92rem !important;
    padding: 0.42rem 0.5rem !important;
    text-align: center;
    line-height: 1.1 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 10px !important;
    opacity: 0.9;
  }

  #adult-dashboard-html-page #parent-tab-list .nav-link.active,
  #child-dashboard-html-page #parent-tab-list .nav-link.active {
    opacity: 1;
    background: #f8fbff !important;
    color: #1f3a5c !important;
    border: 1px solid #d5dde8 !important;
    border-bottom-color: #f8fbff !important;
    border-radius: 10px 10px 0 0 !important;
    box-shadow: none !important;
  }

  #adult-dashboard-html-page #parent-tab-list .nav-link.active {
    background: #F9F5EC !important;
    color: #2F3B52 !important;
    border-bottom-color: #F9F5EC !important;
  }

  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(1),
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(1) { order: 4; }
  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(2),
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(2) { order: 5; }
  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(3),
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(3) { order: 6; }
  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(4),
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(4) { order: 1; }
  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(5),
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(5) { order: 2; }
  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(6),
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped .nav-item:nth-child(6) { order: 3; }

  #adult-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped.hj-parent-rows-swapped-5::before,
  #child-dashboard-html-page #parent-tab-list.hj-parent-rows-swapped.hj-parent-rows-swapped-5::before {
    content: "";
    display: block;
    order: 3;
    visibility: hidden;
    pointer-events: none;
  }
}

/* Parent overview top cards (analytics + quick actions) */
#adult-dashboard-html-page .hj-parent-overview-top {
  margin-bottom: 12px;
}

#adult-dashboard-html-page .hj-parent-overview-top.hj-parent-overview-top-onboarding {
  margin-top: 14px;
}

#adult-dashboard-html-page .hj-overview-hero.hj-parent-greeting-hero,
#adult-dashboard-html-page .hj-overview-hero.hj-parent-motivation-hero {
  padding-top: 10px;
}

#adult-dashboard-html-page .hj-parent-hero-emoji {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 8px;
}

#adult-dashboard-html-page .hj-parent-points-card {
  background: #F3F0FA;
  border: 1px solid #C8BDD9;
  border-left: 1px solid #C8BDD9 !important;
  border-radius: 14px;
  box-shadow: none;
  padding: 10px 14px 7px;
}

#adult-dashboard-html-page .hj-parent-points-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#adult-dashboard-html-page .hj-parent-points-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: #2E3354;
  line-height: 1.2;
}

#adult-dashboard-html-page .hj-parent-points-left {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}

#adult-dashboard-html-page .hj-parent-points-trophy {
  font-size: 1.8rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  min-width: 1.25rem;
  min-height: 2.2rem;
}

#adult-dashboard-html-page .hj-parent-points-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#adult-dashboard-html-page .hj-parent-points-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #2E3354;
  line-height: 1.2;
}

#adult-dashboard-html-page .hj-parent-points-value {
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
  color: #2E3354;
  margin-top: 0.15rem;
}

#adult-dashboard-html-page .hj-parent-points-card .hj-overview-updated {
  align-self: flex-start;
}

#adult-dashboard-html-page .hj-parent-points-card .hj-overview-updated {
  background: #E9E3F3;
  color: #5A5F7A;
  font-size: 0.72rem;
  padding: 2px 8px;
  margin-top: 0;
}

#adult-dashboard-html-page .hj-parent-family-points-list {
  margin-top: 8px;
  margin-right: 2px;
}

#adult-dashboard-html-page .hj-parent-family-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#adult-dashboard-html-page .hj-parent-family-points-row + .hj-parent-family-points-row {
  margin-top: 2px;
}

#adult-dashboard-html-page .hj-parent-family-points-name {
  color: #2E3354;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 500;
}

#adult-dashboard-html-page .hj-parent-family-points-value {
  color: #2E3354;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  min-width: 24px;
  text-align: right;
}

#adult-dashboard-html-page .hj-parent-family-summary {
  margin-top: 4px;
  border-top: 1px solid #d8d2e6;
  padding-top: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

#adult-dashboard-html-page .hj-parent-family-summary-label {
  color: #2E3354;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

#adult-dashboard-html-page .hj-parent-family-summary-value {
  margin-left: auto;
  color: #2E3354;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  min-width: 24px;
}

#adult-dashboard-html-page .hj-parent-analytics-link {
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 600;
  color: #5E6ECF;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-block;
  margin-top: 2px;
  margin-left: 0;
}

#adult-dashboard-html-page .hj-parent-quick-actions .hj-card-title {
  margin-bottom: 0.1rem;
}

#adult-dashboard-html-page .hj-parent-quick-actions.hj-parent-journey-card-flat {
  background: #F3F0FA;
  border: 1px solid #CFC3E6;
  border-left: 1px solid #CFC3E6 !important;
  border-radius: 14px;
  box-shadow: none;
  padding: 12px 14px;
}

#adult-dashboard-html-page .hj-parent-journey-header {
  margin-bottom: 0.65rem;
}

#adult-dashboard-html-page .hj-parent-journey-tip {
  background: #F3F0FA;
  border: 1px solid #C8DFFF;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

#adult-dashboard-html-page .hj-parent-journey-tip-title {
  color: #1E3557;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

#adult-dashboard-html-page .hj-parent-journey-tip-copy {
  color: #4C557A;
  font-size: 0.82rem;
  line-height: 1.35;
}

#adult-dashboard-html-page .hj-parent-s0-welcome-block {
  padding: 4px 8px 10px;
}

#adult-dashboard-html-page .hj-parent-s0-welcome {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

#adult-dashboard-html-page .hj-parent-s0-title {
  color: #2E3354;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

#adult-dashboard-html-page .hj-parent-s0-copy {
  color: #4C557A;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-bottom: 12px;
}

#adult-dashboard-html-page .hj-parent-s0-list-title {
  color: #2E3354;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 8px;
  margin-bottom: 4px;
}

#adult-dashboard-html-page .hj-parent-s0-list {
  margin: 0 0 12px 16px;
  padding: 0;
  color: #4C557A;
  font-size: 0.82rem;
  line-height: 1.35;
}

#adult-dashboard-html-page .hj-parent-s0-list li {
  margin-bottom: 2px;
}

#adult-dashboard-html-page .hj-parent-s0-list:last-child {
  margin-bottom: 0;
}

#adult-dashboard-html-page .hj-parent-s0-cta-card {
  margin-top: 10px;
  padding: 14px 14px;
}

#adult-dashboard-html-page .hj-parent-s0-cta-card .hj-parent-journey-primary {
  margin-top: 8px;
}

#adult-dashboard-html-page .hj-parent-s0-cta-card .hj-parent-journey-btn {
  padding: 12px 14px;
}

#adult-dashboard-html-page .hj-parent-journey-progress {
  color: #4C557A;
  font-size: 0.86rem;
  line-height: 1.25;
}

#adult-dashboard-html-page .hj-parent-s1-copy {
  color: #4C557A;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

#adult-dashboard-html-page .hj-parent-s1-copy-emphasis {
  color: #2E3354;
  font-weight: 700;
}

#adult-dashboard-html-page .hj-parent-s1-info-block {
  padding: 0 8px 10px;
}

#adult-dashboard-html-page .hj-parent-s1-list-title {
  color: #2E3354;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 8px;
  margin-bottom: 4px;
}

#adult-dashboard-html-page .hj-parent-s1-task-types-list {
  margin: 0 0 0 18px;
  padding: 0;
  color: #4C557A;
  font-size: 0.82rem;
  line-height: 1.35;
}

#adult-dashboard-html-page .hj-parent-s1-task-types-list li + li {
  margin-top: 3px;
}

#adult-dashboard-html-page .hj-parent-s1-parent-model-copy {
  margin-top: 10px;
  margin-bottom: 0;
}

#adult-dashboard-html-page .hj-parent-s1-cta-card {
  margin-top: 10px;
  padding: 14px 14px;
}

#adult-dashboard-html-page .hj-parent-s2-info-block {
  padding: 0 8px 10px;
}

#adult-dashboard-html-page .hj-parent-s2-title {
  color: #2E3354;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

#adult-dashboard-html-page .hj-parent-s2-copy {
  color: #4C557A;
  font-size: 0.85rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

#adult-dashboard-html-page .hj-parent-s2-copy-emphasis {
  color: #000000;
  font-weight: 700;
}

#adult-dashboard-html-page .hj-parent-s2-task-views-list {
  margin: 0 0 8px 18px;
  padding: 0;
  color: #2E3354;
  font-size: 0.81rem;
  line-height: 1.3;
}

#adult-dashboard-html-page .hj-parent-s2-task-views-list li + li {
  margin-top: 3px;
}

#adult-dashboard-html-page .hj-parent-s2-link {
  color: #1E88E5;
  text-decoration: underline;
}

#adult-dashboard-html-page .hj-parent-journey-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-bottom: 10px;
}

#adult-dashboard-html-page .hj-parent-journey-secondary-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 2px;
  margin-bottom: 6px;
}

#adult-dashboard-html-page .hj-parent-journey-btn {
  border: 1px solid #B8A9D9;
  border-radius: 12px;
  background: #FFFFFF;
  color: #2E3354;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
}

#adult-dashboard-html-page .hj-parent-journey-btn-primary {
  background: #1c8fe6;
  border-color: #1c8fe6;
  color: #ffffff;
}

#adult-dashboard-html-page .hj-parent-journey-btn-title {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

#adult-dashboard-html-page .hj-parent-journey-btn-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.92;
}

#adult-dashboard-html-page .hj-parent-journey-btn:not(.hj-parent-journey-btn-primary) .hj-parent-journey-btn-sub {
  color: #5A5F7A;
}

#adult-dashboard-html-page .hj-parent-journey-btn:hover,
#adult-dashboard-html-page .hj-parent-journey-btn:focus {
  text-decoration: none;
  border-color: #8A74B8;
}

#adult-dashboard-html-page .hj-parent-journey-btn-primary:hover,
#adult-dashboard-html-page .hj-parent-journey-btn-primary:focus {
  border-color: #1477c3;
  background: #1477c3;
}

#adult-dashboard-html-page .hj-parent-journey-btn-half {
  text-align: center;
  padding: 9px 8px;
}

#adult-dashboard-html-page .hj-parent-journey-btn-half .hj-parent-journey-btn-title {
  font-size: 0.86rem;
  line-height: 1.2;
}

#adult-dashboard-html-page .hj-parent-journey-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-top: 2px;
  margin-bottom: 6px;
}

#adult-dashboard-html-page .hj-parent-journey-link {
  display: block;
  text-align: center;
  border: 1px solid #CFC3E6;
  border-radius: 10px;
  background: #EEE7F8;
  color: #4C4FB3;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 10px;
  text-decoration: none;
}

#adult-dashboard-html-page .hj-parent-journey-link:hover,
#adult-dashboard-html-page .hj-parent-journey-link:focus {
  text-decoration: none;
  border-color: #B8A9D9;
}

#adult-dashboard-html-page .hj-parent-demo-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  #adult-dashboard-html-page .hj-parent-analytics-link {
    font-size: 0.84rem;
  }

  #adult-dashboard-html-page .hj-parent-demo-link {
    font-size: 0.95rem;
  }

  #adult-dashboard-html-page .hj-parent-journey-btn-title {
    font-size: 0.93rem;
  }

  #adult-dashboard-html-page .hj-parent-journey-btn-sub {
    font-size: 0.77rem;
  }

  #adult-dashboard-html-page .hj-parent-journey-btn-half .hj-parent-journey-btn-title {
    font-size: 0.81rem;
  }

  #adult-dashboard-html-page .hj-parent-journey-link {
    font-size: 0.83rem;
    padding: 7px 8px;
  }
}

/* My Settings: profile form */
#my_settings_html_page .profile-settings-card {
  background: #f8fbff;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 12px;
  padding: 14px;
}

#my_settings_html_page .settings-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

#my_settings_html_page .settings-profile-preview-img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d7e6ff;
  background: #eef4ff;
}

#my_settings_html_page .settings-profile-fields {
  flex: 1;
  min-width: 0;
}

#my_settings_html_page #save-profile-settings-btn {
  min-width: 130px;
}

#my_settings_html_page #profile-settings-msg {
  font-weight: 500;
}

@media (max-width: 576px) {
  #my_settings_html_page .settings-profile-row {
    flex-direction: column;
    align-items: stretch;
  }

  #my_settings_html_page .settings-profile-preview-img {
    width: 76px;
    height: 76px;
  }

  #my_settings_html_page #save-profile-settings-btn {
    width: 100%;
  }
}


/* My Circle - suggestion cards (centered profile stack + bottom actions) */
.my-circle-suggestions .grow-circle-grid .suggestion-card {
    display: flex;
    flex-direction: column;
    min-height: 174px;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .suggestion-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.2rem;
    flex: 1 1 auto;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .suggestion-avatar {
    margin: 0 0 0.35rem 0 !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .suggestion-name {
    display: block;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .suggestion-short-text {
    display: none !important;
    color: #5a6472;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .suggestion-card-footer {
    margin-top: auto;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card.suggestion-card-compact {
    min-height: 154px;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card.suggestion-card-compact .suggestion-card-body {
    flex: 1 1 auto;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card.suggestion-card-compact .suggestion-card-footer {
    margin-top: auto;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card.suggestion-card-has-mutual {
    min-height: 188px;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .mutual-summary,
.my-circle-suggestions .grow-circle-grid .suggestion-card .mutual-summary-label {
    text-align: center;
    margin-bottom: 0.35rem !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .mutual-list {
    text-align: left;
    margin: 0.25rem auto 0 auto;
    width: fit-content;
}
.my-circle-suggestions .grow-circle-grid .suggestion-card .mutual-toggle-text {
    color: #2f3f57;
    font-weight: 500;
    text-decoration: none;
}
.my-circle-suggestions .grow-circle-grid .suggestion-card .mutual-toggle-text:hover {
    color: #2f3f57;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card .mutual-toggle-state {
    color: #0a66d9;
    font-weight: 600;
    text-decoration: underline;
}

.my-circle-suggestions .mutual-toggle-state {
  color: #0a66d9;
  font-weight: 600;
  text-decoration: underline;
}

.my-circle-suggestions .mutual-summary {
  position: relative;
  display: inline-block;
}

.my-circle-suggestions .mutual-list.mutual-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2500;
  min-width: 240px;
  max-width: 320px;
  max-height: 220px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #c8d3e3;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(17, 39, 72, 0.16);
  margin: 0 !important;
  padding: 0.4rem 0.7rem 0.55rem 1.2rem !important;
}

.my-circle-suggestions .mutual-list.mutual-dropdown .mutual-dropdown-header {
  list-style: none;
  margin: 0 0 0.25rem 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
}

.my-circle-suggestions .mutual-list.mutual-dropdown .mutual-dropdown-close {
  border: 0;
  background: transparent;
  color: #0a66d9;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}
.my-circle-suggestions .mutual-person-item {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.2rem 0;
}

.my-circle-suggestions .mutual-person-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8eef8;
  color: #2a3b54;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 22px;
}

.my-circle-suggestions .mutual-person-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.my-circle-suggestions .mutual-person-avatar-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.my-circle-suggestions .mutual-person-name {
  color: #2f3f57;
  font-size: 0.9rem;
}

/* Ensure mutual dropdown floats above sibling suggestion cards */
.my-circle-suggestions,
.my-circle-suggestions .grow-circle-grid,
.my-circle-suggestions .grow-circle-grid > [class*="col-"] {
  overflow: visible !important;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card {
  position: relative;
  z-index: 1;
}

.my-circle-suggestions .grow-circle-grid .suggestion-card:has(.mutual-list.mutual-dropdown[style*="display: block"]) {
  z-index: 2600;
}

.my-circle-suggestions .mutual-summary {
  z-index: 2601;
}

.my-circle-suggestions .mutual-list.mutual-dropdown {
  z-index: 2602;
}


.my-circle-suggestions .grow-circle-grid .suggestion-card.mutual-open {
  z-index: 2600;
}


.my-circle-suggestions .mutual-list.mutual-dropdown.mutual-dropdown-up {
  top: auto;
  bottom: calc(100% + 6px);
}



/* Secure Connections mobile fix: keep disconnect menu fully visible */
.connections-tab .connection-row,
.connections-tab .right-section,
.connections-tab .dropdown-wrapper {
  overflow: visible;
}

.connections-tab .right-section {
  position: relative;
  flex-wrap: nowrap;
}

.connections-tab .dropdown-menu {
  left: auto !important;
  right: 0 !important;
  max-width: calc(100vw - 24px);
  z-index: 1050;
}

/* Invite Parent modal: place helper text above select and prevent clipped select text */
#manage_my_family_html_page .invite-parent-helper-text {
  display: block;
  margin: 0 0 8px 0;
}

#manage_my_family_html_page #receiver-connected-select.form-control {
  height: auto;
  min-height: 40px;
  line-height: 1.4;
  padding-top: 7px;
  padding-bottom: 7px;
  box-sizing: border-box;
  -webkit-appearance: menulist;
  appearance: menulist;
}
/* Child connection modal: prevent clipped/misaligned text inside child selector */
#child-connection-details-modal #my-child-dropdown.form-control {
  height: auto;
  min-height: 40px;
  line-height: 1.4;
  padding-top: 7px;
  padding-bottom: 7px;
  box-sizing: border-box;
  -webkit-appearance: menulist;
  appearance: menulist;
}

/* Minor connection modals: keep select text vertically centered and uncropped */
#child-connection-details-modal #my-child-dropdown.form-control,
#minor-to-minor-review-modal #receiver-child-select.form-control {
  min-height: calc(1.5em + 0.75rem + 2px);
  height: calc(1.5em + 0.75rem + 2px);
  line-height: 1.5;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
/* Child dashboard chat: align border polish with parent and hide right-side scrollbar rail */
#child-dashboard-html-page {
  overflow-x: hidden;
}

#child-dashboard-html-page .tab-content {
  overflow-x: hidden;
}

#child-dashboard-html-page .chat-main-row {
  border: 1px solid #bcc5d1;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

#child-dashboard-html-page #chat-thread-list-view {
  border-right: 1px solid #d7dde6 !important;
}

#child-dashboard-html-page #chat-messages {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#child-dashboard-html-page #chat-messages::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Child dashboard: make panel below top tabs fill viewport and scroll internally like parent */
body.dashboard.child-dashboard {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

#child-dashboard-html-page .masthead.adult-page-parent-dashboard {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#child-dashboard-html-page #family-tab-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#child-dashboard-html-page #family-tab-content > #parent-tab-list {
  flex-shrink: 0;
}

#child-dashboard-html-page #family-tab-content > .tab-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 0.75rem;
  scroll-padding-bottom: 0.75rem;
}

@media (max-width: 992px) {
  #child-dashboard-html-page #family-tab-content > .tab-content {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    scroll-padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }
}

#child-dashboard-html-page #family-tab-content > .tab-content > .tab-pane {
  min-height: 100%;
}

#child-dashboard-html-page #family-tab-content > .tab-content > .tab-pane.tab-pane-noscroll {
  height: 100%;
  overflow: hidden;
}
#child-dashboard-html-page .hj-overview-updated {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1d4f91;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}
#child-dashboard-html-page .hj-overview-child-cta {
  border: 1px solid #c7d9f4;
  border-radius: 14px;
  background: #f3f8ff;
  padding: 16px 14px 18px;
}

#child-dashboard-html-page .hj-overview-child-cta-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4f91;
  display: grid;
  place-items: center;
  font-size: 22px;
}

#child-dashboard-html-page .hj-overview-child-cta-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f3552;
  margin-bottom: 6px;
}

#child-dashboard-html-page .hj-overview-child-cta-text {
  font-size: 0.98rem;
  color: #4f647d;
  margin-bottom: 14px;
}

#child-dashboard-html-page .hj-overview-child-cta-btn {
  min-width: 190px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
}

#child-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
  font-size: 1.18rem;
}

#child-dashboard-html-page .icon-group .badge {
  top: -8px !important;
  right: -5px;
}

@media (max-width: 576px) {
  #child-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
    font-size: 1.38rem;
  }
  #child-dashboard-html-page .icon-group .nav-link {
    padding: 0.35rem 0.6rem;
  }
  #child-dashboard-html-page .hj-overview-updated {
    font-size: 10px;
    padding: 2px 8px;
  }
}


/* Child dashboard hamburger menu polish */
#child-dashboard-html-page .child-menu-top-right {
  flex-shrink: 0;
}

#child-dashboard-html-page .child-menu-top-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 3px solid #d7e7ff;
}

#child-dashboard-html-page #navbarResponsive {
  left: auto;
  right: 0;
  min-width: min(92vw, 480px);
}

#child-dashboard-html-page .child-menu-list {
  text-align: left;
}

#child-dashboard-html-page .child-menu-list .nav-link,
#child-dashboard-html-page .child-menu-list p,
#child-dashboard-html-page .child-menu-list span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
}

#child-dashboard-html-page .child-menu-list .nav-link {
  justify-content: flex-start !important;
}

#child-dashboard-html-page .child-menu-help {
  color: #194d8c !important;
}

#child-dashboard-html-page .child-legal-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

#child-dashboard-html-page .child-menu-legal-toggle[aria-expanded="true"] .child-legal-chevron {
  transform: rotate(180deg);
}

#child-dashboard-html-page .child-menu-copyright {
  white-space: normal;
}

@media (max-width: 576px) {
  #child-dashboard-html-page .child-menu-list .nav-link,
  #child-dashboard-html-page .child-menu-list p,
  #child-dashboard-html-page .child-menu-list span {
    font-size: 0.9rem;
  }
}




/* Force LEFT alignment in child hamburger across all breakpoints */
#child-dashboard-html-page #mainNav .navbar-collapse.show {
  text-align: left !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-item,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-link,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list p {
  text-align: left !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-link,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-logout {
  justify-content: flex-start !important;
}

/* Strong child-only override: keep all hamburger rows left-aligned on mobile */
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list {
  width: 100% !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-item {
  width: 100% !important;
  display: block !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-link,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list p {
  width: 100% !important;
  text-align: left !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle {
  display: inline-flex !important;
  width: auto !important;
  align-items: center !important;
  gap: 0.35rem;
  padding-right: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle .child-menu-legal-label,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle .child-legal-chevron {
  width: auto !important;
  display: inline-block !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive #child-legal-links {
  margin-top: 0.15rem;
  padding-left: 1rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive #child-legal-links .child-menu-legal-link {
  width: auto !important;
  display: block !important;
  padding-left: 0 !important;
}




/* Child hamburger final alignment pass */
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list {
  width: 100% !important;
  text-align: left !important;
  align-items: flex-start !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-item,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .nav-link,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list p,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list span {
  text-align: left !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-greeting {
  font-weight: 700 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-note {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-help,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle,
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-logout {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-divider-after {
  width: 100% !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
  margin-bottom: 0.3rem !important;
  padding-bottom: 0.45rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-divider-before {
  width: 100% !important;
  border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
  margin-top: 0.35rem !important;
  padding-top: 0.45rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-item {
  display: block !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  gap: 0.35rem !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-legal-toggle .child-legal-chevron {
  margin-left: 0.1rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive #child-legal-links {
  width: 100% !important;
  padding-left: 0 !important;
  margin-top: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive #child-legal-links.show {
  margin-top: 0.2rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive #child-legal-links .child-menu-legal-link {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-logout {
  display: inline-flex !important;
  width: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-logout span {
  margin-left: 0 !important;
}

/* Child hamburger specificity fix for Legal + Logout row alignment */
#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .child-menu-legal-toggle {
  width: auto !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

#child-dashboard-html-page #mainNav #navbarResponsive .child-menu-list .child-menu-logout {
  width: auto !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
}


/* Parent dashboard compact profile selector */
#adult-dashboard-html-page .profile-scroll-wrapper {
  display: none !important;
}

#adult-dashboard-html-page .hj-selected-user-row {
  display: none !important;
}

#adult-dashboard-html-page .hj-profile-selector-band {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  background: #007bff;
  padding: clamp(10px, 2vw, 14px) clamp(8px, 1.8vw, 12px) 0;
  margin: 0 auto;
}

#adult-dashboard-html-page .hj-profile-greeting {
  display: none;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #26425f;
  text-align: center;
  margin: 0 0 3px 0;
}

#adult-dashboard-html-page .hj-profile-selector-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  max-width: 720px;
  margin: 0 auto;
  background: #3A2F2A;
  border: 1px solid #6D574A;
  border-radius: 14px;
  padding: clamp(6px, 1.4vw, 10px) clamp(10px, 2.2vw, 14px);
  overflow: hidden;
}

#adult-dashboard-html-page .hj-profile-selector-text {
  font-size: 14px;
  color: #FFF3E6;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin: 0;
}

#adult-dashboard-html-page .hj-profile-selector-avatar {
  width: 38px;
  height: 38px;
  min-width: 38px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #9dc4f6;
}

#adult-dashboard-html-page .hj-profile-selector-change-label {
  font-size: 13px;
  color: #486784;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 2px;
}

#adult-dashboard-html-page .hj-profile-selector-dropdown {
  width: 150px;
  min-width: 150px;
  max-width: 190px;
  border-color: #6D574A;
  margin-left: 0;
  font-size: 14px;
  min-height: 32px;
  height: auto;
  line-height: 1.2;
  padding: 3px 28px 3px 10px;
  box-sizing: border-box;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  background-color: #2F2621;
  color: #FFF7ED;
  -webkit-appearance: menulist;
  appearance: menulist;
}

#adult-dashboard-html-page .hj-profile-selector-dropdown option {
  font-size: 13px;
}

/* Parent top-nav: keep unread badges fully visible on mobile */
@media (max-width: 576px) {
  #adult-dashboard-html-page .icon-group {
    align-items: flex-end;
  }

  #adult-dashboard-html-page .icon-group .nav-link {
    padding: 0.24rem 0.45rem;
    align-items: flex-end;
  }

  #adult-dashboard-html-page .icon-group .nav-link > span.d-inline-block {
    font-size: 1.24rem;
    line-height: 1;
  }

  #adult-dashboard-html-page .icon-group .badge {
    top: -2px !important;
    left: 10px !important;
    right: auto !important;
    min-width: 13px;
    height: 13px;
    font-size: 0.55rem;
    padding: 0.05em 0.28em;
  }
}

#adult-dashboard-html-page .hj-profile-selector-dropdown,
#adult-dashboard-html-page .hj-profile-selector-dropdown.form-control,
#adult-dashboard-html-page .hj-profile-selector-dropdown.form-control-sm {
  color: #FFF7ED !important;
  background-color: #2F2621 !important;
  -webkit-text-fill-color: #FFF7ED;
  opacity: 1;
}

#adult-dashboard-html-page .hj-profile-selector-dropdown option {
  color: #FFF7ED;
  background-color: #2F2621;
}

@media (max-width: 576px) {
  #adult-dashboard-html-page .hj-profile-selector-line {
    gap: 5px;
    padding: clamp(6px, 2.2vw, 8px) clamp(8px, 3.2vw, 10px);
  }

  #adult-dashboard-html-page .hj-profile-selector-text {
    font-size: 13px;
  }

  #adult-dashboard-html-page .hj-profile-selector-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  #adult-dashboard-html-page .hj-profile-selector-change-label {
    font-size: 12px;
  }

  #adult-dashboard-html-page .hj-profile-selector-dropdown {
    width: 130px;
    min-width: 130px;
    max-width: 150px;
    font-size: 13px;
    min-height: 30px;
    line-height: 1.15;
    padding: 2px 24px 2px 8px;
  }
}






/* Parent viewing child chat: explicit read-only banner */
.hj-parent-readonly-chat-banner {
    flex-shrink: 0;
    margin: 0.5rem 0.75rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid #f2d79f;
    border-radius: 0.5rem;
    background: #f8ebc8;
    color: #8b6508;
    font-size: 0.95rem;
    line-height: 1.35;
}

@media (max-width: 767px) {
    [id^="chat-thread-list-view-"] {
        display: block;
        width: 100%;
    }

    [id^="chat-message-view-"] {
        display: none;
        width: 100%;
    }

    [id^="chat-message-view-"].active {
        display: flex !important;
        flex-direction: column;
    }
}

/* Read-only parent-view child chat: avoid large dead space above banner */
.hj-readonly-chat-host .chat-messages-wrapper {
    padding-bottom: 0.75rem !important;
}

/* Manage My Family: align page shell and top nav look with parent dashboard */
#manage_my_family_html_page {
  overflow-x: hidden;
}

#manage_my_family_html_page .manage-family-shell {
  background: #e5edf6;
  padding-top: 84px;
  padding-bottom: 24px;
  min-height: 100vh;
}

#manage_my_family_html_page .manage-family-surface {
  border: 1px solid #6d7f94;
  border-radius: 10px;
  background: #f1f4f8;
  padding: 12px;
}

#manage_my_family_html_page .manage-family-actions {
  border: 1px solid #c8d5e6;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
}

#manage_my_family_html_page .manage-family-actions h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

#manage_my_family_html_page .manage-family-actions p {
  color: #4b5d73;
  font-size: 0.95rem;
}

#manage_my_family_html_page .manage-family-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#manage_my_family_html_page .manage-family-action-row .btn {
  width: auto;
  min-width: 138px;
}

#manage_my_family_html_page .manage-family-inline-note {
  margin-top: 8px;
  color: #5f6f84;
  font-size: 0.9rem;
}

#manage_my_family_html_page .manage-family-empty-state {
  border: 1px solid #c8d5e6;
  border-radius: 10px;
  background: #ffffff;
  text-align: center;
  padding: 22px 16px;
}

#manage_my_family_html_page .manage-family-empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

#manage_my_family_html_page .manage-family-empty-state p {
  margin-bottom: 8px;
  color: #425469;
}

#manage_my_family_html_page .manage-family-empty-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

#manage_my_family_html_page .manage-family-empty-state #createNewFamilyBtn {
  width: auto;
  min-width: 220px;
  margin-top: 8px;
}

#manage_my_family_html_page .family-tree-container {
  width: 100%;
  max-width: none;
  margin: 0;
  display: block;
}

#manage_my_family_html_page .manage-family-account-actions {
  width: 100%;
  margin: 0 0 12px 0;
  padding: 14px;
  border: 1px solid #d9c8c8;
  border-radius: 10px;
  background: #fffdfd;
}

#manage_my_family_html_page .manage-family-account-actions h3 {
  margin: 0 0 6px 0;
  font-size: 1.25rem;
}

#manage_my_family_html_page .manage-family-account-actions-text {
  margin: 0 0 10px 0;
  color: #5f6f84;
  font-size: 0.92rem;
}

#manage_my_family_html_page .manage-family-account-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

#manage_my_family_html_page .manage-family-account-action-card {
  border: 1px solid #d8dee8;
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}

#manage_my_family_html_page .manage-family-account-actions-label {
  color: #36485f;
  font-weight: 700;
}

#manage_my_family_html_page .manage-family-account-actions-subtitle {
  margin: 0 0 8px 0;
  font-size: 1.05rem;
}

#manage_my_family_html_page .manage-family-delete-child-select {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2d3d;
  border: 1px solid #9eb1c8;
  background-color: #ffffff;
}

#manage_my_family_html_page .manage-family-delete-child-select option {
  color: #1f2d3d;
}

#manage_my_family_html_page #delete-child-account-btn {
  width: 100%;
  min-width: 0;
}

#manage_my_family_html_page .manage-family-leave-btn {
  width: 100%;
}

#manage_my_family_html_page .manage-family-delete-confirm-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #c98f8f;
  border-radius: 8px;
  background: #fff7f7;
}

#manage_my_family_html_page .manage-family-delete-flow-message {
  color: #8a1f1f;
  font-weight: 700;
}

#manage_my_family_html_page .manage-family-delete-confirm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

#manage_my_family_html_page .family-profile-box,
#manage_my_family_html_page .family-parents-container,
#manage_my_family_html_page .family-children-container {
  width: 100%;
  max-width: none;
  margin: 0 0 12px 0;
  padding: 14px;
  border-radius: 10px;
}

#manage_my_family_html_page .family-profile-box {
  background: #ffffff;
}

#manage_my_family_html_page .family-parents-container,
#manage_my_family_html_page .family-children-container {
  background: #eef4fb;
}

#manage_my_family_html_page .family-parents,
#manage_my_family_html_page .family-children {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

#manage_my_family_html_page .family-member {
  width: 210px;
  min-width: 210px;
  max-width: 210px;
  padding: 12px;
}

#manage_my_family_html_page .family-member .profile-pic {
  width: 96px;
  height: 96px;
}

#manage_my_family_html_page .child-account-status {
  margin: 0 0 6px 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

#manage_my_family_html_page .child-account-status-active {
  color: #179b36;
}

#manage_my_family_html_page .child-account-status-inactive {
  color: #c62828;
}

@media (max-width: 768px) {
  #manage_my_family_html_page .manage-family-shell {
    padding-top: 74px;
    padding-bottom: 14px;
  }

  #manage_my_family_html_page .manage-family-surface {
    padding: 8px;
  }

  #manage_my_family_html_page .manage-family-actions {
    padding: 10px;
  }

  #manage_my_family_html_page .manage-family-action-row .btn {
    min-width: 120px;
  }

  #manage_my_family_html_page .manage-family-account-actions-grid {
    grid-template-columns: 1fr;
  }

  #manage_my_family_html_page #delete-child-account-btn,
  #manage_my_family_html_page .manage-family-leave-btn {
    width: 100%;
    min-width: 0;
  }

  #manage_my_family_html_page .manage-family-delete-confirm-actions .btn {
    width: 100%;
  }

  #manage_my_family_html_page .family-member {
    width: calc(50% - 6px);
    min-width: calc(50% - 6px);
    max-width: calc(50% - 6px);
  }
}

@media (max-width: 480px) {
  #manage_my_family_html_page .manage-family-empty-state #createNewFamilyBtn {
    width: 100%;
    min-width: 0;
  }

  #manage_my_family_html_page .manage-family-action-row .btn {
    width: 100%;
  }

  #manage_my_family_html_page .family-member {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }
}
/* Manage My Family summary card refresh */
#manage_my_family_html_page .manage-family-summary {
  border: 1px solid #c8d5e6;
  border-radius: 10px;
  background: #ffffff;
  padding: 16px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#manage_my_family_html_page .manage-family-summary-media {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

#manage_my_family_html_page .manage-family-summary-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid #d8e3f0;
}

#manage_my_family_html_page .manage-family-summary-content {
  width: 100%;
}

#manage_my_family_html_page .manage-family-summary-content h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

#manage_my_family_html_page .manage-family-summary-name {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1f2d3d;
}

#manage_my_family_html_page .manage-family-summary-status {
  margin-bottom: 6px;
  color: #425469;
}

#manage_my_family_html_page .manage-family-summary-description {
  margin-bottom: 2px;
  color: #4b5d73;
}

#manage_my_family_html_page .manage-family-tree-title {
  font-size: 1.6rem;
  margin: 2px 0 12px 0;
  text-align: center;
}

@media (max-width: 768px) {
  #manage_my_family_html_page .manage-family-summary {
    padding: 12px 10px;
  }

  #manage_my_family_html_page .manage-family-summary-img {
    width: 118px;
    height: 118px;
  }

  #manage_my_family_html_page .manage-family-summary-content h2 {
    font-size: 1.28rem;
  }

  #manage_my_family_html_page .manage-family-summary-name {
    font-size: 1.15rem;
  }
}


/* Manage My Family page should scroll naturally (not locked like dashboard tabs) */
#manage_my_family_html_page.dashboard.adult-dashboard {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#manage_my_family_html_page .masthead.adult-page-parent-dashboard.manage-family-shell {
  flex: none;
  overflow: visible;
}

/* Manage My Family polish: reduce top gap, constrain long text, and separate parent/child sections */
#manage_my_family_html_page .manage-family-shell {
  padding-top: 64px !important;
  padding-bottom: 16px !important;
}

@media (max-width: 768px) {
  #manage_my_family_html_page .manage-family-shell {
    padding-top: 56px !important;
    padding-bottom: 12px !important;
  }
}

#manage_my_family_html_page .manage-family-summary-name,
#manage_my_family_html_page .manage-family-summary-status,
#manage_my_family_html_page .manage-family-summary-description,
#manage_my_family_html_page .family-member h4,
#manage_my_family_html_page .family-member .short-text,
#manage_my_family_html_page .family-member .long-text {
  display: block;
  width: 100%;
  max-width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#manage_my_family_html_page .family-parents-container {
  background: #e9f3ff;
}

#manage_my_family_html_page .family-children-container {
  background: #ecf9ef;
}

/* Manage My Family: center-align card text while preserving truncation */
#manage_my_family_html_page .manage-family-summary-name,
#manage_my_family_html_page .manage-family-summary-status,
#manage_my_family_html_page .manage-family-summary-description,
#manage_my_family_html_page .family-member h4,
#manage_my_family_html_page .family-member .short-text,
#manage_my_family_html_page .family-member .long-text {
  text-align: center;
}

#manage_my_family_html_page .family-member {
  text-align: center;
}

/* Manage My Family: top-align items within each row */
#manage_my_family_html_page .family-parents,
#manage_my_family_html_page .family-children {
  align-items: flex-start;
  align-content: flex-start;
}

/* My Settings: align shell with updated Manage My Family and support responsive two-column layout */
#my_settings_html_page.dashboard.adult-dashboard {
  height: auto !important;
  min-height: 100vh;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#my_settings_html_page .masthead.adult-page-parent-dashboard.my-settings-shell {
  flex: none;
  overflow: visible;
  background: #e5edf6;
  padding-top: 64px !important;
  padding-bottom: 16px !important;
  min-height: 100vh;
}

#my_settings_html_page .my-settings-surface {
  border: 1px solid #6d7f94;
  border-radius: 10px;
  background: #f1f4f8;
  padding: 12px;
}

#my_settings_html_page .my-settings-header {
  border: 1px solid #c8d5e6;
  border-radius: 10px;
  background: #ffffff;
  padding: 14px;
  margin-bottom: 12px;
  text-align: center;
}

#my_settings_html_page .my-settings-title {
  font-size: 1.65rem;
  margin-bottom: 4px;
}

#my_settings_html_page .my-settings-subtitle {
  color: #4b5d73;
  margin-bottom: 0;
}

#my_settings_html_page .settings-page-wrapper {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#my_settings_html_page .my-settings-grid {
  margin-left: 0;
  margin-right: 0;
}

#my_settings_html_page .my-settings-card {
  background: #ffffff;
  border: 1px solid #c8d5e6;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 0;
  box-shadow: none;
}

#my_settings_html_page .my-settings-timezone-card {
  border-color: rgba(220, 53, 69, 0.25);
}

#my_settings_html_page .my-settings-leave-zone {
  margin-top: 12px;
}

#my_settings_html_page .my-settings-account-actions-zone {
  margin-top: 12px;
}

#my_settings_html_page .account-actions-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#my_settings_html_page .account-actions-link {
  width: fit-content;
  text-decoration: underline;
}

#my_settings_html_page .settings-profile-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

#my_settings_html_page .settings-profile-preview-img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 768px) {
  #my_settings_html_page .masthead.adult-page-parent-dashboard.my-settings-shell {
    padding-top: 56px !important;
    padding-bottom: 12px !important;
  }

  #my_settings_html_page .my-settings-title {
    font-size: 1.35rem;
  }

  #my_settings_html_page .my-settings-card {
    margin-bottom: 12px;
  }

  #my_settings_html_page .settings-profile-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #my_settings_html_page .settings-profile-fields {
    width: 100%;
  }

  #my_settings_html_page .form-inline {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  #my_settings_html_page #timezone-select,
  #my_settings_html_page #save-timezone-btn {
    width: 100%;
    min-width: 0;
    margin-right: 0 !important;
    margin-top: 6px;
  }
}

/* Parent hamburger menu: shared layout/style across parent dashboard, manage family, and settings */
#adult-dashboard-html-page .parent-menu-avatar,
#manage_my_family_html_page .parent-menu-avatar,
#my_settings_html_page .parent-menu-avatar {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border: 3px solid #d7e7ff;
}

#adult-dashboard-html-page #navbarResponsive,
#manage_my_family_html_page #navbarResponsive,
#my_settings_html_page #navbarResponsive {
  left: auto;
  right: 0;
  min-width: min(92vw, 480px);
}

#adult-dashboard-html-page .parent-menu-list,
#manage_my_family_html_page .parent-menu-list,
#my_settings_html_page .parent-menu-list {
  text-align: left;
  width: 100% !important;
  align-items: flex-start !important;
  margin-left: 0 !important;
}

#adult-dashboard-html-page .parent-menu-list .nav-item,
#manage_my_family_html_page .parent-menu-list .nav-item,
#my_settings_html_page .parent-menu-list .nav-item {
  width: 100% !important;
  display: block !important;
  text-align: left !important;
}

#adult-dashboard-html-page .parent-menu-list .nav-link,
#adult-dashboard-html-page .parent-menu-list p,
#adult-dashboard-html-page .parent-menu-list span,
#manage_my_family_html_page .parent-menu-list .nav-link,
#manage_my_family_html_page .parent-menu-list p,
#manage_my_family_html_page .parent-menu-list span,
#my_settings_html_page .parent-menu-list .nav-link,
#my_settings_html_page .parent-menu-list p,
#my_settings_html_page .parent-menu-list span {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: left !important;
}

#adult-dashboard-html-page .parent-menu-list .nav-link,
#manage_my_family_html_page .parent-menu-list .nav-link,
#my_settings_html_page .parent-menu-list .nav-link {
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

#adult-dashboard-html-page .parent-menu-greeting,
#manage_my_family_html_page .parent-menu-greeting,
#my_settings_html_page .parent-menu-greeting {
  font-weight: 700 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#adult-dashboard-html-page .child-menu-divider-after,
#manage_my_family_html_page .child-menu-divider-after,
#my_settings_html_page .child-menu-divider-after {
  width: 100% !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55) !important;
  margin-bottom: 0.3rem !important;
  padding-bottom: 0.45rem !important;
}

#adult-dashboard-html-page .child-menu-divider-before,
#manage_my_family_html_page .child-menu-divider-before,
#my_settings_html_page .child-menu-divider-before {
  width: 100% !important;
  border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
  margin-top: 0.35rem !important;
  padding-top: 0.45rem !important;
}

#adult-dashboard-html-page .child-menu-legal-toggle,
#manage_my_family_html_page .child-menu-legal-toggle,
#my_settings_html_page .child-menu-legal-toggle {
  display: inline-flex !important;
  width: auto !important;
  max-width: max-content !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.35rem;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#adult-dashboard-html-page .child-menu-legal-toggle[aria-expanded="true"] .child-legal-chevron,
#manage_my_family_html_page .child-menu-legal-toggle[aria-expanded="true"] .child-legal-chevron,
#my_settings_html_page .child-menu-legal-toggle[aria-expanded="true"] .child-legal-chevron {
  transform: rotate(180deg);
}

#adult-dashboard-html-page .child-legal-chevron,
#manage_my_family_html_page .child-legal-chevron,
#my_settings_html_page .child-legal-chevron {
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

#adult-dashboard-html-page .child-menu-legal-link,
#manage_my_family_html_page .child-menu-legal-link,
#my_settings_html_page .child-menu-legal-link {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding-left: 0 !important;
}

#adult-dashboard-html-page .child-menu-logout,
#manage_my_family_html_page .child-menu-logout,
#my_settings_html_page .child-menu-logout {
  display: inline-flex !important;
  width: auto !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

#adult-dashboard-html-page .child-menu-copyright,
#manage_my_family_html_page .child-menu-copyright,
#my_settings_html_page .child-menu-copyright {
  white-space: normal;
}

/* Parent mobile top-nav alignment pass:
   keep logo, icons, and hamburger on same visual row and keep unread badges at top-right */
@media (max-width: 576px) {
  #adult-dashboard-html-page #mainNav {
    padding-top: 0.12rem !important;
    padding-bottom: 0.12rem !important;
  }

  #adult-dashboard-html-page #mainNav .container {
    padding-left: 0.65rem !important;
    padding-right: 0.65rem !important;
  }

  #adult-dashboard-html-page #mainNav .container > .d-flex {
    min-height: 44px;
    align-items: center !important;
    overflow: visible !important;
  }

  #adult-dashboard-html-page #mainNav .navbar-brand {
    display: inline-flex;
    align-items: center;
    height: 36px;
    margin: 0 !important;
    padding: 0;
  }

  #adult-dashboard-html-page #mainNav .navbar-brand img {
    height: 30px !important;
    width: auto;
  }

  #adult-dashboard-html-page #mainNav .icon-group {
    display: flex;
    align-items: center !important;
    gap: 0.14rem;
    height: 36px;
  }

  #adult-dashboard-html-page #mainNav .icon-group .nav-link {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    height: 36px;
    padding: 0 0.36rem !important;
    margin: 0 0.06rem !important;
    overflow: visible !important;
    line-height: 1;
  }

  #adult-dashboard-html-page #mainNav .icon-group .nav-link > span.d-inline-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45em;
    height: 1.45em;
    font-size: 1.15rem !important;
    line-height: 1;
    position: relative;
  }

  #adult-dashboard-html-page #mainNav .icon-group .nav-link span.ml-1 {
    display: none !important;
  }

  #adult-dashboard-html-page #mainNav .icon-group .badge {
    top: -4px !important;
    right: -6px !important;
    left: auto !important;
    min-width: 14px;
    height: 14px;
    font-size: 0.58rem;
    padding: 0 0.22em;
    transform: none !important;
    z-index: 3;
  }

  #adult-dashboard-html-page #mainNav #menuToggle {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    height: 36px;
    min-width: 36px;
    margin: 0 0 0 0.36rem !important;
    padding: 0 0.22rem !important;
    line-height: 1;
  }

  #adult-dashboard-html-page #mainNav #menuToggle i {
    font-size: 1.22rem !important;
    line-height: 1;
  }
}
