/* ========================================
   Statistics Page Styles
   RTL/LTR handled via CSS logical properties
   ======================================== */

.stats-section-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.stats-card-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
}

@media (min-width: 768px) {
    .stats-card-wrapper {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (min-width: 1200px) {
    .stats-card-wrapper {
        flex: 0 0 392px;
        max-width: 392px;
    }
}

.stats-card-main {
    background: var(--white, #FFFFFF);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-lg);
    width: 100%;
    position: relative;
    padding-block-start: 11px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.stats-card-main:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.stats-card-accent {
    position: absolute;
    width: 100%;
    height: 11px;
    inset-inline-start: 0;
    top: 0;
    background: var(--primary-color);
    border-radius: 16px 16px 0px 0px;
}

.stats-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex-grow: 1;
}

.stats-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 35px;
    justify-content: space-between;
}

.stats-card-title {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium, 600);
    font-size: 1.5rem;
    line-height: 1.7rem;
    color: var(--primary-color);
    margin: 0;
}

.stats-card-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.stats-row-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
}

.stats-label {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal, 400);
    font-size: 18px;
    line-height: 22px;
    color: var(--gray-900);
    text-align: start;
    flex-grow: 1;
    padding-inline-end: 10px;
}

.stats-pill-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    background: #F8F9FF;
    border-radius: 16px;
    flex-shrink: 0;
}

.stats-value {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-medium, 600);
    font-size: 18px;
    line-height: 22px;
    color: var(--primary-color);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.stats-divider {
    width: 100%;
    height: 1px;
    background: var(--gray-300);
    border: none;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 392px) {
    .stats-card-content {
        padding: 20px;
        gap: 25px;
    }

    .stats-label,
    .stats-value {
        font-size: 16px;
    }
}
