/* Stylizacja Chatbota */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

#chat-button {
    width: 60px;
    height: 60px;
    background: #1a1a1a; /* Ciemny kolor pasujący do motywu */
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

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

#chat-window {
    display: none;
    width: 320px;
    height: 450px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    bottom: 80px;
    right: 0;
}

#chat-header {
    background: #1a1a1a;
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
}

#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
    color: #333;
    font-size: 14px;
}

#chat-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
}

#chat-input-container input {
    flex: 1;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    margin-right: 5px;
}

/* Animacja pojawiania się wiadomości */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.msg-anim {
    animation: fadeInUp 0.3s ease-out forwards;
}

/* Kropki "Bot pisze..." */
.typing {
    font-style: italic;
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

/* Animacja pulsowania całej ikony */
@keyframes chat-pulse {
    0% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
    50% { transform: scale(1.08); box-shadow: 0 4px 25px rgba(0,0,0,0.4); }
    100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
}

/* Animacja machania ikoną w środku */
@keyframes chat-wiggle {
    0% { transform: rotate(0deg); }
    80% { transform: rotate(0deg); }
    85% { transform: rotate(15deg); }
    90% { transform: rotate(-15deg); }
    95% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

#chat-button {
    width: 60px;
    height: 60px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 2px solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    /* Aktywacja pulsowania */
    animation: chat-pulse 3s infinite ease-in-out;
}

#chat-button img {
    width: 32px;
    height: 32px;
    /* Aktywacja machania obrazkiem co kilka sekund */
    animation: chat-wiggle 5s infinite;
}

#chat-button:hover {
    animation: none; /* Zatrzymaj animację po najechaniu myszką */
    transform: scale(1.1);
}


#chat-hint {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: #ffffff;
    color: #1a1a1a;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid #1a1a1a;
    z-index: 999;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 1;
    transform: translateY(0);
}

/* Klasa ukrywająca dymek */
#chat-hint.hidden {
    opacity: 0;
    transform: translateY(10px);
}