/* Roblox Server Status — restrained, accessible status dashboard */
:root {
	--rs-bg: #fafafa;
	--rs-surface: #ffffff;
	--rs-surface-muted: #f3f5f7;
	--rs-border: #e4e8ee;
	--rs-text: #172033;
	--rs-muted: #667085;
	--rs-accent: #d3ed32;
	--rs-accent-soft: #f5facf;
	--rs-success: #159a6a;
	--rs-warning: #b54708;
	--rs-danger: #d92d20;
	--rs-radius: 12px;
}

.roblox-status-app-root,
.roblox-status-app-root *,
.roblox-status-app-root *::before,
.roblox-status-app-root *::after {
	box-sizing: border-box;
}

.roblox-status-app-root {
	max-width: 1120px;
	margin: 32px auto;
	padding: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--rs-text);
	background: var(--rs-bg);
	border: 1px solid var(--rs-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(16, 24, 40, .10), 0 2px 8px rgba(16, 24, 40, .04);
}

.roblox-status-app-root.roblox-theme-dark {
	--rs-bg: #111827;
	--rs-surface: #172033;
	--rs-surface-muted: #202b3e;
	--rs-border: #2c384e;
	--rs-text: #f5f7fb;
	--rs-muted: #a4b0c2;
	--rs-accent-soft: #162c55;
	background: var(--rs-bg);
}

