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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #715087 0%, #483a5c 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 92vh;
    min-height: 600px;
}

.header {
    background: linear-gradient(135deg, #715087 0%, #483a5c 100%);
    color: white;
    padding: 12px;
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    min-height: 0;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 0;
}

.message {
    display: flex;
    gap: 12px;
    max-width: 80%;
    animation: fadeIn 0.3s ease-in;
}

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

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

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

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    background: white;
    padding: 15px 20px;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
}

.user-message .message-content {
    background: #591f7e;
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input-container {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

#messageInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#messageInput:focus {
    border-color: #591f7e;
}

.send-button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #715087 0%, #483a5c 100%);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.send-button:hover {
    transform: scale(1.05);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: #666;
    font-size: 0.9rem;
}

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

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #591f7e;
    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; }
}

.quick-actions {
    padding: 12px;
    background: white;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.quick-actions h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.quick-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: left;
    white-space: nowrap;
}

.quick-btn:hover {
    border-color: #591f7e;
    background: #f8f9ff;
    transform: translateY(-2px);
}

.quick-btn i {
    color: #591f7e;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        height: 90vh;
        margin: 10px;
    }
    
    .header {
        padding: 12px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .message {
        max-width: 90%;
    }
    
    .quick-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        height: 95vh;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .message-content {
        padding: 12px 16px;
    }
}

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

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

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

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

/* Chat Link Styling */
.chat-link {
    color: #591f7e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.chat-link:hover {
    color: #7a2ba8;
    text-decoration: underline;
}

.bot-message .chat-link {
    color: #591f7e;
}

.bot-message .chat-link:hover {
    color: #7a2ba8;
    text-decoration: underline;
}

.user-message .chat-link {
    color: #ffffff;
}

.user-message .chat-link:hover {
    color: #8cb2ff;
    text-decoration: underline;
} 