/* Custom styles for TripNepalAI */

/* Hero section enhancements with slideshow */
.hero-section {
    position: relative;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Slideshow Styles */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    background-size: cover !important;
    background-position: center !important;
}

.hero-slide.active {
    opacity: 1;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.75) 100%
    );
    z-index: 1;
}

/* Hero Slideshow Navigation */
.hero-slideshow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.hero-slideshow-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero-slideshow-prev {
    left: 30px;
}

.hero-slideshow-next {
    right: 30px;
}

/* Hero Slide Indicators */
.hero-slide-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 1;
}

.hero-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.6);
}

.hero-indicator:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.hero-indicator.active {
    background: #DC143C;
    border-color: #DC143C;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
}

/* Responsive Hero Slideshow */
@media (max-width: 768px) {
    .hero-slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-slideshow-prev {
        left: 15px;
    }
    
    .hero-slideshow-next {
        right: 15px;
    }
    
    .hero-slide-indicators {
        bottom: 20px;
    }
    
    .hero-indicator {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 480px) {
    .hero-slideshow-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .hero-slideshow-prev {
        left: 10px;
    }
    
    .hero-slideshow-next {
        right: 10px;
    }
    
    .hero-slide-indicators {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Package cards */
.package-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.package-card .card-body {
    padding: 1.5rem;
}

/* Rating stars */
.rating-stars {
    color: #ffc107;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

/* Form styling */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Alert styling */
.alert {
    border-radius: 15px;
    border: none;
    padding: 1rem 1.5rem;
}

/* Badge styling */
.badge {
    border-radius: 20px;
    padding: 8px 15px;
    font-weight: 500;
}

/* Navigation enhancements */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Footer styling */
footer {
    margin-top: auto;
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #007bff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(45deg, #007bff, #28a745);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: 20px;
}

/* Rating input styling */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin: 0 2px;
}

.rating-input input:checked ~ .star-label,
.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label {
    color: #ffc107;
}

.rating-input:hover .star-label {
    color: #ddd;
}

/* Package category colors */
.badge.bg-trekking {
    background-color: #28a745 !important;
}

.badge.bg-religious {
    background-color: #17a2b8 !important;
}

.badge.bg-sightseeing {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

/* Reservation status colors */
.badge.bg-pending {
    background-color: #ffc107 !important;
    color: #212529 !important;
}

.badge.bg-completed {
    background-color: #28a745 !important;
}

.badge.bg-cancelled {
    background-color: #dc3545 !important;
} 

/* Nepal-themed custom styles */

/* Hero section enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.3), rgba(0, 123, 255, 0.3));
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Nepal flag colors */
.nepal-red {
    color: #DC143C;
}

.nepal-blue {
    color: #000080;
}

.bg-nepal-red {
    background-color: #DC143C;
}

.bg-nepal-blue {
    background-color: #000080;
}

/* Card enhancements */
.package-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-img-container {
    height: 200px;
    overflow: hidden;
    background-color: #e0e0e0;
    position: relative;
}

.package-card .card-img-top {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.package-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Category badges */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Nepal-themed icons */
.nepal-icon {
    font-size: 2rem;
    color: #DC143C;
}

/* Animated elements */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mountain silhouette decoration */
.mountain-bg {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    z-index: 1;
}

.mountain-bg::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 100'%3E%3Cpath fill='%23e9ecef' d='M0,100 L0,75 L100,60 L200,70 L300,50 L400,65 L500,40 L600,55 L700,30 L800,45 L900,20 L1000,35 L1100,10 L1200,25 L1200,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Prayer flags animation */
.prayer-flags {
    position: relative;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
}

.prayer-flags::before {
    content: '🏔️ 🏔️ 🏔️ 🏔️ 🏔️';
    position: absolute;
    top: -10px;
    left: -100%;
    animation: prayerFlags 8s linear infinite;
    font-size: 1.5rem;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes prayerFlags {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Custom button styles */
.btn-nepal {
    background: linear-gradient(45deg, #DC143C, #000080);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-nepal:hover {
    background: linear-gradient(45deg, #000080, #DC143C);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

/* Image gallery styles */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    position: relative;
    z-index: 1;
}

/* Section spacing fixes */
section {
    position: relative;
    overflow: hidden;
    will-change: auto;
}

section .container {
    position: relative;
    z-index: 2;
}

/* Ensure smooth scrolling */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Prevent transform interference */
.mountain-bg {
    transform: none !important;
    will-change: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #e0e0e0;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Video container styles */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 2rem 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .card-img-container {
        height: 150px;
    }
    .package-card .card-img-top {
        height: 100%;
    }
    
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Loading animation for images */
.image-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Chat page – bubbles, input, chips */
.chat-page { max-width: 720px; margin: 0 auto; min-height: calc(100vh - 200px); display: flex; flex-direction: column; }
.chat-header { border-bottom: 1px solid #dee2e6; padding: 1rem 0; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem 0; min-height: 280px; }
.chat-bubble { max-width: 85%; padding: 0.6rem 1rem; border-radius: 1rem; margin-bottom: 0.5rem; word-wrap: break-word; }
.chat-bubble.bot { align-self: flex-start; color: #212529; border-bottom-left-radius: 0.25rem; border-left: 3px solid #000080; padding-left: 0.75rem; }
.chat-bubble.user { align-self: flex-end; background: var(--bs-primary, #0d6efd); color: #fff; border-bottom-right-radius: 0.25rem; margin-left: auto; }

/* Itinerary tree – hierarchy inside bot bubbles (markdown-rendered) */
.chat-bubble--itinerary { max-width: 95%; }
.chat-bubble-content { font-size: 0.95rem; line-height: 1.5; }
.chat-bubble-content > *:first-child { margin-top: 0; }
.chat-bubble-content > *:last-child { margin-bottom: 0; }
.chat-bubble-content p { margin: 0.35em 0; }
.chat-bubble-content h2,
.chat-bubble-content h3 { font-size: 1.05rem; font-weight: 700; color: #0d6efd; margin: 0.75em 0 0.4em; padding-left: 0.5rem; border-left: 3px solid #0d6efd; }
.chat-bubble-content h3 { font-size: 1rem; }
.chat-bubble-content h4 { font-size: 0.95rem; font-weight: 600; color: #495057; margin: 0.6em 0 0.3em; padding-left: 0.75rem; border-left: 2px solid #adb5bd; }
.chat-bubble-content strong { color: #212529; }
.chat-bubble-content ul { margin: 0.35em 0; padding-left: 1.25rem; list-style: none; }
.chat-bubble-content ul li { position: relative; padding-left: 0.6rem; margin: 0.2em 0; }
.chat-bubble-content ul li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 4px; height: 4px; border-radius: 50%; background: #6c757d; }
.chat-bubble-content ul ul { margin-left: 0.5rem; padding-left: 1rem; border-left: 1px solid #dee2e6; }
.chat-bubble-content ol { margin: 0.35em 0; padding-left: 1.5rem; }
.chat-bubble-content ol li { margin: 0.2em 0; }
.chat-bubble-content table { width: 100%; margin: 0.6em 0; border-collapse: collapse; font-size: 0.9em; }
.chat-bubble-content th,
.chat-bubble-content td { border: 1px solid #dee2e6; padding: 0.35rem 0.5rem; text-align: left; }
.chat-bubble-content th { background: rgba(13, 110, 253, 0.1); font-weight: 600; }
.chat-bubble-content tr:nth-child(even) { background: rgba(0,0,0,0.03); }
.chat-bubble-content hr { border: none; border-top: 1px solid #dee2e6; margin: 0.75em 0; }
.chat-bubble-content blockquote { margin: 0.5em 0; padding-left: 0.75rem; border-left: 3px solid #adb5bd; color: #6c757d; font-size: 0.9em; }
.chat-messages .d-flex { display: flex !important; }
.chat-input-wrap { padding: 0.75rem 0; border-top: 1px solid #dee2e6; }
.chat-input-group { display: flex; gap: 0.5rem; align-items: flex-end; }
.chat-input-group input { flex: 1; border-radius: 1.5rem; padding: 0.6rem 1rem; border: 1px solid #ced4da; }
.chat-input-group input:focus { outline: none; border-color: var(--bs-primary, #0d6efd); box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25); }
.chat-btn { width: 44px; height: 44px; border-radius: 50%; border: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.chat-btn-mic { background: #e9ecef; color: #495057; }
.chat-btn-mic:hover { background: #dee2e6; }
.chat-btn-send { background: var(--bs-primary, #0d6efd); color: #fff; }
.chat-btn-send:hover { background: #0b5ed7; }
.chat-btn-send:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.chat-chip { padding: 0.4rem 0.9rem; border-radius: 1.5rem; background: #f8f9fa; border: 1px solid #dee2e6; color: #495057; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
.chat-chip:hover { background: #e9ecef; border-color: var(--bs-primary, #0d6efd); color: var(--bs-primary, #0d6efd); }
.chat-typing { padding: 0.6rem 1rem; color: #6c757d; font-style: italic; }
.chat-error { padding: 0.6rem 1rem; background: #f8d7da; color: #842029; border-radius: 1rem; margin-bottom: 0.5rem; align-self: flex-start; }
@media (max-width: 576px) {
    .chat-bubble { max-width: 92%; }
    .chat-input-group { flex-wrap: wrap; }
    .chat-input-group input { min-width: 0; }
}

/* Header chat icon (navbar right) */
.nav-link-icon { padding: 0.4rem 0.6rem !important; font-size: 1.2rem; }
.nav-link-icon:hover { opacity: 0.9; }

/* Floating chat button – bottom right */
.chat-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bs-primary, #0d6efd);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    z-index: 1030;
    transition: transform 0.2s, box-shadow 0.2s;
}
.chat-fab:hover {
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Small chat box widget (bottom right) */
.chat-box-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1025;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}
.chat-box-backdrop--open {
    opacity: 1;
    visibility: visible;
}
.chat-box-widget {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    width: 360px;
    max-width: calc(100vw - 2rem);
    height: 480px;
    max-height: calc(100vh - 8rem);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1031;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.chat-box-widget--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.chat-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 0.95rem;
}
.chat-box-close {
    background: none;
    border: none;
    color: inherit;
    padding: 0.25rem;
    cursor: pointer;
    opacity: 0.9;
}
.chat-box-close:hover { opacity: 1; }
.chat-box-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #eee;
}
.chat-box-chips .chat-chip { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
.chat-box-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    min-height: 0;
}
.chat-box-messages .chat-bubble { max-width: 90%; font-size: 0.9rem; padding: 0.5rem 0.85rem; }
.chat-box-input-wrap {
    display: flex;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid #dee2e6;
    align-items: center;
}
.chat-box-input-wrap .form-control { border-radius: 1.25rem; padding: 0.5rem 0.85rem; font-size: 0.9rem; }
.chat-box-input-wrap .chat-btn { width: 38px; height: 38px; font-size: 0.95rem; }
@media (max-width: 400px) {
    .chat-box-widget { right: 0.5rem; left: 0.5rem; width: auto; bottom: 5rem; height: 420px; }
}

/* Homepage Chatbot wrapper & modal styles */
.chatbot-wrapper {
    display: block;
    width: 100%;
}

.chatbot-card {
    height: 500px;
    max-width: 500px;
    width: 100%;
    transition: all 0.3s ease-out;
}

/* Modal Open State */
body.chatbot-modal--open .chatbot-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease-out;
}

body.chatbot-modal--open .chatbot-card {
    width: min(720px, 92vw) !important;
    height: min(600px, 85vh) !important;
    max-width: none !important;
    max-height: none !important;
    z-index: 1051;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

/* Entrance Animation */
@keyframes fadeInBackdrop {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleUpModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

body.chatbot-modal--open .chatbot-wrapper {
    animation: fadeInBackdrop 0.3s ease-out forwards;
}

body.chatbot-modal--open .chatbot-card {
    animation: scaleUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Closing State (Smooth Fade-out) */
body.chatbot-modal--closing .chatbot-wrapper {
    animation: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-out !important;
}

body.chatbot-modal--closing .chatbot-card {
    animation: none !important;
    opacity: 0 !important;
    transform: scale(0.9) !important;
    transition: all 0.3s ease-out !important;
}

/* Close Button Styling */
.chatbot-close-btn {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 0.5rem;
    transition: color 0.2s;
}

.chatbot-close-btn:hover {
    color: white;
}

body.chatbot-modal--open .chatbot-close-btn {
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 479.98px) {
    body.chatbot-modal--open .chatbot-card {
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        border: none !important;
    }
}


 