/* Toast Notifications CSS */
.message-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    min-width: 320px;
    max-width: 90%;
    animation: slideDownIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-left: 4px solid #2E7D32;
    transition: all 0.3s ease;
}

.message-toast:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.message-toast:active {
    transform: translateX(-50%) scale(0.98);
}

.message-toast-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.message-toast-content {
    flex: 1;
    min-width: 0;
}

.message-toast-sender {
    font-weight: 700;
    font-size: 14.5px;
    color: #111;
    margin-bottom: 2px;
    display: block;
}

.message-toast-text {
    font-size: 13.5px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    line-height: 1.4;
}

/* Navbar Badge CSS */
.nav-msg-badge {
    background-color: #f44336;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    position: relative;
    top: -8px;
    margin-left: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: none; /* hidden by default, shown via JS if count > 0 */
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fade-out {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-20px) !important;
    transition: all 0.5s ease;
}
