 .user-modal {
     position: fixed;
     background: white;
     border: 1px solid #ccc;
     border-radius: 8px;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
     z-index: 1050;
     min-width: 200px;
     display: none;
 }

 .user-modal .modal-option {
     padding: 10px 15px;
     cursor: pointer;
     border-bottom: 1px solid #eee;
     transition: background 0.2s;
 }

 .user-modal .modal-option:hover {
     background: #f8f9fa;
 }

 .user-modal .modal-option:last-child {
     border-bottom: none;
 }

 .user-modal .modal-option i {
     margin-right: 8px;
 }

 /* Estilos para Badge de Notificações */
 .notification-badge {
     position: absolute;
     top: -2px;
     right: -2px;
     background: #dc3545;
     color: white;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 10px;
     font-weight: bold;
     box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
     animation: pulse-badge 2s infinite;
     pointer-events: none;
     z-index: 10;
 }

 @keyframes pulse-badge {

     0%,
     100% {
         transform: scale(1);
         box-shadow: 0 2px 4px rgba(220, 53, 69, 0.4);
     }

     50% {
         transform: scale(1.1);
         box-shadow: 0 4px 8px rgba(220, 53, 69, 0.6);
     }
 }

 /* Badge verde para usuários online */
 #onlineUsersBadge {
     background: #28a745 !important;
     box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4) !important;
     animation: pulse-badge-green 2s infinite !important;
 }

 @keyframes pulse-badge-green {

     0%,
     100% {
         transform: scale(1);
         box-shadow: 0 2px 4px rgba(40, 167, 69, 0.4);
     }

     50% {
         transform: scale(1.1);
         box-shadow: 0 4px 8px rgba(40, 167, 69, 0.6);
     }
 }

 #notificationBtn {
     width: 36px !important;
     height: 36px !important;
     min-width: 36px !important;
     border-radius: 50% !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     padding: 0 !important;
     display: flex !important;
     align-items: center !important;
     justify-content: center !important;
     box-shadow: none !important;
     transition: all 0.3s ease !important;
     color: #000 !important;
     background: transparent !important;
 }

 #notificationBtn:hover {
     transform: translateY(-1px) !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     background: transparent !important;
     border-color: transparent !important;
     color: #000 !important;
 }

 #notificationBtn i {
     font-size: 18px !important;
     margin: 0 !important;
     color: #000 !important;
 }

 #onlineUsersBtn {
     width: 36px !important;
     height: 36px !important;
     min-width: 36px !important;
     border-radius: 50% !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     padding: 0 !important;
     display: flex !important;
     align-items: center !important;
     justify-content: center !important;
     box-shadow: none !important;
     transition: all 0.3s ease !important;
     color: #000 !important;
     background: transparent !important;
 }

 #onlineUsersBtn:hover {
     transform: translateY(-1px) !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     background: transparent !important;
     border-color: transparent !important;
     color: #000 !important;
 }

 #onlineUsersBtn i {
     font-size: 18px !important;
     margin: 0 !important;
     color: #000 !important;
 }

 /* Modal de Notificações */
 .notification-modal {
     position: fixed;
     background: white;
     border: 1px solid #ccc;
     border-radius: 12px;
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
     z-index: 1050;
     width: 400px;
     max-height: 500px;
     display: none;
     overflow: hidden;
 }

 .notification-modal-header {
     padding: 15px 20px;
     border-bottom: 1px solid #eee;
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
 }

 .notification-modal-header h5 {
     margin: 0;
     font-size: 16px;
     font-weight: 700;
     color: #333;
 }

 .notification-clear-btn {
     background: transparent;
     border: none;
     color: #dc3545;
     cursor: pointer;
     font-size: 13px;
     padding: 4px 8px;
     border-radius: 4px;
     transition: all 0.2s;
 }

 .notification-clear-btn:hover {
     background: rgba(220, 53, 69, 0.1);
 }

 .notification-modal-body {
     max-height: 400px;
     overflow-y: auto;
     overflow-x: hidden;
 }

 .notification-modal-body.online-users-modal-body {
     max-height: none;
     overflow: visible;
     padding: 0;
 }

 .notification-item {
     padding: 15px 20px;
     border-bottom: 1px solid #f0f0f0;
     transition: background 0.2s;
     position: relative;
 }

 .notification-item:hover {
     background: #f8f9fa;
 }

 .notification-item:last-child {
     border-bottom: none;
 }

 .notification-item.unread {
     background: #e7f3ff;
 }

 .notification-item.read {
     opacity: 0.7;
 }

 .notification-item.read .notification-title {
     font-weight: 400;
 }

 .notification-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 8px;
 }

 .notification-title {
     font-weight: 600;
     color: #333;
     font-size: 14px;
     flex: 1;
     margin-right: 10px;
 }

 .notification-delete {
     background: transparent;
     border: none;
     color: #dc3545;
     cursor: pointer;
     font-size: 16px;
     padding: 0;
     width: 24px;
     height: 24px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     transition: all 0.2s;
 }

 .notification-delete:hover {
     background: rgba(220, 53, 69, 0.1);
     transform: scale(1.1);
 }

 .notification-text {
     color: #666;
     font-size: 13px;
     margin-bottom: 8px;
     line-height: 1.4;
     display: -webkit-box;
     -webkit-line-clamp: 2;
     line-clamp: 2;
     -webkit-box-orient: vertical;
     overflow: hidden;
     text-overflow: ellipsis;
     white-space: pre-line;
 }

 .notification-datetime {
     color: #999;
     font-size: 11px;
     display: flex;
     align-items: center;
     gap: 4px;
 }

 .notification-datetime i {
     font-size: 10px;
 }

 .notification-footer {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-top: 8px;
     flex-wrap: wrap;
     gap: 8px;
 }

 .notification-actions {
     display: flex;
     gap: 6px;
     flex-wrap: wrap;
 }

 /* Estilos para mensagens agrupadas */
 .message-group {
     position: relative;
 }

 .message-count {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     color: white;
     font-size: 10px;
     font-weight: bold;
     padding: 2px 8px;
     border-radius: 12px;
     margin-left: 8px;
     min-width: 20px;
     height: 18px;
 }

 .unread-badge {
     display: inline-flex;
     align-items: center;
     gap: 4px;
     background: #ef4444;
     color: white;
     font-size: 10px;
     font-weight: 600;
     padding: 2px 8px;
     border-radius: 10px;
     margin-left: 8px;
     animation: pulse 2s infinite;
 }

 @keyframes pulse {
     0%, 100% { opacity: 1; }
     50% { opacity: 0.7; }
 }

 .notification-read-btn,
 .notification-reply-btn {
     background: transparent;
     border: 1px solid #007bff;
     color: #007bff;
     cursor: pointer;
     font-size: 11px;
     padding: 4px 10px;
     border-radius: 6px;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     gap: 4px;
     white-space: nowrap;
 }

 .notification-read-btn:hover,
 .notification-reply-btn:hover {
     background: #007bff;
     color: white;
     transform: translateY(-1px);
 }

 .notification-reply-btn {
     border-color: #667eea;
     color: #667eea;
     background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
 }

 .notification-reply-btn:hover {
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     border-color: #667eea;
     color: white;
     box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
 }

 .notification-read-btn i,
 .notification-reply-btn i {
     font-size: 10px;
 }

 .notification-empty {
     padding: 40px 20px;
     text-align: center;
     color: #999;
 }

 .notification-empty i {
     font-size: 48px;
     color: #ddd;
     margin-bottom: 10px;
 }

 .notification-modal-body::-webkit-scrollbar {
     width: 6px;
 }

 .notification-modal-body::-webkit-scrollbar-track {
     background: #f1f1f1;
 }

 .notification-modal-body::-webkit-scrollbar-thumb {
     background: #888;
     border-radius: 3px;
 }

 .notification-modal-body::-webkit-scrollbar-thumb:hover {
     background: #555;
 }

 /* Estilos para Modal de Usuários Online */
 .online-users-summary {
     padding: 5px;
 }

 .online-user-stat {
     display: flex;
     align-items: center;
     padding: 8px 10px;
     margin-bottom: 6px;
     background: #f8f9fa;
     border-radius: 6px;
     transition: all 0.2s;
 }

 .online-user-stat:hover {
     background: #e9ecef;
     transform: translateX(3px);
 }

 .online-user-stat.total {
     background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
     color: white;
 }

 .online-user-stat.total:hover {
     background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
 }

 .online-user-stat i {
     font-size: 18px;
     margin-right: 10px;
     color: #007bff;
 }

 .online-user-stat.total i {
     color: white;
 }

 .stat-content {
     display: flex;
     flex-direction: column;
 }

 .stat-label {
     font-size: 10px;
     color: #666;
     margin-bottom: 1px;
 }

 .online-user-stat.total .stat-label {
     color: rgba(255, 255, 255, 0.9);
 }

 .stat-value {
     font-size: 16px;
     font-weight: bold;
     color: #333;
 }

 .online-user-stat.total .stat-value {
     color: white;
 }

 .online-users-search {
     position: relative;
     margin-top: 10px;
     margin-bottom: 8px;
     padding: 0 10px;
 }

 .online-users-search i {
     position: absolute;
     left: 20px;
     top: 50%;
     transform: translateY(-50%);
     color: #6b7280;
     font-size: 12px;
 }

 .online-users-search input {
     width: 100%;
     padding: 8px 10px 8px 30px;
     border: 2px solid #e5e7eb;
     border-radius: 6px;
     font-size: 13px;
     transition: all 0.2s;
     outline: none;
 }

 .online-users-search input:focus {
     border-color: #667eea;
     box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
 }

 .online-users-search input::placeholder {
     color: #9ca3af;
 }

 .online-users-list-wrapper {
     display: flex;
     flex-direction: column;
     max-height: 300px;
     overflow: hidden;
 }

 .users-list-header {
     display: flex;
     align-items: center;
     gap: 6px;
     font-weight: 600;
     color: #333;
     margin-bottom: 8px;
     margin-top: 10px;
     font-size: 11px;
     padding: 8px 8px 0 8px;
     border-top: 1px solid #e9ecef;
     flex-shrink: 0;
 }

 .users-list-header i {
     color: #007bff;
     font-size: 12px;
 }

 .online-users-list {
     overflow-x: hidden !important;
     overflow-y: auto !important;
     flex: 1;
     padding: 0 8px 8px 8px;
     min-height: 0;
     max-height: 100%;
     scrollbar-width: thin;
     scrollbar-color: #007bff #f0f0f0;
 }

 .online-users-list::-webkit-scrollbar {
     width: 8px;
 }

 .online-users-list::-webkit-scrollbar-track {
     background: #f0f0f0;
     border-radius: 4px;
     margin: 4px 0;
 }

 .online-users-list::-webkit-scrollbar-thumb {
     background: #007bff;
     border-radius: 4px;
 }

 .online-users-list::-webkit-scrollbar-thumb:hover {
     background: #0056b3;
 }

 .user-list-item {
     font-size: 12px;
 }

 .user-list-item {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 6px 10px;
     background: #f8f9fa;
     border-radius: 6px;
     margin-bottom: 5px;
     transition: all 0.2s;
     position: relative;
 }

 .user-list-item:hover {
     background: #e9ecef;
     transform: scale(1.02);
 }

