.grecaptcha-badge {
    visibility: hidden;
}

/* Markdown table styles */
.message-bubble table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5em 0;
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
}
.message-bubble th,
.message-bubble td {
    border: 1px solid #e2e8f0;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}
.message-bubble th {
    background: #f8fafc;
    font-weight: 600;
}

.custom-scrollbar {
    overscroll-behavior: contain;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Horizontal scrollbar for welcome suggestions */
.custom-scrollbar-horizontal {
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-scrollbar-horizontal::-webkit-scrollbar {
    display: none;
}

/* Suggestion chips */
.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E40AF;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.suggestion-chip:hover {
    background: linear-gradient(135deg, #DBEAFE 0%, #BFDBFE 100%);
    border-color: #93C5FD;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.suggestion-chip:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#suggestionsChips::after {
    content: '';
    width: 0.5rem;
    flex-shrink: 0;
}

.suggestion-chip .emoji {
    font-size: 1rem;
}


/* Animation for typing indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
}

.typing-dot {
    height: 6px;
    width: 6px;
    border-radius: 50%;
    background-color: #9CA3AF;
    display: inline-block;
    margin: 0 1px;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

.text-sm p {
    margin: 0;
    line-height: 1.4;
}

.text-sm p+p {
    margin-top: 0.5rem;
}

.text-sm strong,
.text-sm b {
    font-weight: 600;
}

.text-sm em,
.text-sm i {
    font-style: italic;
}

.text-sm code {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875em;
}

.text-sm pre {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    border-radius: 0.25rem;
    overflow-x: auto;
    margin: 0.25rem 0;
}

.text-sm pre code {
    background: none;
    padding: 0;
}

.text-sm ul,
.text-sm ol {
    margin: 0.25rem 0;
    padding-left: 1.25rem;
}

.text-sm li {
    margin: 0.125rem 0;
}

.text-sm blockquote {
    border-left: 2px solid rgba(0, 0, 0, 0.2);
    padding-left: 0.5rem;
    margin: 0.25rem 0;
    font-style: italic;
}

.text-sm a {
    color: inherit;
    text-decoration: underline;
    opacity: 0.8;
}

.text-sm h1,
.text-sm h2,
.text-sm h3,
.text-sm h4,
.text-sm h5,
.text-sm h6 {
    font-weight: 600;
    margin: 0.25rem 0;
}


.shake-on-hover:hover {
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-20deg);
    }

    40% {
        transform: rotate(20deg);
    }

    60% {
        transform: rotate(-20deg);
    }

    80% {
        transform: rotate(20deg);
    }
}

/* Mobile responsive fixes */
@media (max-width: 640px) {
    #chatContainer:not(.in-iframe) {
        max-width: 100% !important;
    }
}

/* Iframe specific overrides to blend with parent */
#chatContainer.in-iframe {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

#chatContainer.in-iframe #historySidebar {
    position: absolute;
}

@media screen and (-webkit-min-device-pixel-ratio:0) {

    select:focus,
    textarea:focus,
    input:focus {
        font-size: 16px !important;
    }
}

@media screen and (-webkit-min-device-pixel-ratio:0) {

    select:focus,
    textarea:focus,
    input:focus {
        font-size: 16px !important;
    }
}

/* Date Divider */
.date-divider {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
    position: relative;
}

.date-divider span {
    background-color: #ffffff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #6B7280;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
    z-index: 1;
}

/* Standard Markdown List Styling - Professional & Simple */
.message-bubble ul {
    list-style: disc !important;
    padding-left: 1.25rem !important;
    margin: 0.5rem 0 !important;
}

.message-bubble ol {
    list-style: decimal !important;
    padding-left: 1.25rem !important;
    margin: 0.5rem 0 !important;
}

.message-bubble li {
    margin-bottom: 0.25rem !important;
    color: inherit !important;
    font-weight: normal !important;
}

/* Specific Suggestion Card Component */
.suggestion-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.suggestion-card {
    width: 100%;
    margin: 0.5rem 0 !important;
    padding: 0.75rem 1rem !important;
    background-color: rgba(239, 246, 255, 0.5) !important;
    border-radius: 0.75rem !important;
    color: #2563EB !important;
    font-weight: 600 !important;
    border: 1px solid rgba(191, 219, 254, 0.5) !important;
    transition: all 0.2s !important;
}

.suggestion-card:before {
    display: none !important;
    /* Remove bullet from buttons */
}

.suggestion-card:hover {
    background-color: #EFF6FF !important;
    border-color: #BFDBFE !important;
}