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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #FFC631 0%, #FFB800 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.chat-container {
    max-width: 750px;
    width: 100%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 90vh;
    max-height: 850px;
}

/* Header Styles */
.chat-header {
    background: linear-gradient(135deg, #FFC631 0%, #FFB800 100%);
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
}

.header-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
}

.menu-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 30px 24px;
    background: #f8f9fa;
}

.message {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    animation: slideIn 0.3s ease;
}

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 198, 49, 0.3);
    }
}

.bot-message {
    align-items: flex-start;
}

.user-message {
    flex-direction: row-reverse;
}

.message-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #FFC631 0%, #FFB800 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 198, 49, 0.4);
}

.user-message .message-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3);
}

.message-content {
    background: white;
    padding: 18px 22px;
    border-radius: 16px;
    max-width: 75%;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    line-height: 1.7;
    font-size: 15px;
    color: #374151;
}

.user-message .message-content {
    background: linear-gradient(135deg, #FFC631 0%, #FFB800 100%);
    color: #1f2937;
    box-shadow: 0 4px 16px rgba(255, 198, 49, 0.4);
}

.message-content p {
    margin-bottom: 10px;
    line-height: 1.7;
    color: #374151;
    font-size: 15px;
}

.user-message .message-content p {
    color: #1f2937;
}

.message-content p:last-of-type {
    margin-bottom: 0;
}

/* Formatting styles for bot responses */
.message-content strong {
    color: #1f2937;
    font-weight: 600;
    font-size: 15.5px;
}

.user-message .message-content strong {
    color: #1f2937;
    font-weight: 700;
}

.message-content em {
    color: #FFC631;
    font-style: italic;
    font-weight: 500;
}

.user-message .message-content em {
    color: #1f2937;
}

.message-content a {
    color: #FFC631;
    text-decoration: none;
    border-bottom: 1px solid #FFC631;
    transition: all 0.2s ease;
}

.message-content a:hover {
    color: #FFB800;
    border-bottom-color: #FFB800;
}

.highlight {
    color: #FFC631;
    font-weight: 600;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    display: block;
    margin-top: 8px;
    opacity: 0.8;
}

.user-message .message-time {
    color: rgba(31, 41, 55, 0.75);
}

/* Quick Actions - Grid Style */
.quick-actions {
    padding: 20px 24px;
    background: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.action-btn {
    padding: 14px 20px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.action-btn:hover {
    border-color: #FFC631;
    color: #FFC631;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 198, 49, 0.3);
}

.action-btn:active {
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 6px rgba(255, 198, 49, 0.35);
}

.primary-btn {
    background: linear-gradient(135deg, #FFC631 0%, #FFB800 100%);
    color: #1f2937;
    border-color: transparent;
    font-weight: 600;
}

.primary-btn:hover {
    background: linear-gradient(135deg, #FFD147 0%, #FFC631 100%);
    border-color: transparent;
    color: #1f2937;
    box-shadow: 0 4px 16px rgba(255, 198, 49, 0.5);
}

.primary-btn:active {
    background: linear-gradient(135deg, #FFB800 0%, #FFA500 100%);
    transform: translateY(0px) scale(0.98);
    box-shadow: 0 2px 8px rgba(255, 198, 49, 0.6);
}

/* Chat Input */
.chat-input-container {
    padding: 20px 24px;
    background: white;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.chat-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #f9fafb;
    color: #1f2937;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.chat-input:focus {
    border-color: #FFC631;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 198, 49, 0.15);
}

.send-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #FFC631 0%, #FFB800 100%);
    border: none;
    border-radius: 50%;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 198, 49, 0.4);
}

.send-btn:hover {
    background: linear-gradient(135deg, #FFD147 0%, #FFC631 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(255, 198, 49, 0.5);
}

.send-btn:active {
    transform: scale(0.98);
}

.send-btn svg {
    width: 20px;
    height: 20px;
}

/* Scrollbar Styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* Typing Indicator */
.typing-indicator {
    opacity: 0.7;
}

.typing-indicator .message-content {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.typing-indicator .message-content::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFC631;
    animation: typing-dot 1.4s infinite;
}

.typing-indicator .message-content::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFC631;
    animation: typing-dot 1.4s infinite 0.2s;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin-left: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FFC631;
    animation: typing-dot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .chat-container {
        border-radius: 0;
        height: 100vh;
        max-height: 100vh;
    }

    .quick-actions {
        padding: 15px;
        gap: 10px;
    }

    .action-btn {
        font-size: 15px;
        padding: 16px 20px;
    }

    .message-content {
        max-width: 80%;
    }
}