.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-icon {
    width: 70px;
    height: 70px;
    background-color: #E03C33;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon i {
    color: white;
    font-size: 32px;
}

.chat-popup {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 450px;
    height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1000;
}

.chat-popup.active {
    display: flex;
}

.chat-header {
    background-color: #E03C33;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header h3 i {
    font-size: 24px;
}

.close-chat {
    cursor: pointer;
    font-size: 24px;
    padding: 5px;
    transition: opacity 0.3s ease;
}

.close-chat:hover {
    opacity: 0.8;
}

.chat-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    margin: 0;
    max-width: 85%;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.message.user {
    margin-left: auto;
    background-color: #E03C33;
    color: white;
    padding: 12px 20px;
    border-radius: 20px 20px 0 20px;
}

.message.bot {
    margin-right: auto;
    background-color: #f0f0f0;
    padding: 12px 20px;
    border-radius: 20px 20px 20px 0;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    background-color: #f8f9fa;
}

.chat-input input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    background-color: white;
}

.chat-input button {
    background-color: #E03C33;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-input button:hover {
    background-color: #c1332a;
}

.typing-indicator {
    display: none;
    padding: 12px 20px;
    background-color: #f0f0f0;
    border-radius: 20px 20px 20px 0;
    margin: 0;
    width: fit-content;
    align-self: flex-start;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #90949c;
    border-radius: 50%;
    margin-right: 5px;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
} 