/**
 * Royal Links Dashboard page.
 *
 * @package Royal_Links
 */

.rl-dash-wrap { max-width: 1240px; }
.rl-dash-title-row { display:flex; justify-content:space-between; align-items:flex-start; margin: 8px 0 24px; gap: 16px; flex-wrap: wrap; }
.rl-dash-h1 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; }
.rl-dash-subtitle { margin: 0; color: #646970; font-size: 14px; }
.rl-dash-add-new { display:inline-flex !important; align-items:center; justify-content:center; gap: 6px; height: 36px !important; padding: 0 16px !important; line-height: 1 !important; }
.rl-dash-add-new .dashicons { font-size:18px; width:18px; height:18px; line-height: 1 !important; margin: 0 !important; vertical-align: middle; }

/* Stat cards */
.rl-dash-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.rl-dash-stat { background:#fff; border:1px solid #e0e0e0; border-top-width:3px; padding: 16px 18px; border-radius:4px; display:flex; flex-direction:column; gap:6px; }
.rl-dash-stat--blue { border-top-color:#2271b1; }
.rl-dash-stat--green { border-top-color:#00a32a; }
.rl-dash-stat--gold { border-top-color:#C9A227; }
.rl-dash-stat--red { border-top-color:#d63638; }
.rl-dash-stat--gray { border-top-color:#c3c4c7; }
.rl-dash-stat-head { display:flex; align-items:center; gap:6px; color:#646970; font-size:12px; text-transform:uppercase; letter-spacing:.03em; font-weight:600; }
.rl-dash-stat-head .dashicons { font-size:16px; width:16px; height:16px; }
.rl-dash-stat-value { font-size: 30px; font-weight: 600; color:#1d2327; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.rl-dash-stat--red .rl-dash-stat-value { color:#b32d2e; }
.rl-dash-stat-meta { font-size:12px; color:#646970; }
.rl-dash-stat-link { font-size:12px; text-decoration:none; margin-top:auto; padding-top:6px; }

/* Two-column layout */
.rl-dash-two-col { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }

/* Panels */
.rl-dash-panel { background:#fff; border:1px solid #e0e0e0; border-radius:4px; padding: 16px 18px; }
.rl-dash-panel--full { grid-column: 1 / -1; }
.rl-dash-panel-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f1; }
.rl-dash-panel-head h2 { margin: 0; font-size: 15px; font-weight: 600; }
.rl-dash-panel-head a { text-decoration:none; font-size: 12px; }
.rl-dash-panel-meta { color:#646970; font-size:12px; }

/* Lists */
.rl-dash-list { margin: 0; padding: 0; list-style: none; }
.rl-dash-list-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding: 8px 0; border-bottom: 1px solid #f0f0f1; }
.rl-dash-list-row:last-child { border-bottom: none; }
.rl-dash-list-main { display:flex; flex-direction:column; gap:2px; min-width: 0; }
.rl-dash-list-title { text-decoration:none; font-weight: 500; font-size: 13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rl-dash-list-slug { font-size: 11px; color: #646970; background: #f6f7f7; padding: 1px 6px; border-radius: 2px; align-self:flex-start; }
.rl-dash-copy { display:inline-flex !important; align-items:center; justify-content:center; min-width: 32px; width: 32px; height: 28px !important; padding: 0 !important; line-height: 1 !important; color: #2271b1 !important; }
.rl-dash-copy:hover { color: #135e96 !important; background: #f0f6fc !important; }
.rl-dash-copy .dashicons { font-size:16px; width:16px; height:16px; line-height: 1 !important; margin: 0 !important; }

/* Performance rows */
.rl-dash-perf-row { padding: 10px 0; border-bottom: 1px solid #f0f0f1; }
.rl-dash-perf-row:last-child { border-bottom: none; }
.rl-dash-perf-title { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom: 6px; }
.rl-dash-perf-title a { text-decoration:none; font-weight: 500; font-size: 13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rl-dash-perf-count { font-size: 12px; color: #646970; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-dash-perf-bar { height: 6px; background: #f0f0f1; border-radius: 3px; overflow: hidden; }
.rl-dash-perf-bar-fill { height: 100%; background: linear-gradient(90deg, #C9A227, #d4b143); border-radius: 3px; transition: width .3s ease; }

/* Empty states */
.rl-dash-empty { text-align: center; padding: 24px 12px; color: #646970; }
.rl-dash-empty p { margin: 0 0 12px; }

/* Recent clicks table */
.rl-dash-clicks-table th, .rl-dash-clicks-table td { padding: 8px 12px; }

/* Mobile responsive */
@media (max-width: 900px) {
	.rl-dash-stats { grid-template-columns: repeat(2, 1fr); }
	.rl-dash-two-col { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.rl-dash-stats { grid-template-columns: 1fr; }
}
