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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: white;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.chat-header h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.chat-header p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 60vh;
    min-height: 300px;
    background: #fafafa;
}

.message {
    margin-bottom: 15px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    margin-left: auto;
    text-align: right;
}

.bot-message {
    background: white;
    color: #333;
    padding: 15px 18px;
    border-radius: 18px 18px 18px 4px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.bot-message strong {
    color: #667eea;
    font-weight: 600;
}

.bot-message a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.bot-message a:hover {
    text-decoration: underline;
}

.typing-indicator {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #667eea;
    animation: typing 1.4s infinite ease-in-out;
}

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.typing-text {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.chat-input-container {
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

#user-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#user-input:focus {
    border-color: #daa520;
}

#send-button {
    background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 80px;
}

#send-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#send-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-btn {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: #667eea;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.quick-btn:hover {
    background: #daa520;
    color: white;
    transform: translateY(-1px);
}

.chat-footer {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

.chat-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.chat-footer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .chat-header {
        padding: 15px;
    }

    .chat-header h1 {
        font-size: 1.5rem;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .chat-messages {
        padding: 15px;
        max-height: 55vh;
        min-height: 250px;
    }

    .message {
        max-width: 90%;
    }

    .chat-input-container {
        padding: 15px;
    }

    .quick-actions {
        gap: 6px;
    }

    .quick-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #user-input,
    #send-button {
        width: 100%;
        border-radius: 20px;
    }
}

@media (max-width: 480px) {
    .chat-header h1 {
        font-size: 1.3rem;
    }

    .chat-header p {
        font-size: 0.8rem;
    }

    .chat-messages {
        max-height: 50vh;
        min-height: 200px;
    }

    .quick-btn {
        flex: 1;
        min-width: 0;
    }
}

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

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

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

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

/* Loading animation for messages */
.message {
    animation: fadeIn 0.3s ease-in;
}

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