/* ===========================
   generic.css  (shared)
   =========================== */
:root {
    --side1: #E6F5CC;
    --side2: #FFE6EE;
    --mediator: #E8E6FF;
}

/* BASE / LAYOUT */
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2em;
    font-weight: 200;
    color: #e6ece6;
    min-height: 100vh;
    background: linear-gradient(to bottom, #004d64, #006F87) no-repeat fixed;
    background-size: cover;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: inherit;
    color: inherit;
}

.content {
    margin-top: 40px;
}

@media (max-width: 991.98px) {
    .content {
        margin-top: 0 !important;
    }
}

.by {
    color: #e6ece6;
    text-decoration: none;
}

textarea {
    font-weight: 200 !important;
}

.chat-body {
    background: #006f87 !important;
}

/* BUTTONS */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:disabled {
    background-color: #97DB4F;
    border-color: #97DB4F;
    color: #000;
    border-radius: 30px;
    padding: 15px;
}

.btn-round {
    background-color: #97DB4F;
    border-color: #97DB4F;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-round {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* OVERLAY (THINKING STATE) */
.centered-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: rgba(0, 0, 0, .5);
}

#flashingText {
    font-size: 20px;
    font-weight: bold;
    visibility: hidden;
    text-align: center;
    padding: 5px;
}

.alert-info {
    border-color: #ccc;
}

/* TABLE VIEW (AVATARS + BUBBLES) */



@media (max-width: 991.98px) {
    body {
        padding-top: 0 !important;
        /* kill the gap above nav */
    }

    .bubble,
    .chat-bubble {
        font-size: 75%;
        /* scale down bubble text */
    }
}


.layout-table {
    width: 100vw;
    max-width: 600px;
    margin: auto;
    table-layout: fixed;
}

.layout-table td {
    vertical-align: top;
    text-align: center;
    padding: .5rem;
}

@media (max-width: 768px) {
    #table-anim {
        width: 50% !important;
        height: auto !important;
    }
}

.bubble {
    display: inline-block;

    color: #03045E;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
    text-align: start;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.is-ajax-wait .chat-bubble,
.is-ajax-wait .chat-bubble .text,
.is-ajax-wait .utt-behavior,
.is-ajax-wait .bubble {
    color: #999 !important;
    /* neutral grey used elsewhere; overrides per-bubble colors */
}

.is-ajax-wait .avatar,
.is-ajax-wait .side-name,
.is-ajax-wait #mediator-name {
    opacity: 0.45 !important;
}

.avatar {
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    margin-bottom: .5rem;
    flex-shrink: 0;
}

@media (max-width: 400px) {
    .avatar {
        width: 60px;
        height: 60px;
    }
}


@media (max-width:500px) {
    /* keeping commented responsive tweaks as-is */
}

/* BOOTSTRAP REVIEW POPOVER (center table click) */
.review-popover.bs-popover-auto,
.review-popover.bs-popover-top,
.review-popover.bs-popover-bottom,
.review-popover.bs-popover-start,
.review-popover.bs-popover-end {
    max-width: 520px;
}

/* ✅ logical spacing so it works in LTR & RTL */
.review-popover .popover-body ul {
    margin: .4rem 0 .8rem 0;
    padding-inline-start: 1.2rem;
}

.review-popover .popover-header {
    font-weight: 600;
}

.review-popover .score {
    font-weight: 600;
    margin-bottom: .25rem;
}

.review-popover,
.review-popover.popover {
    z-index: 10001;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.14);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.review-popover .popover-body {
    background: #ffffff;
    color: #0f172a;
    border-radius: inherit;
}

.review-popover-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 12, 21, 0.46);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
    z-index: 1055;
}

/* review popover header layout (LTR baseline) */
.review-popover .popover-header {
    display: flex;
    /* ensure predictable layout */
    align-items: center;
    gap: .25rem;
}

/* push the close button to the inline end (right in LTR) */
.review-popover .popover-header .btn-close {
    margin-inline-start: auto;
    /* LTR -> right; will be overridden in RTL */
}

#review-popover-close {
    margin-left: auto;
    /* push it to the right */
    margin-right: 4px;
    /* optional: add spacing from edge */
    position: relative;
    right: -5px;
    /* move even more right if needed */
}

