/* /css/footer.css */
.footer {
    background-color: #2C3E50;
    color: #FFFFFF; 
    padding: 0 0; 
    font-size: 0.9em;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);

    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999999;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    flex-wrap: nowrap; 
}

.footer li {
}

.footer a {
    color: #ECF0F1;
    font-weight: 500;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block; 
    white-space: nowrap; 
    text-align: center;
    border: 1px solid transparent;
}

.footer a:hover {
    color: #2ECC71;
    background-color: rgba(46, 204, 113, 0.1);
    border-color: rgba(46, 204, 113, 0.3);
}

#chat-widget {
    position: fixed;
    bottom: 0;
    right: 20px; 
    width: 320px;
    height: 400px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px 8px 0 0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1000; 
    overflow: hidden; 
}

#chat-widget.hidden {
    display: none;
}

#chat-widget.minimized {
    height: 40px; 
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    background-color: #f0f2f5; 
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer; 
}

.chat-header #chat-partner-name {
    font-weight: bold;
    color: #333;
}

.chat-actions {
    display: flex;
    gap: 5px;
}

.chat-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #555;
    padding: 2px 5px;
    border-radius: 4px;
}

.chat-btn:hover {
    background-color: #e0e0e0;
}

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

#chat-widget.minimized .chat-body,
#chat-widget.minimized .chat-footer {
    display: none; 
}

.chat-footer {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    background-color: #f0f2f5;
}

#chat-message-input {
    flex-grow: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 0.9em;
    resize: none; 
    max-height: 80px; 
    margin-right: 10px;
    overflow-y: auto; 
}

#chat-send-btn {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

#chat-send-btn:hover {
    background-color: #0056b3;
}

.message {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word; 
}

.message p {
    margin: 0;
}

.message .timestamp {
    font-size: 0.75em;
    color: #888;
    margin-top: 5px;
    display: block; 
}

.message.sent {
    background-color: #dcf8c6; 
    align-self: flex-end; 
}

.message.received {
    background-color: #e2e2e2; 
    align-self: flex-start; 
}

@media (max-width: 768px) {
    .footer {
        padding: 8px 0; 
        font-size: 0.9em; 
    }

    .footer ul {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 8px; 
        padding: 0 10px; 
    }

    .footer li {
    }

    .footer a {
        padding: 6px 10px; 
        font-size: 0.9; 
        border-radius: 4px; 
        white-space: nowrap; 
        max-width: 48%; 
        flex-grow: 1; 
        flex-shrink: 1; 
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 5px 0; 
        font-size: 0.75em; 
    }
    .footer ul {
        gap: 5px; 
        padding: 0 5px;
    }
    .footer a {
        padding: 4px 8px; 
        font-size: 0.9em; 
        max-width: 48%; 
    }
}