﻿/* ============================================
   PRESENCE INDICATORS
   ============================================ */

.admin-presence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 6px;
    white-space: nowrap;
    animation: presenceFadeIn 0.3s ease-in;
}

    /* Green = Normal online (default) */
    .admin-presence-badge.status-online {
        background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
        color: #065f46;
        border: 1px solid #10b981;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }

        /* Red = Admin online */
        .admin-presence-badge.status-online.admin-role {
            background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
            color: #991b1b;
            border: 1px solid #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }

        /* Blue = Executive online */
        .admin-presence-badge.status-online.executive-role {
            background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
            color: #1e3a8a;
            border: 1px solid #3b82f6;
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        /* Pulsing dot animation (applies to all) */
        .admin-presence-badge.status-online::before {
            content: "❤";
            margin-right: 6px;
            animation: pulse 2s ease-in-out infinite;
        }
  


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Fade in animation */
@keyframes presenceFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Last seen text */
.admin-last-seen {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
}

/* User status container adjustments */
.admin-user-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 120px;
}

    .admin-user-status .admin-status-badge {
        margin-bottom: 2px;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .admin-presence-badge {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
}
