body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom right, #e0f2fe, #bbdefb);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #1a202c;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
    background: linear-gradient(to bottom right, #1a202c, #2d3748);
    color: #e2e8f0;
}

.header-title-container {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
}

.logo-svg {
    width: 28px;
    height: 28px;
    stroke: #3b82f6; 
    transition: stroke 0.3s ease;
}

body.dark .logo-svg {
    stroke: #63b3ed; 
}

.gradient-text {
    font-size: 1.75rem; 
    font-weight: 700;
    background: linear-gradient(45deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.chat-container {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 768px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 600px;
    max-height: 90vh;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

body.dark .chat-container {
    background-color: #2d3748;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: #f0f4f8;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark .chat-header {
    background-color: #1a202c;
    border-bottom-color: #4a5568;
    color: #e2e8f0;
}

.chat-header h1 {
    color: #3b82f6;
    transition: color 0.3s ease;
}

body.dark .chat-header h1 {
    color: #63b3ed;
}

.filter-bar {
    padding: 0.75rem 1.5rem;
    background-color: #f0f4f8;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    align-items: center;
}
body.dark .filter-bar {
    background-color: #1a202c;
    border-bottom-color: #4a5568;
}
.filter-bar select {
    flex-grow: 1;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
}
body.dark .filter-bar select {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #e5e7eb;
}
.filter-bar button {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.filter-bar button:hover {
    background-color: #f3f4f6;
}
body.dark .filter-bar button {
    background-color: #4b5563;
    border-color: #6b7280;
    color: #e5e7eb;
}
body.dark .filter-bar button:hover {
    background-color: #6b7280;
}


.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: #f8fafc;
    transition: background-color 0.3s ease;
}

body.dark .chat-messages {
    background-color: #242a34;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

.user-message {
    background-color: #3b82f6;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.bot-message {
    background-color: #e2e8f0;
    color: #1a202c;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

body.dark .bot-message {
    background-color: #4a5568;
    color: #e2e8f0;
}

.suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-self: flex-start;
    padding-left: 0.5rem;
}

.prompt-link {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    color: #3b82f6;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 0.875rem;
}

.prompt-link:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
}

body.dark .prompt-link {
    background-color: #374151;
    border-color: #4b5563;
    color: #93c5fd;
}

body.dark .prompt-link:hover {
    background-color: #4b5563;
    border-color: #60a5fa;
}

.typing-indicator-bubble {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #e2e8f0;
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
}

body.dark .typing-indicator-bubble {
    background-color: #4a5568;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #94a3b8;
    border-radius: 50%;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

body.dark .typing-dot {
    background-color: #cbd5e1;
}

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

.typing-dot:nth-child(3) {
    animation-delay: -0.8s;
}

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

#flight-results-container.bot-message {
    background-color: transparent; 
    padding: 0;
    max-width: 100%; 
}

.flight-card-final {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
body.dark .flight-card-final {
    background-color: #374151;
    border-color: #4b5563;
}

.flight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.125rem;
    font-weight: 600;
}
body.dark .flight-card-header {
    color: #e2e8f0;
}

.flight-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #475569;
}
body.dark .flight-card-body {
    color: #94a3b8;
}

.flight-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}
body.dark .flight-card-footer {
    border-top-color: #4b5563;
}

.flight-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #16a34a;
}
body.dark .flight-price {
    color: #4ade80;
}

.book-btn-final {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.book-btn-final:hover {
    background-color: #2563eb;
}


.booking-card {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin-top: 0.5rem;
    border: 1px solid #cbd5e1;
}

body.dark .booking-card {
    background-color: #3d4858;
    border-color: #4a5568;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
}

.cancel-btn {
    background-color: #ef4444;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
    border: none;
}

.cancel-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

.chat-input-area {
    display: flex;
    padding: 1.5rem;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

body.dark .chat-input-area {
    background-color: #2d3748;
    border-top-color: #4a5568;
}

.chat-input-area input, .form-input {
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease, color 0.3s ease;
    background-color: #ffffff;
    color: #1a202c;
    width: 100%;
    box-sizing: border-box;
}

.chat-input-area input {
    flex-grow: 1;
    margin-right: 1rem;
}

body.dark .chat-input-area input, body.dark .form-input {
    background-color: #3d4858;
    border-color: #4a5568;
    color: #e2e8f0;
}

.chat-input-area input:focus, .form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.chat-input-area button {
    background-color: #3b82f6;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out, transform 0.2s ease-in-out;
    cursor: pointer;
    border: none;
}
.chat-input-area button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

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

.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.3s ease-out;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark .modal-content {
    background-color: #2d3748;
    color: #e2e8f0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

body.dark .modal-header {
    border-bottom-color: #4a5568;
}

.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: #000;
}

body.dark .close-button {
    color: #cbd5e1;
}

body.dark .close-button:hover,
body.dark .close-button:focus {
    color: #ffffff;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.booking-card h3 {
    color: #3b82f6;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

body.dark .booking-card h3 {
    color: #63b3ed;
}

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

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideIn 0.3s ease-out, fadeOut 0.5s ease-in 3.5s forwards;
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.form-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.passenger-count-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.passenger-count-input {
    width: 5rem;
}

.passenger-names-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.submit-button {
    background-color: #2563eb;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #1d4ed8;
}

.validation-message {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    height: 1rem;
}

.payment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.payment-form-grid label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.card-number-wrapper, .card-name-wrapper {
    grid-column: 1 / -1; 
}

.hidden {
    display: none !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
}

.header-action-btn {
    background-color: #f1f5f9; 
    color: #64748b; 
    border: 1px solid #e2e8f0;
    border-radius: 9999px; 
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.header-action-btn:hover {
    background-color: #e2e8f0;
    color: #334155;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

body.dark .header-action-btn {
    background-color: #374151;
    color: #9ca3af;
    border-color: #4b5563;
}

body.dark .header-action-btn:hover {
    background-color: #4b5563;
    color: #e5e7eb;
    border-color: #6b7280;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-action-btn i {
    font-size: 1rem;
}
