/* ============================================================================
   VTradeEvents Platform - Custom Styles
   ============================================================================ */

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }

/* --- Loading Spinner --- */
.spinner {
    border: 3px solid #e5e7eb;
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Animations --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.fade-in { animation: fadeIn 0.4s ease-out; }
.slide-in { animation: slideIn 0.3s ease-out; }

/* --- Stat Cards --- */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* --- Booth Card --- */
.booth-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.booth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* --- Floor Plan SVG --- */
.floor-plan-slot {
    cursor: pointer;
    transition: opacity 0.15s ease;
}
.floor-plan-slot:hover {
    opacity: 0.8;
}
.floor-plan-slot.empty {
    cursor: default;
    opacity: 0.3;
}

/* --- Chat Bubbles --- */
.chat-bubble-attendee {
    background: #eff6ff;
    border-radius: 12px 12px 12px 4px;
    padding: 8px 12px;
    max-width: 80%;
}
.dark .chat-bubble-attendee {
    background: #1e3a5f;
}

.chat-bubble-staff {
    background: #f0fdf4;
    border-radius: 12px 12px 4px 12px;
    padding: 8px 12px;
    max-width: 80%;
    margin-left: auto;
}
.dark .chat-bubble-staff {
    background: #1a3a2a;
}

.chat-bubble-system {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px 12px;
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
}
.dark .chat-bubble-system {
    background: #374151;
}

/* --- Tier Colors --- */
.tier-platinum { border-left: 4px solid #8b5cf6; }
.tier-gold { border-left: 4px solid #f59e0b; }
.tier-silver { border-left: 4px solid #9ca3af; }
.tier-standard { border-left: 4px solid #64748b; }

/* --- Presence Indicator --- */
.presence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.presence-dot.online { background: #22c55e; }
.presence-dot.offline { background: #9ca3af; }
.presence-dot.online::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

/* --- Sidebar --- */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    transition: background 0.15s ease, color 0.15s ease;
}
.sidebar-link:hover {
    background: #f3f4f6;
    color: #111827;
}
.dark .sidebar-link:hover {
    background: #374151;
    color: #f9fafb;
}
.sidebar-link.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 500;
}
.dark .sidebar-link.active {
    background: #312e81;
    color: #a5b4fc;
}

/* --- Lead Score Bar --- */
.lead-score-bar {
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    overflow: hidden;
}
.lead-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}
.lead-score-fill.cold { background: #60a5fa; }
.lead-score-fill.warm { background: #fbbf24; }
.lead-score-fill.hot { background: #ef4444; }
