.chat-container {
    position: fixed;
    bottom: 90px;
    right: 28px;
    width: 300px;
    height: 400px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0.9;
}

.chat-container.minimized {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
}

.chat-container.minimized .chat-messages,
.chat-container.minimized .chat-input {
    display: none;
}

.chat-container.minimized .chat-header {
    height: 100%;
    border-radius: 50%;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-container.minimized .chat-header span {
    display: none;
}

.chat-container.minimized .chat-header button {
    display: none;
}

.chat-container.minimized .chat-header::after {
    content: '\f075';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 24px;
    color: white;
}

.chat-header {
    background: linear-gradient(135deg, #1687f1, #115be4);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.chat-header span {
    font-weight: 600;
    font-size: 16px;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0 5px;
    transition: transform 0.3s ease;
}

.chat-header button:hover {
    transform: scale(1.1);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.message {
    margin-bottom: 12px;
    padding: 10px 15px;
    border-radius: 15px;
    max-width: 80%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message {
    background: #e3f2fd;
    margin-left: auto;
    border-bottom-right-radius: 5px;
}

.ai-message {
    background: white;
    border-bottom-left-radius: 5px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
}

.chat-input textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    resize: none;
    height: 70px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.chat-input textarea:focus {
    outline: none;
    border-color: #1687f1;
}

.chat-input button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #1687f1, #115be4);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.chat-input button:active {
    transform: translateY(0);
}
