/**
 * RMGCaptcha Math Guard — Dashboard Styles
 * Clean, modern layout matching WordPress admin style.
 */

.rmgc-dashboard {
    max-width: 1000px;
    margin: 20px 20px 20px 0;
}

/* ── Dashboard Header ───────────────────────────────── */
.rmgc-dashboard-header {
    background: var(--rmgc-white);
    padding: 24px;
    border-radius: var(--rmgc-radius);
    border: 1px solid var(--rmgc-gray-200);
    box-shadow: var(--rmgc-shadow-sm);
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rmgc-dashboard-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: var(--rmgc-gray-900);
}
.rmgc-dashboard-header .version-badge {
    background: var(--rmgc-gray-100);
    color: var(--rmgc-gray-700);
    padding: 4px 12px;
    border-radius: var(--rmgc-radius-sm);
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--rmgc-gray-200);
}

/* ── Stats Grid ─────────────────────────────────────── */
.rmgc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.rmgc-stat-card {
    background: var(--rmgc-white);
    padding: 20px;
    border-radius: var(--rmgc-radius);
    border: 1px solid var(--rmgc-gray-200);
    box-shadow: var(--rmgc-shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}
.rmgc-stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rmgc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.rmgc-stat-card.success .stat-icon {
    background: var(--rmgc-success-light);
    color: var(--rmgc-success);
}
.rmgc-stat-card.warning .stat-icon {
    background: var(--rmgc-warning-light);
    color: var(--rmgc-warning);
}
.rmgc-stat-card.danger .stat-icon {
    background: var(--rmgc-danger-light);
    color: var(--rmgc-danger);
}
.rmgc-stat-card .stat-info {
    flex: 1;
}
.rmgc-stat-card .stat-label {
    font-size: 13px;
    color: var(--rmgc-gray-500);
    font-weight: 500;
    margin-bottom: 4px;
}
.rmgc-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--rmgc-gray-900);
    line-height: 1;
}

/* ── Quick Actions ──────────────────────────────────── */
.rmgc-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.rmgc-action-card {
    background: var(--rmgc-white);
    padding: 20px;
    border-radius: var(--rmgc-radius);
    border: 1px solid var(--rmgc-gray-200);
    box-shadow: var(--rmgc-shadow-sm);
    text-align: center;
    text-decoration: none;
    color: var(--rmgc-gray-700);
    transition: var(--rmgc-transition);
}
.rmgc-action-card:hover {
    border-color: var(--rmgc-primary);
    box-shadow: var(--rmgc-shadow);
    color: var(--rmgc-primary);
}
.rmgc-action-card .action-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}
.rmgc-action-card .action-title {
    font-size: 14px;
    font-weight: 600;
}

/* ── Recent Activity ────────────────────────────────── */
.rmgc-activity-section {
    background: var(--rmgc-white);
    padding: 24px;
    border-radius: var(--rmgc-radius);
    border: 1px solid var(--rmgc-gray-200);
    box-shadow: var(--rmgc-shadow-sm);
}
.rmgc-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rmgc-gray-100);
}
.rmgc-section-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--rmgc-gray-900);
}
.rmgc-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rmgc-activity-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--rmgc-gray-100);
}
.rmgc-activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rmgc-activity-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--rmgc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 18px;
}
.rmgc-activity-icon.login {
    background: var(--rmgc-success-light);
    color: var(--rmgc-success);
}
.rmgc-activity-icon.failed {
    background: var(--rmgc-danger-light);
    color: var(--rmgc-danger);
}
.rmgc-activity-icon.settings {
    background: var(--rmgc-primary-light);
    color: var(--rmgc-primary);
}
.rmgc-activity-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--rmgc-gray-900);
    margin-bottom: 2px;
}
.rmgc-activity-time {
    font-size: 12px;
    color: var(--rmgc-gray-500);
}

@media (max-width: 768px) {
    .rmgc-dashboard { margin-right: 0; }
    .rmgc-dashboard-header { flex-direction: column; text-align: center; gap: 12px; }
}