/* Ensure the main styles align elements properly */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {

    font-family: 'Roboto', sans-serif;
}

a {
    color: #03a5ff;
    text-decoration: none;
}


.sidebar__nav-link-icon {
    position: relative; /* ✅ Ensures child elements are positioned relative to the icon */
}

.sidebar-inbox-count {
    position: absolute;
    font-family: 'Roboto';
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 10px;
    text-align: center;
    display: inline-block;
}


a:hover {
    text-decoration: none;
}

/* Ensure the body has proper overflow handling */
body {
    overflow-x: hidden;
}

/* Disable scrolling when noscroll class is added (campaign modals, etc.) */
html.noscroll,
body.noscroll {
    overflow: hidden;
}

/* Buttons */
button {
    display: inline-block;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    background-color: #03a5ff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;
}

button:hover {
    background-color: #0284cc;
}

.profile__title {
    font-size: 24px; /* Adjust font size as needed */
    font-weight: bold; /* Bold text */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    line-height: 1.2; /* Adjust line height for better spacing */
    white-space: normal; /* Allow text to wrap onto the next line */
    overflow-wrap: break-word; /* Break long words to prevent overflow */
}

.stats__header {
    font-size: 16px;
    line-height: 1.8em;
}

.stats__paragraph {
    font-size: 14px;
    color: #747474;
    line-height: 1.7em;
}

.stats__separator {
    border: none;
    border-top: 1px solid #ecebeb;
    margin: 20px 0;
}

.about-info__social {
    margin-top: 4px;
}

.about-info__social-icon {
    padding-left: 4px;
    padding-right: 4px;
    color: #090b08;
    line-height:32px;
    text-decoration: none;
}

.header-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center avatar on the seam between hero and sidebar (half above / half below) */
    --profile-avatar-size: 176px;
    margin-top: calc(var(--profile-avatar-size) / -2);
    position: relative;
    z-index: 1;
}

.profile-container__image, .profile-container-edit__image, .user-container-edit__image {
    border-radius: 50%;
    border: 8px solid white;
    width: 150px;
    height: 150px;
    margin-bottom: 14px;
    object-fit: cover;
}

.profile-container .profile-container__image {
    width: var(--profile-avatar-size);
    height: var(--profile-avatar-size);
}

