/* Purple Gradient Card */
.my-dashboard-stats {
    display: flex;
    justify-content: center; /* Centered card horizontally */
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .my-dashboard-stats {
        justify-content: center;
    }
}

.stat-card {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center; /* Crucial for vertical centering */
    padding: 0; /* Remove padding to avoid offset */
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-width: 180px;
    height: 70px; /* Fixed height */
    transition: transform 0.2s;
    text-align: center;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.purple-gradient {
    /* Stronger purple gradient to match the screenshot better */
    background: linear-gradient(90deg, #7F7FD5 0%, #86A8E7 50%, #91EAE4 100%); /* Example */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Deep Purple */
    /* Let's try to match the vibrant look */
    background: linear-gradient(135deg, #17a2b8 0%, #9b42f5 100%);
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px; /* Slight spacing */
    font-weight: 500;
    line-height: 1;
}

.stat-value {
    font-size: 28px; /* Slightly larger for emphasis */
    font-weight: bold;
    line-height: 1;
}

/* Table Header Pill - Outside */
.table-header-bar-outside {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    padding-left: 0; 
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.purple-pill {
    background: linear-gradient(135deg, #17a2b8 0%, #9b42f5 100%);
}

.stat-pill span {
    font-weight: bold;
    margin-left: 8px;
    font-size: 16px;
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
}
