/* Gamification & LMS Styles */

.learning-swimlane {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.learning-swimlane::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.swimlane-item {
    scroll-snap-align: start;
    flex: 0 0 calc(50% - 20px); /* 2 items visible on mobile/tablet */
    min-width: 280px;
    max-width: 350px;
}

@media (min-width: 1024px) {
    .swimlane-item {
        flex: 0 0 calc(33.333% - 20px);
    }
}

.progress-ring-container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141414;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.progress-ring {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 50%;
    /* The conic gradient will be set inline via JS */
    background: conic-gradient(#4CAF50 0%, #4CAF50 60%, #333 60%, #333 100%);
    z-index: 1;
}

.progress-ring-inner {
    position: absolute;
    top: 3px; left: 3px; right: 3px; bottom: 3px;
    background: #141414;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
}

/* Gamified widgets */
.gamified-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.gamified-widget:hover {
    transform: translateY(-2px);
}

.widget-icon {
    font-size: 1.5rem;
}

.widget-text {
    display: flex;
    flex-direction: column;
}

.widget-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.widget-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
}

/* Confetti wrapper */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}