/* Review popover header styling */
.popover-header {
    padding-right: 20px;
    /* more breathing room on right */
}

/* Force the close (X) to the far right */
#review-popover-close {
    margin-left: auto;
    margin-right: 4px;
    /* tweak as needed */
    position: relative;
    right: -6px;
    /* pushes button further right */
}

#review-popover-anchor {
    position: fixed;
    top: 16px;
    left: 16px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    /* just in case */
}

.row-review {
    display: flex;
    justify-content: center;
}

.bubble-review {
    max-width: 720px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 12px;
    padding: 12px 14px;
    background: var(--mediator);
}

/* NEW VERTICAL CHAT LIST (PUBLIC VIEW) */
.chat-list {
    display: grid;
    gap: 14px;
    padding: 8px 4px;
    list-style: none;
    margin: 0;
}

.chat-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* alignment by speaker (physical) */
.chat-row.side1 {
    justify-content: flex-start;
}

.chat-row.side2 {
    justify-content: flex-end;
}

.chat-row.mediator {
    justify-content: center;
}

/* avatars in list */
.chat-row .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex: 0 0 44px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);

}

/* chat bubble */
.chat-bubble {
    max-width: min(750px, 82vw);

    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px 12px;
    line-height: 1.45;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
    position: relative;
    color: #1f2937;
}

.bubble-head {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}

.bubble-head .name {
    font-weight: 600;
    margin: 0;
}

.chat-bubble .text {
    white-space: pre-wrap;
}

.chat-bubble em {
    color: #6b7280;
    font-style: italic;
}


#mediator-bubble,
#mediator-avatar {
    display: none;
}

/* subtle coloring per side */

.side1 .bubble,
.side1 .chat-bubble,
.side1 .avatar {
    background: var(--side1);
    border-color: var(--side1);
}

.side2 .bubble,
.side2 .chat-bubble,
.side2 .avatar {
    background: var(--side2);
    border-color: var(--side2);
}

.chat-row.mediator .chat-bubble {
    background: var(--mediator);
    border-color: var(--mediator);
}

/* OVERRIDES TO FIX LEFT/RIGHT & TAILS (layout uses physical L/R) */
.chat-row {
    direction: ltr;
    width: 100%;
}

/* Side alignment */
.chat-row.side1 {
    justify-content: flex-start;
    flex-direction: row;
}

.chat-row.side2 {
    justify-content: flex-end;
    flex-direction: row;
}

/* swap order only for side2 */
.chat-row.side2 .chat-bubble {
    order: 1;
}

.chat-row.side2 .avatar {
    order: 2;
}

.chat-row.mediator {
    justify-content: center;
    flex-direction: row;
}

/* Larger avatars in chat-list */
.chat-row .avatar {
    width: 90px;
    height: 90px;
    flex: 0 0 66px;
}

/* Bubble tails (physical L/R) */
.chat-row .chat-bubble::before {
    content: "";
    position: absolute;
    top: 18px;
    width: 0;
    height: 0;
    border-style: solid;
}

.chat-row.side1 .chat-bubble::before {
    left: -8px;
    border-width: 6px 8px 6px 0;
    border-color: transparent var(--side1) transparent transparent;
}

.chat-row.side2 .chat-bubble::before {
    right: -8px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent var(--side2);
}

.chat-row.mediator .chat-bubble::before {
    display: none;
}

/* RESPONSIVE TWEAKS */
@media (max-width:840px) {
    .chat-row.mediator .chat-bubble {
        max-width: 96vw;
    }
}

#mediator-bubble {
    margin-bottom: 10px;
    color: #99cddf;
    width: 100%;
    text-align: center;
    max-width: min(1100px, 96%);
    margin-left: auto;
    margin-right: auto;
}

#mediator-bubble .bubble-inner {
    width: 100%;
    text-align: center;
    unicode-bidi: plaintext;
}

.mediator-row-full {
    width: 100%;
}

