/* ============================= */
/* Chatbot Container */
/* ============================= */

#ai-chatbot-container {
    border: 1px solid #ccc;
    padding: 10px;
    width: 100%;
}

/* ============================= */
/* Chatbox Styling */
/* ============================= */

#ai-chatbox {
    height: 150px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    font-family: "Hebbo", Sans-serif;
    color: #252531;
}

#ai-chatbox::-webkit-scrollbar {
  width: 5px;
  background-color: #444140;
}

#ai-chatbox::-webkit-scrollbar-track {
  background: #FFF;
  border-radius: 0px;
}

#ai-chatbox::-webkit-scrollbar-thumb {
  background-color: #A81A16;
  border-radius: 0px;
}

/* ============================= */
/* Input Field Styling */
/* ============================= */

#ai-chat-input::placeholder {
    font-family: "Hebbo", Sans-serif;
    color: #252531;
}

#ai-chat-input {
    font-family: "Hebbo", Sans-serif;
    color: #252531;
}

/* ============================= */
/* Send Button Styling */
/* ============================= */

#ai-chat-send {
    background-color: var(--e-global-color-c4a0ad7);
    color: var(--e-global-color-441ed21);
    border: 0px;
    margin-top: 1em;
    width: 100%;
    font-family: "Hebbo", Sans-serif;
    padding: 10px;
    cursor: pointer;
}

#ai-chat-send:hover {
    background-color: #A81A16;
}

/* ============================= */
/* Loading Animation (Typing Indicator) */
/* ============================= */

.loading-message {
    font-weight: bold;
    color: #252531;
    font-family: "Hebbo", Sans-serif;
}

/* Dots Flash Animation */
.dot-flash {
    animation: dot-flash 1.5s infinite;
    font-weight: bold;
    color: #252531;
}

.dot-flash:nth-child(1) {
    animation-delay: 0s;
}

.dot-flash:nth-child(2) {
    animation-delay: 0.3s;
}

.dot-flash:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dot-flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* ============================= */
/* Email Popup (Modal) Styling */
/* ============================= */

#email-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 21%;
    top: 70%;
    transform: translate(-50%, -50%);
    width: 350px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    font-family: "Hebbo", Sans-serif;
}

body.modal-open, html.modal-open {
    overflow: hidden !important;
    height: 100vh;
}

/* Responsive Styles for Modal */
@media only screen and (max-width: 1024px) {
    #email-modal {
        left: 50%;
        top: 50%;
    }
}

/* Close Button in Modal */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

/* ============================= */
/* Email Input Field Styling */
/* ============================= */

#user-email {
    width: 90%;
    padding: 10px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: "Hebbo", Sans-serif;
}

/* ============================= */
/* Email Send Button Styling */
/* ============================= */

#send-email {
    background-color: #252531;
    color: white;
    border: none;
    padding: 10px;
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
    font-family: "Hebbo", Sans-serif;
}

#send-email:hover {
    background-color: #A81A16;
}

/* ============================= */
/* Email Button Outside of Modal */
/* ============================= */

#send-email-button {
    background-color: #252531;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-family: "Hebbo", Sans-serif;
    width: 100%;
    margin-top: 0.2em;
}

#send-email-button:hover {
    background-color: #A81A16;
}

/* ============================= */
/* Email Message Box (Success/Error) */
/* ============================= */

#email-message {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
    font-family: "Hebbo", Sans-serif;
}

.message-success {
    background-color: #28a745;
    color: white;
}

.message-error {
    background-color: #dc3545;
    color: white;
}

/* ============================= */
/* Loading spinner design */
/* ============================= */
/* עיצוב ספינר טעינה */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    border: 2px solid white;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
