
/* --- app/static/css/base.css --- */
/* WAI-Core: src/app/static/css/base.css v5 */

html {
  text-size-adjust: 100%;
}

body {
    background-color: var(--brand-color-background);
    font-family: 'Roboto', sans-serif;
}

main {
    margin: 0 auto;
    margin-top: 100px;
    margin-bottom: 100px;
    margin-left: 100px;
    margin-right: 100px;
}

section {
    background-color: var(--brand-color-container-background);
    max-width: 700px;
    border-radius: var(--brand-border-radius);
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--brand-color-primary);
    font-family: 'Roboto Mono', monospace;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.25;
}

h3 {
    font-size: 1.75rem;
    line-height: 1.3;
}

h4 {
    font-size: 1.5rem;
    line-height: 1.35;
}

h5 {
    font-size: 1.25rem;
    line-height: 1.4;
}

h6 {
    font-size: 1.1rem;
    line-height: 1.4;
}

button {
    display: inline-block;
    cursor: pointer;
    background-color: var(--brand-color-cta);
    color: var(--brand-color-primary);
    border-radius: var(--brand-border-radius);
    margin: 5px 0;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--brand-color-primary);
}

input,
select,
textarea {
    background-color: var(--brand-color-container-background);
    color: #fff;
    border: 1px solid var(--brand-color-primary);
    border-radius: var(--brand-border-radius);
    padding: 0.5rem;
}

input::placeholder,
textarea::placeholder {
    color: var(--brand-color-container-foreground-light);
}

input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"] {
    background-color: var(--brand-color-container-background);
    color: #fff;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

p, li {
  color: white;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #1c2d3a;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: #1c2d3a;
    border-radius: 6px;
}

*::-webkit-scrollbar-thumb {
    background-color: #4CAF50;
    border-radius: 6px;
    border: 2px solid #1c2d3a;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #66bb6a;
}


/* --- app/static/css/base-responsive.css --- */
/* WAI-Core: src/app/static/css/base-responsive.css v4 */

@media (max-width: 900px) {
    main {
        margin-left: 57px;
        margin-right: 57px;
    }

    body.right-panel-open main {
        margin-right: calc(50px + var(--right-panel-width));
    }
}

@media screen and (max-width: 719px) {
    main {
        margin-left: 0px;
        margin-right: 0px;
    }
}

@media (min-height: 1080px) {

    main {
        min-height: 800px;
    }

    #main-layout {
        min-height: 800px;
    }

    #page-area {
        min-height: 800px;
    }

}


/* --- app/static/css/util.css --- */
/* WAI-Core: src/app/static/css/util.css v3 */

.hidden {
    display: none;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--brand-color-container-foreground-light, #ccc);
    border-top-color: var(--brand-color-primary, #2ed9e7);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.circle-loader {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* --- app/static/css/brand.css --- */
/* WAI-Core: src/app/static/css/brand.css v4 */

:root {

  /* Brand Colors */
  --brand-color-primary: #2ed9e7;
  --brand-color-background: #111d26;
  --brand-color-container-background: #1e2f3a;
  --brand-color-container-foreground-dark: rgba(0, 0, 0, 0.618);
  --brand-color-container-foreground-light: rgba(255, 255, 255, 0.618);
  --brand-color-highlight: rgba(255, 255, 255, 0.38196);
  --brand-color-header: #243f53;
  --brand-color-cta: #186009;
  --brand-color-cta-hover: #1e7b0d;
  --brand-color-lead-the-wai: #620000;
  --brand-color-pathwai: #000062;
  --brand-color-pai-it-forward: #006200;
  --brand-color-modal: #111;

  /* Borders */
  --brand-border-radius: 12px;
  --brand-border-width: 2px;
  --brand-border-color: #2ed9e7;

  /* Typography */
  --brand-font-title: 'Roboto Mono', monospace;
  --brand-font-body: 'Roboto', sans-serif;

  /* Shadows */
  --brand-drop-shadow:
    0px 4px 2px rgba(0, 0, 0, 0.3),
    0px 4px 12px rgba(17, 29, 38, 0.4),
    inset 0px 2px 0px rgba(255, 255, 255, 0.15);

  --brand-drop-shadow-2:
    inset 0px 3.71px 12.37px rgba(0, 0, 0, 0.3),
    inset 0px 2.47px 7.42px rgba(17, 29, 38, 0.4),
    inset 0px -1.24px 0px rgba(255, 255, 255, 0.15);
}

/* Component-Specific Styling */
.brand-primary-text {
  color: var(--brand-color-primary);
}

.brand-primary-border {
  border: 2px solid var(--brand-color-primary);
  border-radius: var(--brand-border-radius);
}

.cta-button {
  background-color: var(--brand-color-cta);
  border-radius: 5px;
  color: #fff;
}

.brand-container-background {
  background-color: var(--brand-color-container-background);
  border-radius: var(--brand-border-radius);
}

.container-foreground-light {
  background-color: var(--brand-color-container-foreground-light);
}

.container-foreground-dark {
  background-color: var(--brand-color-container-foreground-dark);
}

.brand-model-background {
  background-color: var(--brand-model-container);
}

.brand-drop-shadow {
  box-shadow: var(--brand-drop-shadow);
}

.brand-drop-shadow-2 {
  box-shadow: var(--brand-drop-shadow-2);
}

.brand-border {
  border: var(--brand-border-width) solid var(--brand-border-color);
  border-radius: 2px;
}


/* --- app/static/css/shell/nav.css --- */
/* WAI-Core: src/app/static/css/shell/nav.css v9 */

html {
    font-size: calc(100% * var(--wai-ui-scale, 0.95));
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    /*
    overflow: visible;
    margin-bottom: 20px;
    background-color: transparent;
    */
}

.navbar-container {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 41px;
    margin-right: 41px;
    margin-top: 10px;
}

.navbar-main {
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
    color: white;
    border: 1px solid rgba(46, 217, 231, 0.22);
    border-radius: 9999px;
    height: 60px;
    padding: 0 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow:
        0px 14px 28px rgba(3, 10, 16, 0.45),
        0px 6px 14px rgba(17, 29, 38, 0.45),
        inset 0px -2px 6px rgba(0, 0, 0, 0.35),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    transition: all 0.15s ease, padding 0.15s ease;
    overflow: visible;
}

.navbar-main::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
    opacity: 0.9;
}

#nav-menu-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    z-index: 1;
}

#nav-buttons {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    height: 40px;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    white-space: nowrap;
    overflow: visible;
}

#nav-buttons li {
    margin: 0 15px;
    position: relative;
}

#nav-buttons li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 2px;
    height: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

#nav-buttons li a {
    text-decoration: none;
    color: white;
    font-size: 1.08rem;
    padding: 10px 8px;
    transition: color 0.3s ease;
    position: relative;
    display: block;
    white-space: nowrap;
}

#nav-buttons > li.active-nav-item > a {
    color: #4CAF50 !important;
    font-weight: bold;
}

#nav-buttons > li.active-nav-item > a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

#nav-buttons li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

.submenu {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.98), rgba(20, 42, 56, 0.96));
    left: -25px;
    width: 200px;
    top: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    transform: translateY(-20px);
    border-radius: 12px;
    border: 1px solid rgba(46, 217, 231, 0.2);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    padding: 10px;
    list-style: none;
}

#nav-buttons li:hover .submenu,
.dropdown-toggle:hover + .submenu,
.submenu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    margin: 0;
    display: block;
}

.submenu li::after {
    display: none !important;
}

.submenu li a {
    color: #fff;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.submenu .active-submenu-item a {
    color: #4CAF50;
    font-weight: bold;
}

.submenu .active-submenu-item a::after,
.submenu li a:hover::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

.submenu li a:hover {
    color: #4CAF50;
}

