:root {
	/* Helix Color Palette */
	--helix-color-1: #f1f4fe; /* lightest */
	--helix-color-2: #e4e6ed;
	--helix-color-3: #c8cad3;
	--helix-color-4: #a9adb9;
	--helix-color-5: #9094a3;
	--helix-color-6: #7f8496;
	--helix-color-7: #777c91;
	--helix-color-8: #63687c;
	--helix-color-9: #595e72;
	--helix-color-10: #4a5167; /* darkest */
}

.helix-dashboard {
	padding: 2rem;
	max-width: 1400px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.helix-page {
	padding: 2rem;
	max-width: 1400px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.helix-page h1 {
	font-size: 2rem;
	margin-bottom: 1rem;
	color: var(--helix-color-10);
	font-weight: 700;
}

.helix-page p {
	color: var(--helix-color-6);
	margin-bottom: 2rem;
}

.helix-dashboard__header {
	margin-bottom: 3rem;
	background: linear-gradient(135deg, var(--helix-color-8) 0%, var(--helix-color-10) 100%);
	color: white;
	padding: 3rem 2rem;
	margin: -2rem 0 3rem -2rem;
	border-radius: 0 0 24px 24px;
	position: relative;
	overflow: hidden;
}

.helix-dashboard__header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
	opacity: 0.3;
}

.helix-dashboard__header h1 {
	font-size: 3rem;
	margin: 0 0 0.5rem 0;
	color: #ffffff;
	font-weight: 800;
	position: relative;
	z-index: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.helix-dashboard__header p {
	font-size: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	margin: 0;
	position: relative;
	z-index: 1;
	font-weight: 400;
	line-height: 3;
}

.helix-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 4rem;
}

.helix-loading__spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--helix-color-2);
	border-top: 4px solid var(--helix-color-7);
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 1rem;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.helix-dashboard__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.helix-stats-card {
	background: var(--helix-color-1);
	border-radius: 12px;
	padding: 1.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	border: 1px solid var(--helix-color-3);
}

.helix-stats-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.helix-stats-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.helix-stats-card__icon svg {
	width: 24px;
	height: 24px;
}

.helix-stats-card__content {
	flex: 1;
}

.helix-stats-card__header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0.25rem;
}

.helix-stats-card__count {
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
	color: var(--helix-color-10);
	line-height: 1;
}

.helix-stats-card__title {
	font-size: 0.875rem;
	color: var(--helix-color-6);
	margin: 0;
	font-weight: 500;
}

.helix-stats-card__trend {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: #059669;
	background: rgba(16, 185, 129, 0.1);
	padding: 0.25rem 0.5rem;
	border-radius: 6px;
}

.helix-trend-icon {
	width: 12px !important;
	height: 12px !important;
}

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

.helix-widget {
	background: var(--helix-color-1);
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	border: 1px solid var(--helix-color-3);
	transition: box-shadow 0.2s ease;
}

.helix-widget:hover {
	box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.helix-widget__header {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--helix-color-2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, var(--helix-color-1) 0%, var(--helix-color-2) 100%);
}

.helix-widget__header h2 {
	margin: 0;
	font-size: 1.25rem;
	color: var(--helix-color-9);
	flex-grow: 1;
}

.helix-widget__link {
	color: var(--helix-color-8);
	text-decoration: none;
	font-size: 0.9rem;
}

.helix-widget__link:hover {
	text-decoration: underline;
}

.helix-widget__content {
	padding: 1.5rem;
}

.helix-widget__empty {
	color: var(--helix-color-6);
	font-style: italic;
}

.helix-posts-list,
.helix-comments-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.helix-posts-list__item,
.helix-comments-list__item {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 1rem 0;
	border-bottom: 1px solid var(--helix-color-2);
}

.helix-posts-list__item:last-child,
.helix-comments-list__item:last-child {
	border-bottom: none;
}

.helix-posts-list__title a,
.helix-comments-list__author {
	color: var(--helix-color-9);
	text-decoration: none;
	font-weight: 500;
}

.helix-posts-list__title a:hover {
	color: var(--helix-color-8);
}

.helix-posts-list__date,
.helix-comments-list__date {
	color: var(--helix-color-6);
	font-size: 0.9rem;
	margin: 0.25rem 0 0 0;
}

.helix-comments-list__excerpt {
	color: var(--helix-color-6);
	margin: 0.25rem 0;
	font-size: 0.9rem;
}

.helix-status {
	padding: 0.25rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.8rem;
	font-weight: 500;
}

.helix-status--publish {
	background: #dcfce7;
	color: #166534;
}

.helix-status--draft {
	background: #fef3c7;
	color: #92400e;
}

.helix-status--approved {
	background: #dcfce7;
	color: #166534;
}

.helix-status--pending {
	background: #fef3c7;
	color: #92400e;
}

.helix-quick-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 1rem;
}

.helix-quick-action {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem 1rem;
	background: linear-gradient(135deg, var(--helix-color-1) 0%, var(--helix-color-2) 100%);
	border-radius: 10px;
	text-decoration: none;
	color: var(--helix-color-9);
	transition: all 0.2s ease;
	border: 1px solid var(--helix-color-3);
	position: relative;
	overflow: hidden;
}

.helix-quick-action:hover {
	background: linear-gradient(135deg, var(--helix-color-3) 0%, var(--helix-color-4) 100%);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	color: var(--helix-color-10);
}

.helix-quick-action__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: var(--helix-color-1);
	border-radius: 10px;
	margin-bottom: 0.75rem;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
}

.helix-quick-action:hover .helix-quick-action__icon {
	background: var(--helix-color-8);
	transform: scale(1.1);
}

.helix-quick-action:hover .helix-quick-action__icon svg {
	color: #ffffff;
}

.helix-quick-action__icon svg {
	width: 20px;
	height: 20px;
	color: var(--helix-color-6);
	transition: color 0.2s ease;
}

.helix-quick-action__text {
	font-size: 0.875rem;
	font-weight: 600;
	text-align: center;
	line-height: 1.2;
}

.helix-news-placeholder {
	color: var(--helix-color-6);
}

.helix-news-item h4 {
	margin: 0 0 0.5rem 0;
	color: var(--helix-color-9);
}

.helix-news-item p {
	margin: 0 0 0.5rem 0;
	font-size: 0.9rem;
}

.helix-news-item a {
	color: var(--helix-color-8);
	text-decoration: none;
	font-size: 0.9rem;
}

.helix-news-item a:hover {
	text-decoration: underline;
}