* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    max-height: 700px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-header {
    background: linear-gradient(135deg, #1A004D 0%, #2D1B69 100%);
    color: white;
    padding: 24px;
    border-radius: 16px 16px 0 0;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hotel-logo {
    flex-shrink: 0;
}

.hotel-info h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.hotel-info p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: #fafafa;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.message {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-message, .user-message {
    display: flex;
    gap: 12px;
    max-width: 85%;
}

.user-message {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-message .message-avatar {
    background: #007bff;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.message-content {
    background: white;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.user-message .message-content {
    background: #1A004D;
    color: white;
}

.message-content p {
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 15px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    text-align: right;
}

.user-message .message-time {
    color: rgba(255, 255, 255, 0.7);
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.quick-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.quick-btn:hover {
    background: #1A004D;
    color: white;
    border-color: #1A004D;
    transform: translateY(-1px);
}

.chat-input-container {
    padding: 24px;
    background: white;
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 16px 16px;
}

.input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 4px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    margin: 0 2px;
}

.input-wrapper:focus-within {
    border-color: #1A004D;
    box-shadow: 0 0 0 3px rgba(26, 0, 77, 0.1);
}

#userInput {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 20px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
    width: 100%;
    min-width: 0;
}

#userInput::placeholder {
    color: #999;
}

#sendButton {
    width: 44px;
    height: 44px;
    background: #1A004D;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

#sendButton:hover {
    background: #2D1B69;
    transform: scale(1.05);
}

#sendButton:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 13px;
    color: #666;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #1A004D;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.connection-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    z-index: 1000;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #28a745;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.disconnected {
    background: #dc3545;
    animation: none;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.welcome-message {
    margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
    }
    
    .chat-container {
        height: 100vh;
        max-height: none;
        border-radius: 0;
        max-width: none;
    }
    
    .chat-header {
        border-radius: 0;
        padding: 20px;
    }
    
    .hotel-info h1 {
        font-size: 20px;
    }
    
    .chat-messages {
        padding: 16px;
    }
    
    .message-content {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .quick-btn {
        padding: 12px 16px;
        font-size: 12px;
    }
    
    .chat-input-container {
        padding: 16px;
    }
    
    .connection-status {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .bot-message, .user-message {
        max-width: 95%;
    }
    
    .header-content {
        gap: 12px;
    }
    
    .hotel-info h1 {
        font-size: 18px;
    }
    
    .hotel-info p {
        font-size: 13px;
    }
}