.auth-nav-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

#auth-buttons {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    align-items: center;
    flex-shrink: 0;
}

#auth-buttons li {
    display: flex;
    margin: 0px;
    margin-left: 15px;
    position: relative;
}

#auth-buttons li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.99rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: block;
}

#auth-buttons li:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -8px;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background-color: rgba(255, 255, 255, 0.3);
}

#auth-buttons li a {
    text-decoration: none;
    color: white;
    font-size: 0.99rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
    display: block;
}

#auth-buttons li a:hover {
    color: #4CAF50;
}

#auth-buttons li a:hover::after {
    width: 100%;
}

#auth-buttons li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#auth-buttons li a:hover::after {
    width: 100%;
}

#auth-buttons li a:hover {
    color: #4CAF50;
}

#auth-buttons > li.active-nav-item > a {
    color: #4CAF50 !important;
    font-weight: bold;
}

#auth-buttons > li.active-nav-item > a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transform: translateX(-50%);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.26rem;
    cursor: pointer;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
}

.nav-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%),
        linear-gradient(145deg, rgba(9, 20, 29, 0.95), rgba(30, 64, 82, 0.9));
    border: 1px solid rgba(46, 217, 231, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    transition: background-color 0.3s ease;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    box-shadow:
        0px 10px 20px rgba(3, 10, 16, 0.5),
        inset 0px -3px 6px rgba(0, 0, 0, 0.35),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12);
}

.nav-circle:focus {
    outline: none;
}

.nav-circle:focus-visible::before {
    opacity: 1;
    box-shadow: inset 0 0 12px var(--brand-color-highlight);
}

.nav-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 4px solid var(--brand-color-highlight);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.nav-circle:hover::before {
    opacity: 1;
    box-shadow: inset 0 0 12px var(--brand-color-highlight);
}

.inner-circle {
    position: relative;
    width: 85%;
    height: 85%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 55%),
        linear-gradient(160deg, rgba(12, 26, 36, 0.95), rgba(24, 52, 70, 0.9));
    border-radius: 50%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    z-index: 1;
    display: flex;
}

.nav-circle[data-context-loading] .circle-loader {
    display: inline-block;
}

.nav-circle[data-context-loading] .circle-logo {
    opacity: 0;
}

.inner-circle > a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.circle-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.left-circle {
    left: 0;
    transform: translateX(-40%);
}

.right-circle {
    right: 0;
    transform: translateX(40%);
}

nav.nav-minimised .navbar-main {
    height: 0px;
    padding: 0 40px;
    overflow: hidden;
}

.nav-minimised {
    pointer-events: none;
}

.nav-minimised .navbar-main {
    display: none;
}

/* Disable interactions when minimised so underlying content is clickable */
nav.nav-minimised .navbar-container {
    pointer-events: none;
}

nav.nav-minimised .nav-circle {
    pointer-events: auto;
}

nav.nav-minimised #nav-buttons,
nav.nav-minimised #auth-buttons {
    height: 0px;
    opacity: 0;
    overflow: hidden;
}

.nav-center {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
}

/* === MOBILE MENU PLACEHOLDER === */
#mobile-menu {
    display: none;
    border-radius: var(--brand-border-primary-radius);
    box-shadow:
        0px -6px 20px rgba(0, 0, 0, 0.3),
        0px -4px 12px rgba(17, 29, 38, 0.4),
        inset 2px 0px 0px rgba(255, 255, 255, 0.15),
        inset -2px 0px 0px rgba(255, 255, 255, 0.15);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
    margin: 55px 82px;
    color: white;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-radius: 0 0 var(--brand-border-primary-radius) var(--brand-border-primary-radius);
    border: 1px solid rgba(46, 217, 231, 0.22);
    box-shadow:
        0px 14px 28px rgba(3, 10, 16, 0.35),
        0px 6px 14px rgba(17, 29, 38, 0.35),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12),
        inset 0px -2px 6px rgba(0, 0, 0, 0.35);
}

.mobile-nav.open {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-nav-menu {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-menu li {
    text-align: center;
    margin: 5px 0;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 0.99rem;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.mobile-nav-menu a:hover {
    background-color: #36596f;
}


/* === Transparency for nav circles === */
.nav-circle,
.nav-circle .inner-circle {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.nav-circle:hover,
.nav-circle:hover .inner-circle,
.navbar-main:hover ~ .left-circle,
.navbar-main:hover ~ .right-circle,
nav:not(.nav-minimised) .nav-circle,
nav:not(.nav-minimised) .nav-circle .inner-circle {
    opacity: 1;
}


.mobile-nav.open {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 0 0 var(--brand-border-radius) var(--brand-border-radius);
}

.nav-link-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.08rem;
    padding: 10px 12px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link-button:hover {
    color: #4CAF50;
}

.nav-link-button::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-button:hover::after {
    width: 100%;
}

.nav-button.active-nav-item > .nav-link-button {
    color: #4CAF50 !important;
    font-weight: bold;
}

.nav-button.active-nav-item > .nav-link-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #4CAF50;
    transform: translateX(-50%);
}


/* --- app/static/css/shell/nav-responsive.css --- */
/* WAI-Core: src/app/static/css/shell/nav-responsive.css v4 */

@media (min-width: 801px) {
    nav:not(.force-mobile-nav) .mobile-nav {
        display: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 1100px) and (min-width: 801px) {
    .nav-center h1 {
        display: none;
    }

    .navbar-main {
        justify-content: center;
        padding: 0 40px;
        gap: 24px;
    }

    #nav-menu-container {
        position: static;
        left: auto;
        transform: none;
        display: flex;
        align-items: center;
    }

    .auth-nav-section {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #auth-buttons {
        display: flex;
        align-items: center;
        height: auto;
    }

    #auth-buttons li {
        margin-left: 18px;
    }

    #auth-buttons li:first-child {
        margin-left: 0;
    }
}

@media (max-width: 800px) {

    .navbar-container {
        position: relative;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: 27px;
        margin-right: 27px;
        margin-top: 2px;
    }

    .navbar-main, .footer-main {
        padding: 10px 20px;
        height: 40px;
    }

    .footer-main {
        height: 40px !important;
    }

    .navbar-main h1 {
        text-align: center;
        margin: 10px 0;
        font-size: 1.08rem;
        margin-right: 15px;
    }

    #nav-buttons,
    #auth-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        display: none;
    }

    .navbar-main.mobile-open #nav-buttons,
    .navbar-main.mobile-open #auth-buttons {
        display: flex;
    }

    .auth-nav-section {
        justify-content: center;
    }

    .nav-toggle {
        display: block;
        margin-right: 0px;
        padding-right: 0px;
    }

    #nav-buttons li:not(:last-child)::after,
    #auth-buttons li:not(:first-child)::before {
        display: none;
    }

    #nav-buttons li,
    #auth-buttons li {
        margin: 0;
    }

    .nav-center {
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
        flex-shrink: 0;
        margin: 0 auto;
    }

    .nav-circle,
    .footer-circle {
        width: 60px !important;
        height: 60px !important;
    }

    .mobile-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
        margin: 52px 82px;
        color: white;
        overflow: hidden;
        max-height: 0;
        transition: max-height 0.3s ease;
        border-radius: 0 0 var(--brand-border-primary-radius) var(--brand-border-primary-radius);
        border: 1px solid rgba(46, 217, 231, 0.22);
        box-shadow:
            0px 14px 28px rgba(3, 10, 16, 0.35),
            0px 6px 14px rgba(17, 29, 38, 0.35),
            inset 0px 2px 6px rgba(255, 255, 255, 0.12),
            inset 0px -2px 6px rgba(0, 0, 0, 0.35);
        pointer-events: none;
    }

    .mobile-nav.open {
        max-height: 80vh;
        overflow-y: auto;
        pointer-events: all;
    }

    .mobile-nav-menu {
        width: 100%;
        padding: 15px 20px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mobile-nav-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mobile-nav-menu li {
        text-align: center;
        margin: 5px 0;
    }

    .mobile-nav-menu a {
        text-decoration: none;
        color: white;
        font-size: 0.99rem;
        padding: 8px 12px;
        display: block;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }

    .mobile-nav-menu a:hover {
        background-color: #36596f;
    }
}

