.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.fab-main {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: rgba(3, 13, 82, 0.91);
    color: white;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.38);
    font-size: 12pt;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: fixed!important;
    right: 2%!important;
    bottom: 3%!important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    padding: 10px!important;
}

.fab-main:hover {
    background: #030d52;
    transform: scale(1.05);
}

.fab-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.fab-options.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.fab-sub,
.fab-close {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 20px;
    background: #0061bb;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-sub:hover,
.fab-close:hover {
    color: #fff!important;
    transform: scale(1.1);
}

.fab-close {
    background: rgba(229, 57, 53, 0.82);
}

.icon {
    display: inline-block;
    text-align: center;
    line-height: 1;
    font-size: 22px;
}

/** Chat **/
#chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 360px;
    max-height: 500px;
    background-color: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    display: none;
    flex-direction: column;
    z-index: 9998;
    overflow: hidden;
    border: 1px solid #dee2e6;
    font-size: 14px;
}

.chat-header {
    background-color: #0d6efd;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    cursor: move;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header .close-btn-two {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.chat-online {
    padding: 12px 16px;
    border-bottom: 1px solid #dee2e6;
    max-height: 210px!important;
    overflow-y: auto!important;
    background: #f8f9fa;
}

.chat-online h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
}

.chat-online ul {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
    padding-left: 0;
}

.chat-online li {
    display: flex;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
    color: #0d6efd;
    cursor: pointer;
    gap: 8px;
}

.chat-online li:hover {
    background-color: #e9ecef;
    border-radius: 8px;
    padding-left: 8px;
}

.user-status {
    display: inline-block;
    box-sizing: border-box;
    width: clamp(8px, 1.5vw, 12px);
    aspect-ratio: 1 / 1;       /* garante proporção 1:1 */
    border-radius: 50%;        /* transforma quadrado em círculo */
    margin-right: 0.375rem;    /* 6px se 1rem = 16px */
    background-color: currentColor;
}

.online { background-color: green; }
.offline { background-color: red; }

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-messages {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    background: #f1f3f5;
    max-height: 180px!important;
}

.message {
    background-color: #e9ecef;
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 1rem;
    max-width: 75%;
    word-wrap: break-word;
    line-height: 1.4;
}

.message.sent {
    background-color: #d1e7ff;
    margin-left: auto;
}

.chat-input {
    display: flex;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: none;
    font-size: 14px;
    outline: none;
}

.chat-input button {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.chat-input button:hover {
    background-color: #0b5ed7;
}