
/* Finance Bot CSS */
.finance-bot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

/* Bot Icon */
.finance-bot-icon {
    width: 60px;
    height: 60px;
    background-color: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.finance-bot-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.finance-bot-icon-inner {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Interface */
.finance-bot-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.finance-bot-chat.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.finance-bot-header {
    background-color: #0056b3;
    color: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.finance-bot-title {
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

.finance-bot-title svg {
    margin-right: 8px;
}

.finance-bot-close {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.finance-bot-close:hover {
    opacity: 1;
}

/* Messages Container */
.finance-bot-messages {
    padding: 16px;
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Message Bubbles */
.finance-bot-message {
    display: flex;
    margin-bottom: 16px;
    align-items: flex-start;
}

.finance-bot-message.bot {
    align-items: flex-start;
}

.finance-bot-message.user {
    flex-direction: row-reverse;
}

.finance-bot-avatar {
    width: 36px;
    height: 36px;
    background-color: #e6f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056b3;
    margin-right: 8px;
}

.finance-bot-message.user .finance-bot-avatar {
    background-color: #0056b3;
    color: white;
    margin-right: 0;
    margin-left: 8px;
}

.finance-bot-bubble {
    background-color: #0056b3;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 75%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

.finance-bot-message.user .finance-bot-bubble {
    background-color: #0056b3;
    color: white;
    border-bottom-right-radius: 4px;
}

.finance-bot-message.bot .finance-bot-bubble {
    border-bottom-left-radius: 4px;
}

/* Options */
.finance-bot-options {
    padding: 12px;
    border-top: 1px solid #e6e6e6;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.finance-bot-option {
    background-color: #f7f7f7;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    color: #333;
}

.finance-bot-option:hover {
    background-color: #e6f0ff;
    border-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .finance-bot-icon {
        width: 50px;
        height: 50px;
    }

    .finance-bot-bubble {
      color: #f7f7f7;
      font-size: 13px;
    }

    .finance-bot-option {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .finance-bot-icon {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 425px) {
    .finance-bot-chat {
        width: 300px;
        right: -10px;
    }
        .card-content p {
        font-size: 12px;
    }

    .finance-bot-container {
    bottom: 16px;
    right: 16px;
    }

}