@media (max-width: 600px) {
    .nav-circle,
    .footer-circle {
        width: 45px !important;
        height: 45px !important;
    }
}

/* Force mobile navigation when the nav receives the class */
nav.force-mobile-nav .navbar-container {
    position: relative;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 27px;
    margin-right: 27px;
    margin-top: 2px;
}

body.right-panel-open nav.force-mobile-nav .navbar-container {
    margin-right: calc(27px + var(--right-panel-width));
}

nav.force-mobile-nav .navbar-main,
nav.force-mobile-nav .footer-main {
    padding: 10px 20px;
    height: 40px;
}

nav.force-mobile-nav .navbar-main h1 {
    text-align: center;
    margin: 10px 0;
    font-size: 1.08rem;
    margin-right: 15px;
}

nav.force-mobile-nav #nav-buttons,
nav.force-mobile-nav #auth-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    display: none;
}

nav.force-mobile-nav .navbar-main.mobile-open #nav-buttons,
nav.force-mobile-nav .navbar-main.mobile-open #auth-buttons {
    display: flex;
}

nav.force-mobile-nav .auth-nav-section {
    justify-content: center;
}

nav.force-mobile-nav .nav-toggle {
    display: block;
    margin-right: 0px;
    padding-right: 0px;
}

nav.force-mobile-nav #nav-buttons li:not(:last-child)::after,
nav.force-mobile-nav #auth-buttons li:not(:first-child)::before {
    display: none;
}

nav.force-mobile-nav #nav-buttons li,
nav.force-mobile-nav #auth-buttons li {
    margin: 0;
}

nav.force-mobile-nav .nav-center {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-shrink: 0;
    margin: 0 auto;
}

nav.force-mobile-nav .nav-circle,
nav.force-mobile-nav .footer-circle {
    width: 60px !important;
    height: 60px !important;
}

nav.force-mobile-nav .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
    margin: 52px 82px;
    color: white;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    border-radius: 0 0 var(--brand-border-primary-radius) var(--brand-border-primary-radius);
    border: 1px solid rgba(46, 217, 231, 0.22);
    box-shadow:
        0px 14px 28px rgba(3, 10, 16, 0.35),
        0px 6px 14px rgba(17, 29, 38, 0.35),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12),
        inset 0px -2px 6px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

nav.force-mobile-nav .mobile-nav.open {
    max-height: 80vh;
    overflow-y: auto;
    pointer-events: all;
}

nav.force-mobile-nav .mobile-nav-menu {
    width: 100%;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

nav.force-mobile-nav .mobile-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.force-mobile-nav .mobile-nav-menu li {
    text-align: center;
    margin: 5px 0;
}

nav.force-mobile-nav .mobile-nav-menu a {
    text-decoration: none;
    color: white;
    font-size: 0.99rem;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

nav.force-mobile-nav .mobile-nav-menu a:hover {
    background-color: #36596f;
}


/* --- app/static/css/shell/left-panel.css --- */
/* WAI-Core: src/app/static/css/shell/left-panel.css v7 */

.left-side-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 77px;
    --left-panel-label-gap: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.3s ease;
    background: linear-gradient(180deg, rgba(7, 12, 18, 0.92), rgba(16, 30, 40, 0.88));
    border: 1px solid rgba(46, 217, 231, 0.16);
    box-shadow: 0 18px 30px rgba(3, 8, 12, 0.4);
    backdrop-filter: blur(6px);
}

.left-panel-hover-label {
    position: fixed;
    top: 0;
    left: 100px;
    transform: translateY(-50%) translateX(-6px);
    opacity: 0;
    pointer-events: none;
    background: rgba(20, 24, 28, 0.95);
    color: #f2f7fa;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(64, 210, 255, 0.55);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
    z-index: 110;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.left-panel-hover-label.is-visible {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.scroll-container {
    height: 70%;
    width: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    will-change: transform;
    height: 100%;
    width: 100%;
}

.icon-wheel {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0px 0;
    margin: 0;
    height: auto;
    justify-content: space-evenly;
    gap: 20px;
}

.left-side-panel.from-footer .scroll-track,
.left-side-panel.from-footer .icon-wheel {
    flex-direction: column-reverse;
}

.left-side-panel.from-footer .icon-wheel {
    justify-content: flex-start;
}

.left-side-panel.from-footer .icon-wheel .scroll-spacer:first-of-type {
    order: 2;
}

.left-side-panel.from-footer .icon-wheel .scroll-spacer:last-of-type {
    order: -1;
}

.wheel-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%),
        linear-gradient(145deg, rgba(10, 18, 26, 0.9), rgba(22, 48, 66, 0.85));
    border: 1px solid rgba(46, 217, 231, 0.25);
    box-shadow: 0 6px 12px rgba(3, 8, 12, 0.35), inset 0 2px 6px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    will-change: transform, opacity;
    position: relative;
    opacity: 0.4; /* Transparent by default */
}

.wheel-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
    opacity: 0.8;
    pointer-events: none;
}

.wheel-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-icon[data-label="WAi Forward Website"] img {
    transform: scale(0.85);
    transform-origin: center;
}

.wheel-icon a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wheel-icon:hover,
.wheel-icon.touch-hover {
    transform: scale(2);
    opacity: 1; /* Fully opaque on hover */
}

.left-panel-minimised {
    opacity: 0;
    pointer-events: none;
}

@media (hover: hover) {
    .left-panel-minimised {
        pointer-events: auto;
    }

    .left-panel-minimised:hover {
        opacity: 1;
    }
}

@media (hover: none) {
    .left-panel-minimised {
        opacity: 0;
        pointer-events: none;
    }
}


/* App label hover treatment for the icon wheel */
.left-side-panel .scroll-container {
    overflow-x: hidden;
}

.left-side-panel .scroll-track,
.left-side-panel .icon-wheel,
.left-side-panel .wheel-icon {
    overflow: visible;
}

.left-side-panel .wheel-icon a::after {
    content: attr(title);
    position: absolute;
    left: calc(100% + var(--left-panel-label-gap));
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: rgba(15, 20, 26, 0.92);
    border: 1px solid rgba(120, 200, 255, 0.35);
    border-radius: 6px;
    color: #f3f7fb;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 10;
    margin-left: 0;
}

.left-side-panel .wheel-icon:hover a::after,
.left-side-panel .wheel-icon.touch-hover a::after {
    opacity: 1;
    visibility: visible;
    transform: translate(4px, -50%);
}


/* --- app/static/css/shell/left-panel-responsive.css --- */
/* WAI-Core: src/app/static/css/shell/left-panel-responsive.css v5 */

@media (max-width: 800px) {

    .left-side-panel {
        left: 5px;
        width: 54px;
    }

    .wheel-icon {
      width: 30px;
      height: 30px;
    }

}

@media (max-width: 600px) {

    .left-side-panel {
        left: 10px;
        width: 43px;
    }

    .wheel-icon {
        width: 26px;
        height: 26px;
    }

}


/* --- app/static/css/shell/right-panel.css --- */
/* WAI-Core: src/app/static/css/shell/right-panel.css v1 */

:root {
    --right-panel-width: 500px;
}

.right-side-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: var(--right-panel-width);
    background-color: #243f53;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    color: white;
}

.right-panel-resizer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 3px;
    cursor: ew-resize;
    z-index: 1100;
    background-color: gray;
    user-select: none;
}