@media (max-width: 768px) {
    .review-popover,
    .review-popover.popover {
        width: min(92vw, 520px);
        max-width: min(92vw, 520px);
    }

    .review-popover .popover-body {
        max-height: min(72vh, 560px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* home page */
.home-section {
    padding: 60px 0;
}

.home-section-light,
.home-section-dark {
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
}

.home-section-light {
    background-color: rgba(255, 255, 255, 0.1);
}

.home-section-dark {
    background-color: rgba(0, 0, 0, 0.2);
}

.home-section h1,
.home-section h2 {
    color: #97DB4F;
    font-weight: 700;
}

.home-section p {
    color: #e6ece6;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero {
    padding: 80px 0;
    background: linear-gradient(to bottom right, rgba(0, 77, 100, 0.9), rgba(0, 111, 135, 0.9));
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.hero h1 {
    color: #97DB4F;
    font-size: 2.5rem;
}

.hero p {
    color: #e6ece6;
    font-size: 1.2rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #97DB4F;
    /* flipped in rtl.css */
    padding: 20px;
    border-radius: 8px;
    color: #e6ece6;
    font-style: italic;
}

.home-section p,
.home-section li {
    color: #ffffff;
}

.home-section h1,
.home-section h2,
.home-section h3 {
    color: #97DB4F;
}

.home-light,
.home-dark {
    border-radius: 12px;
    padding: 40px 20px;
}

.home-light {
    background-color: rgba(255, 255, 255, 0.08);
}

.home-dark {
    background-color: rgba(0, 0, 0, 0.2);
}

.btn-outline-secondary {
    color: #fff;
    border-color: #fff;
}

.btn-outline-secondary:hover {
    background-color: #97DB4F;
    color: #000;
    border-color: #97DB4F;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #fff;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.home-image {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {

    .home-section,
    .home-section-light,
    .home-section-dark {
        padding: 30px 15px;
    }
}

.hero img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.section-divider {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px auto;
    width: 60%;
}

.hero .btn-primary:hover {
    background-color: #a7eb5f;
    border-color: #a7eb5f;
    transform: translateY(-2px);
}

/* use logical padding so both LTR/RTL are fine */
.home-section ul {
    padding-inline-start: 1.2em;
    list-style-position: inside;
}

/* CHATS TABLE (admin right column) */
.card-ghost {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    backdrop-filter: blur(2px);
}

.card-ghost .card-header {
    background: linear-gradient(to left, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    color: #e6ece6;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

#userChatsTable {
    color: #f4f8f4;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: 100%;
}

/* ✅ restored shared table cell styling */
#userChatsTable th,
#userChatsTable td {
    padding: 12px 16px !important;
    vertical-align: middle;
    border-color: rgba(255, 255, 255, 0.10) !important;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.card-ghost .table-responsive {
    overflow-y: auto;
    overflow-x: auto;
}

#userChatsTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.18) !important;
    color: #e6ece6;
    font-weight: 700;
}

/* zebra + hover */
#userChatsTable tbody tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.04);
}

#userChatsTable tbody tr:nth-of-type(even) {
    background: rgba(255, 255, 255, 0.02);
}


#userChatsTable tbody tr:hover td,
#userChatsTable tbody tr:hover td a {
    color: #97DB4F !important;
    cursor: pointer;
}

/* thread link */
#userChatsTable tbody td:first-child a {
    color: #97DB4F;
    text-decoration: none;
    font-weight: 500;
}

#userChatsTable tbody td:first-child a:hover {
    text-decoration: underline;
}

/* numeric pill */
#userChatsTable .count-pill {
    display: inline-block;
    min-width: 2.2em;
    padding: .25rem .55rem;
    border-radius: 999px;
    text-align: center;
    background: rgba(151, 219, 79, 0.18);
    border: 1px solid rgba(151, 219, 79, 0.45);
    color: #dff8b6;
    font-weight: 600;
}

#userChatsTable tbody tr:active {
    transform: scale(0.999);
}

#userChatsTable .cell-num {
    text-align: center;
}

/* nav */
@media (min-width: 992px) {
    body {
        padding-top: 72px;
    }
}


.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(0, 78, 96, 0.96);
    border-bottom: 1px solid rgba(153, 205, 223, 0.24);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-right,
.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #97DB4F;
    font-weight: 700;
    text-decoration: none;
}

.nav-logo img {
    height: 32px;
}

