/* === Κουμπί Chat (μοντέρνο με τα νέα χρώματα/διαστάσεις) === */
#chat-circle {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0EA4E0, #007bbf);
    color: white;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

#chat-circle:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #007bbf, #006799);
}

/* === Chat Box === */
#chat-box {
    position: fixed;
    bottom: 100px;
    right: 40px;
    width: 320px;
    max-width: 90%;
    height: 420px;
    display: none;
    flex-direction: column;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: #ffffff;
    z-index: 9998;
    animation: fadeIn 0.3s ease-in-out;
    overflow: hidden;
}

/* === Header === */
#chat-box .card-header {
    background: linear-gradient(135deg, #0EA4E0, #007bbf);
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Κουμπί κλεισίματος */
#chat-box #close-chat {
    background: transparent;
    border: none;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease-in-out;
}
#chat-box #close-chat:hover {
    color: #ff9c9c;
}

/* === Μηνύματα === */
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    font-size: 14px;
    font-family: "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: #0EA4E0 #f9f9f9;
}
#chat-messages::-webkit-scrollbar {
    width: 6px;
}
#chat-messages::-webkit-scrollbar-thumb {
    background-color: #0EA4E0;
    border-radius: 10px;
}

/* Μηνύματα Χρήστη */
.msg-user {
    align-self: flex-end;
    background: #0EA4E0;
    color: white;
    padding: 8px 14px;
    border-radius: 18px 18px 0 18px;
    margin: 6px 0;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Μηνύματα Bot */
.msg-bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #000;
    padding: 8px 14px;
    border-radius: 18px 18px 18px 0;
    margin: 6px 0;
    max-width: 80%;
    word-wrap: break-word;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* === Footer === */
#chat-box .card-footer {
    border-top: 1px solid #ddd;
    padding: 10px;
    display: flex;
    align-items: center;
    background: #fafafa;
}

#chat-input {
    flex: 1;
    border: none;
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 14px;
    outline: none;
    background: #f1f1f1;
    transition: background 0.2s ease-in-out;
}
#chat-input:focus {
    background: #e9ecef;
}

#send-chat {
    background: #0EA4E0;
    border-radius: 8px;
    padding: 8px 16px;
    border: none;
    margin-left: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}
#send-chat:hover {
    background: #007bbf;
    transform: translateY(-2px);
}

/* === Animation === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
