/* Chatbot CSS Styling */
    /* General body styling */
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background-color: #f2f5fa;
        margin: 0;
        padding: 0;
    }

    /* Floating chat container styling */
    .chat-container {
        position: fixed;
        bottom: 90px;
        right: 20px;
        width: 400px;
        height: 500px;
        background: #ffffff;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Hidden state for the chat container */
    .chat-container.hidden {
        transform: scale(0);
        opacity: 0;
        pointer-events: none;
    }

    /* Chat header styling */
    .chat-header {
        background-color: #031f42;
        color: white;
        text-align: center;
        padding: 15px;
        font-size: 1.2rem;
        font-weight: bold;
        letter-spacing: 1px;
    }

    /* Chat messages area styling */
    .chat-messages {
        flex: 1;
        padding: 15px;
        overflow-y: auto;
        background: #f7f9fc;
    }

    /* Individual message styling */
    .message {
        margin: 10px auto;
        max-width: 90%;
        padding: 10px 15px;
        border-radius: 15px;
        line-height: 1.4;
        font-size: 0.95rem;
        white-space: pre-line;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    

    /* User message styling */
    .user-message {
        background: #031f42;
        color: white;
        align-self: flex-end;
        border-bottom-right-radius: 0;
        text-align: right; 
    }

    /* Bot message styling */
    .bot-message {
        background: #e4e9f2;
        color: #333;
        align-self: flex-start;
        border-bottom-left-radius: 0;
    }

    /* Link styling inside messages */
    .message a {
        color: #004aad;
        text-decoration: underline;
        word-break: break-all;
    }

    .user-message a {
        color: #8ab4f8;
    }

    /* Input area styling */
    .chat-input-area {
        display: flex;
        border-top: 1px solid #ddd;
        padding: 10px;
        background: #fff;
    }

    /* Input field styling */
    .chat-input {
        flex: 1;
        border: none;
        outline: none;
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 20px;
        background: #f0f2f5;
    }

    /* Send button styling */
    .send-btn {
        background-color: #004aad;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        margin-left: 10px;
        cursor: pointer;
        font-size: 1.1rem;
        transition: 0.2s;
    }

    /* Send button hover effect */
    .send-btn:hover {
        background-color: #003580;
    }

    /* Scrollbar styling for chat messages */
    .chat-messages::-webkit-scrollbar {
        width: 6px;
    }

    .chat-messages::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }

    /* Chat bubble button styling */
    .chat-bubble-btn {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background-color: #004aad;
        color: white;
        border: none;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    /* Response time styling */
    .response-time {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.5rem;
    font-style: italic;
    text-align: right;
    }

    .bot-message .response-time {
    text-align: left;
    }


/* Feedback button styling */
.feedback-btn {
    position: fixed;
    bottom: 20px; /* Move the button to the bottom */
    left: 20px; /* Align the button to the left */
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.feedback-btn:hover {
    background-color: #003580;
}

/* Feedback modal styling */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.feedback-modal.hidden {
    display: none;
}

.feedback-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.feedback-modal-content h2 {
    margin-bottom: 15px;
}

.feedback-modal-content textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    resize: none; 
    box-sizing: border-box;
    font-size: 1rem; 
    margin-top: 10px; 
}

.feedback-modal-content .submit-feedback-btn {
    background-color: #004aad;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
}

.feedback-modal-content .submit-feedback-btn:hover {
    background-color: #003580;
}

/* Close modal button styling */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

    
/* Feedback button styling */
.feedback-btn {
    position: fixed;
    bottom: 20px; /* Move the button to the bottom */
    left: 20px; /* Align the button to the left */
    background-color: #a50010;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.feedback-btn:hover {
    background-color: #73000a;
}

/* Feedback modal styling */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.feedback-modal.hidden {
    display: none;
}

.feedback-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.feedback-modal-content h2 {
    margin-bottom: 15px;
}

.feedback-modal-content textarea {
    width: 100%; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 5px; 
    resize: none; 
    box-sizing: border-box;
    font-size: 1rem; 
    margin-top: 10px; 
}

.feedback-modal-content .submit-feedback-btn {
    background-color: #a50010;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1rem;
}

.feedback-modal-content .submit-feedback-btn:hover {
    background-color: #73000a;
}

/* Close modal button styling */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}