.top-nav.navbar {
    background: rgba(0, 78, 96, 0.96);
    border-bottom: 1px solid rgba(153, 205, 223, 0.24);
    backdrop-filter: blur(10px);
}

.nav-tagline {
    color: #ffc159;
    display: inline-block;
    font-weight: 400;
    line-height: 1.25;
    max-width: 18rem;
}

/* Normalize language select height to match buttons */
#mainNav select,
#mainNav .form-select {
    height: 58px;
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    display: inline-block;
    vertical-align: middle;
}

#mainNav .btn,
#mainNav .form-select {
    align-self: center;
}

#mainNav .btn,
#mainNav select {
    min-height: 58px;
    white-space: nowrap;
}

#mainNav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    padding: 0.75rem 1rem;
}

#mainNav #soundToggle {
    width: 58px;
    padding-inline: 0;
}


/* mobile navbar */
@media (max-width: 991.98px) {
    #mainNav.collapse:not(.show) {
        display: none !important;
    }

    #mainNav.collapse.show {
        display: grid !important;
        grid-template-columns: 1fr;
        row-gap: .5rem;
        margin-top: .5rem;
    }

    /* reset Bootstrap ms-/me- utilities inside drawer */
    #mainNav .ms-1,
    #mainNav .ms-2,
    #mainNav .ms-3,
    #mainNav .ms-4,
    #mainNav .ms-5,
    #mainNav .me-1,
    #mainNav .me-2,
    #mainNav .me-3,
    #mainNav .me-4,
    #mainNav .me-5 {
        margin: 0 !important;
    }

    #mainNav>* {
        width: 100% !important;
    }

    #mainNav .btn,
    #mainNav .form-select,
    #mainNav select {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
        text-align: center;
        margin-bottom: .5rem;
    }
}

/* desktop navbar */
@media (min-width: 992px) {
    #mainNav.collapse {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: .5rem;
        margin-top: 0;
    }

    #mainNav .btn,
    #mainNav select {
        width: auto !important;
        text-align: start;
        margin: 0 .25rem;
    }

    #mainNav .btn {
        display: inline-flex;
    }

    #mainNav select {
        display: inline-block;
    }
}

/* Mobile logo fixes */
/*
@media (max-width: 600px) {
    .nav-logo img {
        height: 26px;
       
    }

    .nav-logo .logo-text {
        font-size: 22px;
      
        line-height: 26px;
       
    }

    .nav-logo {
        gap: 4px;
        
    }
}
*/
@media (max-width: 600px) {

    /* stack nav items vertically in mobile */
    .nav-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    /* move hamburger to the top, centered */
    .nav-left {
        order: -1;
        /* show first */
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 6px;
        /* space under hamburger */
    }

    .nav-left .navbar-toggler {
        margin: 0 auto;
        /* center button */
    }

    /* logo row: image + text side-by-side, smaller */
    .nav-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .nav-right .nav-logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin-bottom: 4px;
    }

    .nav-right .nav-logo img {
        height: 16px !important;
        /* shrink image */
        width: auto;
    }

    .nav-right .nav-logo .logo-text {
        font-size: 25px !important;
        /* shrink text */
        line-height: 25px !important;
    }

    /* tagline centered under logo */
    .nav-right>span {
        display: block;
        width: 100%;
        font-size: 14px;
        margin-top: 4px;
    }
}



/* Mobile: stack logo image above text */
@media (max-width: 600px) {
    .nav-logo {
        flex-direction: column;
        /* stack vertically */
        align-items: center;
        /* center both image & text */
        gap: 2px;
        /* small space between image and text */
    }

    .nav-logo img {
        height: 28px;
        /* slightly smaller for mobile */
    }

    .nav-logo .logo-text {
        font-size: 22px;
        line-height: 26px;
    }
}


