
/* --- 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 v2 */

@media (max-width: 900px) {
    main {
        margin-left: 50px;
        margin-right: 50px;
    }

    body.right-panel-open main {
        margin-right: calc(50px + var(--right-panel-width));
    }
}


/* --- app/static/css/util.css --- */
/* WAI-Core: src/app/static/css/util.css v2 */

.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;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* --- app/static/css/brand.css --- */
/* WAI-Core: src/app/static/css/brand.css v2 */

:root {

  /* Brand Colors */
  --brand-color-primary: #2ed9e7;
  --brand-color-background: #111d26;
  --brand-color-container-background: #404040;
  --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 6px 20px 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 v5 */

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-color: #243f53;
    color: white;
    border-radius: 9999px;
    height: 60px;
    padding: 0 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow:
        0px 6px 20px 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),
        inset 0px 2px 0px rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    transition: all 0.15s ease, padding 0.15s ease;
    overflow: visible;
}

#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 12px;
    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-color: #243f53;
    left: 0;
    width: 200px;
    top: 100%;
    z-index: 999;
    transition: all 0.3s ease;
    transform: translateY(-20px);
    border-radius: 8px;
    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-color: var(--brand-color-header);
    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 6px 20px 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),
        inset 0px 2px 0px rgba(255, 255, 255, 0.15);
}

.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-color: var(--brand-color-header);
    border-radius: 50%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    z-index: 1;
    display: flex;
}

.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;
}

/* 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-color: #243f53;
    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);
    box-shadow:
      inset 2px 0 0 rgba(255, 255, 255, 0.15),   /* Left line */
      inset -2px 0 0 rgba(255, 255, 255, 0.15),  /* Right line */
      inset 0 2px 10px rgba(0, 0, 0, 0.5);        /* Top shadow */
}

.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 v3 */

@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: flex;
        flex-direction: column;
        align-items: center;
        background-color: #243f53;
        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);
        box-shadow:
            inset 2px 0 0 rgba(255, 255, 255, 0.15),
            inset -2px 0 0 rgba(255, 255, 255, 0.15),
            inset 0 2px 10px rgba(0, 0, 0, 0.5);
        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-color: #243f53;
    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);
    box-shadow:
        inset 2px 0 0 rgba(255, 255, 255, 0.15),
        inset -2px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 2px 10px rgba(0, 0, 0, 0.5);
    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 v3 */

.left-side-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 77px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 0.3s ease;
    background-color: rgba(0, 0, 0, 0.618);
}

.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%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 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 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

.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/static/css/shell/left-panel-responsive.css --- */
/* WAI-Core: src/app/static/css/shell/left-panel-responsive.css v4 */

@media (max-width: 900px) {

    .left-side-panel {
        left: 5px;
        width: 54px;
    }

    .wheel-icon {
      width: 30px;
      height: 30px;
    }

}

@media (max-width: 600px) and (orientation: portrait) {


}


/* --- 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 v7 */

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-color: #243f53;
    border-radius: 9999px;
    height: 60px;
    padding: 0 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow:
        0px -6px 20px 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),
        inset 0px -2px 0px rgba(255, 255, 255, 0.15);
    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 {
    text-align: left;
}

.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;
}

.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-color: var(--brand-color-header);
    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 6px 20px 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),
        inset 0px 2px 0px rgba(255, 255, 255, 0.15);
}

.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.5;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    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-color: var(--brand-color-header);
    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;
}

.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-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;
}

.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;
    box-shadow:
      inset 2px 0 0 rgba(255, 255, 255, 0.15),   /* Left line */
      inset -2px 0 0 rgba(255, 255, 255, 0.15),  /* Right line */
      inset 0 -2px 10px rgba(0, 0, 0, 0.5);       /* Bottom shadow */
}

#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 v4 */

@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;
    }

    .footer-content {
        display: none !important;
        white-space: normal !important;
        word-wrap: break-word;
        word-break: break-word;
        flex-wrap: wrap;
    }

    #footer-mobile-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #243f53;
        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;
    }

    #footer-mobile-menu.open {
        max-height: 46vh;
        padding: 20px;
        pointer-events: all;
        z-index: 2001;
        position: relative;
    }

    .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 v10 */

/*==============================
=         CONTAINER           =
==============================*/

.chat-container {
    z-index: 2000;
    display: flex;
}

/*==============================
=         CHAT BOX            =
==============================*/

.chat-box {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 500px;
    max-width: 90vw;
    max-height: 0;
    background: #111;
    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: 5px -10px 10px rgba(0, 0, 0, 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-color: #222255;
    color: white;
    padding: 6px;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2em;
    cursor: move;
}

.chat-user-select {
    background-color: #333366;
    color: #fff;
    border: 1px solid #777;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    max-width: 200px;
}

.chat-user-select option {
    background-color: #222255;
    color: #fff;
}

.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;
}

.chat-tools-button:hover {
    color: #ffaa33;
}

.clear-chat:hover,
.chat-close-button:hover {
    color: #ff6666;
}

/* File: src/app/static/css/shell/chat/chat.css */

/*==============================
=       STATUS SELECTOR       =
==============================*/

.chat-status-select {
    background-color: #222255;
    color: #ccc;
    border: 1px solid #444;
    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="%23ccc" 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: #222255;
    color: #ccc;
}


/*==============================
=         TOOL POPUP          =
==============================*/

#chat-tools-popup {
    position: absolute;
    right: 15px;
    top: 45px;
    background: #1a1a1a;
    color: #f0f0f0;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 13px;
    max-width: 320px;
    z-index: 999;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    line-height: 1.4em;
    white-space: normal;
}

#chat-tools-popup.hidden {
    display: none;
}

#chat-tools-popup h4 {
    margin-bottom: 8px;
    font-size: 14px;
    color: #ffaa33;
    border-bottom: 1px solid #333;
    padding-bottom: 6px;
}

#chat-tools-popup ul {
    padding-left: 16px;
    list-style: disc;
    margin: 0;
}

#chat-tools-popup li {
    margin-bottom: 8px;
}

#chat-tools-popup code {
    color: #ffdd88;
    font-weight: bold;
}

/*==============================
=         MESSAGES            =
==============================*/

.chat-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(80,80,80,0.9), rgba(120,120,120,0.9));
    border-radius: 0 0 12px 12px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.1);
}

.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: 3px 2px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.server-message {
    color: #fff;
    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-color: #555588;
    color: white;
    align-self: flex-start;
    text-align: left;
}

.self-message {
    background-color: #4a7aa3;
    color: white;
    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: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.daemon-message {
    background-color: seagreen;
    color: white;
}

/*==============================
=         CHAT FOOTER         =
==============================*/

.chat-footer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 8px 12px;
    margin-right: 0;
    border: 2px solid #555;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(80,80,80,0.9), rgba(120,120,120,0.9));
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    box-shadow: 0 0 8px #d17218;
}

.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 {
}

.chat-voice-button.recording {
    background: linear-gradient(135deg, rgba(212, 63, 63, 0.95), rgba(255, 115, 115, 0.95));
    animation: chat-voice-recording 1.2s ease-in-out infinite;
}

@keyframes chat-voice-recording {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 63, 63, 0.6);
        transform: scale(1);
    }
    60% {
        box-shadow: 0 0 0 10px rgba(212, 63, 63, 0);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 63, 63, 0);
        transform: scale(1);
    }
}

/*==============================
=        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;
}

#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);
}


/* --- 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/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;
    }
}


/* --- app/static/css/partials/partials.css --- */
/* WAI-Core: static/css/partials/partials.css */

@import url("./wizard/structure.css");
