/* Chat Circle */
.chat-circle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.chat-circle:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

/* Chat Box */
.chat-box {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 400px;
    max-width: 90%;
    background: linear-gradient(135deg, #333, #444);
    color: #fff;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.chat-box-open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.chat-box-header {
    padding: 12px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
}
.chat-box-header i {
    cursor: pointer;
    transition: color 0.3s ease;
}
.chat-box-header i:hover {
    color: #ff4d4d;
}

/* Body */
.chat-box-body {
    padding: 15px;
    background-color: #2e2e2e;
    display: flex;
    flex-direction: column;
    border-radius: 0 0 12px 12px;
}

/* Chat Content */
.chat-content {
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    background-color: #1f1f1f;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
}
.chat-content::-webkit-scrollbar {
    width: 6px;
}
.chat-content::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}
.chat-content::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Chat Messages */
.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 75%;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.user-message {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}
.ai-message {
    background-color: #444;
    color: #fff;
    align-self: flex-start;
    margin-right: auto;
}

/* Chat Input */
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.chat-input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: #1f1f1f;
    color: #fff;
    outline: none;
    transition: box-shadow 0.3s ease;
}
.chat-input:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
}
.send-chat-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #007bff;
    transition: transform 0.3s ease, color 0.3s ease;
}
.send-chat-btn:hover {
    color: #0056b3;
    transform: scale(1.1);
}

/* Suggestions */
.suggestions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.suggestion-box {
    padding: 10px 15px;
    background: #007bff;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.suggestion-box:hover {
    background: #0056b3;
    transform: translateY(-2px);
}
