
.footer a {
    color: #fff;
    padding: 10px 20px;
    font-size: 0.8em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}


/* Footer Connect Button */
.footer {
    width: 100%;
    background: #0666c061;
    text-align: center;
    padding: 5px 0;
    margin-top: auto;
}

/* Chatbox Floating UI */
.chatbox {
    position: fixed;
    bottom: 20px; /* use top/left instead of bottom/right */
    right: 20px; /* auto position near bottom right */
    width: 360px;
    height: 280px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-width: 280px;
    min-height: 200px;
    background: #f4f8fb;
}

/* Chat Header */
.chat-header {
    background: #0A4D8C;
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
}

.chat-header:active {
    cursor: grabbing;
}

.chat-header .close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Chat Body */
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
    gap: 12px;
    height: 100%;
}

.chat-body textarea, .chat-body input[type="text"] {
    flex: 1;
    resize: none;
    width: 100%;
    padding: 12px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    outline: none;
    background: #f9f9f9;
}
.chat-body input[type="text"] {
    flex-grow: 0;
}
.chat-body button {
    align-self: flex-end;
    background: #0A4D8C;
    color: #fff;
    padding: 8px 18px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.chat-body button:hover {
    background: #083b6b;
}

.resize-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 4px;
    bottom: 4px;
    cursor: nwse-resize;
    z-index: 10;
    background: transparent;
}


/* Responsive Design */
@media (max-width: 768px) {
    .chatbox{
        width: 300px;
        height: 250px;
    }
}