.profile-container-edit {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.top-nav {
    height: 60px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #d8d5d5;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: white;
    z-index: 5;
}

.open-notifications-link {
    text-align: center;
    margin-bottom: 24px;
}

.top-nav .logo a img {
    display: block;
}

.top-nav__profile-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-nav__notifications {
    cursor: pointer;
}

.top-nav__profile-image {
    border-radius: 50%;
    border: 1px solid #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer; /* Hand pointer cursor */
}

.user-menu-container {
    position: relative;
    display: inline-block;
    height:40px;
}

.user-image {
    cursor: pointer; /* Hand pointer cursor */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ccc;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
    width:150px;
    margin-top: 10px;
    right: 0px; /* Ensure the menu is not off the screen */
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}



/* Ensure the main content fills the width properly */
.main-content {
    display: flex;
    flex-direction: row;
    background-color: #f8f8f8;
    min-height: calc(100vh - 60px);
    min-width: 0; /* allow flex children (.left-column) to shrink so grids don’t overflow */
    margin-left: 60px; /* Adjust based on the sidebar width */
    padding: 0;
    transition: margin-left 0.3s;
}

/* Ensure the main content fills the width properly */
.main-content-edit {
    display: flex;
    flex-direction: row;
    background-color: #ffffff;
    min-height: calc(100vh - 60px);
    margin-left: 60px; /* Adjust based on the sidebar width */
    margin-top: 60px;
    padding: 0;
    transition: margin-left 0.3s;
}


/* Ensure the main content fills the width properly */
.main-content-simple {
    display: flex;
    width: 100%;
    flex-direction: row;
    min-width: 0;
    background-color: #f8f8f8;
    min-height: calc(100vh - 60px);
    padding: 0;
    transition: margin-left 0.3s;
}

.main-content--expanded {
    margin-left: 230px; /* Adjust for expanded sidebar */
}

.main-content-edit--expanded {
    margin-left: 230px; /* Adjust for expanded sidebar */
}
.main-content-dash--expanded {
    margin-left: 230px; /* Adjust for expanded sidebar */
}



/* Remove any extra padding or margins */
.content-container {
    flex-grow: 1;
    padding: 20px; /* Adjust padding as needed */
}

.edit-button {
    padding: 6px 16px;
    border: none;
    border-radius: 4px;
    background-color: #03a5ff;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease-in-out;
}

.edit-button:hover {
    background-color: #0284cc;
}


.content-container-simple {
    width: 100%;
    flex-direction: row;
    min-height: calc(100vh - 60px);
    padding: 24px 40px 40px 40px;
    transition: margin-left 0.3s;
}

/* Ensure no additional space is taken up */
.table-container {
    width: 100%;
    overflow-x: auto;
}

.left-column {
    flex: 2.5; /* Adjust flex value to make it narrower */
    min-width: 0; /* critical: lets content shrink inside flex row (stats grid, tabs) */
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 6px;
    background-color: #ffffff;
    z-index:4;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
    overflow-x: auto;
    /* overflow-y must not clip: tab link borders sit on the bottom edge and must stay visible */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* Full-width rule is on .tabs; hover/active use ::after so they sit exactly on the baseline. */
.tabs__link {
    padding: 10px 20px;
    text-decoration: none;
    color: #8e8e8e;
    font-weight: 300;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.tabs__link::after {
    display: none;
}

.tabs__link:hover:not(.tabs__link--active) {
    color: #7a7a7a;
}

.tabs__link--active {
    color: #333;
    font-weight: 500;
    box-shadow: inset 0 -1px 0 #333;
}

.tabs__link--active:hover {
    color: #2a2a2a;
    box-shadow: inset 0 -1px 0 #2a2a2a;
}

.tabs__link:focus-visible {
    outline: 2px solid #03a5ff;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Wrapper + side chevrons when tabs scroll (see main-jquery.js) — chevrons sit in fixed gutters, not over labels */
.tabs-row {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.tabs-row .tabs {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    border-bottom: none;
}

.tabs-row__hint {
    flex: 0 0 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    color: #94a3b8;
    font-size: 17px;
    line-height: 1;
    user-select: none;
    transition: flex-basis 0.2s ease, min-width 0.2s ease, opacity 0.15s ease;
}

.tabs-row--more-right .tabs-row__hint--right,
.tabs-row--more-left .tabs-row__hint--left {
    flex: 0 0 28px;
    min-width: 28px;
    opacity: 1;
}

@media (min-width: 1025px) {
    .tabs-row {
        display: block;
        border-bottom: none;
        margin-bottom: 0;
    }

    .tabs-row__hint {
        display: none !important;
    }

    .tabs-row .tabs {
        margin-bottom: 20px;
        border-bottom: 1px solid #e8e8e8;
    }
}

.right-column {
    flex: 0.5; /* Adjust flex value accordingly */
    min-width: 0;
    padding: 0px 28px;
    background-color: #f8f8f8;
    z-index:4;
}

.about-info {
    text-align: center;
    display: block; /* Default display property, can also use flex if needed */
    width: 100%; /* Full width of the parent container */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    overflow-wrap: break-word; /* Break long words to prevent overflow */
    word-wrap: break-word; /* Support for older browsers */
}

.about-info,
.stats {
    width: 100%;
    margin-bottom: 18px;
}

.location-info {
    padding: 14px 0px 8px 0px;
    color: #8e8e8e;
    font-size: 15px;
    display: flex;            /* Make the container a flex container */
    align-items: center;   
}

.location-info__icon {
    font-size: 15px;
    color: #03a5ff;
    display: flex;            /* Flex display for icon centering */
    justify-content: center;  /* Center horizontally */
    align-items: center;      /* Center vertically */
    margin-right: 8px;        /* Add some space between the icon and the text */
    width: 24px;              
    height: 24px;
    background-color: #f0f0f0; /* Background color for visibility */
    padding: 5px;             /* Padding around the icon */
    border-radius: 50%;     
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 11px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index:10;
}

.mobile-nav__nav-links {
    list-style: none;
    padding: 60px 0 0 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

.mobile-nav__nav-link-item {
    margin: 20px 0;
}

.mobile-nav__nav-link {
    color: white;
    text-decoration: none;
    font-size: 1.5em;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav__nav-link-icon {
    margin-right: 10px;
}

/* Overview tab — platform stats (grid keeps last-row cards from stretching full width) */
.stats-boxes {
    display: grid;
    /* min(220px, 100%) lets tracks shrink when the column is narrower than 220px */
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 12px;
    margin: 20px 0 28px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.geography-info-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
    margin-top: 20px;
}

.geography-bar {
    background-color: #03a5ff;
    height: 14px;
    color: white;
    padding: 0 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.geography-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative; /* For the percentage text */
}

.geography-label {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.geography-bar-container {
    flex: 3;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.geography-percentage {
    font-size: 13px;
    color: #535353;
    margin-left: 10px;
    white-space: nowrap;
}

.geography-percentage.inside {
    color: white;
    position: absolute;
    right: 10px;
}

.age-info-box {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
    margin-top: 20px;
}

.age-bar {
    background-color: #03a5ff;
    height: 14px;
    color: white;
    padding: 0 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.age-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative; /* For the percentage text */
}

.age-label {
    flex: 1;
    margin-right: 10px;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.age-bar-container {
    flex: 3;
    background-color: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.age-percentage {
    font-size: 13px;
    color: #535353;
    margin-left: 10px;
    white-space: nowrap;
}

.age-percentage.inside {
    color: white;
    position: absolute;
    right: 10px;
}

.stats-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    min-height: 148px;
    padding: 28px 20px 26px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    position: relative;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stats-box:hover {
    border-color: #d4d4d4;
    background: #fafafa;
}

.stats-box:focus-visible {
    outline: 2px solid #03a5ff;
    outline-offset: 2px;
}

.stats-box.highlighted {
    border-color: #8ed0f6;
    background: #fff;
}

.stats-box.highlighted:hover {
    border-color: #6ec4f2;
    background: #fafafa;
}

.stats-box.highlighted .stats-box__social-icon i {
    color: #03a5ff;
}

/* Shown only when the creator has multiple channels (PHP) */
.stats-box__badge {
    position: absolute;
    top: 11px;
    right: 11px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e8e8e8;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    pointer-events: none;
}

.stats-box.highlighted.stats-box--primary .stats-box__badge {
    color: #0c4a6e;
    border-color: #bae6fd;
    background: rgba(240, 249, 255, 0.92);
}

@media (max-width: 768px) {
    .stats-box__badge {
        top: 9px;
        right: 9px;
        font-size: 9px;
        padding: 3px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stats-box,
    .stats-box:hover {
        transition: none;
    }
}

.stats-box__title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #9ca3af;
    margin: 0;
    line-height: 1.45;
    max-width: 100%;
}

.stats-box__value {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1f2937;
    margin: 0;
    padding: 10px 0 6px;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.stats-box__value-2 {
    font-size: 19px;
    color: #4b5563;
    font-weight: 600;
    padding-bottom: 8px;
    padding-top: 12px;
}

.stats-box__social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 6px;
    font-size: 20px;
    color: #03a5ff;
}

.stats-box__social-icon i {
    line-height: 1;
}

.stats-box__social-icon-2 {
    font-size: 28px;
    color: #03a5ff;
}

/* Footer line under platform grid (shared across profile views) */
.stats-overall-updated {
    margin: 4px 0 0;
    padding-top: 4px;
    font-size: 12px;
    color: #64748b;
    text-align: right;
    letter-spacing: 0.01em;
}


.chart-box__header {
    font-weight: 400;
    font-size: 17px;
    border-bottom: 1px solid #e9e9e9;
    text-align: left;
    padding-bottom: 12px;
    margin-bottom: 32px;
}

.tab-content {
    display: none;
    min-width: 0; /* avoid flex/grid blowout in narrow main column */
    padding: 0px 24px 64px 24px;
    margin-bottom: 60px;
}

.tab-content--active {
    display: block;
}

.tab-content__text {
    color: #747474;
    font-size: 17px;
    font-weight: 200;
    line-height: 1.6em;
    padding: 23px 23px 23px 0px;
}

.tab-content__title {
    margin: 0;
    padding: 18px 8px 20px 0;
    font-size: 24px;
    font-weight: 400;
      display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chart-box {
    width: 48%;
    position: relative;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

.pie-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        #03a5ff 0% 40%,   /* Male: 40% */
        #FF6384 40% 80%,  /* Female: 40% */
        #FFCE56 80% 100%  /* Other: 20% */
    );
}

.pie-chart-legend {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.legend-item {
    display: flex;
    font-size: 14px;
    color: #494949;
    align-items: center
}

.legend-color {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.legend-male {
    background-color: #03a5ff;
}

.legend-female {
    background-color: #76ceff;
}

.legend-other {
    background-color: #b5e5ff;
}

/* Demographics tab — aligned with Overview stat cards */
.chart-box.chart-box--demographics,
.geography-info-box.geography-info-box--demographics {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
    min-width: 0;
}

.chart-box.chart-box--demographics.chart-box--gender {
    align-items: center;
}

/* Full-width heading (other cards); flex center was shrinking the title block */
#demographics .chart-box--gender .chart-box__header {
    align-self: stretch;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

.geography-info-box.geography-info-box--demographics {
    text-align: left;
    margin-top: 0;
}

.chart-box.chart-box--demographics .chart-box__header {
    margin-top: 0;
}

/* Same top spacing as Overview (.stats-boxes margin-top) + title padding-bottom */
#demographics .chart-container {
    gap: 18px;
    margin: 20px 0 18px;
    justify-content: flex-start;
}

#demographics .chart-container > .chart-box.chart-box--demographics {
    width: calc(50% - 9px);
    flex: 1 1 calc(50% - 9px);
    min-width: 0;
    margin-top: 0;
    box-sizing: border-box;
}

.demographics-gender-summary {
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
    margin: 14px auto 0;
    max-width: 22rem;
    text-align: center;
}

.legend-item__pct {
    font-weight: 600;
    color: #374151;
    margin-left: 4px;
}

.demographics-empty-note {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
    margin: 12px 0 4px;
}

.age-item--empty .age-label {
    color: #9ca3af;
}

.age-percentage--empty {
    color: #94a3b8;
    font-weight: 500;
}

.demographics-expand-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #0369a1;
    background: #fff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.demographics-expand-btn:hover {
    background: #f0f9ff;
}

.demographics-expand-btn:focus-visible {
    outline: 2px solid #03a5ff;
    outline-offset: 2px;
}

#demographics .pie-chart-legend {
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
}

@media (max-width: 1024px) {
    .stats-boxes {
        grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    }
}

@media (max-width: 1450px) {
    .main-content-edit {
        /* still side-by-side, but tighter */
        margin-left: 60px; /* keep existing sidebar logic */
    }

    .main-content-edit > .right-column {
        flex: 0.7 1 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .main-content-edit > .left-column {
        flex: 2.3 1 0;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }

    .top-nav__profile-options {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .main-content {
        margin-left: 0;
        flex-direction: column;
        min-height: 100vh;
    }
    .main-content-simple {
        margin-left: 0;
        flex-direction: column;
        min-height: 100vh;
    }
    .main-content-edit {
        margin-left: 0;
        flex-direction: column;
        min-height: 100vh;
        width:100%;
    }
    .right-column {
        border-left: none;
        order: -1;
        padding-right: 18px;
        margin-bottom: 20px;
        padding-left: 18px;
    }

    .left-column {
        order: 1;
        width: 100%;
    }

    .tabs {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
    }

    .stats-boxes {
        grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
        gap: 10px;
    }

    .chart-box {
        width: 100%;
    }

    #demographics .chart-container > .chart-box.chart-box--demographics {
        width: 100%;
        flex: 1 1 100%;
    }

    .tab-content {
        padding: 0px 6px 0px 6px;
    }
}

/* New styles for Campaigns tab */
.campaign-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Campaign cards — premium case-study tiles */
.campaign-thumbnail {
    position: relative;
    width: calc(50% - 20px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease;
}

.campaign-thumbnail:hover {
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.05),
        0 16px 40px rgba(3, 165, 255, 0.12);
    transform: translateY(-4px);
    border-color: rgba(3, 165, 255, 0.22);
}

.campaign-thumbnail:focus {
    outline: none;
}

.campaign-thumbnail:focus-visible {
    outline: 2px solid #03a5ff;
    outline-offset: 3px;
}

.campaign-thumbnail__media {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    background: linear-gradient(145deg, #eceff3 0%, #dfe4ea 100%);
    overflow: hidden;
}

.campaign-thumbnail__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.06) 100%);
    pointer-events: none;
    z-index: 1;
}

.campaign-thumbnail__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 0;
}

.campaign-thumbnail:hover .campaign-thumbnail__media img {
    transform: scale(1.04);
}

.campaign-thumbnail__body {
    padding: 20px 22px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 2;
}

.campaign-thumbnail__kicker,
.campaign-thumbnail__body .campaign-brand {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #03a5ff;
    line-height: 1.4;
}

.campaign-thumbnail__body h3,
.campaign-thumbnail__body .campaign-title {
    margin: 0;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #111;
    font-family: inherit;
}

.campaign-thumbnail__meta-date {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.02em;
}

.campaign-thumbnail__brand {
    margin: 0;
    font-size: 14px;
    color: #555;
    font-weight: 400;
}

.campaign-thumbnail__excerpt {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #5a5a5a;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-thumbnail__cta {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #03a5ff;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease, color 0.2s ease;
}

.campaign-thumbnail__cta .fa-arrow-right {
    font-size: 11px;
    transition: transform 0.25s ease;
}

.campaign-thumbnail:hover .campaign-thumbnail__cta {
    color: #0288d4;
    gap: 12px;
}

.campaign-thumbnail:hover .campaign-thumbnail__cta .fa-arrow-right {
    transform: translateX(3px);
}

.campaign-modal {
    display: none; /* Hidden by default; JS sets display:flex */
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* mobile dynamic viewport — avoids toolbar clipping */
    background-color: rgba(14, 17, 22, 0.58);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1001;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start; /* avoids top of panel sitting above the viewport when tall */
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto; /* scroll overlay if panel is taller than viewport */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.campaign-modal.campaign-modal--open {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .campaign-modal {
        transition-duration: 0.01ms;
    }

    .campaign-modal .modal-content.campaign-modal__content {
        transition-duration: 0.01ms !important;
    }
}


.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 1060px;
    height: 95vh;
    max-height: 95vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow:auto;
}

.campaign-info p {
    font-weight: 300;
}

/* Stacked under image; do not zero padding — same node uses .campaign-thumbnail__body */
.campaign-info-thumb {
    background: transparent;
    position: static;
    color: inherit;
}

/* Legacy overlay cards only — avoid overriding .campaign-thumbnail__body */
.campaign-info-thumb:not(.campaign-thumbnail__body) p {
    font-weight: 400;
    line-height: 1.4;
    font-size: 14px;
    margin: 0;
}

.campaign-info-thumb:not(.campaign-thumbnail__body) h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.campaign-info {
    position: absolute;
    bottom: 10px;
    left: 34px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 14px;
    border-radius: 5px;
}

/* Hero — shorter banner (2:1); assets are ~3:2, cover centers the crop */
.hero-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 0;
    max-height: min(36vh, 340px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    flex-shrink: 0;
}

/* Container for the modal body and sidebar */
.modal-body-container {
    display: flex;
    flex: 1; /* Allow the container to grow and fill available space */
    overflow-y: auto; /* Enable scrolling for the whole modal content */
    gap: 20px;
    height:100%;
}


/* Main body of the modal */
.modal-body {
    flex: 3; /* Use more space compared to the sidebar */
    padding: 20px 34px;
}

/* Sidebar styles */
.campaign-links-sidebar {
    width: 400px;
    background-color: #f8f8f8;
    padding: 20px;
    display: flex; /* Flexbox for vertical alignment */
    flex-direction: column; /* Ensure content stacks vertically */
}


.modal-body h2 {
    font-size: 34px;
    margin-bottom: 14px;
    color: #333;
}

.modal-body h3 {
    margin-bottom: 14px;
    margin-top: 28px;
    color: #333; 
}

.modal-body p {
    font-size: 17px;
    color: #747478;
    line-height: 1.6;
    font-weight: 200;
}

.campaign-metrics, .media-gallery, .campaign-results {
    margin-top: 20px;
}

.brand-testimonials {
    margin-top:44px;
}


.campaign-links ul {
    list-style-type: none;
    padding: 0;
}

.campaign-links li {
    margin-bottom: 10px;
}

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

.campaign-links a:hover {
    text-decoration: underline;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    color: #333;
    background-color: #fff;
    border-radius: 50%;
    padding: 4px 10px;
    z-index: 99;
}

/* --- Campaign detail modal (view) — shell, hero, typography, sidebar --- */
/* Whole panel (hero + columns) scrolls in the shell; not only the body below the image */
.campaign-modal .modal-content.campaign-modal__content {
    border-radius: 16px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 24px 48px rgba(0, 0, 0, 0.18);
    min-height: 0;
    height: auto;
    flex-shrink: 0;
    align-self: flex-start;
    width: min(90%, 1060px);
    max-width: 1060px;
    max-height: min(95vh, calc(100vh - 32px));
    max-height: min(95vh, calc(100dvh - 32px));
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
    transform-origin: 50% 0;
    transition:
        opacity 0.34s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.02s;
}

.campaign-modal.campaign-modal--open .modal-content.campaign-modal__content {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.campaign-modal .campaign-form {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
}

.campaign-modal .modal-body-container {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    height: auto;
    min-height: 0;
    overflow: visible;
    box-sizing: border-box;
}

.campaign-modal .campaign-modal__columns {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Sticky so it stays visible when the full panel (including hero) scrolls */
.campaign-modal .close-button {
    position: sticky;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 14px 14px -58px 0;
    align-self: flex-end;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    border: none;
    z-index: 25;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.campaign-modal .close-button:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

/*
 * Modal hero: match .hero-image (2:1 + same max-height) so background-size: cover crops like the
 * standalone hero. The old 3:1 + low vh caps forced a much shorter box and heavier vertical crop.
 */
.campaign-modal .hero-image.campaign-modal__hero {
    aspect-ratio: 2 / 1;
    max-height: min(36vh, 340px);
}

.campaign-modal .hero-image.campaign-modal__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
}

/* Short viewports: still cap height but avoid paper-thin strips that over-crop */
@media (max-height: 720px) {
    .campaign-modal .hero-image.campaign-modal__hero {
        max-height: min(26vh, 240px);
    }
}

.campaign-modal .campaign-info.campaign-modal__brand-chip {
    bottom: 10px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.campaign-modal .campaign-info.campaign-modal__brand-chip p {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.campaign-modal .modal-body {
    flex: 1 1 auto;
    padding: 28px 36px 44px;
    min-width: 0;
    box-sizing: border-box;
}

.campaign-modal .modal-body h2 {
    margin: 0 0 16px;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #111;
}

.campaign-modal .modal-body .campaign-modal__lead {
    margin: 0 0 24px;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #4a4a4f;
    font-weight: 400;
}

.campaign-modal .modal-body h3 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

.campaign-modal .campaign-results {
    margin-top: 12px;
    padding: 0 0 0 16px;
    border-left: 3px solid #03a5ff;
    background: linear-gradient(90deg, rgba(3, 165, 255, 0.06) 0%, transparent 100%);
    border-radius: 0 8px 8px 0;
    padding-top: 14px;
    padding-bottom: 16px;
    padding-right: 16px;
}

.campaign-modal .campaign-results h3 {
    margin-top: 0;
}

.campaign-modal .campaign-results p {
    font-size: 16px;
    color: #585860;
    font-weight: 400;
    padding-top: 14px;
}

.campaign-modal .campaign-links-sidebar {
    flex-shrink: 0;
    width: min(320px, 34vw);
    min-width: 0;
    background: linear-gradient(180deg, #f6f7f9 0%, #f0f2f5 100%);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    padding: 28px 24px 44px;
    box-sizing: border-box;
}

.campaign-modal .campaign-links-sidebar .stats__header {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6b7280;
    margin: 0 0 8px;
}

.campaign-modal .campaign-links-sidebar .stats__paragraph {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

.campaign-modal .campaign-links-sidebar a {
    color: #0369a1;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.campaign-modal .campaign-links-sidebar a:hover {
    color: #03a5ff;
    border-bottom-color: rgba(3, 165, 255, 0.4);
    text-decoration: none;
}

.campaign-modal .brand-testimonials {
    margin-top: 40px;
}

.campaign-modal .brand-testimonials > h3 {
    margin: 0 0 20px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7280;
}

@media (max-width: 768px) {
    /* Use almost full width; safe-area still respected */
    .campaign-modal {
        padding-left: max(8px, env(safe-area-inset-left, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
    }

    .campaign-modal .modal-content.campaign-modal__content {
        width: 100%;
        max-width: none;
    }

    .campaign-modal .campaign-modal__columns {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .campaign-modal .modal-body {
        padding: 22px 20px 40px;
    }

    .campaign-modal .campaign-links-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }
}

.campaign-links-sidebar ul {
    font-size: 14px;
    list-style-type: none; /* Remove bullet points */
    padding: 14px 0px 0px 0px;
    line-height: 0.9;
}

.campaign-links-sidebar li {
    margin-bottom: 14px;
    line-height:20px;
}

.campaign-links-sidebar a:hover {
    text-decoration: underline;
}

/* --- Testimonials (profile tab + campaign modal) --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0 28px;
}

@media (max-width: 767px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 22px 22px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 8px 24px rgba(15, 23, 42, 0.06);
    text-align: left;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.testimonial-item:hover {
    border-color: rgba(3, 165, 255, 0.22);
    box-shadow:
        0 2px 12px rgba(3, 165, 255, 0.08),
        0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.testimonial-item .stats__separator {
    border: none;
    height: 0;
    margin: 0;
    background: transparent;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}

.testimonial-author img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(3, 165, 255, 0.2);
}

.testimonial-author-box {
    line-height: 1.35;
    min-width: 0;
}

.testimonial-author-box__title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
}

.testimonial-author-box__subtitle {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

.testimonial-quote {
    margin: 16px 0 0;
    position: relative;
    padding: 0;
    color: #374151;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

.testimonial-quote i {
    color: #03a5ff;
    font-size: 14px;
    opacity: 0.85;
    vertical-align: 0.1em;
}

.testimonial-quote i.fa-quote-left {
    margin-right: 6px;
}

.testimonial-quote i.fa-quote-right {
    margin-left: 6px;
}

.testimonial-quote__campaign {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    color: #6b7280;
}

.testimonial-quote__campaign a {
    display: inline;
    font-size: inherit;
    font-weight: 500;
    color: #0369a1;
    text-decoration: none;
    border-bottom: 1px solid rgba(3, 105, 161, 0.35);
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.testimonial-quote__campaign a:hover {
    color: #03a5ff;
    border-bottom-color: rgba(3, 165, 255, 0.55);
}

/* Campaign modal — stacked testimonial cards */
.testimonial-item-modal {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 18px 18px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: linear-gradient(180deg, #fafbfc 0%, #f3f4f6 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.testimonial-item-modal:last-child {
    margin-bottom: 0;
}

.testimonial-author-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
}

.testimonial-author-modal img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px rgba(3, 165, 255, 0.18);
}

.testimonial-author-box-modal {
    line-height: 1.35;
    min-width: 0;
}

.testimonial-author-box-modal__title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #111827;
}

.testimonial-author-box-modal__subtitle {
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    margin-top: 2px;
}

.testimonial-quote-modal {
    margin: 14px 0 0;
    padding: 0;
    color: #374151;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}

.testimonial-quote-modal i {
    color: #03a5ff;
    font-size: 13px;
    opacity: 0.85;
}

.testimonial-quote-modal i.fa-quote-left {
    margin-right: 5px;
}

.testimonial-quote-modal i.fa-quote-right {
    margin-left: 5px;
}

.testimonial-quote__campaign-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 13px;
    color: #6b7280;
}

.testimonial-quote__campaign-modal a {
    display: inline;
    font-size: inherit;
    font-weight: 500;
    color: #0369a1;
    text-decoration: none;
    border-bottom: 1px solid rgba(3, 105, 161, 0.35);
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.testimonial-quote__campaign-modal a:hover {
    color: #03a5ff;
    border-bottom-color: rgba(3, 165, 255, 0.55);
}

@media (max-width: 768px) {
    .hero-image {
        max-height: min(30vh, 260px);
    }

    .campaign-modal .hero-image.campaign-modal__hero {
        max-height: min(30vh, 260px);
    }

    .modal-body-container {
        flex-direction: column; /* Stack elements vertically on mobile */
        flex: 1;
        min-height: 0;
    }

    .modal-body, .campaign-links-sidebar {
        width: 100%; /* Full width for mobile */
        height: auto; /* Adjust height */
    }

    .modal-body h2 {
        font-size: 20px;
    }

    .modal-body p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .modal-content {
       width: 98%;
       height:98%;
     
    }
    .modal-body h2 {
        font-size: 20px;
    }

    .modal-body p {
        font-size: 14px;
        padding-top: 14px;
    }

    .campaign-thumbnail {
        width: 100%;
    }
}

/* Dropdown menu styles */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-image {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ccc;
}


.hamburger-menu {
    display: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
        padding: 0px 5px 0px 5px;
    }

    .top-nav__profile-options {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .dropdown-menu {
        right: -40px;
    }
  .profile-card, .new-profile-card {
        width: 100%;
    }
    .content-container-simple {
        padding:20px 12px 20px 12px;
    }
}

.dropdown-container {
    position: relative;
    text-align: center; /* Center the dropdown button horizontally */
    margin-top:18px;
}

.dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #03a5ff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.dropdown-toggle:hover {
    background-color: #0284cc;
}

.dropdown-toggle .fa {
    margin-left: 8px;
    transition: transform 0.3s ease-in-out;
}

.dropdown-menu-lists {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    font-size: 15px;
    min-width: 100%;
    margin-top:8px;
    list-style-type: none; 
    padding: 14px;
    display: none;
    width: 80%;
    z-index: 1000;
}

.dropdown-menu-lists label {
    display: flex;
    align-items: center;
    padding: 8px 14px;
}

.dropdown-menu-lists input[type="checkbox"] {
    margin-right: 12px;
}

/* Add styles for rotating the arrow */
.dropdown-container.active .fa-chevron-down {
    transform: rotate(180deg);
}

#back-button {
    position: absolute;
    right: 20px;
    top: 40px;
    margin-top: 14px;
    padding: 7px 7px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    z-index: 3;
    text-decoration: none;
}
#back-button i {
    margin-right: 4px;
}


 .user-image-search {
            cursor: pointer;
            border-radius: 50%;
            width: 45px;
            height: 45px;
            margin: 5px;
        }
        

 /* Styles for user images and modals */
.user-image-container {
    display: inline-block;
    margin: 5px;
}

.user-image-search {
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    object-fit: cover;
}

/* Modal container */
.unique-user-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

/* Modal content */
.unique-user-modal .unique-modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 34px;
    border: 1px solid #888;
    width: 90%;
    max-width: 880px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
}

/* Close button */
.unique-user-modal .unique-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background-color: #fff;
    border-radius: 50%;
    padding: 0 10px;
    z-index: 99;
}

.unique-user-modal .unique-close:hover,
.unique-user-modal .unique-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* User info container */
.user-info-container {
    display: flex;
    align-items: normal;
    margin-bottom: 20px;
    padding:14px;
    gap:8px;
}

/* User image in modal */
.unique-user-image-modal {
    border-radius: 50%;
    border: 5px solid #fff;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
}

/* User details */
.user-details {
    flex-grow: 1;
    padding-right:34px;
}
.user-details h2 {font-size:30px;}

/* Profile card styles */
.unique-profile-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 10px;
    text-align: center;
    width: 238px;
    display: inline-block;
    vertical-align: top;
}

.unique-profile-card-background {
    position: relative;
    width: 100%;
    height: 150px; /* Adjust this value to set the desired height */
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.unique-profile-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid #fff;
    margin-top: 148px;
    object-fit: cover;
}

.unique-profile-info {
    padding: 10px;
    text-align: center;
    height:160px;
}

.unique-user-profiles {
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 34px;
    margin-bottom: 24px;
}

.unique-profile-info h3 {
    margin-top: 48px;
    font-size: 20px;
    color: #333;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.user-details p {color: #747474;
    font-size: 17px;
    font-weight: 200;
    line-height: 1.5em;
    margin-top: 8px;}
    
    /* Mobile-specific styles */
@media screen and (max-width: 768px) {
    .user-image-container {
        text-align: left;
    }
    .user-images-cell-profile {
        top:8px;
        left:0px;
        right:auto!important;
    }
    .user-info-container {
        flex-direction: column;
        align-items: center;
    }

    #back-button {right:15px;display:none;}
    .unique-user-image-modal {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .user-details {
        text-align: center;
        padding-right: 0;
    }
    
    /* Modal content */
.unique-user-modal .unique-modal-content {
    width: 98%;
    min-height:98%;
    }
    
    .unique-user-profiles
        {
        justify-content: center;
        }
}

    .shared-label {
    background-color: #f0ad4e;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
    display: inline-block;
}
.admin-heading {    
    font-size: 22px;
    letter-spacing: 6.2px;
    font-weight: 200;
}
/* Namespaced Modal Styles */
        .share-profile-modal {
            display: none; 
            position: fixed; 
            z-index: 1000; /* Increased z-index to ensure it is on top of all other elements */
            left: 0;
            top: 0;
            width: 100%; 
            height: 100%; 
            overflow: auto; 
            background-color: rgba(0,0,0,0.4); 
            padding-top: 60px;
            backdrop-filter: blur(5px); /* Blur background */
        }

        .share-profile-modal-content {
            position:relative;
            background-color: #fff;
            margin: 5% auto;
            padding: 34px;
            border: 1px solid #888;
            border-radius: 10px; /* Rounded corners */
            width: 80%;
            max-width: 500px; /* Max width for smaller screens */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a shadow for depth */
        }

        .share-profile-close {
            color: #aaa;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
            top: 10px;
            right: 20px;
            position: absolute;
        }

        .share-profile-close:hover,
        .share-profile-close:focus {
            color: #000;
            text-decoration: none;
        }

        .share-profile-modal h2 {
            margin-top: 0;
            font-weight: 500;
            margin-bottom:14px;
        }

        .share-profile-modal form {
            display: flex;
            flex-direction: column;
        }

        .share-profile-modal label {
            margin-bottom: 5px;
            font-weight: 500;
        }

        .share-profile-modal input[type="date"], .share-profile-modal input[type="email"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            font-size: 15px;
            font-family: roboto;
            margin-top: 14px;
            line-height: 1.5;
            margin-bottom: 14px;
            transition: border-color 0.3s ease-in-out;
        }

        .share-link-container {
            display: none;
            flex-direction: column;
            margin-top: 15px;
        }

        .share-link-container p {
            margin: 0 0 5px;
        }

        .share-link-container input[type="text"] {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 5px;
            margin-bottom: 10px;
        }
       @media (max-width: 768px) {
        .main-content-dash {
        margin-left: 0;
        padding: 4px;
       }
       }
        .share-hint, .share-hint-profiles {
            margin: 18px 0 10px;
            padding: 10px 12px;
            background: #fffedc;
            border-radius: 10px;
            font-size: 14px;
            width: 100%;        /* keeps it fluid on small screens */
            line-height: 1.8;
            color: #333;
            border: 1px solid #fff376; }
            
            .share-hint {
               max-width: 100%;  /* ideal width for desktop readability */
            }
            .share-hint-profiles {
             max-width: 680px;  /* ideal width for desktop readability */
            }
            .share-hint strong, .share-hint-profiles strong {
              display: block;
              font-weight: 600;
            }
           .sub-mot-text {
              display: inline-block;
              vertical-align: top;
              margin-left: 1.2em;
            }
        
        .confirm-modal__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2000;
}

.confirm-modal__box {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 22px 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 2001;
  max-width: 360px;
  width: 90%;
  text-align: left;
}

.confirm-modal__title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.confirm-modal__message {
  margin: 0 0 18px;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.confirm-modal__btn {
  padding: 7px 14px;
  border-radius: 5px;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

.confirm-modal__btn--confirm {
  background: #e02424;
  color: #fff;
}

.confirm-modal__btn--confirm:hover {
  background: #b91c1c;
}

.confirm-modal__btn--cancel {
  background: #eee;
  color: #444;
}

.confirm-modal__btn--cancel:hover {
  background: #ddd;
}

.section-heading .beta-badge {
    margin-left: 8px;
}

.section-heading span, .section-heading button {
    display: inline-flex;
    align-items: center;
}
.beta-badge {
    color: #03a5ff;
    font-size: 15px;
    border: 1px solid #03a5ff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    font-weight: 400;
    cursor: pointer;
    position: relative;
}

/* Let edit-page columns actually shrink inside the flex row */
.main-content-edit > .left-column,
.main-content-edit > .right-column {
    min-width: 0;          /* ✅ CRITICAL: allows shrinking instead of forcing overflow */
}

/* Optional: make the flex behaviour explicit */
.left-column {
    flex: 2.5 1 0;         /* grow, shrink, basis */
}

.right-column {
    flex: 0.5 1 0;
}