.right-side-panel.open {
    transform: translateX(0);
}

.right-panel-content {
    padding: 0px;
    overflow-y: auto;
    flex: 1;
}

.right-panel-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    padding: 10px;
    cursor: pointer;
}

body.right-panel-open nav .navbar-container,
body.right-panel-open .footer-container {
    margin-right: calc(41px + var(--right-panel-width));
}

body.right-panel-open nav .mobile-nav {
    margin-right: calc(82px + var(--right-panel-width));
}

body.right-panel-open main {
    margin-right: calc(100px + var(--right-panel-width));
}

body.right-panel-open .chat-box {
    right: calc(10px + var(--right-panel-width));
}

body.right-panel-overlay {
    overflow-x: hidden;
}

body.right-panel-overlay .right-side-panel {
    width: 100vw;
    max-width: 100vw;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.45);
}

body.right-panel-overlay .right-panel-resizer {
    display: none;
}

body.right-panel-overlay.right-panel-open {
    overflow: hidden;
}

body.right-panel-overlay.right-panel-open nav .navbar-container,
body.right-panel-overlay.right-panel-open .footer-container {
    margin-right: 0;
}

body.right-panel-overlay.right-panel-open nav .mobile-nav {
    margin-right: 82px;
}

body.right-panel-overlay.right-panel-open main {
    margin-right: 100px;
}

@media (max-width: 900px) {
    body.right-panel-overlay.right-panel-open main {
        margin-right: 50px;
    }
}

body.right-panel-overlay.right-panel-open .chat-box {
    right: 10px;
}


/* --- app/static/css/shell/right-panel-responsive.css --- */
/* WAI-Core: src/app/static/css/shell/right-panel-responsive.css v1 */

@media (max-width: 900px) {
    :root {
        --right-panel-width: 300px;
    }
}


/* --- app/static/css/shell/footer.css --- */
/* WAI-Core: src/app/static/css/shell/footer.css v14 */

footer {
    margin-top: 20px;
}

footer.footer-floating {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background-color: transparent;
    pointer-events: none;
}

.footer-container {
    position: relative;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 41px;
    margin-right: 41px;
    margin-bottom: 10px;
    pointer-events: none;
}

footer.footer-floating:not(.footer-minimised) .footer-container {
    pointer-events: all;
}

.left-footer-circle,
.right-footer-circle {
    pointer-events: auto;
}

.right-footer-circle {
    overflow: visible !important;
    position: relative;
}

.footer-main {
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
    border: 1px solid rgba(46, 217, 231, 0.22);
    border-radius: 9999px;
    height: 60px;
    padding: 0 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow:
        0px -14px 28px rgba(3, 10, 16, 0.45),
        0px -6px 14px rgba(17, 29, 38, 0.45),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12),
        inset 0px -2px 6px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    transition: all 0.15s ease, padding 0.15s ease;
    overflow: hidden;
    opacity: 1;
    font-size: 0.618em;
}

.footer-content {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: white;
    white-space: nowrap;
    overflow: hidden;
}

.footer-left,
.footer-right {
    padding: 10px;
    flex: 1;
}

.footer-left {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    column-gap: 24px;
    align-content: center;
    justify-content: start;
    text-align: left;
}

.footer-left p {
    margin: 3px 0;
}

.footer-right {
    text-align: right;
}

.chat-circle {
    border: none;
    background: none;
    font-size: 36px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.right-footer-circle .chat-circle.recording {
    position: relative;
    color: #fff;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, #f15656, #ff9a61);
    box-shadow:
        0 0 0 6px rgba(241, 86, 86, 0.2),
        0 14px 26px rgba(0, 0, 0, 0.35);
    animation: chat-circle-glow 1.25s ease-in-out infinite;
}

.right-footer-circle .chat-circle.recording::before,
.right-footer-circle .chat-circle.recording::after {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.55);
    animation: chat-circle-recording 1.2s ease-out infinite;
    pointer-events: none;
}

.right-footer-circle .chat-circle.recording::after {
    animation-delay: 0.45s;
    opacity: 0.75;
}

.right-footer-circle .chat-circle.recording .chat-circle-icon {
    animation: chat-circle-icon 0.85s ease-in-out infinite;
}

.chat-circle-loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: chat-circle-spin 0.9s linear infinite;
    display: none;
}

.chat-circle--loading .chat-circle-loader {
    display: inline-block;
}

.chat-circle--loading .chat-circle-icon {
    display: none;
}

.footer-content a {
    color: white;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

footer p {
    margin: 6px 0;
}

.social-media-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.social-media-container a {
    margin: 0 15px;
    display: inline-block;
}

.social-media-container img {
    width: 24px;
    height: auto;
    transition: transform 0.3s ease;
}

.social-media-container img:hover {
    transform: scale(1.2);
}

/* === Circles (match nav) === */

.footer-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0) 55%),
        linear-gradient(145deg, rgba(9, 20, 29, 0.95), rgba(30, 64, 82, 0.9));
    border: 1px solid rgba(46, 217, 231, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
    touch-action: none;
    user-select: none;
    box-shadow:
        0px 10px 20px rgba(3, 10, 16, 0.5),
        inset 0px -3px 6px rgba(0, 0, 0, 0.35),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12);
}

.footer-circle:focus {
    outline: none;
}

.footer-circle:focus-visible::before {
    opacity: 0;
    box-shadow: inset 0 0 12px var(--brand-color-highlight);
}

.footer-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    opacity: 0.65;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 60%);
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.footer-circle:hover::before {
    opacity: 0;
    box-shadow: inset 0 0 12px var(--brand-color-highlight);
}

.left-footer-circle {
    left: 0;
    transform: translateX(-40%);
}

.right-footer-circle {
    right: 0;
    transform: translateX(40%);
}

.inner-circle-footer {
    width: 85%;
    height: 85%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 55%),
        linear-gradient(160deg, rgba(12, 26, 36, 0.95), rgba(24, 52, 70, 0.9));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.footer-circle[data-context-loading] .circle-loader {
    display: inline-block;
}

.footer-circle[data-context-loading] .circle-logo {
    opacity: 0;
}

.footer-circle[data-context-loading] .chat-circle-icon {
    display: none;
}

.footer-circle[data-context-loading] .chat-circle-loader {
    display: inline-block;
}

.right-footer-circle.transcribing {
    transform: translateX(40%) scale(1.08);
}

.right-footer-circle.transcribing .inner-circle-footer {
    transform: scale(1.12);
    overflow: visible;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    animation: chat-transcribing-breathe 1.4s ease-in-out infinite;
}

.right-footer-circle.transcribing .inner-circle-footer::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: chat-transcribing-pulse 1.4s ease-out infinite;
    pointer-events: none;
}

@keyframes chat-transcribing-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    60% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes chat-transcribing-breathe {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
    }
}

