.dashboard-page {
	padding: 2rem 0;
}

.dashboard-hero {
	text-align: center;
	margin-bottom: 2rem;
}

.dashboard-hero h1 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
}

.dashboard-hero p {
	color: #d7d7d7;
	max-width: 640px;
	margin: 0 auto;
}

.dashboard-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	margin-bottom: 1.5rem;
}

.dashboard-controls__group {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.dashboard-controls input[type="search"] {
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	padding: 0.5rem 0.75rem;
	border-radius: 8px;
	min-width: 240px;
}

.dashboard-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.dashboard-card {
	background: rgba(0, 0, 0, 0.45);
	border-radius: 18px;
	padding: 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	min-height: 260px;
}

.dashboard-card__header {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 1rem;
}

.dashboard-card__avatar {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.dashboard-card__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dashboard-card__placeholder {
	font-size: 1.5rem;
	font-weight: bold;
}

.dashboard-card__title h3 {
	font-size: 1.1rem;
	margin: 0;
}

.dashboard-card__title p {
	margin: 0;
	font-size: 0.85rem;
	color: #c5c5c5;
}

.dashboard-card__status {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	text-transform: uppercase;
}

.dashboard-card.status-online .dashboard-card__status {
	background: rgba(0, 200, 83, 0.2);
	color: #53ff8a;
}

.dashboard-card.status-offline .dashboard-card__status {
	background: rgba(244, 67, 54, 0.2);
	color: #ff8a80;
}

.dashboard-card.status-unknown .dashboard-card__status {
	background: rgba(255, 193, 7, 0.2);
	color: #ffe082;
}

.dashboard-card__description {
	margin-bottom: 1rem;
	min-height: 48px;
}

.dashboard-card__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.dashboard-card__stats dt {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #bdbdbd;
}

.dashboard-card__stats dd {
	margin: 0;
	font-size: 1rem;
	font-weight: bold;
}

.dashboard-card__actions {
	margin-top: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.dashboard-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2rem;
	border: 1px dashed rgba(255, 255, 255, 0.3);
	border-radius: 12px;
}

.dashboard-status-bar {
	margin-top: 1.5rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.9rem;
}

.dashboard-status-bar[data-level="error"] {
	background: rgba(244, 67, 54, 0.2);
}

.dashboard-status-bar[data-level="success"] {
	background: rgba(0, 200, 83, 0.2);
}

.dashboard-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
}

.dashboard-loading[hidden] {
	display: none;
}

.dashboard-detail {
	margin-top: 2rem;
	padding: 1rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-detail header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
}

.dashboard-detail pre {
	white-space: pre-wrap;
	max-height: 320px;
	overflow: auto;
	background: rgba(0, 0, 0, 0.45);
	padding: 1rem;
	border-radius: 8px;
	font-size: 0.85rem;
}

.dashboard-detail[hidden] {
	display: none;
}

.dashboard-tag {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	font-size: 0.75rem;
	margin-right: 0.25rem;
}

.dashboard-linked-tools {
	margin-bottom: 2rem;
}

.dashboard-linked-tools h2 {
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.dashboard-linked-tools__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1rem;
}

.dashboard-link-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
	transition: transform 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.dashboard-link-card:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 255, 255, 0.25);
	text-decoration: none;
	color: #fff;
}

.dashboard-link-card h3 {
	margin-bottom: 0.25rem;
}

.dashboard-link-card span {
	font-size: 1.5rem;
}

@media (max-width: 768px) {
	.dashboard-controls {
		flex-direction: column;
		align-items: stretch;
	}
	.dashboard-card__stats {
		grid-template-columns: repeat(2, 1fr);
	}
}