.roblox-hero-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 30px;
	background: radial-gradient(circle at 88% 10%, rgba(211, 237, 50, .16), transparent 25%), linear-gradient(120deg, #060606 0%, #171717 100%);
	border-bottom: 0;
}
.roblox-hero-left, .roblox-hero-right { display: flex; align-items: center; gap: 14px; }
.roblox-hero-left h2 { margin: 2px 0 0; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; color: #ffffff; }
.roblox-hero-left p { margin: 5px 0 0; font-size: 13px; color: #b9c4dd; }
.roblox-eyebrow { display: block; font-size: 10px; line-height: 1.2; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--rs-accent); }
.roblox-hero-header .roblox-eyebrow { color: var(--rs-accent); }
.roblox-status-orb { display: grid; place-items: center; width: 40px; height: 40px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.15); border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.roblox-status-pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #48d597; box-shadow: 0 0 0 5px rgba(72,213,151,.16); flex: 0 0 auto; }

.roblox-metric-pill { min-width: 88px; padding: 9px 12px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; }
.pill-label { display: block; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #aeb9d3; }
.pill-value { display: block; margin-top: 3px; font-size: 15px; font-weight: 750; color: #ffffff; }
.roblox-refresh-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: #ffffff; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; cursor: pointer; transition: background-color .16s ease, border-color .16s ease; }
.roblox-refresh-btn:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.28); }
.roblox-refresh-btn.spinning svg { animation: rs-spin .65s linear infinite; }
@keyframes rs-spin { to { transform: rotate(360deg); } }

.roblox-nav-tabs { display: inline-flex; gap: 3px; margin: 22px 30px 0; padding: 4px; background: #e9edf5; border: 0; border-radius: 11px; overflow-x: auto; }
.roblox-theme-dark .roblox-nav-tabs { background: #202b3e; }
.roblox-tab-btn { padding: 9px 13px; background: transparent; border: 0; border-radius: 8px; color: var(--rs-muted); font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.roblox-tab-btn:hover { color: var(--rs-text); background: rgba(255,255,255,.62); }
.roblox-tab-btn.active { color: #050505; background: var(--rs-accent); box-shadow: 0 6px 12px rgba(140,165,0,.20); }

.roblox-tab-panels { padding: 22px 30px 30px; }
.roblox-panel { display: none; }
.roblox-panel.active { display: block; animation: rs-reveal .18s ease-out; }
@keyframes rs-reveal { from { opacity: .45; } to { opacity: 1; } }

.roblox-services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.roblox-service-category-card, .roblox-chart-card, .incident-content { background: var(--rs-surface); border: 1px solid var(--rs-border); border-radius: var(--rs-radius); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.roblox-service-category-card { padding: 18px; transition: border-color .16s ease, box-shadow .16s ease; }
.roblox-service-category-card:hover { border-color: #cfd6df; box-shadow: 0 5px 14px rgba(16,24,40,.05); }
.cat-card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 13px; margin-bottom: 3px; border-bottom: 1px solid var(--rs-border); }
.cat-card-header h4 { margin: 0; font-size: 15px; color: var(--rs-text); }
.roblox-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; border-radius: 999px; font-size: 11px; font-weight: 700; }
.roblox-theme-dark .roblox-badge { background: rgba(21,154,106,.14); color: #7ce7ba; border-color: rgba(124,231,186,.24); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sub-services-list { padding: 0; margin: 0; list-style: none; }
.sub-services-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rs-border); font-size: 13px; color: var(--rs-text); }
.sub-services-list li:last-child { border-bottom: 0; }

.roblox-chart-card { padding: 26px; border: 0; background: #080808; box-shadow: 0 16px 38px rgba(0,0,0,.16); }
.roblox-chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.roblox-chart-header h3, .roblox-chart-header h4 { margin: 4px 0 0; color: #ffffff; font-size: 21px; letter-spacing: -.03em; }
.roblox-chart-header p { margin: 6px 0 0; color: #a8a8a8; font-size: 13px; }
.roblox-chart-header .roblox-eyebrow { color: var(--rs-accent); }
.chart-range-selector { display: flex; gap: 2px; padding: 3px; background: #181818; border: 1px solid #2b2b2b; border-radius: 9px; }
.range-btn { padding: 6px 10px; background: transparent; border: 0; border-radius: 6px; color: #a8a8a8; font-size: 11px; font-weight: 800; cursor: pointer; transition: color .16s ease, background-color .16s ease, box-shadow .16s ease; }
.range-btn:hover { color: #ffffff; }
.range-btn.active { color: #050505; background: var(--rs-accent); box-shadow: 0 4px 10px rgba(211,237,50,.18); }
.roblox-chart-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; margin-bottom: 18px; background: #111111; border: 1px solid #272727; border-radius: 12px; }
.roblox-theme-dark .roblox-chart-summary { background: #111111; border-color: #272727; }
.roblox-chart-summary div { padding: 4px 10px; border-right: 1px solid #292929; }
.roblox-chart-summary div:last-child { border-right: 0; }
.roblox-chart-summary span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #8b8b8b; }
.roblox-chart-summary strong { display: block; margin-top: 5px; color: #ffffff; font-size: 17px; letter-spacing: -.02em; }
.roblox-chart-wrapper { position: relative; height: 318px; padding: 10px 6px 0; background: linear-gradient(180deg, rgba(211,237,50,.035), transparent 38%); border-radius: 10px; }

.roblox-incidents-timeline { padding-left: 22px; border-left: 1px solid var(--rs-border); }
.roblox-incident-item { position: relative; margin-bottom: 14px; }
.incident-timeline-dot { position: absolute; top: 18px; left: -27px; width: 9px; height: 9px; border: 2px solid var(--rs-bg); border-radius: 50%; background: var(--rs-success); }
.incident-content { padding: 16px; }
.incident-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.incident-header h4 { margin: 0; font-size: 14px; color: var(--rs-text); }
.incident-meta, .incident-details { margin-top: 7px; color: var(--rs-muted); font-size: 12px; line-height: 1.5; }

.roblox-skeleton-card { min-height: 150px; border-radius: var(--rs-radius); background: linear-gradient(100deg, var(--rs-surface-muted) 35%, rgba(255,255,255,.55) 50%, var(--rs-surface-muted) 65%); background-size: 220% 100%; animation: rs-shimmer 1.4s infinite; }
@keyframes rs-shimmer { to { background-position: -220% 0; } }
.roblox-dashboard-footer { display: flex; justify-content: space-between; gap: 16px; padding: 16px 30px; background: transparent; border-top: 1px solid var(--rs-border); color: var(--rs-muted); font-size: 12px; }

@media (max-width: 700px) {
	.roblox-status-app-root { margin: 12px 0; border-radius: 14px; }
	.roblox-hero-header { display: block; padding: 22px 18px 18px; }
	.roblox-hero-left { align-items: flex-start; gap: 11px; }
	.roblox-status-orb { width: 35px; height: 35px; border-radius: 11px; }
	.roblox-hero-left h2 { font-size: 20px; }
	.roblox-hero-left p { max-width: 280px; font-size: 12px; line-height: 1.45; }
	.roblox-hero-right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px; width: 100%; margin-top: 18px; gap: 8px; }
	.roblox-metric-pill { min-width: 0; padding: 9px 10px; }
	.pill-label { font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.pill-value { font-size: 14px; }
	.roblox-refresh-btn { width: 38px; height: 38px; align-self: stretch; }

	.roblox-nav-tabs { display: flex; width: calc(100% - 32px); box-sizing: border-box; margin: 14px 16px 0; padding: 4px; border-radius: 10px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.roblox-nav-tabs::-webkit-scrollbar { display: none; }
	.roblox-tab-btn { flex: 0 0 auto; padding: 9px 11px; font-size: 12px; min-height: 38px; }
	.roblox-tab-panels { padding: 16px; }
	.roblox-services-grid { grid-template-columns: 1fr; gap: 10px; }
	.roblox-service-category-card { padding: 15px; border-radius: 11px; }
	.cat-card-header h4 { font-size: 14px; }
	.sub-services-list li { padding: 10px 0; font-size: 12px; }

	.roblox-chart-card { padding: 17px 14px 14px; border-radius: 13px; }
	.roblox-chart-header { display: block; margin-bottom: 16px; }
	.roblox-chart-header h3 { font-size: 18px; }
	.roblox-chart-header p { max-width: 265px; font-size: 12px; line-height: 1.45; }
	.chart-range-selector { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin-top: 15px; }
	.range-btn { min-height: 34px; padding: 5px; font-size: 10px; }
	.roblox-chart-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 8px 4px; margin-bottom: 12px; }
	.roblox-chart-summary div { min-width: 0; padding: 5px 7px; border-right: 1px solid #292929; border-bottom: 0; }
	.roblox-chart-summary div:last-child { border-right: 0; }
	.roblox-chart-summary span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
	.roblox-chart-summary strong { overflow: hidden; margin-top: 4px; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
	.roblox-chart-wrapper { height: 225px; padding: 6px 0 0; }

	.roblox-incidents-timeline { padding-left: 16px; }
	.incident-timeline-dot { left: -22px; }
	.incident-content { padding: 13px; }
	.incident-header { align-items: flex-start; flex-direction: column; gap: 7px; }
	.roblox-dashboard-footer { flex-direction: column; gap: 5px; padding: 14px 18px 18px; font-size: 11px; }
}