@keyframes chat-circle-recording {
    0% {
        transform: scale(0.85);
        opacity: 0.9;
    }
    60% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

@keyframes chat-circle-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.circle-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.app-selector-button-footer {
    background: none;
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    justify-content: center;
}

.chat-circle {
    margin: auto;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

@keyframes chat-circle-glow {
    0%,
    100% {
        transform: translateY(0) scale(1);
        box-shadow:
            0 0 0 6px rgba(241, 86, 86, 0.22),
            0 10px 22px rgba(0, 0, 0, 0.28);
    }
    50% {
        transform: translateY(-1px) scale(1.06);
        box-shadow:
            0 0 0 9px rgba(241, 86, 86, 0.28),
            0 16px 32px rgba(0, 0, 0, 0.35);
    }
}

@keyframes chat-circle-icon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

.left-footer-circle::before {
    top: -5px;
    content: '↑';
    font-size: 32px;
    color: white;
    opacity: 1;
    pointer-events: none;
    z-index: 3;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === MINIMISED STATE === */

footer.footer-floating.footer-minimised .footer-main {
    height: 0;
    padding: 0 40px;
    opacity: 0;
    transition: opacity 0.15s ease, height 0.15s ease, padding 0.15s ease;
}

footer p {
    margin: 2px 0;
}

/* === Transparency for footer circles === */
.footer-circle,
.footer-circle .inner-circle-footer {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.left-footer-circle .inner-circle-footer {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer-circle:hover,
.footer-circle:hover .inner-circle-footer,
.footer-main:hover ~ .left-footer-circle,
.footer-main:hover ~ .right-footer-circle,
footer.footer-floating:not(.footer-minimised) .footer-circle,
footer.footer-floating:not(.footer-minimised) .footer-circle .inner-circle-footer {
    opacity: 1;
}


/* === MOBILE MENU PLACEHOLDER === */
#footer-mobile-menu {
    display: none;
    border-radius: var(--brand-border-radius) var(--brand-border-radius) 0 0;
    background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
    border: 1px solid rgba(46, 217, 231, 0.22);
    box-shadow:
        0px -14px 28px rgba(3, 10, 16, 0.35),
        0px -6px 14px rgba(17, 29, 38, 0.35),
        inset 0px 2px 6px rgba(255, 255, 255, 0.12),
        inset 0px -2px 6px rgba(0, 0, 0, 0.35);
}

#footer-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    margin-right: 0px;
    padding-right: 0px;
    margin-left: 0px;
    padding-left: 0px;
}

.footer-mobile-menu.open {
    display: flex;
    max-height: 80vh;
    overflow-y: auto;
}


footer-mobile-menu p {
    text-align: left;
}


/* --- app/static/css/shell/footer-responsive.css --- */
/* WAI-Core: src/app/static/css/shell/footer-responsive.css v6 */

@media (max-width: 800px) {

    #footer-toggle {
        display: block;
        margin: auto;
    }

    .footer-container {
        margin-left: 27px !important;
        margin-right: 27px !important;
        margin-bottom: 13px !important;
        height: 40px;
    }

    .left-footer-circle::before {
        content: '↑';
        top: -2px;
    }

    .left-footer-circle .circle-logo,
    .left-footer-circle .circle-loader {
        display: none;
    }

    .footer-content {
        display: none !important;
        white-space: normal !important;
        word-wrap: break-word;
        word-break: break-word;
        flex-wrap: wrap;
    }

    #footer-mobile-menu {
        display: none;
        flex-direction: column;
        align-items: center;
        background: linear-gradient(135deg, rgba(10, 18, 26, 0.98) 0%, rgba(20, 42, 56, 0.96) 45%, rgba(14, 30, 40, 0.98) 100%);
        color: white;
        padding: 0 20px;
        font-size: 0.8rem;
        margin: 0px 82px;
        gap: 10px;
        transition: max-height 0.3s ease, padding 0.3s ease;
        overflow-y: auto;
        max-height: 0;
        pointer-events: none;
        border: 1px solid rgba(46, 217, 231, 0.22);
        box-shadow:
            0px -14px 28px rgba(3, 10, 16, 0.35),
            0px -6px 14px rgba(17, 29, 38, 0.35),
            inset 0px 2px 6px rgba(255, 255, 255, 0.12),
            inset 0px -2px 6px rgba(0, 0, 0, 0.35);
    }

    #footer-mobile-menu.open {
        max-height: 46vh;
        padding: 20px;
        pointer-events: all;
        z-index: 2001;
        position: relative;
        display: flex;
    }

    .footer-main.mobile-open + #footer-mobile-menu {
        max-height: 400px;
    }

    #footer-mobile-menu a {
        color: white;
        text-decoration: none;
        display: inline-block;
    }

    #footer-mobile-menu a:hover {
        text-decoration: underline;
    }

    #footer-mobile-menu p {
        margin: 4px 0;
        text-align: center;
    }

    #footer-mobile-menu .social-media-container {
        padding: 10px 0;
    }

    #footer-mobile-menu .social-media-container img {
        width: 24px;
        height: auto;
    }

    #footer-mobile-menu::-webkit-scrollbar {
        width: 6px;
    }

    #footer-mobile-menu::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }
}

@media (max-width: 400px) {

    #footer-mobile-menu {
        margin: 0px 49px;
    }

}


/* --- app/static/css/shell/chat/chat.css --- */
/* WAI-Core: src/app/static/css/shell/chat/chat.css v16 */

/*==============================
=         CONTAINER           =
==============================*/

.chat-container {
    z-index: 2000;
    display: flex;
}

/*==============================
=         CHAT BOX            =
==============================*/

.chat-box {
    --shell-chat-surface: linear-gradient(135deg, rgba(7, 10, 13, 0.94) 0%, rgba(16, 22, 28, 0.9) 40%, rgba(7, 10, 13, 0.96) 100%);
    --shell-chat-panel: linear-gradient(135deg, rgba(14, 20, 27, 0.95) 0%, rgba(23, 30, 38, 0.92) 100%);
    --shell-chat-accent: rgba(46, 217, 231, 0.45);
    --shell-chat-border: rgba(46, 217, 231, 0.22);
    --shell-chat-text: #f5f7fa;
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 500px;
    max-width: 90vw;
    max-height: 0;
    background: var(--shell-chat-surface);
    border: 1px solid var(--shell-chat-border);
    border-radius: 16px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 100000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 35px rgba(3, 8, 12, 0.4);
    transition: all 0.3s ease-in-out;
}

.chat-box.active {
    opacity: 1;
    max-height: 78vh;
    height: 600px;
    padding: 10px;
    visibility: visible;
    transform: translateY(0);
}

/*==============================
=         CHAT HEADER         =
==============================*/

.chat-header {
    background: linear-gradient(135deg, rgba(15, 28, 38, 0.95), rgba(26, 52, 68, 0.9));
    color: white;
    padding: 6px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(46, 217, 231, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2em;
    cursor: move;
}

.chat-user-select {
    background: rgba(11, 16, 20, 0.85);
    color: var(--shell-chat-text);
    border: 1px solid var(--shell-chat-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    max-width: 200px;
}

.chat-user-select option {
    background-color: #0b1218;
    color: var(--shell-chat-text);
}

.chat-tools-button,
.clear-chat,
.chat-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.1em;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.chat-tools-button:hover {
    color: #74ecf5;
    transform: translateY(-1px);
}

.clear-chat:hover,
.chat-close-button:hover {
    color: #ff8c8c;
    transform: translateY(-1px);
}

/* File: src/app/static/css/shell/chat/chat.css */

/*==============================
=       STATUS SELECTOR       =
==============================*/

.chat-status-select {
    background-color: rgba(11, 16, 20, 0.85);
    color: #cfe7f2;
    border: 1px solid var(--shell-chat-border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.95em;
    font-weight: normal;
    cursor: pointer;
    margin-left: 10px;
    max-width: 140px;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23cfe7f2" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.chat-status-select option {
    background-color: #0b1218;
    color: #cfe7f2;
}


/*==============================
=         TOOL POPUP          =
==============================*/

#chat-tools-popup {
    position: absolute;
    right: 15px;
    top: 45px;
    background: linear-gradient(135deg, rgba(12, 18, 24, 0.98), rgba(20, 32, 42, 0.95));
    color: #f0f7fa;
    border: 1px solid rgba(46, 217, 231, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    max-width: 320px;
    z-index: 999;
    box-shadow: 0 12px 24px rgba(3, 8, 12, 0.45);
    line-height: 1.4em;
    white-space: normal;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 60vh;
    overflow: hidden;
}

#chat-tools-popup.hidden {
    display: none;
}

#chat-tools-popup h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #7cecf5;
    border-bottom: 1px solid rgba(46, 217, 231, 0.2);
    padding-bottom: 6px;
    flex-shrink: 0;
}

#chat-tools-popup ul {
    padding-left: 16px;
    list-style: disc;
    margin: 0;
    overflow-y: auto;
    flex: 1 1 auto;
    scrollbar-gutter: stable;
}

