/* ai-planner.css - Modern, Clean & Minimalist Style */

.ai-planner-container {
    font-family: 'Poppins', sans-serif;
}

.vintage-calligraphy-title {
    font-family: 'Georgia', serif; 
    font-size: 5rem; 
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

.ai-banner {
    position: relative;
    padding: 120px 0;
    background-size: cover !important;
    background-position: center bottom !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important; /* Fixed can sometimes cause blurriness */
    image-rendering: -webkit-optimize-contrast; /* Sharpens the image */
}

/* Modern Panel Styles */
.chat-container, .interaction-panel {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 75vh;
    min-height: 600px;
}

/* Chat Messages Area */
.chat-messages {
    background-color: #ffffff !important;
    padding: 2rem !important;
}

/* Typography & Bubbles */
.chat-bubble {
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    word-wrap: break-word;
    letter-spacing: 0.2px;
}

.chat-user {
    background-color: #1a1a1a !important; /* Modern dark gray/black instead of standard blue */
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.chat-ai {
    background-color: #f8f9fa !important; 
    color: #333333 !important;
    border: 1px solid #f1f3f5 !important;
    border-radius: 18px 18px 18px 4px !important;
    box-shadow: none !important;
}

/* AI Chat Links - Softer Blue */
.ai-chat-link {
    color: #4a90e2 !important;
    text-decoration: none !important;
    border-bottom: 1.2px dashed rgba(74, 144, 226, 0.4) !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
    padding: 0 1px;
}

.ai-chat-link:hover {
    color: #2163e8 !important;
    border-bottom-color: #2163e8 !important;
    background-color: rgba(74, 144, 226, 0.05) !important;
}

.ai-avatar {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
}

/* Input Styles */
.chat-input {
    background-color: #ffffff !important;
    border-top: 1px solid #f1f3f5 !important;
    padding: 1.5rem !important;
}

.chat-input .form-control {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    box-shadow: none !important;
    border-radius: 16px !important;
    padding: 1.6rem 1.75rem; /* Increased vertical padding (from 1.25 to 1.6) */
    padding-right: 4.8rem; /* Slightly increased button spacing */
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.chat-input .form-control::placeholder {
    color: #adb5bd !important; /* Much lighter gray than standard black */
    font-size: 0.9rem !important; /* Smaller than original */
    font-weight: 300; /* Thinner/more elegant */
    opacity: 0.8 !important; /* Added transparency */
}

.chat-input .form-control:focus {
    background-color: #ffffff;
    border-color: #d0d5db;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.03) !important;
}

.send-btn {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: none !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important; /* Slightly rounded to match input field */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s; /* Animation removed */
}

.send-btn svg {
    margin-left: -2px; 
    margin-top: 2px;
    pointer-events: none; /* Ensure click hits the button */
}

.send-btn:hover {
    background-color: #333333 !important;
    /* Transform (scale/bounce) animation removed */
}

/* Animations */
.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #adb5bd;
    border-radius: 50%;
    margin: 0 2px;
    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); }
}

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

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

/* Contact Form Overrides */
.ai-form-input {
    padding: 0.85rem 1rem !important;
    font-size: 0.95rem !important;
    color: #333333;
    transition: all 0.3s;
}

.ai-form-input:focus {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
}

.ai-form-input::placeholder {
    color: #adb5bd !important;
    font-size: 0.85rem !important;
    font-weight: 300;
    opacity: 0.65 !important;
}

/* Tour Cards */
.ai-tour-card {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f3f5 !important;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important;
    animation: fadeIn 0.4s ease forwards;
    image-rendering: -webkit-optimize-contrast; /* Sharpens tour thumbnails */
}

.ai-tour-card:hover {
    transform: translateY(-3px); /* Softer lift */
    box-shadow: 0 8px 16px rgba(0,0,0,0.05) !important; /* Reduced shadow intensity */
    border-color: #e9ecef !important;
}

/* Online Indicator */
.online-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #198754;
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(25, 135, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}
/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar, 
#tour-cards-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track, 
#tour-cards-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb, 
#tour-cards-container::-webkit-scrollbar-thumb {
    background: #e9ecef;
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover, 
#tour-cards-container::-webkit-scrollbar-thumb:hover {
    background: #dee2e6;
}