@media (max-width: 991.98px) {

    /* kill any fixed/sticky behavior coming from project or Bootstrap */
    .top-nav,
    .fixed-top,
    .sticky-top {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        z-index: auto !important;
    }

    /* remove offset added for fixed header */
    html,
    body {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* If the first element has a margin-top, neutralize it on mobile */
    body> :first-child {
        margin-top: 0 !important;
    }
}


/* home page */
/* Remove borders and any "3D" look from images */
img,
.home-image {
    border: 0 !important;
    outline: none;
    box-shadow: none !important;
}

/* Remove shadows/frames that may wrap the hero image */
.hero .image-frame {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Hero layout & typography */
.hero {
    padding-block: 3rem;
}

.hero h1 {
    font-size: clamp(2rem, 2.8vw + 1rem, 3.25rem);
    line-height: 1.2;
    margin-bottom: .75rem;
}

.hero p.lead {
    font-size: clamp(1.05rem, 1.2vw + .7rem, 1.375rem);
    margin-bottom: 1rem;
}

.hero .supporting {
    font-size: 1rem;
    opacity: .9;
}

/* Ensure hero image scales nicely */
.hero img {
    display: block;
    height: auto;
    max-width: 100%;
}

/* Keyboard focus visibility without changing brand colors */
a.btn:focus {
    outline: 2px dashed currentColor;
    outline-offset: 2px;
}

.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #46A049;
    /* matches theme primary */
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Global link styling, excluding .btn links */
a:not(.btn) {
    color: #97DB4F;
    text-decoration: none;
    font-weight: 500;
}

a:not(.btn):hover,
a:not(.btn):focus {
    color: #a7eb5f;
    text-decoration: underline;
}

a:not(.btn):active {
    color: #7ec83d;
}

a:not(.btn):visited {
    color: #97DB4F;
}

.utt-behavior {
    font-style: italic;
    color: #737373;
}

/* kill underline in all states */
a.nav-logo,
a.nav-logo:link,
a.nav-logo:visited,
a.nav-logo:hover,
a.nav-logo:active,
a.nav-logo:focus {
    text-decoration: none !important;
    /* force remove */
    color: inherit !important;
    /* stop Bootstrap from recoloring */
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}

.nav-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.nav-logo .logo-text {
    font-size: 50px;
    /* keep your text size */
    line-height: 50px;
    /* makes text sit flush vertically with image */
    color: #99cddf;
}


#joint_meeting,
#separate_meeting,
#side1-inroom,
#side1-notinroom,
#side2-inroom,
#side2-notinroom {
    display: none;
}

#side1-inroom,
#side1-notinroom,
#side2-inroom,
#side2-notinroom {
    color: #EEEEEE;
    font-size: 0.8em;

}

.side-name {
    color: #EEEEEE;
}

/* Meeting state divider (bubble with lines on both sides) */
.chat-row.meeting-state-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5em 0;
    clear: both;
    position: relative;
}

.chat-row.meeting-state-divider::before,
.chat-row.meeting-state-divider::after {
    content: "";
    height: 1px;
    background: #b9e3c8;
    /* line color */
    flex-grow: 0;
    /* prevent stretching */
    flex-shrink: 0;
    flex-basis: 30%;
    /* each line takes ~30% of row width */
    max-width: 120px;
    /* cap so they don’t get too long on wide screens */
}

.chat-row.meeting-state-divider .chat-bubble {

    /* soft neutral bg */
    border: 1px solid #b9e3c8;
    border-radius: 14px;
    padding: 6px 14px;
    background-color: var(--mediator);
    font-size: 1rem;
    color: #1f2937;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin: 0 12px;
    /* spacing between text and lines */
    position: relative;
    z-index: 1;
    /* sit above the lines */
}

/* kill any bubble tails */
.chat-row.meeting-state-divider .chat-bubble::before {
    display: none !important;
}

/* Equal height testimonials */
.home-section .row.g-4 {
    display: flex;
    align-items: stretch;
}

.home-section .row.g-4>[class*="col-"] {
    display: flex;
}

.home-section .testimonial {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* FEEDBACK */


.form-label {
    display: inline-block;
    font-size: 1.2em;
    margin-right: 6px;
    /* spacing before hint */
    padding-top: 20px;
    color: #97DB4F;
}

.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin-top: 4px;
    cursor: pointer;
    text-align: left;
    position: relative;
}

.star-rating input {
    /* keep focusable for keyboard + AT */
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.star-rating label {
    color: #ddd;
    font-size: 24px;
    padding: 0 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: #ffc107;
}
.star-rating input:focus+label {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}


.hint {
    display: inline-block;
    font-size: 0.8em;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