#chat-tools-popup li {
    margin-bottom: 8px;
}

#chat-tools-popup code {
    color: #7cecf5;
    font-weight: bold;
}

/*==============================
=         MESSAGES            =
==============================*/

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--shell-chat-panel);
    border-radius: 0 0 14px 14px;
    border: 1px solid rgba(46, 217, 231, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.user-message,
.self-message,
.daemon-message {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 12px;
    max-width: 95%;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.chat-message {
    position: relative;
}

.runwai-feedback {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.chat-message:hover .runwai-feedback {
    opacity: 1;
    visibility: visible;
}

.runwai-feedback-button {
    background: rgba(8, 12, 16, 0.65);
    border: 1px solid rgba(46, 217, 231, 0.2);
    color: #fff;
    border-radius: 8px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: 0.85em;
    line-height: 1.2;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.runwai-feedback-button:hover:not(:disabled) {
    background: rgba(46, 217, 231, 0.25);
    border-color: rgba(46, 217, 231, 0.5);
    transform: translateY(-1px);
}

.runwai-feedback-button.selected {
    background: #7cecf5;
    border-color: #7cecf5;
    color: #071015;
}

.runwai-feedback-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.runwai-feedback-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.runwai-feedback-form--hidden {
    display: none;
}

.runwai-feedback-input {
    width: 170px;
    max-width: 100%;
    min-height: 28px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid rgba(46, 217, 231, 0.25);
    background: rgba(8, 12, 16, 0.8);
    color: #fff;
    font-size: 0.8em;
    resize: vertical;
}

.runwai-feedback-submit {
    background: #2ed9e7;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.runwai-feedback-submit:hover:not(:disabled) {
    background: #24b9c4;
}

.runwai-feedback-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.server-message {
    color: #cfe7f2;
    background: none;
    border: none;
    font-size: 0.85em;
    font-style: italic;
    padding: 4px 8px;
    margin: 4px 0;
    align-self: center;
    text-align: center;
    box-shadow: none;
}

.user-message {
    background: rgba(18, 28, 41, 0.92);
    border: 1px solid rgba(46, 217, 231, 0.35);
    color: #f5f7fa;
    align-self: flex-start;
    text-align: left;
}

.self-message {
    background: rgba(46, 217, 231, 0.2);
    border: 1px solid rgba(46, 217, 231, 0.45);
    color: #e9f9fb;
    align-self: flex-end;
    text-align: right;
    margin-left: 30px;
    padding: 8px;
    border-radius: 12px;
    max-width: 95%;
    word-wrap: break-word;
    white-space: pre-wrap;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

.daemon-message {
    background: rgba(18, 28, 41, 0.92);
    border: 1px solid rgba(46, 217, 231, 0.35);
    color: white;
}

/*==============================
=         CHAT FOOTER         =
==============================*/

.chat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 8px 12px;
    margin-right: 0;
    border: 1px solid rgba(46, 217, 231, 0.35);
    border-radius: 12px;
    background: rgba(11, 16, 20, 0.8);
    color: #f5f7fa;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    box-shadow: 0 0 0 2px rgba(46, 217, 231, 0.35);
}

.chat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-action-button {
    appearance: none;
    background: linear-gradient(135deg, rgba(209, 114, 24, 0.9), rgba(255, 165, 66, 0.9));
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-action-button:hover,
.chat-action-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    outline: none;
}

.chat-action-button:active {
    transform: scale(0.95);
}

.chat-action-icon {
    width: 40px;
    height: 40px;
}

.chat-send-button {
    background: linear-gradient(135deg, rgba(209, 114, 24, 0.95), rgba(255, 180, 90, 0.95));
}

.chat-voice-button {
    position: relative;
    overflow: visible;
}

.chat-voice-button.recording {
    background: linear-gradient(135deg, #f25b5b, #ff9f6a, #f25b5b);
    background-size: 220% 220%;
    box-shadow:
        0 0 0 5px rgba(242, 91, 91, 0.18),
        0 14px 26px rgba(0, 0, 0, 0.35);
    animation:
        chat-voice-gradient 1.4s linear infinite,
        chat-voice-recording 1s ease-in-out infinite;
}

.chat-voice-button.recording::before,
.chat-voice-button.recording::after {
    content: "";
    position: absolute;
    inset: -16%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.65);
    opacity: 0.6;
    animation: chat-voice-ripple 1.3s ease-out infinite;
    pointer-events: none;
}

.chat-voice-button.recording::after {
    animation-delay: 0.45s;
}

.chat-voice-button.recording .chat-action-icon {
    animation: chat-voice-icon 0.8s ease-in-out infinite;
}

.chat-circle.recording {
    background: linear-gradient(135deg, rgba(212, 63, 63, 0.95), rgba(255, 115, 115, 0.95));
    animation: chat-bubble-recording 1.2s ease-in-out infinite;
}

@keyframes chat-bubble-recording {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 63, 63, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(212, 63, 63, 0);
        transform: scale(1.08);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 63, 63, 0);
        transform: scale(1);
    }
}

@keyframes chat-voice-recording {
    0% {
        box-shadow: 0 0 0 0 rgba(242, 91, 91, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(242, 91, 91, 0);
        transform: scale(1.09);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 63, 63, 0);
        transform: scale(1);
    }
}

@keyframes chat-voice-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes chat-voice-ripple {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    60% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes chat-voice-icon {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

/*==============================
=        REPLY PREVIEW        =
==============================*/

.reply-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 8px;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.reply-preview.hidden {
    display: none;
}

.reply-preview .cancel-reply {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
}

.reply-to {
    font-size: 0.8em;
    background-color: rgba(0,0,0,0.3);
    border-left: 2px solid #ffaa33;
    padding: 2px 6px;
    margin-bottom: 4px;
    border-radius: 4px;
}

.reply-btn {
    cursor: pointer;
    font-size: 0.8em;
    color: #ccc;
    margin-left: 6px;
}

.reply-btn:hover {
    color: #fff;
}

/*==============================
=        STATUS BAR           =
==============================*/

.chat-status-bar {
    padding: 4px;
    background-color: #111;
    color: #999;
    font-size: 0.9em;
    border-bottom: 1px solid #555;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.chat-status-bar .chat-status-modifier::before {
    content: ">";
    margin-right: 5px;
    color: #999;
}

.chat-status-bar .chat-status-modifier:first-child::before {
    content: "";
    margin-right: 0;
}

.chat-status-modifier.clickable {
    cursor: pointer;
}

/*==============================
=      TYPING INDICATOR       =
==============================*/

.typing-indicator {
    display: none;
    align-items: center;
    margin: 10px;
    gap: 6px;
}

.typing-indicator.typing-indicator--visible {
    display: flex;
}

.typing-indicator .dot {
    height: 10px;
    width: 10px;
    background-color: #d17218;
    border-radius: 50%;
    animation: typing-indicator-bounce 1.2s infinite ease-in-out;
    opacity: 0.25;
}

.typing-indicator .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-indicator-bounce {
    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.25;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

/*==============================
=        CONTEXT PANEL        =
==============================*/

.chat-context {
    display: flex;
    align-items: center;
    overflow-x: auto;
    gap: 10px;
    background-color: #111;
    border: 1px solid #555;
    border-radius: 5px;
    white-space: nowrap;
    margin-bottom: 10px;
    font-size: 0.9rem;
    min-height: 70px;
}

.chat-context.hidden {
    display: none;
}

#context-list {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
}

#context-list .object {
    display: inline-block;
    color: #fff;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

#context-list .object:hover {
    background-color: #bf620f;
    transform: scale(1.05);
}

.chat-context::-webkit-scrollbar {
    height: 8px;
}

.chat-context::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 4px;
}

.chat-context::-webkit-scrollbar-thumb:hover {
    background-color: #777;
}

/*==============================
=        UNREAD BUBBLE        =
==============================*/

.chat-unread-badge {
    background-color: rgba(209, 114, 24, 1);
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 4px 7px;
    border-radius: 999px;
    position: absolute;
    z-index: 2000;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    opacity: 1;
    top: 10px;
    right: 10px;
}

.chat-unread-popup {
    position: absolute;
    left: 80px;
    bottom: 80px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: white;
    padding: 10px;
    border-radius: 6px;
    z-index: 3001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    min-width: 180px;
}

.chat-unread-popup.hidden {
    display: none;
}

.chat-unread-popup ul {
    margin: 0;
    padding-left: 16px;
    list-style: disc;
}

.chat-unread-popup li {
    cursor: pointer;
    margin-bottom: 6px;
}

.chat-unread-popup li:hover {
    color: #ffaa33;
}

.chat-user-select.has-unread {
    border-color: #d17218;
    box-shadow: 0 0 4px #d17218;
}

/* WAI-Core: src/app/static/css/shell/chat/chat.css v5 (anonymous input block) */

#submit-name-form {
    background: linear-gradient(135deg, rgba(80,80,80,0.9), rgba(120,120,120,0.9));
    height: 100%;
    width: 100%;
}

#submit-name {
    padding: 16px;
    background-color: var(--brand-color-container-foreground-light);
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    margin: 10px;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#submit-name input[type="text"] {
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #555;
    color: black;
    font-size: 1em;
    outline: none;
    transition: box-shadow 0.2s ease;
}

