/* --- Chat Input Area --- */
.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.chat-input-area textarea {
    flex: 1;
    width: auto;
    padding: 0.8rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
    transition: all 0.2s;
    resize: none;
    min-height: 50px;
    max-height: 150px;
}

.chat-input-area textarea:focus {
    background: white;
    border-color: var(--primary-sky);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.1);
}

.chat-input-area button#send-btn {
    position: static;
    background: linear-gradient(135deg, var(--primary-sky), var(--primary-green));
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-input-area button#send-btn:hover {
    transform: scale(1.1);
}

/* Ensure Chat Input Area handles multiple buttons */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-top: 1px solid #f1f5f9;
}

/* Adjust textarea to flex properly */
#user-input {
    flex: 1;
}

/* Send Button tweak to match size if needed */
#send-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* --- Notifications & Features --- */
.prompt-guide-container {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 5px;
}

.icon-btn.info-trigger-btn {
    background: #f1f5f9;
    border: none;
    color: #64748b;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.icon-btn.info-trigger-btn:hover {
    background: #e2e8f0;
    color: var(--primary-sky);
    transform: scale(1.05);
}

.info-banner {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 320px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e2e8f0;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: block;
}

.info-banner.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.info-banner::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    transform: rotate(45deg);
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.banner-arrow {
    display: none;
}

.info-banner.active {
    opacity: 1;
    transform: translateY(0);
}

.info-banner.hidden {
    display: none;
}

/* Pulse Notification */
.notification-tooltip {
    position: absolute;
    bottom: 65px;
    left: 5px;
    background: var(--primary-sky);
    color: var(--dark-blue);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    pointer-events: none;
    animation: fadeIn 0.5s ease;
    white-space: nowrap;
    z-index: 101;
}

.notification-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--primary-sky);
}

.notification-tooltip.visible {
    opacity: 1;
}

.notification-tooltip.hidden {
    opacity: 0;
    transition: opacity 0.3s;
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid var(--primary-sky);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

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

/* Image Background Fade-In Animation */
.bg-image-fade-in {
    animation: imageFadeIn 0.8s ease-in forwards;
}

@keyframes imageFadeIn {
    from {
        opacity: 0.2;
        filter: blur(5px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* --- Budget Exceeded Inline Card --- */
#budget-exceeded-modal {
    display: none;
    margin-bottom: 12px;
    animation: slideUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
#budget-exceeded-modal.active {
    display: block;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.budget-inline-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.budget-inline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.budget-inline-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.budget-inline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}
.budget-inline-body {
    text-align: left;
}
.budget-inline-message {
    color: #94a3b8;
    font-size: 0.95rem;
    margin: 0 0 4px 0;
}
.budget-inline-message .budget-overage-value {
    color: #ef4444;
    font-weight: 700;
}
.budget-inline-sub {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0 0 14px 0;
}
.budget-inline-sub span {
    color: #e2e8f0;
    font-weight: 600;
}
.budget-activity-list {
    display: none;
    margin-bottom: 14px;
}
.budget-activity-list.expanded {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}
.budget-list-hint {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 8px;
}
.budget-activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(148, 163, 184, 0.08);
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.budget-activity-item:hover {
    background: rgba(148, 163, 184, 0.16);
}
.budget-activity-item input[type="checkbox"] {
    accent-color: #4ecdc4;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}
.budget-activity-item label {
    color: #e2e8f0;
    font-size: 0.9rem;
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.budget-activity-item .activity-price {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}
.budget-inline-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.budget-inline-actions .auth-btn {
    flex: 1;
    min-width: 140px;
}
.budget-confirm-remove {
    width: 100%;
    margin-top: 10px;
    display: none;
}
.budget-confirm-remove.visible {
    display: inline-flex;
}

/* --- NEW BUTTON STYLES --- */

/* Save Trip Button in Chat Input */
#save-trip-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0 20px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 8px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

#save-trip-btn.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    display: inline-flex;
}

#save-trip-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

#save-trip-btn:active {
    transform: scale(0.95);
}

#save-trip-btn .btn-text { display: inline; }
#save-trip-btn .btn-icon { font-size: 0.9rem; }

/* Share Trip Button in Chat Input */
#share-trip-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0 20px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-right: 8px;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

#share-trip-btn.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
    display: inline-flex;
}

#share-trip-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

#share-trip-btn:active {
    transform: scale(0.95);
}

#share-trip-btn .btn-text { display: inline; }
#share-trip-btn .btn-icon { font-size: 0.9rem; }

/* Modify Search Button in Chat */
.modify-search-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    margin-top: 5px;
}

.modify-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.modify-search-btn i {
    font-size: 0.9rem;
}

/* Modify Search Button - visible with dark styling */
.modify-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--dark-blue, #0f172a), #334155);
    color: #ffffff !important;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
    margin-top: 6px;
}

.modify-search-btn:hover {
    background: linear-gradient(135deg, #334155, var(--dark-blue, #0f172a));
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.35);
    transform: translateY(-1px);
}