/* ========================================
   DASHBOARD COMPONENT STYLES
   ======================================== */

/* Ring/Progress Circle Styles */
.ring-wrap {
    position: relative;
    width: 220px;
    height: 220px;
}

.ring {
    width: 220px !important;
    height: 220px !important;
    position: absolute;
    top: 0;
    left: 0;
}

.ring svg {
    width: 220px !important;
    height: 220px !important;
}

.ring-background {
    opacity: 0.15;
    z-index: 0;
}

.ring-foreground {
    z-index: 1;
}

.ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    z-index: 2;
}

.ring-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 500;
    color: #5C946E;
}

.ring-value-secondary {
    font-size: 32px;
    line-height: 1;
    font-weight: 500;
    color: #B0BEC5;
}

/* Badge Item Styles */
.badge-item {
    position: relative;
    width: 100px;
    height: 150px;
    margin: 8px;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 100px;
}

.badge-item:hover {
    transform: translateY(-4px);
}

.badge-unearned .badge-image {
    filter: grayscale(100%);
    opacity: 0.5;
}

.badge-unearned .badge-name {
    opacity: 0.6;
}

.badge-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease, filter 0.3s ease;
}

.badge-image:hover {
    transform: scale(1.05);
}

.badge-name {
    font-weight: 600;
    color: var(--mud-palette-text-primary);
}

.badge-date {
    color: var(--mud-palette-text-secondary);
    font-size: 11px;
}

.flex-wrap {
    flex-wrap: wrap;
}

/* Dashboard Divider styles */
.dashboard-divider {
    border-color: rgba(0, 0, 0, 0.2);
    border-width: 3px;
}

.dark-mode .dashboard-divider {
    border-color: rgba(255, 255, 255, 0.2);
    border-width: 3px;
}