body, html {
    font-family: Arial, Verdana, Helvetica, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.wallpaper {
    background-size: cover;
    background: linear-gradient(to top, #C0C0C0, white);
}

/* Default: no footer space reserved */
:root {
    /* fallback if JavaScript does not run in base.html */
    --top-section-height: 70px;
    --page-footer-height: 0px;
}

.div_top_section {
    /* Includes header, menu, search bar, profile icon, and title text */
    background-color: rgba(255, 255, 255, 0.0);
    border-radius: 10px;
    width: calc(100% - 12px);
    position: relative;
    /* Overflow must be visible for menu items to appear */
    overflow: visible;
}

.div_header {
    background: rgba(0, 0, 0, 0.0);
    position: relative;
    /* If you change the header height, also adjust */
    /* the .div_outer height to prevent double-scrollbars when resizing. */
    height: 60px;
    overflow: visible;
}

.search_box {
    -webkit-appearance: searchfield; /* For Safari (iOS/macOS) */
    /*-webkit-appearance: none; /* For Safari (iOS/macOS) */
    position: absolute;
    height: 30px;
    border-radius: 25px;
    width: 50%;
    left: 50%;
    top: 30px;
    padding-left: 15px;
    padding-right: 15px;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: inline; /* Ensure the 'X' button is visible */
    background-color: transparent;
    border: 2px inset rgba(255, 255, 255, 0.4); /* White with 40% opacity */
    /*box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.4);*/
}

/* When the user clicks or types in the search box */
.search_box:focus {
    background-color: white;
    color: black;
}

input[type="search"]::-webkit-search-cancel-button {
    display: inline;    /* Makes sure the 'X' button is shown */
    -webkit-appearance: searchfield-cancel-button;
}

.container {
    /* The container is everything that is below the top section. */
    /* It's where the scrolling content goes. */
    position: relative;
    width: calc(100% - 12px);
    /* The container height should fill the remaining bottom of the screen.  */
    /* However, if you set it to 100%, it will go off the screen due to the height of the header. */
    /* So, we have to subtract a certain number of pixels so that the scrollbar doesn't extend far past */
    /* the bottom of the screen. */
    /* height: calc(100% - 70px); */
    /* fill viewport minus actual top section height and footer height */
    height: calc(100% - var(--top-section-height) - var(--page-footer-height));
    opacity: 1;
    transition: opacity 0.5s linear;
}

.container.hide {
    opacity: 0;
}

.table {
    display: table;
}

.table-row {
    display: table-row;
    width: 50%;
}

.table-cell {
    display: table-cell;
}

.table_response {
    text-align: left;
}

.td_response_text {
    width: 80%;
}

.font_small {
    font-size: small;
}

.font_gray {
    color: gray;
}

.font_black {
    color: black;
}

.font_blue {
    color: blue;
}

.font_bold {
    font-weight: bold;
}

.div_table_container {
    overflow-x: auto;
    max-width: 100%;
}

.striped_table {
    border-collapse: collapse;
    width: 100%;
}

.striped_table th {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.striped_table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.striped_table thead th {
    background-color: #0077ff;
    color: white;
    position: sticky; /* Ensure header row doesn't move when scrolling */
    top: 0;
    z-index: 2; /* Ensure the header row stays on top */
}

.striped_table:not(.compare-table) th:first-child {
    background-color: #0077ff; /* Header column background color */
    color: white;
    position: sticky; /* Ensure header column doesn't move when scrolling */
    left: 0;
    z-index: 1; /* Ensure the header column stays on top */
}

.striped_table tbody tr:nth-child(odd) {
    background-color: #f2f2f2; /* Odd rows background color */
}

.striped_table tbody tr:nth-child(even) {
    background-color: #ffffff; /* Even rows background color */
}

.striped_table tbody tr.background_color_highlighted {
    background-color: #04d95f !important;
    font-weight: bold;
}

.background_color_highlighted {
    background-color: #04d95f !important;
    font-weight: bold !important;
}

.centered_text {
    text-align: center;
}

.centered_horizontally {
    display: flex;
    justify-content: center;
}

.centered_vertically {
    vertical-align: middle;
}

.centered_vertically img {
    vertical-align: middle;
}

.baseline_vertically {
    vertical-align: baseline;
}

.baseline_vertically img {
    vertical-align: baseline;
}

.row_notification_unread {
    background: linear-gradient(to right, #38a1f8, #bafcf4, #38a1f8);
    font-weight: bold;
}

.row_notification_unread_gold {
    background: linear-gradient(to right, #BF953F, #FCF6BA, #B38728);
    font-weight: bold;
}

.table_model_form th, td {
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.body-content-outer-wrapper {
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    overflow-y: auto;
    overflow-x: clip;
    scrollbar-gutter: stable both-edges;
    opacity: 1;
}

.body-content-inner-wrapper {
    background: rgba(0, 0, 0, 0.0);
    top: 20px;
    height: calc(100% - 20px);
    position: relative;
    left: 50%;
    width: 50%;
    transform: translate(-50%);
    opacity: 1;
    transition: opacity 0.5s linear;
}

/* Mobile-specific styles */
@media only screen and (max-width: 768px) {
    body {
        font-size: large;
    }

    .body-content-inner-wrapper {
        background: rgba(0, 0, 0, 0.0);
        top: 20px;
        height: calc(100% - 20px);
        position: relative;
        width: 90%;
        opacity: 1;
        transition: opacity 0.5s linear;
    }

    input[type="text"], select {
        font-size: 18px !important; /* Force larger font size */
        padding: 12px !important; /* Add touch-friendly padding */
    }

}

.page_footer{
    display: block;
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--page-footer-height, 0px);
    z-index: 1200;
    background: rgba(0,0,0,0.25);
    backdrop-filter: saturate(120%) blur(6px);
    -webkit-backdrop-filter: saturate(120%) blur(6px);
}

/* show footer only on pages that opt in */
body.has-fixed-footer .page_footer {
    display: block;
}

/* iOS-specific styles */
@supports (-webkit-touch-callout: none) {
    input[type="text"], select {
        font-size: 18px;
        padding: 12px;
    }
}

.body-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.div_dark_header {
    border-radius: 25px;
    padding: 20px 30px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px #000000;
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.div_blue_tip {
    border-radius: 25px;
    padding: 20px 30px;
    overflow: hidden;
    background-color: rgba(10, 58, 253, 0.6);
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px #000000;
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.frosted_glass {
    background: rgba(255, 255, 255, 0.2); /* Semi-transparent white */
    backdrop-filter: blur(10px); /* Frosted blur effect */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 20px 30px;
    color: #000; /* Or #fff depending on background */
}

.div_autofit_width_to_text {
    display: inline-block;
}

.div_content {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 1.0);
    border-radius: 25px;
    padding: 20px 30px;
    height: 300px;
    overflow: hidden;
    opacity: 0.99;
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.div_content_primary {
    box-shadow: rgba(50, 50, 255, 0.25) 0 10px 20px -20px, rgba(0, 0, 255, 0.3) 0 10px 20px -10px, rgba(10, 37, 255, 0.35) 0 -2px 6px 0 inset;
}

.div_content_inner {
    padding-top: 20px;
    margin-right: 20px;
    height: 80%;
    overflow-y: auto;
    overflow-x: clip;
}

.div_content_inner_allow_both_scrollbars {
    padding-top: 20px;
    margin-right: 20px;
    height: 80%;
    overflow-y: auto;
    overflow-x: auto;
}

.div_content_header {
    font-size: small;
    border-bottom-color: silver;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    display: flex;
    align-items: center;
    padding: 3px;
}

.div_center_items {
    display: flex;
    width: 100%;
    align-items: center;
    padding: 3px;
}

.div_dividing_line {
    font-size: small;
    border-bottom-color: silver;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    display: flex;
    align-items: center;
    padding: 3px;
}

.div_content_footer {
    font-size: small;
    border-top-color: silver;
    border-top-style: solid;
    border-top-width: 1px;
    display: flex;
    width: 100%;
    align-items: center;
    padding: 3px;
    margin-top: auto;
    gap: 8px; /* optional: spacing between left items */
}

.push-right {
    margin-left: auto; /* pushes this div block to the far right */
    display: flex;
    align-items: center;
    gap: 8px; /* spacing between right-side icons */
}

.div_content_autosize {
    min-height: 300px;
    height: auto;
}

.div_content_small {
    min-height: 30px;
    height: auto;
}

.div_content_chat_messages {
    min-height: 100px;
    height: auto;
}

.div_word_wrap_autosize {
    overflow-wrap: break-word;
    height: auto;
}

.div_content_clear {
    background: rgba(255, 255, 255, 0.0);
}

.div_content_opacity_50 {
    background: rgba(255, 255, 255, 0.5);
}

.div_content_opacity_90 {
    background: rgba(255, 255, 255, 0.9);
}

.div_content_opacity_95 {
    background: rgba(255, 255, 255, 0.95);
}

.div_content_dark {
    background: rgba(0, 0, 0, 0.4);
    color: white;
}

.div_content_window_glass {
    background: rgba(233, 233, 233, 0.2);
    color: black;
}

.div_content_no_border {
    box-shadow: none;
}

.opaque {
    opacity: 1;
}

.opacity_50 {
    opacity: 0.5;
}

.div_break {
    /* Transparent break between contents (medium sized) */
    /* This is the default break size between two content sections. */
    background: rgba(0, 0, 0, 0.0);
    height: 80px;
}

.div_small_break {
    /* Transparent break between contents (small sized) */
    /* This is good if you want two content sections to be close together. */
    background: rgba(0, 0, 0, 0.0);
    height: 20px;
}

.div_large_break {
    /* Transparent break between contents (large, full-screen sized) */
    /* This allows user to scroll content completely off the screen to see the wallpaper. */
    background: rgba(0, 0, 0, 0.0);
    height: 100vh;  /* Fallback for browsers that don't support 'dvh' */
}

.extra_bottom_margin {
    margin-bottom: 10px;
}

/*noinspection CssInvalidPropertyValue*/
@supports (height: 100dvh) {
    .div_large_break {
        /*
        100vh: Works on both desktop and mobile, but may not account for the dynamic changes in mobile browser UI (e.g., address bar hiding).
        100dvh: Dynamically adapts to the actual viewport height, including changes when the mobile browser's UI adjusts (supported by modern browsers).
        */
        height: 100dvh;  /* Applied only if 'dvh' is supported */
    }
}

.transparent {
    background: rgba(0, 0, 0, 0.0);
}

.white_font {
    color: white;
}

.text_shadow {
    text-shadow: 1px 1px #7e7d7d;
}

.form_messages {
    color: gray;
}

.full_width_table {
    table-layout: auto;
    width: 100%;
}

.text_word_break {
    /* Use this to wrap text even when there are no spaces, such as dot notations. */
    overflow-wrap: anywhere;
}

.text_left_align {
    text-align: left;
}

.text_center_align {
    text-align: center;
}

.triple_column {
    width: 33%;
}

.image_centered {
    width: 300px;
    height: auto;
    /* Center the image */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.icon {
    position: relative;
    width: 20px;
    height: 20px;
    padding-right: 10px;
    opacity: 0.3;
    vertical-align: baseline;
}

.icon_link {
    position: relative;
    width: 20px;
    height: 20px;
    padding-right: 10px;
    opacity: 0.3;
    vertical-align: text-bottom;
}

.icon_link:hover {
    opacity: 0.8;
    cursor: pointer;
}

.icon_medium {
    position: relative;
    width: 40px;
    height: 40px;
    padding-right: 10px;
    opacity: 0.3;
    vertical-align: baseline;
}

.icon_opaque {
    position: relative;
    width: 20px;
    height: 20px;
    padding-right: 10px;
    opacity: 1;
    vertical-align: baseline;
}

.icon_medium_opaque {
    position: relative;
    width: 40px;
    height: 40px;
    padding-right: 10px;
    opacity: 1;
    vertical-align: baseline;
}

.inverted_image {
    filter: invert(100%);
    opacity: 0.9;
}

.vertical_align_text_bottom {
    vertical-align: text-bottom;
}

.icon_bar_chart {
    content: url("/understand_demand/static/images/icons/bar_chart.png");
}

.icon_bar_chart_horizontal {
    content: url("/understand_demand/static/images/icons/bar_chart_horizontal.png");
}

.icon_pie_chart {
    content: url("/understand_demand/static/images/icons/pie_chart.png");
}

.icon_table {
    content: url("/understand_demand/static/images/icons/table.png");
}

.icon_target {
    content: url("/understand_demand/static/images/icons/target.png");
}

.response_picture {
    height: 120px;
    width: auto;
    opacity: 1.0;
}

.analytics_picture {
    height: 60px;
    width: auto;
    opacity: 1.0;
    background-color: white;
}

.search_thumbnail_image {
    height: 50px;
    width: auto;
    opacity: 1.0;
}

.filter_thumbnail_image {
    height: 100px;
    width: auto;
    opacity: 1.0;
}

.div_logo_justify_words_square {
    height: 200px;
    width: 200px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    margin: 0 auto; /* Centers the div horizontally */
    padding: 12px;
    box-shadow: 0 0 16px rgba(11, 1, 5, 0.4);
}

.image_logo_college_wishes {
    display: block;
    filter: invert(100%);
    height: 91px;
    width: 189px;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: auto;
}

.image_logo {
    filter: invert(100%);
    height: 50px;
    width: auto;
    display: block;
    margin: auto;
}

.h1_text_justify_words_row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    height: 40px;
}

.shimmer {
    display: inline-block;
    mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/350% 100%;
    animation: shimmer 2s 1 forwards;
}

@keyframes shimmer {
    100% {
        /* Set mask to none at the end of the animation */
        mask: none;
    }
}

.pricing_picture {
    width: 100%;
    height: auto;
    opacity: 1.0;
}

.image_rounded_square {
    height: 120px;
    width: 120px;
    border-radius: 30px;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.home_page_icons {
    height: 100px;
    width: 100px;
    opacity: 1;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.home_page_subscribe_icon {
    height: 80px;
    width: auto;
    opacity: 1;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.home_page_analytics_icon {
    height: 80px;
    width: auto;
    opacity: 1;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.home_page_logo {
    height: 200px;
    width: auto;
    /* Center the image */
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
    opacity: 1.0;
}

.explore_page_icon_person {
    height: 80px;
    width: 80px;
    opacity: 1;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.explore_page_icon_companies {
    height: 80px;
    width: 80px;
    opacity: 1;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.image_profile_picture {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    margin-right: 8px;
    vertical-align: middle;
    border: none;
}

div.card {
    box-shadow: 0 6px 6px 0 rgba(0, 0, 0, 0.2), 0 6px 6px 0 rgba(0, 0, 0, 0.19);
    border-radius: 10px;
    margin: 8px;
    text-align: left;
}

.filter_criterion {
    background-color: #f5f5f5;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Make each field block take a full row */
.filter_criterion > div {
    flex: 1 1 100%;
}

/* Keep the Remove button compact and aligned to the right */
.filter_criterion > div.filter_criterion_actions {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-left: auto;
}

/* Make room above every card after the first */
#criteria-list .criterion {
    position: relative;
    margin-top: 36px;
}

/* First card does not need extra space */
#criteria-list .criterion:first-child {
    margin-top: 8px;
}

/* Render AND centered in the gap between cards */
#criteria-list .criterion:not(:first-child)::before {
    content: "AND";
    position: absolute;
    top: -30px; /* sits in the whitespace above this card */
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: blue;
    text-align: center;
    padding: 2px 10px;
    border-radius: 6px;
    pointer-events: none;
}

.user_relationship_to_company {
    background: rgb(5, 206, 89);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
}

.logo_header {
    position: relative;
    height: 20px;
    width: auto;
    padding-right: 10px;
    opacity: 1.0;
    vertical-align: text-bottom;
}

.logo_small {
    position: relative;
    height: 20px;
    padding-right: 10px;
    opacity: 1;
}

.logo_medium_centered {
    position: relative;
    height: 55px;
    opacity: 1;
    /* Center the image */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.menu_icon {
    position: relative;
    width: 30px;
    height: 30px;
    top: 5px;
    float: left;
    padding-left: 10px;
    opacity: 0.3;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.menu_icon:hover {
    opacity: 0.8;
}

.home_icon {
    position: relative;
    width: 30px;
    height: 30px;
    top: 5px;
    padding-left: 10px;
    opacity: 0.3;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.home_icon:hover {
    opacity: 0.8;
}

.user_icon {
    position: relative;
    width: 30px;
    height: 30px;
    top: 5px;
    float: right;
    padding-right: 10px;
    opacity: 0.3;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.user_icon:hover {
    opacity: 0.8;
}

.inverted_image_with_drop_shadow {
    filter: invert(100%) drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
    opacity: 1.0;
}

.notification_container {
    position: absolute;
    right: 40px; /* Adjust the distance from the right edge */
    display: inline-block;
}

.notification_badge {
    position: absolute;
    top: 5px; /* Adjust to move the badge up/down */
    right: 5px; /* Adjust to move the badge left/right */
    padding: 3px 6px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    display: none;
}

.dropdown_menu_icon {
    position: relative;
    width: 20px;
    height: 20px;
    padding-right: 10px;
    opacity: 0.3;
    vertical-align: text-bottom;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.dropdown_menu_icon:hover {
    opacity: 0.8;
}


.like_icon {
    width: 30px;
    height: 30px;
    background: url("/understand_demand/static/images/icons/like.png");
    background-size: contain;
}

.like_icon:active {
    position: relative;
    left: 3px;
    top: 3px;
}

.star_rating {
    position: relative;
    height: 15px;
    width: auto;
    padding-left: 10px;
    opacity: 1.0;
}

.button_link {
    text-align: center;
    background-color: #EEEEEE;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: bold;
    color: black;
    border-radius: 5px;
    cursor: pointer;
}

.button_link:active {
    background-color: #E6E6E6;
    color: navy;
    position: relative;
    left: 3px;
    top: 3px;
    box-shadow: inset 3px 3px 10px black;
}

.button_link:hover {
    color: navy;
}

.divider_row {
    height: 40px;
    background: rgb(7, 106, 232);
    background: linear-gradient(0deg, rgba(7, 106, 232, 1) 0%, rgba(0, 212, 255, 1) 100%);
}

/* Scrollbar Width */
::-webkit-scrollbar {
    width: 15px;
    left: -20px;
}

/* Scrollbar Track */
::-webkit-scrollbar-track {
    background: rgb(255, 255, 255, 0.0);
    box-shadow: inset 0 0 5px gray;
    border-radius: 10px;
}

/* Scrollbar Handle */
::-webkit-scrollbar-thumb {
    background: rgb(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* Scrollbar Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: rgb(0, 0, 0, 0.5);
}

.div_title {
    font-weight: bold;
    font-size: large;
    color: rgb(255, 255, 255, 1);
    text-align: center;
    text-shadow: 1px 1px #7e7d7d;
    opacity: 1;
    transition: opacity 0.5s linear;
}

.uppercase_text {
    text-transform: uppercase;
}

.content_footer_table {
    width: 100%;
}

.content_footer_image {
    float: left;
    padding-left: 5px;
    text-align: left;
    opacity: 1;
}

.content_footer_left {
    float: left;
    padding-left: 5px;
    text-align: left;
}

.content_footer_right {
    float: right;
    padding-right: 5px;
    right: -5px;
    text-align: right;
}

.div_title.hide {
    opacity: 0;
}

.error_message {
    color: red;
}

.dropdown {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 30px;
    background-color: #f9f9f9;
    min-width: 200px;
    border-radius: 3px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.5);
    padding: 12px 16px;
    z-index: 100; /* Ensure dropdown menu items display on top of everything */
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    border-radius: 3px;
    background-color: rgba(168, 168, 169, 0.2);
}

.dropdown-content::before {
    /* This buffer helps ensure the mouse doesn't miss the hoverable area while transitioning. */
    content: "";
    position: absolute;
    top: -10px; /* Adjust to create a hoverable buffer */
    left: 0;
    width: 100%;
    height: 10px; /* Same as the negative top value */
    background: transparent;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-menu-adjust-left {
    left: -20px;
}

/* Add a red asterisk after required fields */
label.required::after {
    content: ' *';
    color: red;
}

.cat_logo {
    height: 128px;
    width: 128px;
    filter: drop-shadow(2px 2px 2px #ffffff);
    -webkit-filter: drop-shadow(0px 0px 0px rgba(0, 0, 0, 0.5));
    -webkit-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    transition: all 0.5s linear;
}

.cat_logo:hover {
    top: -10px;
    left: -10px;
    -webkit-filter: drop-shadow(10px 10px 8px rgba(0, 0, 0, 0.5));
}

.cat_bowl {
    position: absolute;
    width: 50px;
    height: auto;
    top: 200px;
    left: 520px;
}

.cat_can_food {
    position: absolute;
    width: 25px;
    height: auto;
    top: 190px;
}

.cat_food_bag {
    position: absolute;
    width: 80px;
    height: auto;
    top: 120px;
    left: 500px;
}

.mouse_toy {
    position: absolute;
    width: 30px;
    height: auto;
    top: 220px;
}

.scratching_post {
    position: absolute;
    width: 100px;
    height: auto;
    top: 160px;
    left: 500px;
}

.ball_fish_toy {
    position: absolute;
    width: 160px;
    height: auto;
    top: 180px;
    left: 250px;
}

.yarn {
    position: absolute;
    width: 30px;
    height: auto;
    top: 120px;
    left: 500px;
}

.cardboard_box {
    position: absolute;
    width: 150px;
    height: auto;
    top: 250px;
    left: 200px;
}

.litter_box {
    position: absolute;
    width: 150px;
    height: auto;
    top: 220px;
    left: 100px;
}

.cat_bed {
    position: absolute;
    width: 180px;
    height: auto;
    top: 220px;
    left: 230px;
}

.cat_tree {
    position: absolute;
    width: 270px;
    height: auto;
    top: -20px;
    left: 110px;
    z-index: 1;
}

.red_dot {
    position: absolute;
    width: 8px;
    height: auto;
    top: 130px;
}

.rainbow_wand {
    position: absolute;
    width: 140px;
    height: auto;
    top: 40px;
    left: 470px;
    z-index: -1;
}

.ice_cream_truck {
    position: absolute;
    width: 400px;
    height: auto;
    top: 50px;
    left: 0;
}

.feather_ball {
    position: absolute;
    width: 100px;
    height: auto;
    top: 120px;
    left: 520px;
}

.cardboard_bed {
    position: absolute;
    width: 150px;
    height: auto;
    top: 220px;
    left: 230px;
}

.plastic_bag {
    position: absolute;
    width: 60px;
    height: auto;
    top: 50px;
    left: 20px;
}

.cat_treat {
    position: absolute;
    width: 40px;
    height: auto;
    top: 40px;
    left: 500px;
    z-index: -1;
}

.water_bowl {
    position: absolute;
    width: 100px;
    height: auto;
    top: 180px;
    left: 510px;
}

.cat_cave {
    position: absolute;
    width: 150px;
    height: auto;
    top: 40px;
    left: 190px;
}

.cat_tunnel {
    position: absolute;
    width: 400px;
    height: auto;
    top: 150px;
    left: 0;
    z-index: 1;
}

/* The toggle switch is the box around the slider */
.toggle_switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 18px;
}

/* Hide default HTML checkbox */
.toggle_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    top: 1px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 16px;
}

.slider.round:before {
    border-radius: 50%;
}

/* --- Base styles for all app buttons --- */
:is(.blue_button, .orange_button, .green_button, .dark_button) {
    /* shared styles for buttons */
    padding: 4px 16px;
    border-width: 1px;
    border-radius: 16px;
    color: white;
    opacity: 1;
    box-shadow: 0 2px 4px -2px #333;
    display: inline-block;
    text-align: center;
    white-space: normal;
    /* colors via CSS variables (blue values are default) */
    --btn-bg-start:   #00e1ff;
    --btn-bg-end:     #003cff;
    --btn-hover-start:#5bfcfc;
    --btn-hover-end:  #003cff;
    --btn-ring:       #b3def5;
    background: linear-gradient(var(--btn-bg-start), var(--btn-bg-end));
}

:is(.blue_button, .orange_button, .green_button, .dark_button):hover,
:is(.blue_button, .orange_button, .green_button, .dark_button).button_selected {
    background: linear-gradient(var(--btn-hover-start), var(--btn-hover-end));
    box-shadow: 0 0 1px 1px var(--btn-ring);
}

/* Active state is identical for all buttons */
:is(.blue_button, .orange_button, .green_button, .dark_button):active {
    opacity: 1;
    position: relative;
    left: 3px;
    top: 3px;
    box-shadow: 1px 1px 2px #606060;
}

/* --- Button color themes --- */
.blue_button {
    --btn-bg-start:   #00e1ff;
    --btn-bg-end:     #003cff;
    --btn-hover-start:#5bfcfc;
    --btn-hover-end:  #003cff;
    --btn-ring:       #b3def5;
}

.orange_button {
    --btn-bg-start:   #ff9900;
    --btn-bg-end:     #af5904;
    --btn-hover-start: #ffbb3b;
    --btn-hover-end:  #af5904;
    --btn-ring:       #f5c7b3;
}

.green_button {
    --btn-bg-start: #43f66d;
    --btn-bg-end: #09a81e;
    --btn-hover-start: #78fab9;
    --btn-hover-end:  #09a81e;
    --btn-ring:       #b3f5c0;
}

.dark_button {
    --btn-bg-start: #7e7e7e;
    --btn-bg-end: #101010;
    --btn-hover-start: #868686;
    --btn-hover-end: #313131;
    --btn-ring: #d0d0d0;
    opacity: 0.8;
}

.extra_margin_top_bottom {
    margin-top: 10px;
    margin-bottom: 5px;
}

.start_button {
    display: flex;
    height: 30px;
    justify-content: center; /* Centers the button horizontally */
    align-items: center; /* Vertically aligns the items in the center */
    vertical-align: middle;
    opacity: 1.0;
}

.div_start_button {
    display: flex;
    justify-content: center; /* Centers the button horizontally */
    align-items: center; /* Vertically aligns the items in the center */
    vertical-align: middle;
}

.button_selected {
    background: linear-gradient(#00e1ff, #003cff);
    box-shadow: 2px 2px 5px #606060;
    opacity: 1;
    font-weight: bold;
}

.div_content_chart {
    display: block;
}

.div_content_grid {
    display: none;
}

.orange_text {
    color: #ff9933;
}

.table_centered_items {
    table-layout: fixed;
    width: 100%;
    text-align: center;
    alignment: center;
    padding-bottom: 30px;
    color: white;
}

.table_centered_items tr td {
    text-align: center;
    alignment: center;
}

.table_bordered,
.table_bordered td {
    border: 3px solid black;
}

.image_change_world {
    width: 200px;
    height: 112px;
    alignment: center;
    border-radius: 50%;
}

.textareainput {
    font-family: Arial, Verdana, Helvetica, sans-serif;
}

.blue_bold_text {
    color: deepskyblue;
    font-weight: bold;
}

.blue_bold_italicized_text {
    color: deepskyblue;
    font-weight: bold;
    font-style: italic;
}

.black_bold_text {
    color: black;
    font-weight: bold;
}

.black_bold_italicized_text {
    color: black;
    font-weight: bold;
    font-style: italic;
}

.div_dark_navbar ul {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 25px;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    top: 0;
    width: 100%;
    color: white;
    font-weight: bold;
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.div_dark_navbar li {
    float: left;
    border-right: 1px solid #bbb;
}

.div_dark_navbar li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.div_dark_navbar li a:hover {
    background-color: #111;
}

.div_dark_navbar li.active a {
    background: linear-gradient(#00e1ff, #003cff);
    opacity: 1;
    color: white;
    box-shadow: 0 2px 4px -2px #333;
}

.div_dark_navbar li.active a {
    background: linear-gradient(#00e1ff, #003cff);
    opacity: 1;
    color: white;
}

.span_button_spacing {
    padding: 20px;
}

.large_white_centered_font {
    color: white;
    font-size: large;
    font-weight: bold;
    text-shadow: 1px 1px #7e7d7d;
    text-align: center;
}

.larger_white_centered_font {
    color: white;
    font-size: larger;
    font-weight: bold;
    text-shadow: 1px 1px #7e7d7d;
    text-align: center;
}

.swiper {
    height: 100%;
    width: 100%;
    opacity: 1.0 !important;
}

.swiper-slide {
    text-align: left;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1.0;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: contain;
    vertical-align: bottom;
    opacity: 1.0;
}

.div_slide_text_and_image {
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    vertical-align: bottom;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    text-overflow: clip;
    overflow: clip;
    opacity: 1.0;
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
    border-radius: 25px;
}

.div_slide_text_above_image {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 50px;
    text-overflow: clip;
}

.slide_image_below_text {
    margin-top: 10px;
    vertical-align: bottom;
    opacity: 1.0;
    height: 200px;
}

.slide_edit_icon {
    position: absolute;
    height: 20px;
    width: 20px;
    bottom: 0;
    opacity: 50%;
    right: 10px; /* Distance from the right edge */
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

a:active {
    text-decoration: none;
}

.current-title {
    position: absolute;
    top: 20px;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    z-index: 10;
}

/* Allow for style customizations in backgrounds and category slides for each genre if needed. */
.genre_background_identity {
    background: #f6fcba linear-gradient(#f1c35f, #f6fcba, #f1c35f);
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_preferences {
    background: rgb(230, 174, 252) linear-gradient(rgba(239, 213, 250, 0.96), rgba(230, 174, 252, 0.96));
    box-shadow: rgba(194, 114, 248, 0.93) 0 10px 20px -20px, rgba(176, 6, 243, 0.96) 0 10px 20px -10px, rgba(121, 5, 180, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_product_types {
    background: rgb(102, 236, 252) linear-gradient(rgba(241, 249, 253, 0.96), rgba(108, 215, 252, 0.96));
    box-shadow: rgba(50, 50, 255, 0.25) 0 10px 20px -20px, rgba(0, 0, 255, 0.3) 0 10px 20px -10px, rgba(10, 37, 255, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_demographics {
    background: rgb(246, 203, 159) linear-gradient(rgba(245, 214, 194, 0.96), rgba(246, 203, 159, 0.96));
    box-shadow: rgba(84, 69, 28, 0.93) 0 10px 20px -20px, rgba(164, 103, 14, 0.96) 0 10px 20px -10px, rgba(119, 53, 5, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_education {
    background: rgb(169, 157, 250) linear-gradient(rgba(241, 249, 253, 0.96), rgba(157, 162, 250, 0.96));
    box-shadow: rgba(50, 50, 255, 0.25) 0 10px 20px -20px, rgba(0, 0, 255, 0.3) 0 10px 20px -10px, rgba(10, 37, 255, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_employment {
    background: rgb(160, 250, 157) linear-gradient(rgba(241, 253, 247, 0.96), rgba(157, 250, 179, 0.96));
    box-shadow: rgba(50, 255, 122, 0.25) 0 10px 20px -20px, rgba(8, 255, 0, 0.65) 0 10px 20px -10px, rgba(10, 255, 124, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_events {
    background: rgb(252, 174, 186) linear-gradient(rgba(250, 213, 219, 0.96), rgba(252, 174, 177, 0.96));
    box-shadow: rgba(248, 114, 150, 0.93) 0 10px 20px -20px, rgba(243, 6, 69, 0.96) 0 10px 20px -10px, rgba(180, 5, 11, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_healthcare {
    background: rgb(159, 246, 233) linear-gradient(rgba(205, 252, 245, 0.96), rgba(159, 246, 233, 0.96));
    box-shadow: rgba(38, 117, 99, 0.91) 0 10px 20px -20px, rgba(29, 164, 141, 0.97) 0 10px 20px -10px, rgba(3, 91, 75, 0.67) 0 -2px 6px 0 inset;
}

.genre_background_skills {
    background: rgb(252, 200, 231) linear-gradient(rgba(253, 212, 237, 0.96), rgba(252, 200, 231, 0.96));
    box-shadow: rgba(143, 96, 124, 0.96) 0 10px 20px -20px, rgba(171, 109, 146, 0.96) 0 10px 20px -10px, rgba(168, 79, 132, 0.96) 0 -2px 6px 0 inset;
}

.genre_background_companies {
    background: rgb(255, 255, 255) linear-gradient(rgba(255, 255, 255, 0.96), rgb(236, 235, 235));
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.genre_background_wellness {
    background: rgb(250, 245, 157) linear-gradient(rgba(252, 244, 207, 0.96), rgba(250, 248, 157, 0.96));
    box-shadow: rgba(100, 93, 61, 0.96) 0 10px 20px -20px, rgba(187, 165, 54, 0.96) 0 10px 20px -10px, rgba(121, 102, 8, 0.96) 0 -2px 6px 0 inset;
}

.genre_slide_identity {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_preferences {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(194, 114, 248, 0.93) 0 10px 20px -20px, rgba(176, 6, 243, 0.96) 0 10px 20px -10px, rgba(121, 5, 180, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_product_types {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_demographics {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(84, 69, 28, 0.93) 0 10px 20px -20px, rgba(164, 103, 14, 0.96) 0 10px 20px -10px, rgba(119, 53, 5, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_education {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(50, 50, 255, 0.25) 0 10px 20px -20px, rgba(0, 0, 255, 0.3) 0 10px 20px -10px, rgba(10, 37, 255, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_employment {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(50, 255, 122, 0.25) 0 10px 20px -20px, rgba(8, 255, 0, 0.65) 0 10px 20px -10px, rgba(10, 255, 124, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_events {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(255, 50, 81, 0.25) 0 10px 20px -20px, rgba(255, 0, 0, 0.65) 0 10px 20px -10px, rgba(255, 10, 18, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_healthcare {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(38, 117, 99, 0.91) 0 10px 20px -20px, rgba(29, 164, 141, 0.97) 0 10px 20px -10px, rgba(3, 91, 75, 0.67) 0 -2px 6px 0 inset;
}

.genre_slide_skills {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(143, 96, 124, 0.96) 0 10px 20px -20px, rgba(171, 109, 146, 0.96) 0 10px 20px -10px, rgba(168, 79, 132, 0.96) 0 -2px 6px 0 inset;
}

.genre_slide_companies {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.genre_slide_wellness {
    background: rgba(255, 255, 255, 1.0);
    box-shadow: rgba(100, 93, 61, 0.96) 0 10px 20px -20px, rgba(187, 165, 54, 0.96) 0 10px 20px -10px, rgba(121, 102, 8, 0.96) 0 -2px 6px 0 inset;
}

form .form_text_field {
    font-family: inherit;
    width: 90%;
}

form .form_text_area {
    font-family: inherit;
    width: 90%;
    resize: vertical;
}

.form_vertical {
    /* Display Django forms vertically. Each field will have a label on one line and the value on the next line. */
    /* This makes forms easier to view on mobile devices. */
    display: block;
}

.form_vertical label,
.form_vertical input {
    display: block;
    margin-bottom: 5px;
}

.table_fixed_width {
    /* Fixed table layout means each column will have equal width. */
    width: 100%;
    table-layout: fixed;
}

.width_max_content {
    width: max-content;
}

.search_genre_header {
    /* background-color: #406bf8; */
    background: linear-gradient(to right, #406bf8, #40abf8);
    color: white;
    font-weight: bold;
}

.div_horizontal_bar_chart_container {
    width: 100%;
    max-width: 100%;
    height: auto;
    justify-content: center;
}

/* Ensure the modal overlay covers the whole screen */
.modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    z-index: 9998;
}

/* When the modal is active */
.modal_overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal_overlay.active .modal {
    transform: translateY(0);
}

/* The modal box itself */
.modal {
    background: white;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-50px);
    transition: transform 0.3s ease-in-out;
    z-index: 20;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 600px) {
    .modal {
        width: 90%;
    }
}

.modal.hide {
    opacity: 0;
    visibility: hidden;
}

/* Modal header */
.modal_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #007bff;
    color: white;
}

/* Modal body */
.modal_body {
    padding: 20px;
}

/* Modal footer */
.modal_footer {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    background: #f1f1f1;
}

/* Modal close button */
.modal_close_button {
    background: none;
    border: none;
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

/* Show a red "NEW" badge on newly created categories */
.new_badge {
    display: inline-block;
    background: linear-gradient(red, #a90202);
    color: white;
    font-weight: bold;
    font-size: small;
    padding: 5px 10px;
    position: relative;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    margin-left: 20px;
}

/* Show a "MATCH" badge when comparing data between 2 people */
.match_badge {
    display: inline-block;
    background: linear-gradient(#00ffe1, #009dff);
    color: white;
    font-weight: bold;
    font-size: small;
    padding: 5px 10px;
    position: relative;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.editable-sentence {
    font-weight: bold;
    font-size: 2em;
}

.editable-word {
    color: #00B2FF;
    text-decoration: underline;
    cursor: pointer;
}

.editable-input {
    font-size: 1em;
    font-family: inherit;
    padding: 4px;
    border: none;
    outline: none;
    width: 250px;
    margin-bottom: 4px;
}

.editable-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    list-style: none;
    margin: 2px 0 0 0;
    padding: 0 0 4px;
    z-index: 10;

    /* Sizing and containment */
    width: 100%;
    max-width: 100%;
    min-width: 250px;
    box-sizing: border-box;

    /* Scroll behavior */
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: nowrap;

    /* Style */
    font-family: inherit;
    font-size: inherit;
    font-weight: normal;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.editable-dropdown-item {
    height: 40px;
    line-height: 40px;
    padding: 0 12px;
    cursor: pointer;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;

    /* Contain content within dropdown item */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.editable-dropdown-item:hover {
    background-color: #f0f0f0;
}

.editable-container {
    position: relative;
    display: inline-block;
    overflow: visible;
    width: auto; /* prevent it from forcing child width */
}

.hr_bevel_raised {
    border: none;
    background: none;
    border-top: 1px solid rgba(255, 255, 255, 0.4); /* Light edge */
    border-bottom: 1px solid rgba(100, 100, 100, 0.4); /* Slightly dark edge */
    margin: 1em 0; /* Optional spacing */
}

.newsletter_post {
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.newsletter_post h3 {
    margin-top: 0;
    /*font-size: 1.5em;*/
}

.newsletter_post img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 10px 20px -20px, rgba(0, 0, 0, 0.3) 0 10px 20px -10px, rgba(10, 37, 64, 0.35) 0 -2px 6px 0 inset;
}

.newsletter_post .summary {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
}

.newsletter_post a {
    color: #007BFF;
    text-decoration: none;
}

.newsletter_post a:hover {
    text-decoration: underline;
}

.reaction_bar {
    display: flex;
    flex-wrap: wrap;           /* ✅ Allows wrapping if needed on small screens */
    gap: 1rem;                 /* ✅ Space between buttons */
    justify-content: flex-start; /* Or center, if you prefer */
}

.reaction_option {
    width: 90px; /* Consistent width */
    padding: 6px 8px;
    border-radius: 8px;
    background-color: transparent;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background-color 0.2s ease;
    min-width: 90px;           /* Ensures they don't shrink below this */
    max-width: 90px;
}

.reaction_option.active {
    background-color: #007bff;
}

.reaction_icon {
    width: 30px;
    height: 30px;
    filter: grayscale(100%);
    opacity: 0.3;
    transition: filter 0.2s ease;
}

.reaction_icon:hover {
    transform: scale(1.2);
}

.reaction_option.active .reaction_icon {
    opacity: 1;
    filter: brightness(0) invert(1);
}

.reaction_label {
    margin-top: 4px;
    color: gray;
    transition: color 0.2s ease;
}

.reaction_option.active .reaction_label {
    color: white;
}

@media (max-width: 480px) {
    /* Mobile view */
    .reaction_option {
        width: 80px;
        padding: 6px;
    }
}

/* Outer container for all grouped charts */
.horizontal_bar_chart_with_likes_section {
    margin-bottom: 2rem;
}

/* Core chart container */
.horizontal_bar_chart_with_likes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
}

/* Each row (suggestion + bar + like button) */
/* Even spacing and vertical alignment */
.bar_row {
    display: grid;
    grid-template-columns: 1fr 3fr auto auto;
    align-items: center;
    gap: 0.75rem;
}

/* Text label for each suggestion */
.bar_label {
    font-size: 0.9rem;
    white-space: normal;
    overflow-wrap: break-word;
}

/* Bar background */
.bar_container {
    width: 100%;
    background-color: #eee;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Filled portion of the bar */
.bar_fill {
    background-color: #007bff;
    height: 100%;
    transition: width 0.3s ease;
}

.bar_like_btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar_like_icon {
    width: 20px;
    height: 20px;
    opacity: 0.3;
    transition: transform 0.1s ease;
}

.bar_like_btn:hover .bar_like_icon {
    transform: scale(1.2);
    opacity: 0.8;
}

/* Count of likes */
.bar_count {
    min-width: 24px;
    text-align: center;
    font-size: 0.85rem;
}

@media (max-width: 500px) {
    .bar_row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .bar_container {
        width: 100%;
        flex: unset;
    }

    .bar_label {
        flex-basis: 100%;
        margin-bottom: 4px;
    }
}

.company_product_image {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.company_product_image img {
    height: 90px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.company_product_image img:hover {
    transform: scale(1.05);
}

.image-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

.image-modal-arrow {
    position: absolute;
    top: 50%;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    padding: 8px;
    user-select: none;
    transform: translateY(-50%);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
}

.image-modal-left {
    left: 20px;
}

.image-modal-right {
    right: 20px;
}

.tab-button-container {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px; /* Smaller gap for better fit */
    padding: 10px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.tab-button {
    text-align: center;
    text-decoration: none;
    padding: 5px;
    flex: 1 1 20%; /* Allow 5 items per row on wider screens */
    max-width: 80px; /* Limit size so it doesn't stretch too wide */
}

.tab-icon {
    width: 100%;
    max-width: 64px;
    height: auto;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
    transition: border-bottom 0.3s ease;
    filter: invert(100%) drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

/* Underline for selected */
.selected-tab .tab-icon {
    border-bottom: 4px solid black;
    padding-bottom: 4px;
}

@media (max-width: 600px) {
    .tab-button {
        flex: 1 1 10%;
    }

    .tab-icon {
        max-width: 48px;
    }
}

.uploaded_image_preview {
    width: 200px;
    border: 1px solid #ccc;
}

/* General chat container */
.chat_message_container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 500px;
    margin: 20px auto;
}

/* Common styles for all chat messages */
.chat_message {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 15px;
    max-width: 80%; /* Limit the size of the bubble */
    word-wrap: break-word; /* Ensures long words break properly */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

/* Optional: Add a small margin between messages */
.chat_message:not(:last-child) {
    margin-bottom: 10px;
}

.chat_message_text {
    font-size: 16px;
    line-height: 1.4;
}

/* Styles for the current user's chat messages (right-aligned) */
.chat_current_user_message {
    align-self: flex-end; /* Aligns bubble to the right */
    background-color: #007bff; /* Blue bubble */
    color: white;
    text-align: left;
    border-radius: 15px 15px 0 15px; /* Round the top-left and bottom corners */
    opacity: 1;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.chat_current_user_message_header {
    align-self: flex-end; /* Aligns to the right */
}

/* Styles for other users' chat messages (left-aligned) */
.chat_other_user_message {
    align-self: flex-start; /* Aligns bubble to the left */
    background-color: #f1f1f1; /* Light gray bubble */
    color: black;
    text-align: left;
    border-radius: 15px 15px 15px 0; /* Round the top-right and bottom-right corners */
    opacity: 1;
    filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.5));
}

.chat_other_user_message_header {
    align-self: flex-start; /* Aligns to the left */
}

.chat-page {
    --page-footer-height: 60px;
}

/* Reserve space inside the scroll area equal to the fixed footer height */
body.has-fixed-footer .div_content_inner {
    padding-bottom: calc(var(--page-footer-height, 0px) + max(env(safe-area-inset-bottom), 8px));
}

form .form_chat_message_field {
    width: 90%;
    resize: none;
    box-sizing: border-box; /* Ensures padding doesn't overflow the container */
    font-family: inherit; /* Use the same font as the rest of the application */
    font-size: medium;
    line-height: 1.4;
    border-radius: 8px;
}

.button_chat_message_send {
    height: 45px;
}

/* Footer content layout + width aligned to your content column (50% desktop / 90% mobile) */
.page_footer .chat_footer {
    padding: 8px 0 calc(env(safe-area-inset-bottom) + 8px);
}

.page_footer .chat_composer {
    max-width: 50%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

@media (max-width: 768px) {
    .page_footer .chat_composer { max-width: 90%; }
}

.page_footer .chat_composer textarea,
.page_footer .chat_composer input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;   /* comfortable tap target */
}

/* --- Chat wallpaper cross-fade stage --- */
body.chat-page .div_content {
    position: relative;
    z-index: 1; /* ensure content stays above wallpaper */
}

#wallpaper-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none; /* never intercept clicks */
}

#wallpaper-stage .wallpaper-layer {
    position: absolute;
    inset: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 5000ms ease; /* fade duration */
    will-change: opacity;
}

#wallpaper-stage .wallpaper-layer.show {
    opacity: 1;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #wallpaper-stage .wallpaper-layer {
        transition: none;
    }
}

/* 2-up on desktop, 1-up on mobile */
.media-duo{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    align-items:start;          /* cards stretch nicely */
}
@media (max-width:640px){
    .media-duo{ grid-template-columns:1fr; }
}

/* Clickable card: image + centered caption move together */
.media-card{
    display:flex;
    flex-direction:column;
    gap:10px;
    text-decoration:none;       /* keep links from underlining the whole card */
    color:inherit;              /* use your normal text color */
    height:100%;
    align-items:center;         /* center the caption */
}

.media-duo__img{
    width:100%;
    aspect-ratio:16/9;          /* equal heights */
    object-fit:cover;
    display:block;
    border-radius:12px;
}

/* Caption under each image */
.media-card__title{
    text-align:center;
    font-weight:bold;
    line-height:1.2;
}

/* === Compare table for Compare Categories in Analytics === */
.striped_table.compare-table{
    --blue: #0077ff;
    --side-w: 48px;   /* vertical title column */
    --row-w: 22ch;    /* row header column */
    table-layout: fixed;
    width: 100%;
    border-collapse: collapse;
}

/* column widths via <colgroup> */
.striped_table.compare-table col.col-side   { width: var(--side-w); }
.striped_table.compare-table col.col-rowhead{ width: var(--row-w); }

/* sticky top header (keeps your blue) */
.striped_table.compare-table thead th{
    position: sticky; top: 0; z-index: 7;
    background: var(--blue); color: #fff;
}

/* sticky left column #1: corner + vertical title cell */
.striped_table.compare-table :is(.corner,.corner-spacer,.side-title){
    position: sticky; left: 0; z-index: 8;
    background: var(--blue); color: #fff;
    width: var(--side-w); min-width: var(--side-w); padding: 0;
}

/* vertical text */
.striped_table.compare-table .side-title__text{
    display: inline-block; padding: 8px 4px;
    writing-mode: vertical-rl; transform: rotate(180deg);
}

/* sticky left column #2: row header */
.striped_table.compare-table :is(.rowhead-spacer,.row-header){
    position: sticky; left: var(--side-w); z-index: 7;
    background: var(--blue); color: #fff;
    width: var(--row-w); min-width: var(--row-w);
}

/* big centered title above data columns */
.striped_table.compare-table .superhead .super-col-title{
    text-align: center; font-weight: 700;
}

/* zebra striping only for data cells (not header <th>) */
.striped_table.compare-table tbody tr:nth-child(odd)  td{ background:#f2f2f2; }
.striped_table.compare-table tbody tr:nth-child(even) td{ background:#fff; }

/* Compare table: give data columns a sensible minimum width on small screens.
   Let headers wrap so they stay readable. */
.striped_table.compare-table thead th:not(.corner):not(.rowhead-spacer),
.striped_table.compare-table tbody td {
    min-width: clamp(7rem, 12vw, 11rem);   /* tune these numbers to taste */
    word-break: break-word;                /* allow header text to wrap */
    hyphens: auto;                         /* nicer wraps where supported */
}

/* Sizes for the two sticky left columns (you likely already have these) */
.striped_table.compare-table col.col-side    { width: 48px; }
.striped_table.compare-table col.col-rowhead { width: 22ch; }

/* NEW: minimum/target width for each data column */
.striped_table.compare-table col.col-data {
    width: clamp(9rem, 12vw, 12rem);  /* tweak to taste */
}

/* Allow header labels to wrap nicely inside that width */
.striped_table.compare-table thead th {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.div_background_white {
    background-color: white;
    border-radius: 25px;
}

.div_padding {
    padding: 20px 30px;
}