/* AF App Main — Dashboard layout */

.af-app-main-dashboard {
    max-width: 900px;
    padding: 24px 0;
}

.af-app-main-dashboard .af-app-page-header {
    margin-bottom: 20px;
}

.af-app-main-dashboard .af-app-alert {
    display: flex;
    align-items: center;
    gap: 10px;
}

.af-app-main-dashboard .af-app-alert a {
    margin-left: auto;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    color: inherit;
}

/* Stats grid */
.af-app-main-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.af-app-main-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.af-app-main-stat:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
    transform: translateY(-2px);
}

/* Icon circle */
.af-app-main-stat__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 20px;
}

.af-app-main-stat__icon--primary {
    background: rgba(9, 174, 184, 0.12);
    color: var(--af-primary, #09aeb8);
}

.af-app-main-stat__icon--warning {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.af-app-main-stat__icon--success {
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
}

.af-app-main-stat__icon--danger {
    background: rgba(239, 68, 68, 0.10);
    color: #dc2626;
}

/* Value & label */
.af-app-main-stat__content {
    display: flex;
    flex-direction: column;
}

.af-app-main-stat__value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--af-gray-900, #111827);
}

.af-app-main-stat__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--af-gray-500, #6b7280);
    margin-top: 2px;
}

@media (max-width: 640px) {
    .af-app-main-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