.user-list-item.me {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.06) 0%, rgba(0, 123, 255, 0.03) 100%);
    border-left: 3px solid #007bff;
    padding-left: 8px;
}

 .online-indicator {
     color: #28a745;
     font-size: 6px;
     animation: pulse-online 2s infinite;
 }

 @keyframes pulse-online {
     0%, 100% {
         opacity: 1;
     }
     50% {
         opacity: 0.5;
     }
 }

 .user-name {
     font-size: 11px;
     color: #333;
     font-weight: 500;
     flex: 1;
 }

.user-list-item.me .user-name {
    font-weight: 700;
    color: #004085;
}

/* Botão de enviar mensagem */
.send-message-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.send-message-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.send-message-btn:active {
    transform: scale(0.95);
}

/* Modal de envio de mensagem */
.send-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.send-message-modal.show {
    opacity: 1;
}

.send-message-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.send-message-modal.show .send-message-modal-content {
    transform: translateY(0);
}

.send-message-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.send-message-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.send-message-modal-header h5 i {
    color: #667eea;
}

.close-modal-btn {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
}

.close-modal-btn:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.send-message-modal-body {
    padding: 20px;
}

.recipient-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #4b5563;
}

.recipient-info i {
    color: #667eea;
}

.recipient-info strong {
    color: #1f2937;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-form label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.message-textarea {
    width: 100%;
    padding: 12px;
    padding-right: 45px; /* Espaço para o botão de emoji */
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s;
}

.message-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
    transition: color 0.2s;
}

/* Emoji Picker Styles */
.textarea-wrapper {
    position: relative;
}

.emoji-picker-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 10;
}

.emoji-picker-btn:hover {
    background: #f3f4f6;
    color: #667eea;
    transform: scale(1.1);
}

