@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #6d28d9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}
/* WebSocket connection status indicator */
.connection-status {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    z-index: 1000;
}

.connection-status.connected {
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

.connection-status.disconnected {
    background: #f43f5e;
    box-shadow: 0 0 10px #f43f5e;
}

.connection-status.reconnecting {
    background: #fbbf24;
    box-shadow: 0 0 10px #fbbf24;
    animation: pulse 1.5s infinite;
}
/* Friend status badges */
.friend-status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.friend-status-online {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.friend-status-offline {
  background: rgba(100, 116, 139, 0.2);
  color: #64748b;
}

.friend-status-ingame {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

/* Animation classes */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Profile page specific styles */
.profile-stats-card {
    transition: all 0.3s ease;
}

.profile-stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.2);
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}
/* Card styles */
.card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(109, 40, 217, 0.3);
}

/* Button styles */
.btn-primary {
    background-color: #6d28d9;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-secondary {
    background-color: #10b981;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #34d399;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Neon glow effect */
.neon-text {
    text-shadow: 0 0 5px rgba(109, 40, 217, 0.7), 
                 0 0 10px rgba(109, 40, 217, 0.5),
                 0 0 15px rgba(109, 40, 217, 0.3);
}

.neon-border {
    box-shadow: 0 0 5px rgba(109, 40, 217, 0.7), 
                0 0 10px rgba(109, 40, 217, 0.5),
                inset 0 0 5px rgba(109, 40, 217, 0.7);
}