#submit-name input[type="text"]:focus {
    box-shadow: 0 0 8px #d17218;
    border-color: #d17218;
}

#submit-name button {
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    background-color: #d17218;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

#submit-name button:hover {
    background-color: #bf620f;
}

#submit-name label {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 4px;
    display: block;
    color: #ffaa33;
}

.chat-login-required {
    padding: 20px;
    text-align: center;
    color: #fff;
    background-color: var(--brand-color-container-background);
    border-radius: var(--brand-border-radius);
    margin: 20px;
}

.chat-login-required p {
    margin-bottom: 12px;
    font-size: 1.1em;
}

.chat-login-required a {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--brand-color-cta);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.chat-login-required a:hover {
    background-color: var(--brand-color-cta-hover);
}



.new-chat {
    background: none;
    border: none;
    color: white;
    font-size: 0.88em;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s ease;
}

.new-chat:hover {
    color: #66ff66;
}


/* --- app/static/css/shell/chat/chat-responsive.css --- */
/* WAI-Core: src/app/static/css/shell/chat/chat-responsive.css v5 */

/*==============================
=        MEDIA QUERIES        =
==============================*/

@media (max-width: 900px) {

    .chat-unread-badge {
        top: 5px;
        right: 5px;
    }

}




/* Base mobile-first adjustments */
@media (max-width: 600px) {

    /* Chat Box Size */
    .chat-box.active {
        height: 90vh;
        width: 95vw;
        bottom: 5px;
        right: 5px;
    }

    /* Header Font and Padding */
    .chat-header {
        font-size: 1em;
        padding: 8px 10px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .chat-user-select,
    .chat-status-select {
        font-size: 0.85em;
        max-width: 140px;
    }

    .chat-tools-button,
    .clear-chat,
    .chat-close-button {
        font-size: 1em;
        padding: 2px;
    }

    /* Chat Footer Input Resize */
    .chat-input {
        font-size: 0.9em;
    }

    .chat-action-button {
        width: 38px;
        height: 38px;
    }

    .chat-action-icon {
        width: 18px;
        height: 18px;
    }

    /* Typing Indicator Margin */
    .typing-indicator {
        margin: 6px;
    }

    /* Status bar font */
    .chat-status-bar {
        font-size: 0.8em;
        padding: 4px 6px;
    }

    /* Tools popup size */
    #chat-tools-popup {
        font-size: 12px;
        max-width: 90vw;
        right: 10px;
    }

    /* Unread popup spacing */
    .chat-unread-popup {
        bottom: 90px;
        left: 10px;
        font-size: 0.9em;
    }

    .chat-unread-popup li {
        margin-bottom: 5px;
    }
}

/* Additional rule for short screen heights */
@media (max-height: 500px) {
    .chat-box.active {
        height: 90vh;
        max-height: 90vh;
        bottom: 0;
    }
}


/* --- app/static/css/overrides/chat-reply.css --- */
/* WAI-Core: src/app/static/css/overrides/chat-reply.css v1 */
/* custom overrides for chat reply positioning */
.chat-footer {
    flex-wrap: wrap;
    align-items: center;
}
.reply-preview {
    width: 100%;
    margin-right: 0;
}


/* --- app/static/css/popup/base-popup.css --- */
/* WAI-Core: src/app/static/css/popup/base-popup.css v1 */

.right-panel-close {
    margin: 0px;
    padding: 0px;
    margin-right: 10px;
    margin-top: 4px;
}

.right-panel-content {
    background-color: var(--brand-color-container-foreground-dark);
}

#base-object-popup-container {
    width: 100%;
    height: 100%;
    border-radius: var(--brand-border-radius);
    color: #fff;
    overflow-y: auto;
}

/* Inner scrollable content area */
#base-object-content {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: 10px;
    margin-right: 10px;
    box-sizing: border-box;
}

/*
#page-object-resize-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -3px;
    width: 6px;
    cursor: ew-resize;
    display: none;
}

#base-object-popup-container:hover #page-object-resize-handle {
    display: block;
}
*/


/* --- app/static/css/popup/base-popup-responsive.css --- */
/* WAI-Core: src/app/static/css/popup/base-popup-responsive.css v2 */


@media (max-width: 900px) {

    .toolbar-button {
        font-size: 0.64em;
        margin: 0px;
        padding: 2px;
    }

    #object-name {
        margin-bottom: 0px;
        font-size: 1rem;
    }

}

@media (max-width: 500px) {

    .attribute-label {
        min-width: 0px;
    }

    .popup-sections-scroll {
        padding-left: 2px;
        padding-right: 2px;
    }

    .attribute {
        grid-template-columns: 100px 1fr !important;
    }

}


/* --- app/static/css/popup/group-popup.css --- */
/* WAI-Core: src/app/static/css/popup/group-popup.css v2 */

#group-popup {
    position: absolute;
    width: 100%;
    color: #fff;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1010;
    flex-direction: column;
    height: 100%;
    display: none;
}

#group-popup:not(.group-popup-hidden) {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
    display: flex;
}

#group-meta-data {
    margin-left: 10px;
    margin-right: 45px;
    background-color: var(--brand-foreground-dark);
    border-radius: var(--brand-border-radius);
}

#group-name {
    text-align: center;
    color: #fff;
}

#group-actions-toolbar {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

.toolbar-group {
    display: flex;
    gap: 10px;
}

.toolbar-button {
    padding: 6px 12px;
    background-color: var(--brand-color-cta);
    border: 1px solid var(--brand-color-cta-hover);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    white-space: nowrap;
    position: relative;
}

.toolbar-button:hover {
    background-color: var(--brand-color-cta-hover);
    color: white;
}

.toolbar-button i {
    pointer-events: none;
}

.toolbar-button .button-label {
    display: none;
}

.toolbar-button:hover .button-label {
    display: none;
}

.toolbar-button::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: var(--brand-color-cta);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

.toolbar-button:hover::after {
    opacity: 1;
}

