body .f1-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.f1-chat-btn {
    background-color: #E10600;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(225, 6, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.f1-chat-btn:hover {
    transform: scale(1.05);
}

.f1-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 600px;
    background-color: #1a1a1a;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    border: 1px solid #333;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.f1-chat-window.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.f1-chat-header {
    background-color: #E10600;
    padding: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f1-chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.f1-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.f1-chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.f1-chat-msg.user {
    background-color: #0056b3;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.f1-chat-msg.bot {
    background-color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.f1-chat-input-area {
    padding: 16px;
    border-top: 1px solid #333;
    display: flex;
    gap: 10px;
}

.f1-chat-input {
    flex: 1;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    outline: none;
}

.f1-chat-send {
    background-color: #E10600;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.f1-chat-send:hover {
    background-color: #b30500;
    transform: scale(1.05);
}

.f1-chat-sources {
    margin-top: 10px;
    font-size: 0.8em;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.f1-chat-source-link {
    background: #111;
    color: #F87171;
    padding: 4px 8px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid #333;
    font-size: 11px;
    display: inline-block;
    transition: all 0.2s;
}

.f1-chat-source-link:hover {
    color: #fff;
    background: #E10600;
    border-color: #E10600;
}

.f1-chat-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.f1-chat-suggestion-btn {
    background: #2a2a2a;
    border: 1px solid #444;
    color: #ccc;
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.f1-chat-suggestion-btn:hover {
    background: #3a3a3a;
}

@media (max-width: 480px) {
    .f1-chat-window {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
    }
}
