/* Lebegő Gomb */
#remete-chat-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    border: 3px solid #1e8e3e;
}

#remete-chat-toggle:hover {
    transform: scale(1.1);
}

#remete-chat-toggle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Chat Ablak */
#remete-chat-window {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.remete-chat-header {
    background: #1e8e3e;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remete-chat-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.remete-chat-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Üzenet Buborékok */
.remete-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

.remete-msg-user {
    align-self: flex-end;
    background: #1e8e3e;
    color: white;
    border-bottom-right-radius: 4px;
}

.remete-msg-bot {
    align-self: flex-start;
    background: #e9ecef;
    color: #333;
    border-bottom-left-radius: 4px;
}

.remete-msg-bot a {
    color: #1e8e3e;
    text-decoration: underline;
}

.remete-msg-bot p {
    margin: 0 0 8px 0;
}
.remete-msg-bot p:last-child {
    margin: 0;
}

/* Gépelés Indikátor */
.remete-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-items: center;
}
.remete-typing-dot {
    width: 6px;
    height: 6px;
    background: #888;
    border-radius: 50%;
    animation: remeteBounce 1.4s infinite ease-in-out both;
}
.remete-typing-dot:nth-child(1) { animation-delay: -0.32s; }
.remete-typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes remeteBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Bemeneti Mező */
.remete-chat-input-area {
    padding: 10px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    gap: 8px;
}

.remete-chat-input-area input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.remete-chat-input-area input:focus {
    border-color: #1e8e3e;
}

.remete-chat-input-area button {
    background: #1e8e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.2s;
}

.remete-chat-input-area button:hover {
    background: #146c2e;
}

.remete-chat-input-area button svg {
    stroke: white;
    width: 18px;
    height: 18px;
    display: block;
}

/* Animációk */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s, transform 0.3s;
}
.fade-enter-from, .fade-leave-to {
    opacity: 0;
}

/* Mobil reszponzivitás */
@media (max-width: 480px) {
    #remete-chat-window {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    #remete-chat-toggle {
        bottom: 85px;
        left: 15px;
    }
}
