/**
 * SimChat Base Styles
 * Global styles applied across all SimChat pages
 */

/* Typography - Inter font */
.simchat-app {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Brand colour theming - uses CSS variables set per-tenant */
/* Higher specificity to override WebPixels CSS */

.simchat-app .btn-primary,
.btn-primary {
    --bs-btn-bg: var(--brand-primary, #0031cc);
    --bs-btn-border-color: var(--brand-primary, #0031cc);
    --bs-btn-hover-bg: color-mix(in srgb, var(--brand-primary, #0031cc) 85%, black);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--brand-primary, #0031cc) 85%, black);
    --bs-btn-active-bg: color-mix(in srgb, var(--brand-primary, #0031cc) 80%, black);
    --bs-btn-active-border-color: color-mix(in srgb, var(--brand-primary, #0031cc) 80%, black);
    background-color: var(--brand-primary, #0031cc) !important;
    border-color: var(--brand-primary, #0031cc) !important;
}

.simchat-app .btn-primary:hover,
.btn-primary:hover {
    background-color: color-mix(in srgb, var(--brand-primary, #0031cc) 85%, black) !important;
    border-color: color-mix(in srgb, var(--brand-primary, #0031cc) 85%, black) !important;
}

.simchat-app .btn-primary:active,
.btn-primary:active,
.simchat-app .btn-primary.active,
.btn-primary.active {
    background-color: color-mix(in srgb, var(--brand-primary, #0031cc) 80%, black) !important;
    border-color: color-mix(in srgb, var(--brand-primary, #0031cc) 80%, black) !important;
}

.simchat-app .btn-outline-primary,
.btn-outline-primary {
    --bs-btn-color: var(--brand-primary, #0031cc);
    --bs-btn-border-color: var(--brand-primary, #0031cc);
    --bs-btn-hover-bg: var(--brand-primary, #0031cc);
    --bs-btn-active-bg: var(--brand-primary, #0031cc);
    color: var(--brand-primary, #0031cc) !important;
    border-color: var(--brand-primary, #0031cc) !important;
}

.simchat-app .btn-outline-primary:hover,
.btn-outline-primary:hover {
    background-color: var(--brand-primary, #0031cc) !important;
    border-color: var(--brand-primary, #0031cc) !important;
    color: #fff !important;
}

.simchat-app .btn-outline-primary:hover i,
.btn-outline-primary:hover i {
    color: #fff !important;
}

/* Text primary colour override */
.simchat-app .text-primary,
.text-primary {
    color: var(--brand-primary, #0031cc) !important;
}

/* Text muted override for AAA contrast */
.simchat-app .text-muted,
.text-muted,
.simchat-app small.text-muted,
small.text-muted {
    color: #495057 !important;
}

/* Text body secondary override for AAA contrast */
.simchat-app .text-body-secondary,
.text-body-secondary {
    color: #495057 !important;
}

/* Lead text override for AAA contrast */
.simchat-app .lead,
.lead {
    color: #212529;
}

/* Table text for AAA contrast */
.simchat-app .table td,
.simchat-app .table th,
.table td,
.table th,
.simchat-app .table thead th,
.table thead th {
    color: #212529 !important;
}

/* Badge bg-secondary for AAA contrast */
.simchat-app .badge.bg-secondary,
.badge.bg-secondary {
    background-color: #4b5563 !important;
}

/* Badge bg-success for AAA contrast */
.simchat-app .badge.bg-success,
.badge.bg-success {
    background-color: #166534 !important;
}

/* Soft badge colours for AAA contrast */
.simchat-app .badge.bg-yellow-100,
.badge.bg-yellow-100 {
    background-color: #fef3c7 !important;
}

.simchat-app .badge.text-yellow-700,
.badge.text-yellow-700 {
    color: #713f12 !important;
}

.simchat-app .badge.bg-green-100,
.badge.bg-green-100,
.bg-green-100.badge {
    background-color: #dcfce7 !important;
}

.simchat-app .badge.text-green-700,
.badge.text-green-700,
.text-green-700.badge {
    color: #14532d !important;
}

/* Dark purple/indigo button for secondary CTAs */
.simchat-app .btn-indigo,
.btn-indigo {
    --bs-btn-bg: #4338ca;
    --bs-btn-border-color: #4338ca;
    --bs-btn-hover-bg: #3730a3;
    --bs-btn-hover-border-color: #3730a3;
    --bs-btn-active-bg: #312e81;
    --bs-btn-active-border-color: #312e81;
    --bs-btn-color: #fff;
    background-color: #4338ca !important;
    border-color: #4338ca !important;
    color: #fff !important;
}

.simchat-app .btn-indigo:hover,
.btn-indigo:hover {
    background-color: #3730a3 !important;
    border-color: #3730a3 !important;
    color: #fff !important;
}

.simchat-app .btn-indigo:active,
.btn-indigo:active,
.simchat-app .btn-indigo.active,
.btn-indigo.active {
    background-color: #312e81 !important;
    border-color: #312e81 !important;
    color: #fff !important;
}

/* Danger button for AAA contrast */
.simchat-app .btn-danger,
.btn-danger {
    --bs-btn-bg: #7f1d1d;
    --bs-btn-border-color: #7f1d1d;
    --bs-btn-hover-bg: #6b1a1a;
    --bs-btn-hover-border-color: #6b1a1a;
    --bs-btn-active-bg: #5c1717;
    --bs-btn-active-border-color: #5c1717;
    --bs-btn-color: #fff;
    background-color: #7f1d1d !important;
    border-color: #7f1d1d !important;
    color: #fff !important;
}

.simchat-app .btn-danger:hover,
.btn-danger:hover {
    background-color: #6b1a1a !important;
    border-color: #6b1a1a !important;
    color: #fff !important;
}

.simchat-app .btn-danger:active,
.btn-danger:active,
.simchat-app .btn-danger.active,
.btn-danger.active {
    background-color: #5c1717 !important;
    border-color: #5c1717 !important;
    color: #fff !important;
}
    border-color: #312e81 !important;
    color: #fff !important;
}

/* Button states */
button:disabled {
    opacity: 1 !important;
    cursor: not-allowed;
}

/* Ensure disabled primary buttons have white text for readability */
.simchat-app .btn-primary:disabled,
.simchat-app .btn-primary:disabled:hover,
.btn-primary:disabled,
.btn-primary:disabled:hover {
    color: #ffffff !important;
    opacity: 0.65;
}

/* Form checkbox/switch - use consistent colour for reliable contrast with white tick */
.simchat-app .form-check-input:checked,
.form-check-input:checked {
    background-color: #4f46e5;
    border-color: #4f46e5;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

/* White toggle circle when checked (switches) */
.simchat-app .form-switch .form-check-input:checked,
.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}

.simchat-app .form-check-input:focus,
.form-check-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 0.25rem rgba(79, 70, 229, 0.25);
}

/* Navigation */
.navbar-brand img {
    height: 30px;
    width: auto;
    max-height: 30px;
}

.simchat-wordmark {
    color: #000;
}

/* Active nav link color */
.nav-link.active {
    color: #0031cc !important;
}

/* Type badge for scenario types in tables/cards - slate grey, AAA compliant */
.badge-type {
    background-color: #475569 !important;
    color: #ffffff !important;
}

/* Standard link colors */
/* Only apply to content links, not buttons or nav elements */
.simchat-app a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand) {
    color: #0031cc;
}

.simchat-app a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link):not(.navbar-brand):hover {
    color: #003d82;
}

/* Standardized heading sizes */
.simchat-app h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0;
}

.simchat-app h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.simchat-app h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.simchat-app h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Alert boxes - match standard UI font size */
.alert {
    font-size: 1rem;
}

/* Form inputs - remove blue focus glow */
.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
select:focus {
    outline: none !important;
    border-color: #ced4da !important;
    box-shadow: none !important;
}

/* Form switch toggle - use brand colour when checked */
.simchat-app .form-check-input:checked,
.form-check-input:checked {
    background-color: var(--brand-primary, #0031cc);
    border-color: var(--brand-primary, #0031cc);
}

/* White toggle circle when checked */
.simchat-app .form-switch .form-check-input:checked,
.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3c/svg%3e");
}

.simchat-app .form-check-input:focus,
.form-check-input:focus {
    border-color: var(--brand-primary, #0031cc);
    box-shadow: 0 0 0 0.25rem rgba(0, 49, 204, 0.25);
}

/* Override Bootstrap's focus-visible state */
.form-control:focus-visible,
.form-select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none !important;
    border-color: #ced4da !important;
    box-shadow: none !important;
}

/* CKEditor focus states - remove blue glow */
.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused {
    border-color: #ced4da !important;
    box-shadow: none !important;
}

.ck.ck-editor__editable:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
    outline: none !important;
}

.ck-editor .ck-editor__main .ck-content:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove blue outline from CKEditor toolbar on focus */
.ck.ck-toolbar:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Modal header - reduce vertical spacing */
.simchat-app .modal-header {
    padding: 0.75rem 1rem;
}

.simchat-app .modal-header h3.modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Modal body content - consistent with standard heading sizes */
.simchat-app .modal-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-decoration: underline;
}

.simchat-app .modal-body h3:first-child {
    margin-top: 0;
}

.simchat-app .modal-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #0031cc;
}

.simchat-app .modal-body h4:first-child {
    margin-top: 0;
}

.simchat-app .modal-body p {
    font-size: 0.9375rem;
}

/* Input groups - ensure inputs within input-group also lose blue glow */
.input-group .form-control:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
    outline: none !important;
    z-index: 3;
}

.input-group:focus-within {
    box-shadow: none !important;
}

.input-group:focus-within .input-group-text {
    border-color: #ced4da !important;
}

.input-group > .form-control:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Tag input specific - very forceful */
#tagInput,
#tagInput:focus,
#tagInput:focus-visible,
.tag-input-container input:focus,
.tag-input-container .form-control:focus {
    border-color: #ced4da !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Accordion buttons - remove blue hover/focus colors */
.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: inherit;
    box-shadow: none;
}

.accordion-button:hover,
.accordion-button:focus {
    box-shadow: none;
    border-color: inherit;
}

.accordion-button:focus {
    outline: none;
}

.accordion-button i {
    color: inherit !important;
}

/* Accordion table styling - consistent borders, no shadows */
.accordion .card {
    box-shadow: none !important;
    overflow: hidden;
}

.accordion .card-body {
    border-bottom-left-radius: calc(0.5rem - 1px);
    border-bottom-right-radius: calc(0.5rem - 1px);
    overflow: hidden;
}

.accordion .card-body .table-responsive {
    border-radius: 0;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

.accordion .card-body .table {
    margin-bottom: 0 !important;
    box-shadow: none !important;
    border-bottom: none !important;
}

/* Change table row borders to match card border grey */
.accordion .card-body .table thead th,
.accordion .card-body .table tbody td {
    border-color: #dee2e6 !important;
}

/* Remove double border from last table row */
.accordion .card-body .table tbody tr:last-child td {
    border-bottom: none;
}

/* Scenario card view styles */
.scenario-card {
    display: block;
}

.scenario-card .card {
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
}

.scenario-card .card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 160px;
}

.scenario-card .card-footer {
    position: relative;
    z-index: 2;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.scenario-card .card-title {
    font-size: 1rem;
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    padding-right: 10px;
}

.scenario-card .imported-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    height: 16px;
    width: auto;
    z-index: 2;
}

/* Card avatar overlay */
.card-avatar {
    position: absolute;
    bottom: -20px;
    right: -10px;
    height: 120px;
    width: auto;
    z-index: 1;
    opacity: 0.9;
    pointer-events: none;
}

/* Card decorative line art */
.card-decoration {
    position: absolute;
    bottom: -30px;
    right: -20px;
    width: 100px;
    height: 100px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.65;
    background-image: url("../img/decorations/card-decoration.739ac4fa02e2.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.card-decoration-purple {
    background-image: url("../img/decorations/card-decoration-purple.25778879c1e3.svg");
}

.card-decoration-pink {
    background-image: url("../img/decorations/card-decoration-pink.9d7e54590453.svg");
}

.card:hover .card-decoration {
    opacity: 0.85;
    transform: translateX(-8px);
}

/* Larger decorations for chat sidebar */
#chatSidebar .card-decoration {
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -40px;
}

.js-view-toggle.active {
    background-color: var(--bs-primary);
    color: white;
    border-color: var(--bs-primary);
}

.js-card-view {
    flex-wrap: wrap;
}

/* Badge sizing for cards */
.scenario-card .badge.text-xs {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Collection card view styles with stacked effect using box-shadow */
.collection-card {
    display: block;
    position: relative;
    padding-top: 20px;
}

.collection-card .card {
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    background: white;
    display: flex;
    flex-direction: column;
    /* Stacked card effect - white background layers, then border layers */
    box-shadow: 
        0 -10px 0 -1px white,
        0 -10px 0 0 #e5e7eb,
        0 -20px 0 -1px white,
        0 -20px 0 0 #e5e7eb;
}

.collection-card .card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 160px;
}

.collection-card .card-footer {
    position: relative;
    z-index: 2;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.collection-card .card-title {
    font-size: 1rem;
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    padding-right: 10px;
}

.collection-card .badge.text-xs {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
}

/* Alert close button - reduce size and add proper spacing */
.alert .btn-close {
    width: 0.75em;
    height: 0.75em;
    padding: 0.25rem;
    background-size: 0.75em;
    margin-top: 0.25rem;
    margin-right: 0.25rem;
}

/* Landing page hero video - hide controls until hover */
.video-hero::-webkit-media-controls {
    opacity: 0;
    transition: opacity 0.3s;
}

.video-hero:hover::-webkit-media-controls {
    opacity: 1;
}

.video-hero::-webkit-media-controls-enclosure {
    opacity: 0;
    transition: opacity 0.3s;
}

.video-hero:hover::-webkit-media-controls-enclosure {
    opacity: 1;
}

/* =====================================================
   Text-heavy pages (Privacy Policy, Terms, etc.)
   ===================================================== */

/* Container for policy/legal content */
.policy-content,
.bg-body-secondary.p-8 {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f2937;
}

.policy-content p,
.bg-body-secondary.p-8 p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.policy-content h2,
.bg-body-secondary.p-8 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #111827;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.policy-content h2:first-of-type,
.bg-body-secondary.p-8 h2:first-of-type {
    margin-top: 1.5rem;
}

.policy-content article,
.bg-body-secondary.p-8 article {
    margin-bottom: 0.5rem;
}

.policy-content ul,
.bg-body-secondary.p-8 ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.policy-content ul li,
.bg-body-secondary.p-8 ul li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.policy-content strong,
.bg-body-secondary.p-8 strong {
    color: #111827;
    font-weight: 600;
}

.policy-content a,
.bg-body-secondary.p-8 a {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.policy-content a:hover,
.bg-body-secondary.p-8 a:hover {
    color: #1e40af;
}

/* Subsection numbering styling (e.g. 4.1, 4.1.1) */
.policy-content p strong:first-child,
.bg-body-secondary.p-8 p strong:first-child {
    color: #374151;
}

/* Mode selection buttons - responsive styling */
/* Mobile: compact vertical stacking without icons */
@media (max-width: 575px) {
    .mode-buttons-container {
        gap: 0.5rem !important;
        align-items: center;
    }
    
    .mode-buttons-container form {
        max-width: 100% !important;
    }
    
    .mode-button {
        padding: 0.6rem 1rem !important;
        font-size: 0.95rem;
    }
    
    .mode-icon {
        display: none !important;
    }
    
    .mode-small-text {
        font-size: 0.7rem !important;
        line-height: 1.2;
        margin-top: 0.15rem;
    }
}

/* Desktop: larger buttons with centered icons on top */
@media (min-width: 576px) {
    .mode-buttons-container form {
        max-width: 180px !important;
    }
    
    .mode-button {
        padding: 1rem 1.25rem !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .mode-icon {
        font-size: 1.5rem !important;
        display: block !important;
        margin-bottom: 0.5rem !important;
        margin-right: 0 !important;
    }
    
    .mode-small-text {
        font-size: 0.75rem !important;
        margin-top: 0.25rem;
    }
}

/* Stylised double-line underline - hints at line art SVG style with varied lengths and gaps */
.text-underline-brand {
    text-decoration: none;
    background-image: 
        /* Bottom line - 3 segments */
        linear-gradient(var(--brand-primary, #0031cc), var(--brand-primary, #0031cc)),
        linear-gradient(var(--brand-primary, #0031cc), var(--brand-primary, #0031cc)),
        linear-gradient(var(--brand-primary, #0031cc), var(--brand-primary, #0031cc)),
        /* Top line - 2 segments */
        linear-gradient(var(--brand-primary, #0031cc), var(--brand-primary, #0031cc)),
        linear-gradient(var(--brand-primary, #0031cc), var(--brand-primary, #0031cc));
    background-position: 
        /* Bottom line segments */
        5% 100%,
        38% 100%,
        72% 100%,
        /* Top line segments */
        0 calc(100% - 6px),
        55% calc(100% - 6px);
    background-repeat: no-repeat;
    background-size: 
        /* Bottom line segments */
        28% 2px,
        30% 2px,
        25% 2px,
        /* Top line segments */
        50% 2px,
        42% 2px;
    padding-bottom: 4px;
}

/* Feature card line art style */
.card-line-art {
    position: relative;
    overflow: hidden;
}

.card-line-art::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -40px;
    width: 200px;
    height: 180px;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 180'%3E%3Cstyle%3E.line%7Bstroke:%23143CFF;stroke-width:1.5;stroke-linecap:round;fill:none;%7D%3C/style%3E%3Cline class='line' x1='5' y1='170' x2='195' y2='170'/%3E%3Cline class='line' x1='25' y1='158' x2='140' y2='158'/%3E%3Cline class='line' x1='155' y1='158' x2='200' y2='158'/%3E%3Cline class='line' x1='40' y1='146' x2='85' y2='146'/%3E%3Cline class='line' x1='100' y1='146' x2='200' y2='146'/%3E%3Cline class='line' x1='55' y1='134' x2='200' y2='134'/%3E%3Cline class='line' x1='70' y1='122' x2='110' y2='122'/%3E%3Cline class='line' x1='125' y1='122' x2='200' y2='122'/%3E%3Cline class='line' x1='85' y1='110' x2='200' y2='110'/%3E%3Cline class='line' x1='95' y1='98' x2='130' y2='98'/%3E%3Cline class='line' x1='145' y1='98' x2='200' y2='98'/%3E%3Cline class='line' x1='110' y1='86' x2='200' y2='86'/%3E%3Cline class='line' x1='120' y1='74' x2='200' y2='74'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    transform: translateX(0);
    transition: opacity 0.3s ease, transform 0.4s ease;
}

.card-line-art:hover::before {
    opacity: 0.28;
    transform: translateX(-15px);
}

.card-line-art .icon {
    color: var(--brand-primary, #0031cc) !important;
}

/* Animated gradient text effect for key words */
/* Uses LCD gradient colours from line-art effects */
.text-gradient-shimmer {
    background: linear-gradient(
        90deg,
        #FF7DFF 0%,
        #B172FF 25%,
        #6F67FF 50%,
        #5F99FF 75%,
        #36D6FF 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shimmer 8s ease-in-out infinite;
    cursor: default;
}

.text-gradient-shimmer:hover {
    animation: gradient-shimmer-fast 2s linear infinite;
}

@keyframes gradient-shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

@keyframes gradient-shimmer-fast {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Testimonial quote styling */
.testimonial-quote {
    position: relative;
}

.testimonial-quote::before,
.testimonial-quote::after {
    font-family: Georgia, serif;
    font-size: 3rem;
    line-height: 0;
    color: var(--brand-primary, #0031cc);
    opacity: 0.4;
    vertical-align: middle;
}

.testimonial-quote::before {
    content: '"';
    margin-right: 0.15em;
}

.testimonial-quote::after {
    content: '"';
    margin-left: 0.1em;
}

/* Testimonial carousel */
#testimonialCarousel .carousel-inner {
    min-height: 480px;
}

#testimonialCarousel .carousel-item {
    min-height: 480px;
}

@media (min-width: 768px) {
    #testimonialCarousel .carousel-inner,
    #testimonialCarousel .carousel-item {
        min-height: 380px;
    }
}

@media (min-width: 992px) {
    #testimonialCarousel .carousel-inner,
    #testimonialCarousel .carousel-item {
        min-height: 500px;
    }
}

#testimonialCarousel .carousel-indicators button {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

#testimonialCarousel .carousel-indicators button.active {
    opacity: 1;
}

/* Text utility colours for AAA contrast */
.simchat-app .text-success,
.text-success {
    color: #166534 !important;
}

.simchat-app .text-danger,
.text-danger {
    color: #7f1d1d !important;
}

.simchat-app .text-warning,
.text-warning {
    color: #92400e !important;
}

/* Red text variants for AAA contrast */
.simchat-app .text-red-700,
.text-red-700 {
    color: #7f1d1d !important;
}

/* Amber text variants for AAA contrast */
.simchat-app .text-amber-700,
.text-amber-700 {
    color: #92400e !important;
}