.emoji-picker {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 320px;
    max-height: 350px;
    overflow: hidden;
    z-index: 1000;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.emoji-categories {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    overflow-x: auto;
    scrollbar-width: thin;
}

.emoji-categories::-webkit-scrollbar {
    height: 4px;
}

.emoji-categories::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.emoji-category-tab {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.emoji-category-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.emoji-category-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 12px;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.emoji-grid::-webkit-scrollbar {
    width: 6px;
}

.emoji-grid::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.emoji-grid::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.emoji-grid::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.emoji-item {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-item:hover {
    background: #f3f4f6;
    transform: scale(1.3);
}

.emoji-item:active {
    transform: scale(1.1);
}

.send-message-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.send-message-modal-footer .modern-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.send-message-modal-footer .secondary-btn {
    background: #e5e7eb;
    color: #374151;
}

.send-message-modal-footer .secondary-btn:hover {
    background: #d1d5db;
}

.send-message-modal-footer .primary-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.send-message-modal-footer .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.send-message-modal-footer .primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsividade do modal de mensagem */
@media (max-width: 768px) {
    .send-message-modal-content {
        width: 95%;
        max-width: none;
    }

    .send-message-modal-header h5 {
        font-size: 16px;
    }

    .send-message-modal-body {
        padding: 15px;
    }

    .send-message-modal-footer {
        padding: 15px;
        flex-direction: column-reverse;
    }

    .send-message-modal-footer .modern-btn {
        width: 100%;
        justify-content: center;
    }

    /* Emoji picker responsivo */
    .emoji-picker {
        width: 280px;
        max-height: 300px;
        right: 50%;
        transform: translateX(50%);
    }

    .emoji-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
        padding: 8px;
        max-height: 220px;
    }

    .emoji-item {
        font-size: 20px;
        padding: 6px;
    }

    .emoji-category-tab {
        padding: 5px 10px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .emoji-picker {
        width: calc(100vw - 40px);
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==================== MODAL DE VISUALIZAÇÃO DE NOTIFICAÇÃO ==================== */
.view-notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-notification-modal.show {
    opacity: 1;
}

.view-notification-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.view-notification-modal.show .view-notification-modal-content {
    transform: scale(1);
}

.view-notification-modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.view-notification-modal-header h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.view-notification-modal-header .close-modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-notification-modal-header .close-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.view-notification-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex: 1;
}

.notification-full-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 10px;
}

.notification-date {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-status.read {
    background: #d1fae5;
    color: #065f46;
}

.notification-status.unread {
    background: #fef3c7;
    color: #92400e;
}

.notification-full-text {
    line-height: 1.8;
    color: #374151;
    font-size: 15px;
    white-space: pre-line;
    word-wrap: break-word;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    min-height: 100px;
}

.view-notification-modal-footer {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.notification-view-btn {
    background: transparent;
    border: 1px solid #10b981;
    color: #10b981;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.notification-view-btn:hover {
    background: #10b981;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.notification-view-btn i {
    font-size: 10px;
}

/* ==================== MODAL DE HISTÓRICO DE MENSAGENS ==================== */
.message-history-modal .view-notification-modal-content {
    max-width: 700px;
    max-height: 80vh;
}

/* ==================== MODAL DE CONFIRMAÇÃO ==================== */
.confirm-modal-content {
    max-width: 450px;
}

.confirm-modal-body {
    padding: 25px 20px;
    text-align: center;
}

.confirm-modal-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

.confirm-modal .view-notification-modal-header h5 {
    color: #f59e0b;
}

.confirm-modal .view-notification-modal-footer {
    gap: 12px;
    justify-content: center;
}

.confirm-modal .modern-btn {
    min-width: 140px;
}

/* ==================== HISTÓRICO DE MENSAGENS ==================== */
.message-history-modal .view-notification-modal-content {
    max-width: 700px;
    max-height: 80vh;
}

.message-history-body {
    max-height: 60vh;
    display: flex;
    flex-direction: column;
}

.message-history-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 8px;
    margin-bottom: 15px;
    color: #667eea;
    font-size: 13px;
    font-weight: 500;
}

.message-history-info i {
    font-size: 16px;
}

.message-history-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.message-history-list::-webkit-scrollbar {
    width: 6px;
}

.message-history-list::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

.message-history-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.message-history-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.message-history-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 15px;
    margin-bottom: 12px;
    border-left: 4px solid #e5e7eb;
    transition: all 0.2s;
}

.message-history-item.unread {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.message-history-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.message-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-read-toggle-btn {
    background: transparent;
    border: 1px solid #cbd5e0;
    color: #6b7280;
    cursor: pointer;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.message-read-toggle-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.message-read-toggle-btn i {
    font-size: 12px;
}

.message-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #6b7280;
}

.message-time i {
    font-size: 10px;
}

.message-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 10px;
}

.message-status.read {
    background: #d1fae5;
    color: #065f46;
}

.message-status.unread {
    background: #fef3c7;
    color: #92400e;
}

.message-status i {
    font-size: 9px;
}

.message-history-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-history-item.unread .message-history-text {
    font-weight: 500;
    color: #1f2937;
}

.danger-btn {
    background: #ef4444;
    color: white;
}

.danger-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.success-btn {
    background: #10b981;
    color: white;
}

.success-btn:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Responsividade do modal de visualização */
@media (max-width: 768px) {
    .view-notification-modal-content {
        width: 95%;
        max-width: none;
        max-height: 90vh;
    }

    .view-notification-modal-header h5 {
        font-size: 16px;
    }

    .view-notification-modal-body {
        padding: 20px;
    }

    .notification-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-notification-modal-footer {
        padding: 15px;
        flex-direction: column-reverse;
    }

    .view-notification-modal-footer .modern-btn {
        width: 100%;
        justify-content: center;
    }

    /* Histórico de mensagens mobile */
    .message-history-modal .view-notification-modal-content {
        max-height: 85vh;
    }

    .message-history-body {
        max-height: 55vh;
    }

    .message-history-item {
        padding: 10px 12px;
    }

    .message-history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .message-actions {
        width: 100%;
        justify-content: space-between;
    }

    .message-read-toggle-btn {
        width: 26px;
        height: 26px;
        padding: 3px 6px;
    }

    .message-count {
        margin-left: 5px;
        font-size: 9px;
        padding: 2px 6px;
    }

    .unread-badge {
        margin-left: 5px;
        font-size: 9px;
        padding: 2px 6px;
    }
}

 /* Responsividade para notificações */
 @media (max-width: 768px) {
     .notification-modal {
         width: 90vw;
         max-width: 350px;
         left: 50% !important;
         transform: translateX(-50%);
     }

     .notification-item {
         padding: 12px 15px;
     }

     .notification-title {
         font-size: 13px;
     }

     .notification-text {
         font-size: 12px;
     }
 }

 /* Estilos Modernos para Botões - Padrão Neutro com Sombras */
 .modern-btn {
     padding: 10px 16px;
     border-radius: 16px;
     font-weight: 700;
     font-size: 0.8rem;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     cursor: pointer;
     display: inline-flex;
     align-items: center;
     gap: 6px;
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     text-decoration: none;
     min-width: 110px;
     justify-content: center;
     position: relative;
     overflow: hidden;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 .modern-btn:hover {
     transform: translateY(-1px);
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 .primary-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
 }

 .primary-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .success-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .success-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .danger-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .danger-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .warning-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .warning-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .secondary-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .secondary-btn-topo {
     color: #333 !important;
 }

 .secondary-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .outline-primary-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: none !important;
     color: #333 !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .outline-primary-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .outline-success-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: none !important;
     color: #333 !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .outline-success-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .outline-danger-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: none !important;
     color: #333 !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .outline-danger-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .outline-warning-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: none !important;
     color: #333 !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .outline-warning-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 /* Correção para botões ativos na navegação */
 .modern-btn.active {
     font-weight: 700 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     transform: translateY(-2px) !important;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
 }

 .modern-btn.active::before {
     transform: scaleX(0) !important;
     background: transparent !important;
 }

 .modern-btn.active:hover {
     transform: translateY(-3px) !important;
     box-shadow: 0 12px 30px rgba(0, 123, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
 }

 /* Prevenção de conflitos com Bootstrap */
 .nav-pills .nav-link.active {
     background-color: transparent !important;
     border: none !important;
     padding: inherit !important;
     margin: inherit !important;
 }

 /* Garantir que os botões de navegação mantenham o padrão neutro */
 .nav-pills .modern-btn {
     display: inline-flex !important;
     align-items: center !important;
     gap: 8px !important;
     text-decoration: none !important;
     position: relative !important;
     overflow: hidden !important;
     transition: all 0.3s ease !important;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
 }

 /* Correção específica para evitar que o Bootstrap aumente o tamanho dos botões */
 .nav-pills .nav-link {
     padding: 0 !important;
     margin: 0 !important;
     border: none !important;
     background: none !important;
     border-radius: 0 !important;
 }

 /* Sobrescrever estilos do Bootstrap que podem afetar o tamanho */
 .nav-pills .nav-link.active {
     background-color: transparent !important;
     color: inherit !important;
     box-shadow: none !important;
     border: none !important;
     padding: 0 !important;
     margin: 0 !important;
 }

 /* Garantir prioridade máxima dos estilos dos botões modernos */
 .modern-btn.danger-btn.active,
 .modern-btn.primary-btn.active,
 .modern-btn.success-btn.active,
 .modern-btn.warning-btn.active {
     padding: 8px 16px !important;
     border-radius: 10px !important;
     font-weight: 700 !important;
     font-size: 0.8rem !important;
     border: none !important;
     min-width: 100px !important;
     max-width: none !important;
     width: auto !important;
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
     gap: 6px !important;
     text-decoration: none !important;
     position: relative !important;
     overflow: hidden !important;
     transform: none !important;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 /* Correção específica para o botão ativo de Atestado Médico */
 a[href*="atestadoMedico"].modern-btn.active {
     height: auto !important;
     line-height: normal !important;
     white-space: nowrap !important;
 }

 /* Correção geral para todos os botões de navegação */
 .nav-pills .nav-item .modern-btn {
     flex-shrink: 0 !important;
     flex-grow: 0 !important;
     height: auto !important;
     line-height: 1.2 !important;
 }

 /* Prevenção de estilos indesejados do Bootstrap */
 .nav-pills .nav-item a {
     text-decoration: none !important;
     color: inherit !important;
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
 }


 /* Correção definitiva para manter o tamanho dos botões com padrão neutro */
 .nav-pills .nav-item a.modern-btn,
 .nav-pills .nav-item a.modern-btn.active,
 .nav-pills .nav-item a.modern-btn:hover {
     padding: 12px 18px !important;
     font-size: 0.85rem !important;
     border-radius: 16px !important;
     min-width: 120px !important;
     max-width: 220px !important;
     height: auto !important;
     line-height: 1.2 !important;
     white-space: nowrap !important;
     overflow: visible !important;
     text-overflow: clip !important;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     border: none !important;
     font-weight: 700 !important;
 }

 /* Reset específico para evitar conflitos */
 .nav-pills .nav-item a.modern-btn.danger-btn.active {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     transform: none !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 /* Garantir que nenhum estilo externo afete os botões */
 .nav-pills .nav-item a.modern-btn * {
     font-size: inherit !important;
     line-height: inherit !important;
     padding: 0 !important;
     margin: 0 !important;
 }

 /* Botões de ícone redondos (notificações, usuários) */
 #notificationBtn,
 #onlineUsersBtn {
     min-width: 36px !important;
     width: 36px !important;
     height: 36px !important;
     padding: 0 !important;
     border-radius: 50% !important;
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
 }

 #notificationBtn i,
 #chatBtn i,
 #onlineUsersBtn i {
     font-size: 18px !important;
     margin: 0 !important;
 }

 #notificationBtn:hover,
 #chatBtn:hover,
 #onlineUsersBtn:hover {
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     background: transparent !important;
     border-color: rgba(0, 0, 0, 0.15) !important;
     color: #000 !important;
 }

 /* Estilo específico para o botão de chat - sem sombra no estado normal, com sombra no hover */
 #chatBtn {
     min-width: 36px !important;
     width: 36px !important;
     height: 36px !important;
     padding: 0 !important;
     border-radius: 50% !important;
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     box-shadow: none !important;
     background: transparent !important;
     color: #000 !important;
     transition: all 0.3s ease !important;
 }

 #chatBtn:hover {
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     background: transparent !important;
     border-color: rgba(0, 0, 0, 0.15) !important;
     color: #000 !important;
 }

 /* Correção final para garantir consistência */
 .nav-pills .nav-item {
     margin: 0 0.25rem !important;
 }

 .nav-pills .nav-item a {
     margin: 0 !important;
     padding: 0 !important;
 }

 /* Forçar reset completo dos estilos dos botões com padrão neutro */
 .nav-pills .nav-item a.modern-btn {
     all: unset;
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
     gap: 8px !important;
     padding: 12px 18px !important;
     border-radius: 16px !important;
     font-size: 0.85rem !important;
     font-weight: 700 !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     cursor: pointer !important;
     text-decoration: none !important;
     position: relative !important;
     overflow: hidden !important;
     transition: all 0.3s ease !important;
     min-width: 120px !important;
     height: auto !important;
     line-height: 1.2 !important;
     white-space: nowrap !important;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
 }

 /* Reaplicar cores neutras após o reset */
 .nav-pills .nav-item a.modern-btn.primary-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.danger-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.success-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.warning-btn {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 /* Reaplicar estilos de hover após o reset com padrão neutro */
 .nav-pills .nav-item a.modern-btn:hover {
     transform: translateY(-1px) !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.primary-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 .nav-pills .nav-item a.modern-btn.danger-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 .nav-pills .nav-item a.modern-btn.success-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 .nav-pills .nav-item a.modern-btn.warning-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 /* Reaplicar estilos de outline buttons com padrão neutro */
 .nav-pills .nav-item a.modern-btn.outline-primary-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: none !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-primary-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-danger-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-danger-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-success-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-success-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-warning-btn {
     background: transparent !important;
     background-color: transparent !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     color: #333 !important;
 }

 .nav-pills .nav-item a.modern-btn.outline-warning-btn:hover {
     background: transparent !important;
     background-color: transparent !important;
     color: #333 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 /* Removido efeito shimmer para evitar conflitos entre botões próximos */
 /* .nav-pills .nav-item a.modern-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .nav-pills .nav-item a.modern-btn:hover::before {
        left: 100%;
    } */

 /* Simplificar efeitos hover para botões de navegação */
 .nav-pills .nav-item a.modern-btn:hover {
     transform: translateY(-1px) !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
 }

 /* Estilos específicos para botões ativos */
 .nav-pills .nav-item a.modern-btn.active {
     transform: none !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     font-weight: 700 !important;
 }

 .nav-pills .nav-item a.modern-btn.active:hover {
     transform: translateY(-1px) !important;
 }

 /* Correção final para garantir que os botões não sejam afetados por estilos externos */
 .nav-pills .nav-item a.modern-btn {
     box-sizing: border-box !important;
     vertical-align: middle !important;
 }

 /* Reset específico para evitar que o Bootstrap afete o tamanho */
 .nav-pills .nav-link {
     padding: 0 !important;
     margin: 0 !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     background: none !important;
     border-radius: 0 !important;
     box-shadow: none !important;
 }

 /* Garantir que os ícones dentro dos botões tenham o tamanho correto */
 .nav-pills .nav-item a.modern-btn i {
     font-size: 0.8rem !important;
     width: auto !important;
     height: auto !important;
     margin: 0 !important;
     padding: 0 !important;
 }

 /* Correção final para garantir que o texto dos botões tenha o tamanho correto */
 .nav-pills .nav-item a.modern-btn span,
 .nav-pills .nav-item a.modern-btn::after,
 .nav-pills .nav-item a.modern-btn::before {
     font-size: inherit !important;
     line-height: inherit !important;
 }

 /* Prevenção de qualquer interferência externa */
 .nav-pills .nav-item a.modern-btn:not(.active) {
     transform: none !important;
 }

 /* Reset completo para garantir consistência */
 .nav-pills .nav-item a.modern-btn {
     -webkit-box-sizing: border-box !important;
     -moz-box-sizing: border-box !important;
     box-sizing: border-box !important;
     -webkit-appearance: none !important;
     -moz-appearance: none !important;
     appearance: none !important;
 }

 /* Correção específica para navegadores WebKit */
 @media screen and (-webkit-min-device-pixel-ratio: 0) {
     .nav-pills .nav-item a.modern-btn {
         -webkit-transform: none !important;
         transform: none !important;
         -webkit-transition: all 0.3s ease !important;
         transition: all 0.3s ease !important;
     }
 }

 /* Correção final para garantir que os botões não sejam redimensionados */
 .nav-pills .nav-item a.modern-btn {
     flex-basis: auto !important;
     flex-shrink: 0 !important;
     flex-grow: 0 !important;
 }

 /* Reset de display para garantir consistência */
 .nav-pills .nav-item {
     display: inline-block !important;
     vertical-align: top !important;
 }

 /* Última correção para garantir que os botões mantenham o tamanho exato */
 .nav-pills .nav-item a.modern-btn {
     width: auto !important;
     max-width: none !important;
     min-height: auto !important;
     max-height: none !important;
 }

 /* Fim das correções CSS para botões de navegação */

 /* Correção específica para o botão de usuário - Mini Card (aparência limpa: sem borda, sem fundo, texto preto) */
 #userMenuBtn.modern-btn {
     all: unset;
     display: inline-flex !important;
     align-items: center !important;
     justify-content: center !important;
     gap: 8px !important;
     padding: 14px 22px !important;
     border-radius: 16px !important;
     font-size: 0.85rem !important;
     font-weight: 700 !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     cursor: pointer !important;
     text-decoration: none !important;
     position: relative !important;
     overflow: hidden !important;
     transition: all 0.15s ease !important;
     min-width: 120px !important;
     height: auto !important;
     line-height: 1.2 !important;
     white-space: nowrap !important;
     color: #000 !important;
     background: transparent !important;
     box-shadow: none !important;
     transform: none !important;
     backdrop-filter: none !important;
 }

 /* Hover limpo - sem fundo, sem borda, texto permanece preto */
 #userMenuBtn.modern-btn:hover {
     font-weight: 700 !important;
     transform: translateY(-1px) !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     background: transparent !important;
     border-color: transparent !important;
     color: #000 !important;
 }

 /* Active state for user button to match nav items */
 #userMenuBtn.modern-btn.active {
     font-weight: 700 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     transform: translateY(-2px) !important;
     background: transparent !important;
     border-color: transparent !important;
     color: #000 !important;
 }

 /* Removido efeito shimmer do botão de usuário para evitar conflitos */
 /* #userMenuBtn.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  #userMenuBtn.modern-btn:hover::before {
    left: 100%;
  } */

 /* Override específico para o botão "Entrar" (login) na área do topo/user-nav:
     manter texto preto e fundo transparente, mas usar os mesmos efeitos de hover/active do .nav-list */
 .top-bar .user-nav .nav-item a.modern-btn.success-btn {
     color: #000 !important;
     background: transparent !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     box-shadow: none !important;
     padding: 12px 18px !important;
     min-width: auto !important;
     transition: all 0.3s ease !important;
 }

 /* Hover: mesmo estilo do menu principal */
 .top-bar .user-nav .nav-item a.modern-btn.success-btn:hover {
     font-weight: 700 !important;
     transform: translateY(-1px) !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     color: #000 !important;
     background: transparent !important;
     border-color: transparent !important;
 }

 /* Active: mesmo estilo do menu principal (estado ativo) */
 .top-bar .user-nav .nav-item a.modern-btn.success-btn.active {
     font-weight: 700 !important;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08) !important;
     transform: translateY(-2px) !important;
     color: #000 !important;
     background: transparent !important;
     border-color: transparent !important;
 }

 /* Garantir que o botão de usuário não seja afetado por estilos externos */
 #userMenuBtn.modern-btn {
     box-sizing: border-box !important;
     vertical-align: middle !important;
     flex-shrink: 0 !important;
     flex-grow: 0 !important;
     width: auto !important;
     max-width: none !important;
     min-height: auto !important;
     max-height: none !important;
 }

 /* Controle específico para o ícone do botão de usuário */
 #userMenuBtn.modern-btn i {
     font-size: 0.8rem !important;
     width: auto !important;
     height: auto !important;
     margin: 0 !important;
     padding: 0 !important;
 }

 /* Prevenção de interferência do Bootstrap no botão de usuário */
 .nav-pills .nav-item button#userMenuBtn {
     margin: 0 0.25rem !important;
     padding: 12px 20px !important;
 }

 /* Reset completo para garantir consistência do botão de usuário */
 button#userMenuBtn.modern-btn {
     -webkit-box-sizing: border-box !important;
     -moz-box-sizing: border-box !important;
     box-sizing: border-box !important;
     -webkit-appearance: none !important;
     -moz-appearance: none !important;
     appearance: none !important;
 }

 /* Correção específica para navegadores WebKit no botão de usuário */
 @media screen and (-webkit-min-device-pixel-ratio: 0) {
     button#userMenuBtn.modern-btn {
         -webkit-transform: none !important;
         transform: none !important;
         -webkit-transition: all 0.3s ease !important;
         transition: all 0.3s ease !important;
     }
 }

 /* Controle de flexbox para o botão de usuário */
 button#userMenuBtn.modern-btn {
     flex-basis: auto !important;
     flex-shrink: 0 !important;
     flex-grow: 0 !important;
 }

 /* Reset de display para o item do botão de usuário */
 .nav-pills .nav-item:has(button#userMenuBtn) {
     display: inline-block !important;
     vertical-align: top !important;
 }

 /* Última correção para garantir que o botão de usuário mantenha o tamanho exato */
 button#userMenuBtn.modern-btn {
     width: auto !important;
     max-width: none !important;
     min-height: auto !important;
     max-height: none !important;
 }

 /* Fim das correções CSS para o botão de usuário */

 /* Barra branca do topo - sempre visível */
 .top-bar {
     background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     padding: 5px 0;
     margin-bottom: 0;
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     width: 100%;
     z-index: 1000;
     border-bottom: 1px solid #dee2e6;
 }

 .top-bar .container {
     padding: 0 20px;
 }

 /* Ajuste para compensar a barra fixa */
 body {
     padding-top: 200px !important;
 }

 /* Espaçamento adicional para o menu de navegação */
 .container header {
     margin-top: 60px !important;
 }

 /* Menu de navegação simplificado e fixo */
 .main-nav {
     width: 100%;
     display: flex;
     justify-content: center;
     padding: 10px 0;
     border-top: 1px solid rgba(0, 0, 0, 0.1);
     margin-top: 10px;
     position: relative;
 }

 .nav-list {
     display: flex;
     list-style: none;
     margin: 0;
     padding: 0;
     gap: 15px;
     align-items: center;
     flex-wrap: wrap;
     justify-content: center;
 }

 .nav-list li a {
     display: flex;
     align-items: center;
     gap: 5px;
     padding: 8px 12px;
     text-decoration: none;
     color: #333;
     font-weight: 500;
     font-size: 14px;
     border-radius: 6px;
     transition: all 0.3s ease;
     white-space: nowrap;
 }

 .nav-list li a:hover {
     font-weight: 700;
     transform: translateY(-1px);
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .nav-list li a.active {
     font-weight: 700;
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
     transform: translateY(-2px);
 }

 .nav-list li a i {
     font-size: 16px;
 }

 /* Botão hambúrguer para mobile */
 .mobile-menu-toggle {
     display: none;
     background: #007bff;
     color: white;
     border: none;
     padding: 8px 12px;
     border-radius: 6px;
     cursor: pointer;
     font-size: 14px;
     align-items: center;
     gap: 5px;
     transition: all 0.3s ease;
     position: absolute;
     right: 10px;
     top: 50%;
     transform: translateY(-50%);
 }

 .mobile-menu-toggle:hover {
     background: #0056b3;
 }

 .mobile-menu-toggle i {
     font-size: 16px;
 }

 .mobile-menu-toggle span {
     display: inline;
 }

 /* Menu mobile fechado por padrão */
 .nav-list.mobile-closed {
     display: none;
 }

 /* Responsividade */
 @media (max-width: 768px) {
     .main-nav {
         padding: 8px 0;
     }

     .nav-list {
         display: none;
         /* Esconde por padrão em mobile */
         flex-direction: column;
         position: absolute;
         top: 100%;
         left: 0;
         right: 0;
         background: white;
         border: 1px solid #dee2e6;
         border-radius: 8px;
         box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
         z-index: 1000;
         gap: 0;
         padding: 10px 0;
     }

     .nav-list.mobile-open {
         display: flex;
     }

     .nav-list li {
         width: 100%;
         text-align: center;
         border-bottom: 1px solid #f0f0f0;
     }

     .nav-list li:last-child {
         border-bottom: none;
     }

     .nav-list li a {
         display: block;
         padding: 12px 20px;
         width: 100%;
         text-align: center;
         border-radius: 0;
     }

     .mobile-menu-toggle {
         display: flex;
     }
 }

 @media (max-width: 480px) {
     .nav-list {
         gap: 8px;
         justify-content: flex-start;
     }

     .nav-list li a {
         padding: 5px 8px;
         font-size: 12px;
     }

     .nav-list li a i {
         font-size: 14px;
     }
 }

/* Ajuste para compensar a barra fixa expandida */

.top-bar-fixed-spacer {
    height: 160px;
    display: block;
    width: 100%;
} /* Estilos Modernos para Cabeçalho */
 .modern-header {
     text-align: center;
     margin-bottom: 10px;
 }

 .main-title {
     font-size: 2.0rem;
     font-weight: 700;
     color: #2c3e50;
     margin: 0;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 15px;
     text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

 .main-title i {
     color: #007bff;
     font-size: 2rem;
     filter: drop-shadow(0 2px 4px rgba(0, 123, 255, 0.3));
 }

 .modern-subtitle {
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
     padding: 8px 16px;
     background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
     border-radius: 15px;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
     margin: 10px 0;
     text-transform: uppercase;
     letter-spacing: 0.3px;
 }

 .modern-subtitle i {
     font-size: 0.8rem;
 }

 .modern-subtitle span {
     font-weight: 500;
     color: #495057;
     font-size: 0.9rem;
 }

 /* Botão Flutuante no Topo */
 .floating-service-btn-top {
     position: relative;
     width: 35px;
     height: 35px;
     background: transparent !important;
     border: 1px solid rgba(0, 0, 0, 0.15) !important;
     border-radius: 50%;
     color: #333 !important;
     font-size: 14px;
     cursor: pointer;
     display: flex;
     align-items: center;
     justify-content: center;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     z-index: 10;
     overflow: hidden;
     margin-left: 15px;
     align-self: center;
     opacity: 1;
     transform: scale(1);
     pointer-events: auto;
 }

 .floating-service-btn-top:hover {
     transform: scale(1.1);
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
     background: transparent !important;
     color: #333 !important;
 }

 .floating-service-btn-top:active {
     transform: translateY(-50%) scale(0.95);
 }

 /* Estado do botão durante o scroll - REMOVIDO */
 /* .floating-service-btn-top.scrolling {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
  } */

 .floating-service-btn-top .btn-text {
     position: absolute;
     left: -70px;
     top: 50%;
     transform: translateY(-50%);
     background: transparent;
     color: #333;
     padding: 6px 10px;
     border-radius: 4px;
     font-size: 11px;
     font-weight: 500;
     white-space: nowrap;
     opacity: 1;
     visibility: visible;
     transition: all 0.5s ease;
     pointer-events: none;
     z-index: 11;
     animation: hideText 3s ease-in-out 2s forwards;
     box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
 }

 .floating-service-btn-top .btn-text::after {
     content: '';
     position: absolute;
     left: 100%;
     top: 50%;
     transform: translateY(-50%);
     border: 4px solid transparent;
     border-left-color: transparent;
 }

 .floating-service-btn-top:hover .btn-text {
     opacity: 1;
     visibility: visible;
     left: -75px;
     animation: none;
 }

 /* Animação para esconder o texto após alguns segundos */
 @keyframes hideText {
     0% {
         opacity: 1;
         visibility: visible;
         transform: translateY(-50%) scale(1);
     }

     50% {
         opacity: 0.7;
         transform: translateY(-50%) scale(0.95);
     }

     100% {
         opacity: 0;
         visibility: hidden;
         transform: translateY(-50%) scale(0.9);
     }
 }

 /* Responsividade */
 @media (max-width: 768px) {
     .floating-service-btn-top {
         width: 30px;
         height: 30px;
         font-size: 12px;
         margin-left: 10px;
     }

     .floating-service-btn-top:hover .btn-text {
         display: none;
     }
 }

 /* Animação de entrada */
 @keyframes floatInTop {
     0% {
         transform: scale(0) rotate(180deg);
         opacity: 0;
     }

     50% {
         transform: scale(1.2) rotate(90deg);
         opacity: 0.7;
     }

     100% {
         transform: scale(1) rotate(0deg);
         opacity: 1;
     }
 }

 .floating-service-btn-top {
     animation: floatInTop 0.6s ease-out;
 }

 .floating-service-btn-top.behind-modal {
     z-index: auto;
 }

 /* Efeito de pulso */
 @keyframes pulseTop {
     0% {
         box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3), 0 0 0 0 rgba(0, 123, 255, 0.7);
     }

     70% {
         box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3), 0 0 0 8px rgba(0, 123, 255, 0);
     }

     100% {
         box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3), 0 0 0 0 rgba(0, 123, 255, 0);
     }
 }

 .floating-service-btn-top .tooltip-text {
     display: none;
     /* Tooltip antigo desabilitado */
 }

 /* Novo tooltip externo - Versão simplificada e moderna */
 .service-tooltip {
     position: fixed;
     top: 0;
     left: 0;
     background: white;
     color: #333;
     padding: 8px 14px;
     border-radius: 8px;
     border: none;
     font-size: 12px;
     font-weight: 600;
     white-space: nowrap;
     opacity: 0;
     visibility: hidden;
     pointer-events: none;
     z-index: 1000;
     box-shadow: 0 4px 20px rgba(0, 123, 255, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
     transform: translateY(-8px) scale(0.9);
     transition: all 0.3s ease;
     letter-spacing: 0.3px;
 }

 .service-tooltip::after {
     content: '';
     position: absolute;
     top: 100%;
     left: 50%;
     transform: translateX(-50%);
     border: 5px solid transparent;
     border-top: 5px solid transparent;
 }

 /* Estados do tooltip */
 .service-tooltip.show {
     opacity: 1;
     visibility: visible;
     transform: translateY(0) scale(1);
     box-shadow: 0 8px 25px rgba(0, 123, 255, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
 }

 .service-tooltip.animate {
     animation: simpleTooltipShow 3s ease-in-out;
 }

 /* Animação simplificada */
 @keyframes simpleTooltipShow {
     0% {
         opacity: 0;
         visibility: hidden;
         transform: translateY(-10px) scale(0.8);
     }

     15% {
         opacity: 1;
         visibility: visible;
         transform: translateY(0) scale(1);
     }

     85% {
         opacity: 1;
         visibility: visible;
         transform: translateY(0) scale(1);
     }

     100% {
         opacity: 0;
         visibility: hidden;
         transform: translateY(-5px) scale(0.9);
     }
 }

 /* ============================================
    MODAL DE CHAT ESTILO INSTAGRAM
    ============================================ */

 .chat-modal-overlay {
     position: fixed;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     background: rgba(0, 0, 0, 0.6);
     z-index: 9998;
     display: flex;
     align-items: center;
     justify-content: center;
     animation: fadeIn 0.2s ease;
 }

 .chat-modal-container {
     position: relative;
     width: 95%;
     max-width: 1000px;
     height: 85vh;
     max-height: 700px;
     background: white;
     border-radius: 16px;
     box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
     display: flex;
     overflow: hidden;
     animation: slideUp 0.3s ease;
     z-index: 9999;
 }

 /* Lista de Conversas (Sidebar) */
 .chat-sidebar {
     width: 350px;
     background: #fafafa;
     border-right: 1px solid #e0e0e0;
     display: flex;
     flex-direction: column;
 }

 .chat-sidebar-header {
     padding: 20px;
     border-bottom: 1px solid #e0e0e0;
     background: white;
     position: relative;
     display: flex;
     justify-content: space-between;
     align-items: center;
 }

 .chat-sidebar-header h3 {
     margin: 0;
     font-size: 20px;
     font-weight: 600;
     color: #262626;
     display: flex;
     align-items: center;
     gap: 10px;
 }

 .chat-sidebar-header h3 i {
     color: #0095f6;
 }

 .chat-close-mobile-btn {
     position: absolute;
     top: 20px;
     right: 20px;
     width: 36px;
     height: 36px;
     border-radius: 50%;
     background: none;
     border: none;
     color: #262626;
     cursor: pointer;
     font-size: 20px;
     display: none;
     align-items: center;
     justify-content: center;
     transition: background 0.2s;
 }

 .chat-close-mobile-btn:hover {
     background: #f0f0f0;
 }

 .chat-search {
     margin-top: 15px;
     padding: 0 20px;
     position: relative;
 }

 .chat-search input {
     width: 100%;
     padding: 10px 15px 10px 40px;
     border: 1px solid #e0e0e0;
     border-radius: 8px;
     font-size: 14px;
     background: #efefef;
     transition: all 0.2s;
 }

 .chat-search input:focus {
     outline: none;
     background: white;
     border-color: #0095f6;
 }

 .chat-search i {
     position: absolute;
     left: 32px;
     top: 50%;
     transform: translateY(-50%);
     color: #8e8e8e;
     font-size: 14px;
 }

 .chat-conversations-list {
     flex: 1;
     overflow-y: auto;
     padding: 8px 0;
 }

 .chat-conversation-item {
     padding: 12px 20px;
     display: flex;
     align-items: center;
     gap: 12px;
     cursor: pointer;
     transition: background 0.2s;
     border-left: 3px solid transparent;
 }

 .chat-conversation-item:hover {
     background: #f0f0f0;
 }

 .chat-conversation-item.active {
     background: white;
     border-left-color: #0095f6;
 }

 .chat-conversation-item.unread {
     background: #e8f5fe;
 }

 .chat-conversation-item.nova-mensagem {
     animation: pulseNewMessage 2s ease-in-out;
 }

 @keyframes pulseNewMessage {
     0%, 100% {
         background: #e8f5fe;
     }
     50% {
         background: #d0ebff;
         box-shadow: inset 0 0 0 2px #0095f6;
     }
 }

 .chat-new-indicator {
     position: absolute;
     top: -2px;
     right: -2px;
     width: 12px;
     height: 12px;
     border-radius: 50%;
     background: #ff4444;
     border: 2px solid white;
     animation: blinkIndicator 1s ease-in-out infinite;
 }

 @keyframes blinkIndicator {
     0%, 100% {
         opacity: 1;
         transform: scale(1);
     }
     50% {
         opacity: 0.5;
         transform: scale(1.2);
     }
 }

 .chat-avatar-wrapper {
     position: relative;
     flex-shrink: 0;
 }

 .chat-avatar {
     width: 56px;
     height: 56px;
     border-radius: 50%;
     background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
     display: flex;
     align-items: center;
     justify-content: center;
     color: white;
     font-weight: 600;
     font-size: 20px;
     flex-shrink: 0;
     text-transform: uppercase;
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .chat-status-indicator {
     position: absolute;
     bottom: 2px;
     right: 2px;
     width: 14px;
     height: 14px;
     border-radius: 50%;
     border: 2px solid white;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
 }

 .chat-status-indicator.online {
     background: #44b700;
 }

 .chat-status-indicator.offline {
     background: #8e8e8e;
 }

 .chat-section-divider {
     padding: 12px 20px 8px;
     background: #fafafa;
     border-top: 1px solid #e0e0e0;
     border-bottom: 1px solid #e0e0e0;
     position: sticky;
     top: 0;
     z-index: 1;
 }

 .chat-section-divider span {
     font-size: 12px;
     font-weight: 600;
     color: #8e8e8e;
     text-transform: uppercase;
     letter-spacing: 0.5px;
 }

 .chat-conversation-info {
     flex: 1;
     min-width: 0;
 }

 .chat-conversation-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 4px;
 }

 .chat-conversation-name {
     font-weight: 600;
     color: #262626;
     font-size: 14px;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .chat-conversation-time {
     font-size: 12px;
     color: #8e8e8e;
     flex-shrink: 0;
 }

 .chat-conversation-preview {
     display: flex;
     align-items: center;
     gap: 5px;
 }

 .chat-conversation-text {
     font-size: 13px;
     color: #8e8e8e;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .chat-conversation-item.unread .chat-conversation-text {
     color: #262626;
     font-weight: 600;
 }

 .chat-unread-badge {
     background: #0095f6;
     color: white;
     border-radius: 12px;
     padding: 2px 8px;
     font-size: 11px;
     font-weight: 600;
     margin-left: auto;
     flex-shrink: 0;
 }

 /* Área de Chat */
 .chat-main {
     flex: 1;
     display: flex;
     flex-direction: column;
     background: white;
     position: relative;
 }

 .chat-main-header {
     padding: 15px 20px;
     padding-top: max(15px, env(safe-area-inset-top));
     border-bottom: 1px solid #e0e0e0;
     display: flex;
     align-items: center;
     justify-content: space-between;
     background: white;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
     width: 100%;
     max-width: 100%;
     overflow: hidden;
     box-sizing: border-box;
 }

 .chat-main-user {
     display: flex;
     align-items: center;
     gap: 12px;
     flex: 1;
     min-width: 0;
     overflow: hidden;
 }

 .chat-main-user .chat-avatar {
     width: 40px;
     height: 40px;
     font-size: 16px;
 }

 .chat-main-user-info h4 {
     margin: 0;
     font-size: 16px;
     font-weight: 600;
     color: #262626;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .chat-main-user-info p {
     margin: 0;
     font-size: 12px;
     color: #8e8e8e;
 }

 .chat-main-actions {
     display: flex;
     gap: 10px;
 }

 .chat-action-btn {
     background: none;
     border: none;
     color: #262626;
     font-size: 20px;
     cursor: pointer;
     padding: 8px;
     border-radius: 50%;
     transition: all 0.2s;
     width: 36px;
     height: 36px;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .chat-action-btn:hover {
     background: #f0f0f0;
 }

 .chat-messages {
     flex: 1;
     overflow-y: auto;
     padding: 20px 40px 20px 40px;
     background: #fafafa;
     scroll-behavior: smooth;
     transition: opacity 0.15s ease;
 }

 .chat-message {
     display: flex;
     margin-bottom: 16px;
     animation: messageSlide 0.3s ease;
     position: relative;
     transition: all 0.3s ease;
 }

 .chat-message-highlight {
     animation: messageHighlight 2s ease;
 }

 @keyframes messageHighlight {
     0%, 100% {
         background: transparent;
     }
     50% {
         background: rgba(0, 149, 246, 0.1);
         border-radius: 12px;
     }
 }

 .chat-message.sent {
     justify-content: flex-end;
 }

 .chat-message-bubble {
     max-width: 60%;
     padding: 10px 14px;
     border-radius: 18px;
     position: relative;
     word-wrap: break-word;
 }

 .chat-message.received .chat-message-bubble {
     background: #e4e6eb;
     color: #262626;
     border-bottom-left-radius: 4px;
 }

 .chat-message.sent .chat-message-bubble {
     background: #0095f6;
     color: white;
     border-bottom-right-radius: 4px;
 }

 .chat-message-text {
     font-size: 14px;
     line-height: 1.4;
     margin: 0;
 }

 .chat-message-meta {
     display: flex;
     align-items: center;
     gap: 8px;
     margin-top: 4px;
     font-size: 11px;
     opacity: 0.7;
 }

 .chat-message.sent .chat-message-meta {
     justify-content: flex-end;
 }

 .chat-message-edited {
     font-style: italic;
 }

 .chat-message-reactions {
     display: flex;
     gap: 4px;
     margin-top: 6px;
     flex-wrap: wrap;
 }

 .chat-reaction {
     background: white;
     border: 1px solid #e0e0e0;
     border-radius: 12px;
     padding: 2px 8px;
     font-size: 12px;
     display: flex;
     align-items: center;
     gap: 4px;
     cursor: pointer;
     transition: all 0.2s;
 }

 .chat-reaction:hover {
     transform: scale(1.1);
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
 }

 .chat-reaction-count {
     font-size: 10px;
     font-weight: 600;
     color: #8e8e8e;
 }

 .chat-date-divider {
     text-align: center;
     margin: 20px 0;
 }

 .chat-date-divider span {
     background: #e4e6eb;
     padding: 6px 12px;
     border-radius: 12px;
     font-size: 12px;
     color: #8e8e8e;
     font-weight: 500;
 }

 /* Botão de responder mensagem */
 .chat-message {
     position: relative;
 }

 .chat-message:hover .chat-message-reply-btn {
     opacity: 1;
 }

 .chat-message-reply-btn {
     position: absolute;
     top: 50%;
     transform: translateY(-50%);
     background: white;
     border: 1px solid #e0e0e0;
     border-radius: 50%;
     width: 28px;
     height: 28px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     opacity: 0;
     transition: all 0.2s;
     font-size: 12px;
     color: #8e8e8e;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
 }

 .chat-message.sent .chat-message-reply-btn {
     right: -34px;
 }

 .chat-message.received .chat-message-reply-btn {
     left: -34px;
 }

 .chat-message-reply-btn:hover {
     background: #f0f2f5;
     color: #0095f6;
     transform: translateY(-50%) scale(1.1);
 }

 /* Preview da mensagem respondida dentro da mensagem */
 .chat-message-reply-preview {
     display: flex;
     gap: 8px;
     margin-bottom: 8px;
     padding: 8px;
     background: rgba(0, 0, 0, 0.05);
     border-radius: 8px;
     cursor: pointer;
     transition: all 0.2s;
 }

 .chat-message-reply-preview:hover {
     background: rgba(0, 0, 0, 0.08);
 }

 .chat-message-reply-deleted {
     opacity: 0.7;
 }

 .chat-message-reply-deleted:hover {
     background: rgba(0, 0, 0, 0.05) !important;
 }

 .chat-message.sent .chat-message-reply-preview {
     background: rgba(255, 255, 255, 0.5);
 }

 .chat-message.sent .chat-message-reply-preview:hover {
     background: rgba(255, 255, 255, 0.7);
 }

 .chat-message.sent .chat-message-reply-preview .chat-message-reply-content strong {
     color: #ffffff;
 }

 .chat-message.sent .chat-message-reply-preview .chat-message-reply-content p {
     color: rgba(255, 255, 255, 0.85);
 }

 .chat-message-reply-bar {
     width: 3px;
     background: #0095f6;
     border-radius: 2px;
     flex-shrink: 0;
 }

 .chat-message-reply-content {
     flex: 1;
     min-width: 0;
 }

 .chat-message-reply-content strong {
     font-size: 12px;
     color: #0095f6;
     display: block;
     margin-bottom: 2px;
 }

 .chat-message-reply-content p {
     font-size: 13px;
     color: #8e8e8e;
     margin: 0;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 /* Preview de resposta no input */
 .chat-reply-preview {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     padding: 10px 15px;
     background: #f0f2f5;
     border-radius: 12px 12px 0 0;
     margin-bottom: -5px;
 }

 .chat-reply-preview-content {
     display: flex;
     gap: 10px;
     flex: 1;
     min-width: 0;
 }

 .chat-reply-preview-bar {
     width: 3px;
     background: #0095f6;
     border-radius: 2px;
     align-self: stretch;
     flex-shrink: 0;
 }

 .chat-reply-preview-text {
     flex: 1;
     min-width: 0;
 }

 .chat-reply-preview-text strong {
     font-size: 12px;
     color: #0095f6;
     display: block;
     margin-bottom: 2px;
 }

 .chat-reply-preview-text p {
     font-size: 13px;
     color: #8e8e8e;
     margin: 0;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
 }

 .chat-reply-preview-close {
     background: none;
     border: none;
     color: #8e8e8e;
     font-size: 16px;
     cursor: pointer;
     padding: 4px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
     flex-shrink: 0;
 }

 .chat-reply-preview-close:hover {
     color: #262626;
     transform: scale(1.1);
 }

 /* Input de Mensagem */
 .chat-input-container {
     padding: 15px 20px;
     padding-bottom: max(15px, env(safe-area-inset-bottom));
     border-top: 1px solid #e0e0e0;
     background: white;
     position: relative;
     width: 100%;
     max-width: 100%;
     box-sizing: border-box;
     overflow: visible;
 }

 .chat-emoji-picker {
     position: absolute;
     bottom: 100%;
     left: 20px;
     right: 20px;
     background: white;
     border-radius: 12px;
     box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
     margin-bottom: 10px;
     max-height: 0;
     overflow: hidden;
     opacity: 0;
     transition: all 0.2s ease;
     z-index: 9999;
 }

 .chat-emoji-picker.show {
     max-height: 280px !important;
     opacity: 1 !important;
     overflow: visible !important;
 }

 .chat-emoji-list {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
     gap: 4px;
     padding: 12px;
     max-height: 280px;
     overflow-y: auto;
 }

 .chat-emoji-list::-webkit-scrollbar {
     width: 6px;
 }

 .chat-emoji-list::-webkit-scrollbar-track {
     background: #f0f0f0;
     border-radius: 3px;
 }

 .chat-emoji-list::-webkit-scrollbar-thumb {
     background: #c0c0c0;
     border-radius: 3px;
 }

 .chat-emoji-list::-webkit-scrollbar-thumb:hover {
     background: #a0a0a0;
 }

 .chat-emoji-item {
     background: none;
     border: none;
     font-size: 24px;
     cursor: pointer;
     padding: 8px;
     border-radius: 8px;
     transition: all 0.15s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .chat-emoji-item:hover {
     background: #f0f2f5;
     transform: scale(1.2);
 }

 .chat-input-wrapper {
     display: flex;
     align-items: flex-end;
     gap: 10px;
     background: #f0f2f5;
     border-radius: 24px;
     padding: 8px 12px;
     transition: all 0.2s;
 }

 .chat-emoji-btn {
     background: none;
     border: none;
     color: #8e8e8e;
     font-size: 20px;
     cursor: pointer;
     padding: 4px;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .chat-emoji-btn:hover {
     color: #0095f6;
     transform: scale(1.1);
 }

 .chat-input-wrapper:focus-within {
     background: #e4e6eb;
 }

 .chat-input {
     flex: 1;
     border: none;
     background: transparent;
     outline: none;
     font-size: 14px;
     color: #262626;
     resize: none;
     max-height: 100px;
     min-height: 20px;
     padding: 6px 0;
     line-height: 1.4;
 }

 .chat-input::placeholder {
     color: #8e8e8e;
 }

 .chat-input-actions {
     display: flex;
     gap: 8px;
     align-items: center;
 }

 .chat-input-btn {
     background: none;
     border: none;
     color: #0095f6;
     font-size: 20px;
     cursor: pointer;
     padding: 4px;
     transition: transform 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
 }

 .chat-input-btn:hover {
     transform: scale(1.1);
 }

 .chat-input-btn:disabled {
     color: #c7c7c7;
     cursor: not-allowed;
 }

 .chat-send-btn {
     background: #0095f6;
     color: white;
     border: none;
     border-radius: 50%;
     width: 32px;
     height: 32px;
     display: flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
     transition: all 0.2s;
     font-size: 16px;
 }

 .chat-send-btn:hover:not(:disabled) {
     background: #0077cc;
     transform: scale(1.05);
 }

 .chat-send-btn:disabled {
     background: #c7c7c7;
     cursor: not-allowed;
 }

 /* Estado Vazio */
 .chat-empty-state {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     height: 100%;
     color: #8e8e8e;
     padding: 40px;
     text-align: center;
 }

 .chat-empty-state i {
     font-size: 80px;
     color: #c7c7c7;
     margin-bottom: 20px;
 }

 .chat-empty-state h3 {
     font-size: 20px;
     color: #262626;
     margin-bottom: 10px;
 }

 .chat-empty-state p {
     font-size: 14px;
     color: #8e8e8e;
 }

 /* Loader */
 .chat-loading {
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
 }

 .chat-loading-spinner {
     border: 3px solid #f0f0f0;
     border-top: 3px solid #0095f6;
     border-radius: 50%;
     width: 30px;
     height: 30px;
     animation: spin 0.8s linear infinite;
 }

 /* Animações */
 @keyframes fadeIn {
     from {
         opacity: 0;
     }

     to {
         opacity: 1;
     }
 }

 @keyframes slideUp {
     from {
         transform: translateY(20px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 @keyframes messageSlide {
     from {
         transform: translateY(10px);
         opacity: 0;
     }

     to {
         transform: translateY(0);
         opacity: 1;
     }
 }

 @keyframes spin {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }

 /* Responsivo */
 @media (max-width: 768px) {
     .chat-modal-container {
         width: 100%;
         height: 100dvh;
         max-height: 100dvh;
         border-radius: 0;
     }

     .chat-sidebar {
         width: 100%;
         position: absolute;
         height: 100%;
         left: 0;
         top: 0;
         z-index: 2;
         transition: transform 0.3s ease;
         background: white;
     }

     .chat-sidebar.mobile-hidden {
         transform: translateX(-100%);
         visibility: hidden;
     }

     .chat-main {
         width: 100%;
         max-width: 100%;
         position: absolute;
         height: 100%;
         max-height: 100dvh;
         left: 0;
         top: 0;
         z-index: 3;
         transition: transform 0.3s ease;
         background: white;
         overflow: hidden;
     }

     .chat-main.mobile-hidden {
         transform: translateX(100%);
         visibility: hidden;
     }

     .chat-message-bubble {
         max-width: 80%;
     }

     .chat-back-btn {
         display: flex;
         align-items: center;
         justify-content: center;
         width: 36px;
         height: 36px;
         border-radius: 50%;
         background: none;
         border: none;
         color: #262626;
         cursor: pointer;
         font-size: 20px;
         margin-right: 8px;
         transition: background 0.2s;
     }

     .chat-back-btn:hover {
         background: #f0f0f0;
     }
     
     .chat-close-mobile-btn {
         display: flex !important;
     }
 }

 @media (min-width: 769px) {
     .chat-back-btn {
         display: none;
     }
     
     /* No desktop, sempre mostrar ambos os painéis */
     .chat-sidebar.mobile-hidden,
     .chat-main.mobile-hidden {
         transform: none !important;
         visibility: visible !important;
     }
 }

/* Ajuste para mobile: descer o cabeçalho dinâmico 20px */
@media (max-width: 768px) {
    .modern-subtitle {
        margin-top: 40px !important;
    }
}

/* Toggle para silenciar mensagens */
.silenciar-toggle {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 8px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007bff;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 12px;
    color: #666;
    user-select: none;
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .chat-close-mobile-btn {
        position: static;
        margin-left: 10px;
    }
}