﻿html, body {
    height: 100%;
    margin: 0;
}

body {
    position: relative;
    z-index: 0;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}



svg {
    transform: translateZ(0);
    will-change: fill;
}

.tyn-chat-form-textarea {
    width: 100%;
    min-height: 38px;
    padding: 10px;
    margin-right: 20px;
    border: 0;
    border-style: none;
    border-width: 0;
    border-color: transparent;
    border-radius: 0.25rem;
    background-color: #e9ecef;
    color: #212529;
    font-size: 0.875rem;
    outline: none;
    box-shadow: none;
    resize: vertical;
    transition: all 0.3s ease;
}

.tyn-chat-form-textarea:focus {
    border: 0;
    border-style: none;
    border-width: 0;
    border-color: transparent;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.tyn-chat-form-enter {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.sticky-assistant {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tyn-reply-text {
    color: #fff;
}

.tyn-reply-text a {
    color: inherit;
    text-decoration: underline;
}

.tyn-reply-link a,
.tyn-reply-link a:visited {
    color: #fff !important;
}

.tyn-reply-text p {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.tyn-reply-text ul {
    margin-top: 0px !important;
    margin-bottom: 15px !important;
    list-style: disc !important;
    padding-left: 1.2rem !important;
    display: block !important;
}

.tyn-reply-text li {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
    display: list-item !important;
}

/* Ensure full height layout for the chat body */
.tny-chat-body {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    overflow: hidden; 
}

/* Scrollable chat content area */
.tny-chat-content {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important; 
}

/* Prompt area stays at bottom */
.tny-chat-prompt {
    flex-shrink: 0 !important;
    z-index: 10 !important;
    background: white; 
}

/* Full-width form inside the prompt */
.tyn-chat-form {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

/* Ensure the inner row stretches but aligns left */
.tyn-chat-form .row {
    width: 100%;
    max-width: none;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Match Contact Section styling */
.tyn-chat-form .bg-transparent {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.rate-card {
    min-width: 325px;
    max-width: 325px;
}

.rate-category {
    white-space: normal;
    overflow: visible !important;

}

@media (max-width: 576px) {
    .suggestion-button {
        width: 100%;
    }
}

.dynamic-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0.75rem;
    min-width: 40px;
    min-height: 40px;
    color: #fff !important;
    border: 2px solid #dee2e6 !important;
}

/* Dark mode adjustment */
[data-bs-theme="dark"] .dynamic-circle
{
    background-color: #343a40;
    color: #fff !important;
    border: 1px solid #495057 !important;
}

.modal {
    z-index: 9998 !important;
    position: fixed;
}

.modal-backdrop {
    z-index: 9997 !important;
}

.no-spinners::-webkit-inner-spin-button,
.no-spinners::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.no-spinners {
    -moz-appearance: textfield;
}

.dot-typing {
    display: inline-block;
    white-space: nowrap;
    vertical-align: middle;
    min-width: 20px;
}

.dot-typing::after {
    content: '';
    display: inline-block;
    animation: dot-flash 1.5s infinite steps(3, start);
}

@keyframes dot-flash {
    0% {
        content: ' ';
    }

    33% {
        content: '. ';
    }

    66% {
        content: '. .';
    }

    100% {
        content: '. . .';
    } 
}

.powered-by {
    padding-bottom: 15px;
    font-size: 0.8rem;
}

.powered-logo {
    max-height: 40px;
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.image-link:hover {
    color: #2f3034 !important;
}

[data-bs-theme=dark] .image-link:hover {
    color: #fff !important;
}

/* Active Chats Display Over Chat Icon (#) */
.badge-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.chat-badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(45%,-45%);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font: 700 12px/18px system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

.big-toggle-icon {
    font-size: 1.5rem; 
    line-height: 1;
    margin-top: -4px; 
    margin-bottom: -4px; 
}

@media (min-width:992px) {
    .chat-badge {
        min-width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 13px;
    }
}

.btn-primary {
    background-color: var(--color-secondary-65);
    border: none;
    color: #fff;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: var(--color-secondary-65);
    filter: brightness(1.30);
    color: #fff;
}

.btn-primary:active,
.btn-primary.active,
.btn-primary.show,
.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary {
    background-color: var(--color-secondary-65) !important;
    color: #fff !important;
    border: none !important;
    transform: scale(0.98);
}

.btn-primary:focus,
.btn-primary:focus-visible {
    background-color: var(--color-secondary-65);
    color: #fff;
    box-shadow: none;
    outline: none;
}

.btn-secondary {
    background: #6b7280;
    border: none;
    color: #fff;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-secondary:hover {
    background: #7c8594;
    color: #fff;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-light {
    background: #9ca3af;
    border: none;
    color: #fff;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn-light:hover {
    background: #b0b7c3;
    color: #fff;
}

.btn-light:active,
.btn-light.active,
.btn-light.show,
.btn-check:checked + .btn-light,
.btn-check:active + .btn-light {
    background: #8f97a3 !important;
    color: #fff !important;
    border: none !important;
}

.btn-light:focus,
.btn-light:focus-visible {
    color: #fff;
    box-shadow: none; 
}

/* Base */
.suggestion-button {
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

/* LIGHT THEME */
.suggestion-button-light {
    backdrop-filter: blur(6px);
    background-color: rgba(255,255,255,0.8);
    color: var(--color-secondary-65);
    border: 1px solid var(--color-secondary-65);
}

.suggestion-button-light:hover {
    background-color: var(--color-secondary-65);
    color: #fff;
    transform: translateY(-1px);
}

.suggestion-button-light:active {
    transform: scale(0.98);
}

/* DARK THEME */
.suggestion-button-dark {
    background-color: rgba(255,255,255,0.8);
    color: var(--color-secondary-65);
    border: 1px solid var(--color-secondary-65);
}

.suggestion-button-dark:hover {
    background-color: var(--color-secondary-65);
    color: #fff;
    transform: translateY(-1px);
}

.suggestion-button-dark:active {
    transform: scale(0.98);
}

/* WELCOME PAGE */
.hero-text {
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: var(--color-secondary);
}

.chat-icon i {
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #555555;
    transition: color 0.15s ease;
}

.chat-card {
    background: #f8f9fa;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    color: #555555;
    transition: color 0.15s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-secondary-20);
}

.chat-card:hover {
    transition: all 0.3s ease;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
    color: var(--color-secondary);
}

.chat-card:hover .chat-icon i {
    color: var(--color-secondary);
}

.chat-card:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.chat-card p {
    transition: text-shadow 0.15s ease;
}

#welcomeTextArea::placeholder {
    color: #555555;
}

@keyframes subtleGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.0);
    }

    50% {
        box-shadow: 0 0 12px 2px var(--color-secondary-20);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.0);
    }
}

#welcomeTextArea {
    animation: subtleGlow 3s ease-in-out infinite;
}

/* GLASS CHAT PILL BUTTONS */
.btn-chat {
    background: linear-gradient( 180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08) );
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--color-secondary-20);
    color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, color 0.15s ease;
}

.btn-chat:hover {
    background: var(--color-secondary);
    color: #fff;
    transform: translateY(-1px);
}

.btn-chat:active {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-chat svg {
    fill: currentColor;
}

[data-bs-theme=dark] .btn-chat {
    background: linear-gradient( 180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.20) );
    backdrop-filter: blur(8px) saturate(140%);
    -webkit-backdrop-filter: blur(8px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--color-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}

[data-bs-theme=dark] .btn-chat:hover {
    background: var(--color-secondary-20);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.08);
    transform: translateY(-1px);
}