* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background-color: #111111;
    color: #ffffff;
    line-height: 1.6;
    padding-bottom: 120px
}

.rsvp-banner {
    background-color: #e5a726;
    text-align: center;
    padding: 10px 30px;
    position: fixed;
    bottom: 4%;
    right: -40px;
    left: -40px;
    z-index: 1000;
    transform: rotate(2deg);
    font-weight: 700;
    border: 1px solid #FFD833;
    color: #111111;
    text-decoration: none;
    font-size: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.chat-header {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid #222222;
}

.chat-header h1 {
    font-size: 24px;
    font-weight: 300;
}

.chat-container {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    animation: fadeIn 0.4s ease-in;
    margin: 24px 0;
}

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

.user-message {
    justify-content: flex-end;
    flex-direction: column;
    align-items: flex-end;
    flex-wrap: nowrap;
}

.ai-message {
    justify-content: flex-start;
}

.message-bubble {
    padding: 12px 20px;
    border-radius: 28px;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
    word-wrap: break-word;
}

.message-bubble p {
    margin-bottom: 10px;
}
.message-bubble p:last-child {
    margin-bottom: 0;
}

.user-message .message-bubble {
    max-width: max(65%, 300px);
    background-color: #282828;
    color: #ffffff;
    border-top-right-radius: 4px;
}

.user-message .image-list ul {
    list-style: none;
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
.user-message .image-list ul li {
    margin: 0;
}

.user-message .image-list ul li img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.user-message .image {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 40%;
    text-align: center;
}
.user-message .image img {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.ai-message .message-bubble {
    max-width: 90%;
    color: #e0e0e0;
    padding: 5px;
}

.ai-message::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: #833AB4;
    background: linear-gradient(157deg,rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
    border-radius: 50%;
    margin-right: 16px;
    margin-top: 16px;
    flex-shrink: 0;
}

.message-bubble.with-image {
    max-width: 65%;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
    border: none;
}

.message-bubble.with-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 28px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chat-header {
        padding: 20px;
    }

    .chat-header h1 {
        font-size: 20px;
    }

    .chat-container {
        padding: 20px 15px;
        gap: 15px;
    }

    .message-bubble {
        max-width: 85%;
        font-size: 14px;
        padding: 14px 16px;
    }
}

/* Subtle hover effect for bubbles */
.message-bubble {
    transition: transform 0.2s ease;
}

.message-bubble:hover {
    transform: scale(1.01);
}