.toggle-section-button {
    background: none;
    border: none;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.property-item {
    margin-bottom: 5px;
    padding: 5px;
    border-bottom: 1px solid #444;
    word-wrap: break-word;
}

.property-item:last-child {
    border-bottom: none;
}


/* --- app/static/css/popup/object-popup.css --- */
/* WAI-Core: src/app/static/css/popup/object-popup.css v4 */

#object-popup {
    position: absolute;
    width: 100%;
    color: #fff;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    z-index: 1010;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#object-popup .object-popup-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(5, 10, 15, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 2;
}

#object-popup .object-popup-loading__text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

#object-popup[data-loading="true"] .object-popup-loading {
    opacity: 1;
    pointer-events: auto;
}

#object-popup[data-visible="true"] {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

#object-meta-data {
    margin-left: 10px;
    background-color: var(--brand-foreground-dark);
    border-radius: var(--brand-border-radius);
}

#object-name {
    margin-bottom: 6px;
    text-align: center;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    max-height: none;
}

#object-name.object-name-truncated {
    cursor: pointer;
    max-height: 1.2em;
}

#object-name.object-name-expanded {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
}

#clear-object-popup-recommendations {
    margin-left: 10px;
    margin-right: 20px;
    padding: 5px 10px;
    background: none;
    border: 1px solid yellow;
    color: rgba(255, 204, 0, 0.618);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 0px;
}

#clear-object-popup-recommendations:hover {
    background-color: rgba(255, 255, 0, 0.1);
}

#attributes-container {
    overflow-y: auto;
    max-height: 468px;
}

#object-popup h3 {
    margin-bottom: 0px;
}

#view-actions-toolbar,
#object-actions-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.toolbar-group {
    display: flex;
    gap: 10px;
}

.toolbar-button {
    padding: 6px 12px;
    background-color: var(--brand-color-cta);
    border: 1px solid var(--brand-color-cta-hover);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    white-space: nowrap;
    position: relative;
}

.toolbar-button:hover {
    background-color: var(--brand-color-cta-hover);
    color: white;
}

.toolbar-button i {
    pointer-events: none;
}

.toolbar-button .button-label {
    display: none;
}

.toolbar-button:hover .button-label {
    display: none;
}

.toolbar-button::after {
    content: attr(title);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background-color: var(--brand-color-cta);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

.toolbar-button:hover::after {
    opacity: 1;
}

/* Hide sections that require contributor access */
body[data-contributor='false'] .contributor-only {
    display: none;
}


/* --- app/static/css/popup/sections/navigation.css --- */
/* WAI-Core: src/app/static/css/popup/sections/navigation.css v6 */

/* === Grid Layout === */
.nav-relationship-grid-2x3 {
    display: grid;
    grid-template-columns: 1fr 30px 1fr;
    grid-template-rows: auto;
    gap: 10px;
    padding: 10px 0;
}

.nav-row {
    display: contents;
}

.nav-cell {
    min-height: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* === Left: Now Split into 3 Vertical Sections === */
.nav-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.nav-super > div:hover,
.nav-sub > div:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* === Current Object with Arrow === */
.nav-current {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.nav-current-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-arrow {
    font-size: 1.2em;
    color: var(--brand-color-primary);
    margin-left: -10px;
    margin-right: 4px;
}

/* === Right: Link Groups by Type === */
.nav-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    padding-left: 6px;
}

.nav-link-group {
    background-color: #222;
    border: 1px solid var(--brand-foreground-light);
    border-radius: 6px;
    padding: 6px 8px;
}

.nav-link-title {
    font-weight: bold;
    font-size: 0.64em;
    color: var(--brand-color-primary);
    margin-bottom: 4px;
}

.nav-link-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-link-body > div {
    padding: 4px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.nav-link-body > div:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* === Compact Support === */
#hierarchy-navigation.compact-model {
    font-size: 0.68rem;
    line-height: 1.3;
    padding: 4px 0;
}


/* --- app/static/css/popup/sections/collaboration.css --- */
/* WAI-Core: src/app/static/css/popup/sections/collaboration.css v1 */

.ai-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ai-progress .ai-icon {
    font-size: 0.96rem;
}

.ai-progress .ai-message {
    background: #c00;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
}

.ai-cancel-button {
    margin-top: 0.5rem;
}

.user-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.user-progress .user-avatar {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #666;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    overflow: hidden;
}

.user-progress .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-progress .user-message {
    background: #c00;
    border-radius: 8px;
    padding: 0.25rem 0.5rem;
    font-size: 0.72rem;
}


/* --- app/static/css/cookie/cookie.css --- */
/* WAI-Core: src/app/static/css/cookie/cookie.css v1 */

/* Website: src/app/static/css/cookie/cookie.css v1.0 */
/* Website: Website/src/app/static/css/cookie/cookie.css v1.0 */
/* More specific class targeting to prevent conflicts */

/* CSS for the container */
.cookie-banner-container {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    /* Ensure banner stays above the footer */
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px; /* Consistent padding */
    height: 80px; /* Consistent height for the banner */
    font-family: 'Roboto', Arial, sans-serif; /* Define font family */
    font-size: 14px; /* Define consistent font size */
}

/* CSS for the banner */
.cookie-banner-container .cookie-banner {
    background-color: #fff !important; /* Ensure background color is not overridden */
    border-radius: 4px;
    padding: 10px 20px; /* Consistent padding inside the banner */
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 80%; /* Consistent width for the banner */
    max-width: 1200px; /* Max width to ensure the banner doesn't get too wide on larger screens */
    font-size: 14px; /* Set font size */
    font-family: 'Roboto', Arial, sans-serif; /* Define font family */
}

/* Content inside the banner */
.cookie-banner-container .cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Text inside the banner */
.cookie-banner-container .cookie-text {
    font-size: 14px !important; /* Ensure consistent text size */
    margin: 0;
    flex: 1;
    color: #333 !important; /* Ensure consistent text color */
    max-width: 70%; /* Ensure text takes up a consistent amount of space */
    line-height: 1.5; /* Ensure readability */
    font-family: 'Roboto', Arial, sans-serif; /* Define font family */
}

/* Buttons inside the banner */
.cookie-banner-container .cookie-buttons {
    display: flex;
    align-items: center;
    margin-left: 15px;
    min-width: 200px; /* Ensure consistent space for buttons */
}

/* Button styling */
.cookie-banner-container .cookie-button {
    padding: 8px 16px !important; /* Consistent padding for all buttons */
    margin: 0 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px !important; /* Set consistent font size */
    width: 100px; /* Consistent button width */
    font-family: 'Roboto', Arial, sans-serif; /* Define font family */
}

/* Settings link inside the banner */
.cookie-banner-container .settings-link {
    text-decoration: none;
    color: #0080ff !important;
    font-weight: bold;
    font-size: 14px !important; /* Consistent font size */
    margin-left: 5px;
    width: auto; /* Ensure the link adjusts based on text size */
    height: 40px; /* Consistent height for the link */
    display: flex;
    align-items: center; /* Vertically center the text */
    font-family: 'Roboto', Arial, sans-serif; /* Define font family */
}

/* Settings link hover effect */
.cookie-banner-container .settings-link:hover {
    text-decoration: underline !important;
}

/* Responsive styles */
@media (max-width: 600px) {
    .cookie-banner-container {
        height: auto;
        padding: 15px;
    }

    .cookie-banner-container .cookie-banner {
        flex-direction: column;
        width: 95%;
        height: auto;
        padding: 15px;
    }

    .cookie-banner-container .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-container .cookie-text {
        max-width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .cookie-banner-container .cookie-buttons {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .cookie-banner-container .cookie-button {
        width: auto;
        margin-bottom: 10px;
    }

    .cookie-banner-container .settings-link {
        height: auto;
    }
}
