/* Poradnik Theme stylesheet */
/* Dashboard SaaS layout styles */

.dashboard-shell {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
}

.dashboard-rail {
	background: #111827;
	border-radius: 14px;
	padding: 12px 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.dashboard-rail__dot {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 24px;
	line-height: 1;
	color: #cbd5e1;
	background: rgba(148, 163, 184, 0.2);
}

.dashboard-rail__dot.is-active {
	background: linear-gradient(135deg, #38bdf8, #6366f1);
	color: #fff;
}

.dashboard-content {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 16px;
}

.dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
}

.dashboard-header h1 {
	margin: 0;
	font-size: clamp(1.3rem, 2vw, 1.8rem);
	line-height: 1.2;
}

.dashboard-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.dashboard-nav a {
	text-decoration: none;
	color: #4b5563;
	background: #fff;
	border: 1px solid #e5e7eb;
	padding: 8px 14px;
	border-radius: 8px;
	font-weight: 600;
}

.dashboard-nav a.is-active {
	color: #fff;
	background: #6c3cff;
	border-color: #6c3cff;
}

.kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.kpi-grid--colorful .kpi {
	color: #fff;
	border: none;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.kpi--blue {
	background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.kpi--purple {
	background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}
.kpi--olive {
	background: linear-gradient(135deg, #84cc16, #65a30d);
}
.kpi--teal {
	background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.kpi {
	background: #fff;
	border-radius: 10px;
	padding: 18px;
	border: 1px solid #eceff5;
}
.kpi h3 {
	margin: 0 0 8px;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: inherit;
}
.kpi p {
	margin: 0;
	font-size: 1.55rem;
	color: inherit;
	font-weight: 700;
}
.overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 14px;
}
.overview-main,
.overview-side {
	display: grid;
	gap: 14px;
	align-content: start;
}
.dashboard-page,
.ads-dashboard-page {
	background: #f6f7fb;
	padding: 32px 0 56px;
}

.dashboard-offer-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 10px;
}

.dashboard-offer-item h3 {
	margin: 0 0 6px;
	font-size: 0.98rem;
}

.dashboard-block {
	background: #fff;
	border: 1px solid #eceff5;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 16px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.dashboard-block h2 {
	margin: 0 0 12px;
	font-size: 1.02rem;
}
.dashboard-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.94rem;
}
.dashboard-table th,
.dashboard-table td {
	border-bottom: 1px solid #eef1f7;
	padding: 11px 8px;
	text-align: left;
	vertical-align: middle;
}
.dashboard-table th {
	font-size: 0.85rem;
	color: #6b7280;
	text-transform: lowercase;
}
.dashboard-table tbody tr:nth-child(even) {
	background: #fbfcff;
}
.dashboard-table a {
	font-weight: 600;
	text-decoration: none;
}
.dashboard-table a:hover {
	text-decoration: underline;
}
.dashboard-table-fallback {
	margin-top: 4px;
	border-top: 1px dashed #dbe2ef;
	padding-top: 8px;
}
.dashboard-table-fallback summary {
	cursor: pointer;
	font-weight: 600;
	color: #4f46e5;
	margin-bottom: 8px;
}
.dashboard-table-fallback[open] summary {
	margin-bottom: 10px;
}
.dashboard-create-form {
	display: grid;
	gap: 12px;
	max-width: 520px;
}
.dashboard-create-form label {
	font-weight: 600;
	font-size: 0.9rem;
}
.dashboard-create-form input,
.dashboard-create-form select {
	border: 1px solid #d5dbe8;
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
}
.dashboard-stat-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}
.dashboard-stat-list li {
	display: flex;
	justify-content: space-between;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 8px 10px;
}
@media (max-width: 920px) {
	.dashboard-shell {
		grid-template-columns: 1fr;
	}
	.dashboard-rail {
		flex-direction: row;
		justify-content: center;
		flex-wrap: wrap;
	}
	.overview-grid {
		grid-template-columns: 1fr;
	}
	.dashboard-nav {
		margin-bottom: 14px;
	}
}
