/*
Theme Name: Platforma – Kadence Child
Theme URI: https://platforma.novaedu.pl/
Description: Motyw potomny Kadence dla Platformy NovaEdu.
Author: NovaEdu
Author URI: https://novaedu.pl/
Template: kadence
Version: 1.0.0
Text Domain: platforma-kadence-child
*/

/*
 * Własne style Platformy dodawaj poniżej.
 */
/* =========================================================
   Academy LMS — wycentrowany dashboard NovaEdu
   ========================================================= */

.academy-frontend-dashboard {
	box-sizing: border-box;
	width: 100% !important;
	margin-inline: auto !important;
	padding-block: clamp(24px, 4vw, 64px) 48px;
}

/* Wyjście poza fabryczne ograniczenie Academy do 1140 px. */
.academy-frontend-dashboard > .academy-container {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 1480px !important;
	margin-inline: auto !important;
	padding-inline: clamp(16px, 2.5vw, 36px) !important;
}

.academy-frontend-dashboard > .academy-container > .academy-row {
	margin-inline: 0 !important;
}

/* Sidebar i treść dashboardu. */
.academy-frontend-dashboard
	.academy-container
	.academy-row
	.academy-col-lg-12 {
	display: grid !important;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	align-items: start;
	gap: clamp(20px, 2.5vw, 36px) !important;
	width: 100% !important;
	max-width: none !important;
	padding: 0 !important;
}

.academy-frontend-dashboard__sidebar,
.academy-frontend-dashboard__content {
	box-sizing: border-box;
	min-width: 0;
	width: 100%;
}

/* Łagodniejsze karty i spójniejsza estetyka. */
.academy-frontend-dashboard__sidebar,
.academy-frontend-dashboard .academy-topbar,
.academy-frontend-dashboard
	.academy-frontend-dashboard__content
	.academy-dashboard__content {
	border-radius: 14px !important;
	border-color: rgba(15, 23, 42, 0.08) !important;
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 12px 32px rgba(15, 23, 42, 0.06) !important;
}

.academy-frontend-dashboard .academy-topbar {
	margin-bottom: 24px;
	padding: 18px 24px;
}

.academy-frontend-dashboard .academy-topbar-heading {
	margin: 0;
	font-size: clamp(20px, 2vw, 28px);
	line-height: 1.25;
}

/* Tablet — Academy automatycznie zwija menu do samych ikon. */
@media (min-width: 768px) and (max-width: 1025px) {
	.academy-frontend-dashboard
		.academy-container
		.academy-row
		.academy-col-lg-12 {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 20px !important;
	}
}

/* Telefon. */
@media (max-width: 767px) {
	.academy-frontend-dashboard {
		padding-block: 16px 32px;
	}

	.academy-frontend-dashboard > .academy-container {
		padding-inline: 12px !important;
	}

	.academy-frontend-dashboard
		.academy-container
		.academy-row
		.academy-col-lg-12 {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px !important;
	}

	.academy-frontend-dashboard__sidebar,
	.academy-frontend-dashboard__content {
		width: 100% !important;
		max-width: 100% !important;
	}

	.academy-frontend-dashboard .academy-topbar {
		margin-bottom: 16px;
		padding: 14px 16px;
	}

	.academy-frontend-dashboard
		.academy-frontend-dashboard__content
		.academy-dashboard__content {
		padding: 16px !important;
	}
}
/* =========================================================
 * NovaEdu Platforma — wygląd spójny z Programem Partnerskim
 * ======================================================= */

.academy-frontend-dashboard {
	--academy-primary-color: #6754e9;
	--academy-secondary-color: #f0edff;
	--novaedu-dashboard-bg: #f5f7fb;
	--novaedu-dashboard-border: #e6e9ef;
	--novaedu-dashboard-shadow: 0 10px 30px rgba(30, 41, 59, 0.06);

	width: 100% !important;
	padding: 56px 0 64px;
	background: var(--novaedu-dashboard-bg);
}

body:has(.academy-frontend-dashboard) #inner-wrap,
body:has(.academy-frontend-dashboard) .site-main {
	background: var(--novaedu-dashboard-bg) !important;
}

.academy-frontend-dashboard > .academy-container {
	width: 100% !important;
	max-width: 1720px !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
}

.academy-frontend-dashboard > .academy-container > .academy-row {
	margin: 0 !important;
}

.academy-frontend-dashboard
> .academy-container
> .academy-row
> .academy-col-lg-12 {
	align-items: flex-start !important;
	gap: 24px !important;
	padding: 0 !important;
}

/* =========================
 * Lewy panel
 * ======================= */

.academy-frontend-dashboard .academy-frontend-dashboard__sidebar {
	flex: 0 0 270px !important;
	width: 270px !important;
	position: sticky;
	top: 24px;
	overflow: visible;
	background: #fff !important;
	border: 1px solid var(--novaedu-dashboard-border) !important;
	border-radius: 16px !important;
	box-shadow: var(--novaedu-dashboard-shadow) !important;
}

/* Zachowanie mechanizmu zwijania AcademyLMS. */
.academy-frontend-dashboard
.academy-frontend-dashboard__sidebar:has(.academy-dashboard-menu--compact) {
	flex-basis: 80px !important;
	width: 80px !important;
}

.academy-frontend-dashboard .academy-frontend-dashboard__user {
	margin: 0 18px;
	padding: 18px 0 20px !important;
	border-bottom: 1px solid var(--novaedu-dashboard-border);
}

.academy-frontend-dashboard
.academy-frontend-dashboard__user .user-title {
	gap: 12px;
}

.academy-frontend-dashboard
.academy-frontend-dashboard__user .user-title img {
	width: 48px;
	height: 48px;
}

.academy-frontend-dashboard
.academy-frontend-dashboard__user
.user-title
.academy-dashboard-menu__item-label {
	color: #273247;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 22px !important;
}

.academy-frontend-dashboard
.academy-frontend-dashboard__user
.academy-collapsible-menu--close {
	width: 34px;
	height: 34px;
	border-radius: 8px;
}

/* Nawigacja. */

.academy-frontend-dashboard .academy-dashboard-menu {
	width: 100% !important;
	padding: 12px 18px 18px !important;
	border-radius: 0 0 16px 16px !important;
}

.academy-frontend-dashboard .academy-dashboard-menu li {
	margin: 0;
	padding: 3px 0;
}

.academy-frontend-dashboard .academy-dashboard-menu li > a {
	gap: 12px;
	padding: 12px 14px !important;
	color: #273247 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 22px !important;
	border-radius: 10px !important;
}

.academy-frontend-dashboard
.academy-dashboard-menu li > a .academy-icon::before {
	color: #273247;
	font-size: 20px !important;
}

/* Bez podwójnej kreski pod profilem. */
.academy-frontend-dashboard
.academy-dashboard-menu__item-index::before {
	display: none !important;
}

.academy-frontend-dashboard
.academy-dashboard-menu__item-current > a,
.academy-frontend-dashboard
.academy-dashboard-menu li > a:hover,
.academy-frontend-dashboard
.academy-dashboard-menu li > a:focus {
	color: #6754e9 !important;
	background: #f0edff !important;
	box-shadow: none !important;
	outline: none !important;
}

.academy-frontend-dashboard
.academy-dashboard-menu__item-current > a .academy-icon::before,
.academy-frontend-dashboard
.academy-dashboard-menu li > a:hover .academy-icon::before,
.academy-frontend-dashboard
.academy-dashboard-menu li > a:focus .academy-icon::before {
	color: #6754e9 !important;
}

/* Separator przed ustawieniami. */

.academy-frontend-dashboard
.academy-dashboard-menu__item-settings {
	margin-top: 12px !important;
	padding-top: 14px !important;
}

.academy-frontend-dashboard
.academy-dashboard-menu__item-settings::before {
	top: 0 !important;
	right: 0;
	left: 0 !important;
	width: auto !important;
	background: var(--novaedu-dashboard-border) !important;
}

/* =========================
 * Prawa kolumna
 * ======================= */

.academy-frontend-dashboard .academy-frontend-dashboard__content {
	flex: 1 1 auto;
	min-width: 0;
}

/* Nagłówek jak „Program partnerski”. */

.academy-frontend-dashboard .academy-topbar {
	min-height: 104px;
	margin: 0 0 24px !important;
	padding: 24px 30px !important;
	background: #fff !important;
	border: 1px solid var(--novaedu-dashboard-border) !important;
	border-radius: 16px !important;
	box-shadow: var(--novaedu-dashboard-shadow) !important;
}

.academy-frontend-dashboard .academy-topbar-heading {
	color: #171c29 !important;
	font-size: clamp(28px, 3vw, 36px) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

/* Główna karta dashboardu. */

.academy-frontend-dashboard .academy-analytics-cards {
	align-content: flex-start;
	min-height: 520px;
	margin: 0 !important;
	padding: 32px;
	background: #fff;
	border: 1px solid var(--novaedu-dashboard-border);
	border-radius: 16px;
	box-shadow: var(--novaedu-dashboard-shadow);
}

.academy-frontend-dashboard .academy-analytics-cards--card {
	height: 120px;
	background: #fff !important;
	border: 1px solid var(--novaedu-dashboard-border) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.academy-frontend-dashboard .academy-analytics-cards--card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(30, 41, 59, 0.08) !important;
}

.academy-frontend-dashboard
.academy-analytics-cards--card
.academy-analytics-card--icon {
	border-radius: 10px;
}

/* Pozostałe podstrony: kursy, profil, ustawienia itd. */

.academy-frontend-dashboard .academy-dashboard__content {
	padding: 32px !important;
	background: #fff !important;
	border: 1px solid var(--novaedu-dashboard-border) !important;
	border-radius: 16px !important;
	box-shadow: var(--novaedu-dashboard-shadow) !important;
}

.academy-frontend-dashboard .academy_dashboard_tabs {
	margin: 0 0 24px !important;
	padding: 0 24px !important;
	overflow-x: auto;
	background: #fff !important;
	border: 1px solid var(--novaedu-dashboard-border) !important;
	border-radius: 16px !important;
	box-shadow: var(--novaedu-dashboard-shadow) !important;
}

.academy-frontend-dashboard .academy_dashboard_tabs::after {
	display: none !important;
}

.academy-frontend-dashboard
.academy_dashboard_tabs__selected {
	color: #6754e9 !important;
	border-color: #6754e9 !important;
}

/* =========================
 * Tablet
 * ======================= */

@media screen and (min-width: 768px) and (max-width: 1025px) {
	.academy-frontend-dashboard
	> .academy-container
	> .academy-row
	> .academy-col-lg-12 {
		gap: 16px !important;
	}

	.academy-frontend-dashboard
	.academy-frontend-dashboard__sidebar:has(.academy-dashboard-menu--compact) {
		flex-basis: 80px !important;
		width: 80px !important;
	}

	.academy-frontend-dashboard
	.academy-dashboard-menu--compact {
		padding: 10px !important;
	}
}

/* =========================
 * Telefon
 * ======================= */

@media screen and (max-width: 767px) {
	.academy-frontend-dashboard {
		padding: 18px 0 40px;
	}

	.academy-frontend-dashboard > .academy-container {
		padding: 0 16px !important;
	}

	.academy-frontend-dashboard
	> .academy-container
	> .academy-row
	> .academy-col-lg-12 {
		flex-direction: column !important;
		gap: 16px !important;
	}

	.academy-frontend-dashboard .academy-frontend-dashboard__sidebar {
		flex: 0 0 auto !important;
		width: 100% !important;
		position: static;
	}

	.academy-frontend-dashboard .academy-frontend-dashboard__content {
		width: 100%;
	}

	.academy-frontend-dashboard .academy-topbar {
		min-height: 0;
		padding: 18px 20px !important;
	}

	.academy-frontend-dashboard .academy-topbar-heading {
		font-size: 26px !important;
	}

	.academy-frontend-dashboard .academy-analytics-cards {
		min-height: 0;
		gap: 12px;
		padding: 18px;
	}

	.academy-frontend-dashboard .academy-analytics-cards--card {
		width: 100% !important;
		height: auto;
		min-height: 110px;
		padding: 20px;
	}

	.academy-frontend-dashboard .academy-dashboard__content {
		padding: 18px !important;
	}

	.academy-frontend-dashboard .academy_dashboard_tabs {
		gap: 20px;
		padding: 0 18px !important;
		white-space: nowrap;
	}
}
/* =========================================================
 * NovaEdu Platforma — strona logowania
 * ======================================================= */

body.novaedu-platform-login-home #inner-wrap,
body.novaedu-platform-login-home .site-main {
	background: #f5f7fb !important;
}

body.novaedu-platform-login-home .entry-hero,
body.novaedu-platform-login-home .entry-hero-container-inner,
body.novaedu-platform-login-home .page-hero-section,
body.novaedu-platform-login-home .entry-header {
	display: none !important;
}

body.novaedu-platform-login-home #primary,
body.novaedu-platform-login-home .content-area {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.novaedu-platform-login-home .content-container {
	max-width: none !important;
	padding: 0 !important;
}

body.novaedu-platform-login-home .entry-content-wrap {
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.novaedu-platform-login-home .entry-content {
	margin: 0 !important;
}

/* Główny układ. */

.novaedu-platform-login-page {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: calc(100svh - 80px);
	padding: 48px 20px;
	background:
		radial-gradient(
			circle at top,
			rgba(103, 84, 233, 0.09),
			transparent 38%
		),
		#f5f7fb;
}

.novaedu-login-card {
	width: 100%;
	max-width: 640px;
	padding: clamp(28px, 5vw, 48px);
	background: #fff;
	border: 1px solid #e6e9ef;
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(30, 41, 59, 0.09);
}

/* Identyfikacja NovaEdu. */

.novaedu-login-brand {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	color: #fff;
	background: linear-gradient(135deg, #7968ef, #5744dd);
	border-radius: 18px;
	box-shadow: 0 12px 25px rgba(103, 84, 233, 0.25);
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.novaedu-login-header {
	margin-bottom: 28px;
	text-align: center;
}

.novaedu-login-header h1 {
	margin: 0 0 10px;
	color: #171c29;
	font-size: clamp(30px, 5vw, 40px);
	font-weight: 750;
	line-height: 1.2;
}

.novaedu-login-header p {
	margin: 0;
	color: #667085;
	font-size: 16px;
	line-height: 1.6;
}

/* Przycisk Authentik / OIDC. */

.novaedu-login-sso .openid-connect-login-button {
	margin: 0 !important;
	text-align: initial !important;
}

.novaedu-login-sso
.openid-connect-login-button
a.button.button-large {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	margin: 0;
	padding: 12px 20px !important;
	color: #fff !important;
	background: #6754e9 !important;
	border: 0 !important;
	border-radius: 12px !important;
	box-shadow: 0 10px 22px rgba(103, 84, 233, 0.22) !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	transition:
		transform 0.18s ease,
		background-color 0.18s ease,
		box-shadow 0.18s ease;
}

.novaedu-login-sso
.openid-connect-login-button
a.button.button-large::before {
	content: "N";
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: #6754e9;
	background: #fff;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 800;
}

.novaedu-login-sso
.openid-connect-login-button
a.button.button-large:hover {
	background: #5946dc !important;
	box-shadow: 0 13px 28px rgba(103, 84, 233, 0.3) !important;
	transform: translateY(-1px);
}

/* Separator. */

.novaedu-login-divider {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 28px 0;
	color: #7b8496;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
}

.novaedu-login-divider::before,
.novaedu-login-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e6e9ef;
}

/* Formularz AcademyLMS. */

.novaedu-login-card .academy-login-form-wrapper {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.novaedu-login-card .academy-login-form-wrapper:hover {
	box-shadow: none !important;
}

.novaedu-login-card .academy-login-form-heading {
	display: none !important;
}

.novaedu-login-card .academy-login-form .academy-form-group {
	margin: 0 0 18px !important;
	padding: 0 !important;
}

.novaedu-login-card .academy-login-form .academy-form-group label {
	margin-bottom: 8px;
	color: #273247;
	font-size: 14px;
	font-weight: 650;
}

.novaedu-login-card
.academy-login-form
.academy-form-group
.academy-form-control {
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	color: #171c29;
	background: #fbfcfe;
	border: 1px solid #dfe3ea;
	border-radius: 10px;
	box-shadow: none;
	font-size: 15px;
	transition:
		border-color 0.18s ease,
		box-shadow 0.18s ease,
		background-color 0.18s ease;
}

.novaedu-login-card
.academy-login-form
.academy-form-group
.academy-form-control:hover,
.novaedu-login-card
.academy-login-form
.academy-form-group
.academy-form-control:focus {
	background: #fff;
	border-color: #6754e9;
	box-shadow: 0 0 0 4px rgba(103, 84, 233, 0.1);
	outline: none;
}

/* Ikona pokazywania hasła. */

.novaedu-login-card
.academy-login-form
.academy-form-group > div {
	position: relative;
}

.novaedu-login-card
.academy-login-form
.toggle-password {
	position: absolute !important;
	top: 50% !important;
	right: 16px !important;
	margin: 0 !important;
	transform: translateY(-50%);
}

/* Zapamiętaj mnie + reset hasła. */

.novaedu-login-card
.academy-login-form
.academy-form-group.academy-d-flex {
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.novaedu-login-card
.academy-form-group__forgetmenot label {
	margin: 0 !important;
	font-weight: 500 !important;
}

.novaedu-login-card
.academy-form-group__forgetmenot input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	margin: 0 8px 0 0 !important;
	accent-color: #6754e9;
}

.novaedu-login-card .academy-form-text-link {
	color: #6754e9;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.novaedu-login-card .academy-form-text-link:hover {
	text-decoration: underline;
}

/* Przycisk tradycyjnego logowania. */

.novaedu-login-card
.academy-login-form
button.academy-btn {
	width: 100%;
	min-height: 52px;
	padding: 12px 20px !important;
	color: #6754e9 !important;
	background: #f0edff !important;
	border: 1px solid rgba(103, 84, 233, 0.18) !important;
	border-radius: 12px !important;
	box-shadow: none !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	transition:
		background-color 0.18s ease,
		transform 0.18s ease;
}

.novaedu-login-card
.academy-login-form
button.academy-btn:hover {
	background: #e6e0ff !important;
	transform: translateY(-1px);
}

/* Konta tworzymy przez NovaEdu, więc chowamy rejestrację Academy. */

.novaedu-login-card .academy-login-form-info {
	display: none !important;
}

.novaedu-login-card .academy-login-form-status {
	margin: 0 0 18px;
	border-radius: 10px;
}

.novaedu-login-already-logged {
	text-align: center;
}

.novaedu-login-already-logged a {
	display: inline-flex;
	padding: 14px 22px;
	color: #fff;
	background: #6754e9;
	border-radius: 12px;
	font-weight: 700;
	text-decoration: none;
}

/* Telefon. */

@media screen and (max-width: 600px) {
	.novaedu-platform-login-page {
		min-height: calc(100svh - 40px);
		padding: 20px 14px;
	}

	.novaedu-login-card {
		padding: 28px 20px;
		border-radius: 16px;
	}

	.novaedu-login-brand {
		width: 56px;
		height: 56px;
		border-radius: 15px;
		font-size: 29px;
	}

	.novaedu-login-divider {
		gap: 10px;
	}

	.novaedu-login-card
	.academy-login-form
	.academy-form-group.academy-d-flex {
		align-items: flex-start;
		flex-direction: column !important;
		gap: 8px;
	}
}

/* NOVAEDU PLATFORM BLUE V1 START */

/* Panel kursanta */
.academy-frontend-dashboard {
	--academy-primary-color: #008bc2 !important;
	--academy-secondary-color: #e7f7fc !important;
	--novaedu-dashboard-bg: #f4f7fb !important;
	--novaedu-dashboard-border: #dfe7f0 !important;
}

html:has(.academy-frontend-dashboard),
body:has(.academy-frontend-dashboard),
body:has(.academy-frontend-dashboard) #page,
body:has(.academy-frontend-dashboard) #inner-wrap,
body:has(.academy-frontend-dashboard) .site-main {
	background-color: #f4f7fb !important;
	background-image: none !important;
}

.academy-frontend-dashboard .academy-dashboard-menu__item-current > a,
.academy-frontend-dashboard .academy-dashboard-menu li > a:hover,
.academy-frontend-dashboard .academy-dashboard-menu li > a:focus {
	color: #006f9b !important;
	background: #e7f7fc !important;
}

.academy-frontend-dashboard .academy-dashboard-menu__item-current > a .academy-icon::before,
.academy-frontend-dashboard .academy-dashboard-menu li > a:hover .academy-icon::before,
.academy-frontend-dashboard .academy-dashboard-menu li > a:focus .academy-icon::before {
	color: #008bc2 !important;
}

.academy-frontend-dashboard .academy_dashboard_tabs__selected {
	color: #008bc2 !important;
	border-color: #008bc2 !important;
}

.academy-frontend-dashboard a:not(.academy-dashboard-menu a) {
	color: #006f9b;
}

.academy-frontend-dashboard .academy-btn--bg-purple,
.academy-frontend-dashboard .academy-btn.academy-btn--bg-purple {
	color: #fff !important;
	background: #008bc2 !important;
	border-color: #008bc2 !important;
}

.academy-frontend-dashboard .academy-btn--bg-purple:hover {
	background: #006f9b !important;
	border-color: #006f9b !important;
}

/* Strona logowania platformy */
html:has(body.novaedu-platform-login-home),
body.novaedu-platform-login-home,
body.novaedu-platform-login-home #page,
body.novaedu-platform-login-home #inner-wrap,
body.novaedu-platform-login-home .site-main {
	background-color: #f4f7fb !important;
}

.novaedu-platform-login-page {
	background:
		radial-gradient(circle at 15% 8%, rgba(0, 139, 194, 0.15), transparent 32%),
		radial-gradient(circle at 88% 92%, rgba(0, 139, 194, 0.09), transparent 34%),
		#f4f7fb !important;
}

.novaedu-login-brand {
	background: linear-gradient(135deg, #008bc2, #006f9b) !important;
	box-shadow: 0 12px 26px rgba(0, 139, 194, 0.24) !important;
}

.novaedu-login-sso .openid-connect-login-button a.button.button-large {
	color: #fff !important;
	background: linear-gradient(135deg, #008bc2, #006f9b) !important;
	box-shadow: 0 11px 24px rgba(0, 139, 194, 0.23) !important;
}

.novaedu-login-sso .openid-connect-login-button a.button.button-large::before {
	color: #006f9b !important;
}

.novaedu-login-sso .openid-connect-login-button a.button.button-large:hover {
	background: linear-gradient(135deg, #006f9b, #005574) !important;
	box-shadow: 0 14px 29px rgba(0, 111, 155, 0.28) !important;
}

.novaedu-login-card .academy-login-form .academy-form-group .academy-form-control:hover,
.novaedu-login-card .academy-login-form .academy-form-group .academy-form-control:focus {
	border-color: #008bc2 !important;
	box-shadow: 0 0 0 4px rgba(0, 139, 194, 0.12) !important;
}

.novaedu-login-card .academy-form-group__forgetmenot input[type="checkbox"] {
	accent-color: #008bc2 !important;
}

.novaedu-login-card .academy-form-text-link {
	color: #006f9b !important;
}

/* Tradycyjny przycisk jak w sklepie NovaEdu. */
.novaedu-login-card .academy-login-form button.academy-btn {
	color: #fff !important;
	background: #172033 !important;
	border: 1px solid #172033 !important;
}

.novaedu-login-card .academy-login-form button.academy-btn:hover {
	color: #fff !important;
	background: #006f9b !important;
	border-color: #006f9b !important;
}

.novaedu-login-already-logged a {
	color: #fff !important;
	background: #008bc2 !important;
}

/* NOVAEDU PLATFORM BLUE V1 END */



/* NOVAEDU PLATFORM UNIFIED V3 START */

html:has(.academy-frontend-dashboard),
body:has(.academy-frontend-dashboard) {
	--novaedu-brand: #008bc2;
	--novaedu-brand-dark: #006f9b;
	--novaedu-soft: #e7f7fc;
	--novaedu-bg: #f4f7fb;
	--novaedu-text: #273247;
	--novaedu-border: #d9e4ee;
	--novaedu-shadow: 0 14px 38px rgba(23, 32, 51, 0.07);

	overflow-x: clip;
	background: var(--novaedu-bg) !important;
}

/* Pełne tło — bez białych pasów po bokach. */
body:has(.academy-frontend-dashboard)
	:is(
		#page,
		#wrapper,
		#inner-wrap,
		#primary,
		#main,
		.site,
		.site-content,
		.site-main,
		.content-area,
		.content-container,
		.site-container,
		.content-bg,
		article.entry,
		.entry-content-wrap,
		.entry-content
	) {
	width: 100% !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
	padding-right: 0 !important;
	padding-left: 0 !important;
	background: var(--novaedu-bg) !important;
	background-image: none !important;
	box-shadow: none !important;
	float: none !important;
}

body:has(.academy-frontend-dashboard) .content-container {
	display: block !important;
}

/* Wyjście poza ograniczony kontener Kadence. */
.academy-frontend-dashboard {
	box-sizing: border-box !important;
	width: 100vw !important;
	max-width: none !important;
	margin-right: calc(50% - 50vw) !important;
	margin-left: calc(50% - 50vw) !important;
	padding: clamp(24px, 2.5vw, 40px) 0 64px !important;
	background: var(--novaedu-bg) !important;
}

.academy-frontend-dashboard > .academy-container {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1920px !important;
	margin: 0 auto !important;
	padding-right: clamp(18px, 2.4vw, 42px) !important;
	padding-left: clamp(18px, 2.4vw, 42px) !important;
}

.academy-frontend-dashboard > .academy-container > .academy-row {
	width: 100% !important;
	margin: 0 !important;
}

/* Identyczne proporcje jak w sklepie. */
.academy-frontend-dashboard
	> .academy-container
	> .academy-row
	> .academy-col-lg-12 {
	display: grid !important;
	grid-template-columns: minmax(280px, 340px) minmax(0, 1fr) !important;
	align-items: start !important;
	gap: clamp(24px, 2.6vw, 44px) !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.academy-frontend-dashboard
	> .academy-container
	> .academy-row
	> .academy-col-lg-12:has(.academy-dashboard-menu--compact) {
	grid-template-columns: 88px minmax(0, 1fr) !important;
}

/* Wspólny wygląd kart. */
.academy-frontend-dashboard
	:is(
		.academy-frontend-dashboard__sidebar,
		.academy-frontend-dashboard__content
	) {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	background: #fff !important;
	border: 1px solid var(--novaedu-border) !important;
	border-radius: 24px !important;
	box-shadow: var(--novaedu-shadow) !important;
}

.academy-frontend-dashboard .academy-frontend-dashboard__sidebar {
	position: sticky !important;
	top: 24px !important;
}

/* Nagłówek użytkownika — bez łamania imienia. */
.academy-frontend-dashboard .academy-frontend-dashboard__user {
	margin: 0 20px !important;
	padding: 22px 0 !important;
	border-bottom: 1px solid var(--novaedu-border) !important;
}

.academy-frontend-dashboard
	.academy-frontend-dashboard__user
	.user-title {
	gap: 11px !important;
	min-width: 0 !important;
}

.academy-frontend-dashboard
	.academy-frontend-dashboard__user
	.user-title img {
	flex: 0 0 56px !important;
	width: 56px !important;
	height: 56px !important;
	border: 3px solid #edf2f7 !important;
}

.academy-frontend-dashboard
	.academy-frontend-dashboard__user
	.user-title
	.academy-dashboard-menu__item-label {
	min-width: 0 !important;
	overflow: hidden !important;
	color: #172033 !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	white-space: nowrap !important;
	text-overflow: ellipsis !important;
}

.academy-frontend-dashboard
	.academy-frontend-dashboard__user
	.academy-collapsible-menu--close {
	flex: 0 0 36px !important;
	width: 36px !important;
	height: 36px !important;
	border: 1px solid var(--novaedu-border) !important;
	border-radius: 10px !important;
}

/* Menu. */
.academy-frontend-dashboard .academy-dashboard-menu {
	box-sizing: border-box !important;
	width: 100% !important;
	padding: 13px 20px 22px !important;
	border-radius: 0 0 24px 24px !important;
}

.academy-frontend-dashboard .academy-dashboard-menu li {
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 2px 0 !important;
}

.academy-frontend-dashboard .academy-dashboard-menu li > a {
	display: flex !important;
	align-items: center !important;
	gap: 13px !important;
	width: 100% !important;
	min-height: 49px !important;
	padding: 11px 14px !important;
	color: var(--novaedu-text) !important;
	border-radius: 13px !important;
	font-size: 15px !important;
	font-weight: 650 !important;
	line-height: 1.3 !important;
}

.academy-frontend-dashboard
	.academy-dashboard-menu
	li
	> a
	.academy-icon::before {
	color: var(--novaedu-text) !important;
	font-size: 21px !important;
}

.academy-frontend-dashboard
	.academy-dashboard-menu__item-current
	> a,
.academy-frontend-dashboard
	.academy-dashboard-menu
	li
	> a:hover,
.academy-frontend-dashboard
	.academy-dashboard-menu
	li
	> a:focus {
	color: var(--novaedu-brand-dark) !important;
	background: var(--novaedu-soft) !important;
	box-shadow: none !important;
}

.academy-frontend-dashboard
	.academy-dashboard-menu__item-current
	> a
	.academy-icon::before,
.academy-frontend-dashboard
	.academy-dashboard-menu
	li
	> a:hover
	.academy-icon::before {
	color: var(--novaedu-brand) !important;
}

/* Separatory odnośników między panelami. */
.academy-frontend-dashboard
	.academy-dashboard-menu
	li:has(> a[href*="//new.novaedu.pl"]),
.academy-frontend-dashboard
	.academy-dashboard-menu
	li:has(> a[href*="//novaedu.pl"]),
.academy-frontend-dashboard
	.academy-dashboard-menu
	li:has(> a[href*="//pp.novaedu.pl"]),
.academy-frontend-dashboard
	.academy-dashboard-menu
	.academy-dashboard-menu__item-settings {
	margin-top: 7px !important;
	padding-top: 10px !important;
	border-top: 1px solid var(--novaedu-border) !important;
}

.academy-frontend-dashboard
	.academy-dashboard-menu__item-settings::before {
	display: none !important;
}

/* Prawy panel jako jedna karta. */
.academy-frontend-dashboard .academy-frontend-dashboard__content {
	min-height: min(780px, calc(100svh - 76px)) !important;
}

.academy-frontend-dashboard .academy-topbar {
	min-height: 0 !important;
	margin: 0 !important;
	padding: clamp(28px, 2.7vw, 42px)
		clamp(30px, 3.2vw, 52px) !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--novaedu-border) !important;
	border-radius: 24px 24px 0 0 !important;
	box-shadow: none !important;
}

.academy-frontend-dashboard .academy-topbar-heading {
	margin: 0 !important;
	color: #172033 !important;
	font-size: clamp(31px, 2.5vw, 38px) !important;
	font-weight: 750 !important;
	line-height: 1.15 !important;
}

/* Responsywne karty statystyk. */
.academy-frontend-dashboard .academy-analytics-cards {
	box-sizing: border-box !important;
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	align-items: stretch !important;
	gap: clamp(18px, 2vw, 28px) !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: clamp(28px, 3vw, 48px) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 0 24px 24px !important;
	box-shadow: none !important;
}

.academy-frontend-dashboard .academy-analytics-cards--card {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 128px !important;
	height: auto !important;
	margin: 0 !important;
	padding: clamp(18px, 2vw, 26px) !important;
}

.academy-frontend-dashboard .academy-analytics-cards--card > * {
	min-width: 0 !important;
}

.academy-frontend-dashboard
	.academy-frontend-dashboard__content
	.academy-dashboard__content {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: clamp(28px, 3vw, 48px) !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 0 24px 24px !important;
	box-shadow: none !important;
}

.academy-frontend-dashboard .academy_dashboard_tabs {
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 clamp(28px, 3vw, 48px) !important;
	background: transparent !important;
	border: 0 !important;
	border-bottom: 1px solid var(--novaedu-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

/* Mniejszy laptop. */
@media screen and (min-width: 901px) and (max-width: 1200px) {
	.academy-frontend-dashboard
		> .academy-container
		> .academy-row
		> .academy-col-lg-12 {
		grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) !important;
		gap: 24px !important;
	}

	.academy-frontend-dashboard .academy-dashboard-menu {
		padding-right: 16px !important;
		padding-left: 16px !important;
	}

	.academy-frontend-dashboard .academy-dashboard-menu li > a {
		padding-right: 12px !important;
		padding-left: 12px !important;
		font-size: 14px !important;
	}
}

/* Tablet i telefon. */
@media screen and (max-width: 900px) {
	.academy-frontend-dashboard {
		width: 100% !important;
		margin: 0 !important;
		padding: 16px 0 36px !important;
	}

	.academy-frontend-dashboard > .academy-container {
		padding-right: 14px !important;
		padding-left: 14px !important;
	}

	.academy-frontend-dashboard
		> .academy-container
		> .academy-row
		> .academy-col-lg-12,
	.academy-frontend-dashboard
		> .academy-container
		> .academy-row
		> .academy-col-lg-12:has(.academy-dashboard-menu--compact) {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 16px !important;
	}

	.academy-frontend-dashboard
		:is(
			.academy-frontend-dashboard__sidebar,
			.academy-frontend-dashboard__content
		) {
		position: static !important;
		min-height: 0 !important;
		border-radius: 20px !important;
	}

	.academy-frontend-dashboard .academy-analytics-cards {
		grid-template-columns: minmax(0, 1fr) !important;
		padding: 22px !important;
	}

	.academy-frontend-dashboard .academy-topbar {
		padding: 25px 23px !important;
		border-radius: 20px 20px 0 0 !important;
	}

	.academy-frontend-dashboard .academy-topbar-heading {
		font-size: 29px !important;
	}
}

/* NOVAEDU PLATFORM UNIFIED V3 END */

/* NOVAEDU PLATFORM STATS ICONS V3.1 START */

/*
 * Osobna, niekurcząca się kolumna dla ikony.
 */
.academy-frontend-dashboard .academy-analytics-cards--card {
	display: grid !important;
	grid-template-columns: 92px minmax(0, 1fr) !important;
	align-items: center !important;
	justify-content: initial !important;
	column-gap: clamp(22px, 2vw, 32px) !important;
}

/*
 * Kwadratowy kontener zamiast wąskiej pionowej kapsułki.
 */
.academy-frontend-dashboard
	.academy-analytics-cards--card
	.academy-analytics-card--icon {
	box-sizing: border-box !important;
	display: flex !important;
	flex: 0 0 92px !important;
	align-items: center !important;
	justify-content: center !important;
	width: 92px !important;
	max-width: 92px !important;
	min-width: 92px !important;
	height: 92px !important;
	max-height: 92px !important;
	min-height: 92px !important;
	margin: 0 !important;
	padding: 0 !important;
	aspect-ratio: 1 / 1 !important;
	border-radius: 16px !important;
}

/*
 * Właściwa ikonka wewnątrz również zachowuje proporcje.
 */
.academy-frontend-dashboard
	.academy-analytics-cards--card
	.academy-analytics-card--icon
	:is(i, span, svg, img) {
	box-sizing: border-box !important;
	flex: 0 0 auto !important;
	width: 48px !important;
	max-width: 48px !important;
	height: 48px !important;
	max-height: 48px !important;
	object-fit: contain !important;
}

/*
 * Tekst otrzymuje całą drugą kolumnę.
 */
.academy-frontend-dashboard
	.academy-analytics-cards--card
	.academy-analytics-card--content {
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	min-width: 0 !important;
	width: 100% !important;
	margin: 0 !important;
}

/* Mniejszy ekran. */
@media screen and (max-width: 1200px) {
	.academy-frontend-dashboard .academy-analytics-cards--card {
		grid-template-columns: 80px minmax(0, 1fr) !important;
		column-gap: 20px !important;
	}

	.academy-frontend-dashboard
		.academy-analytics-cards--card
		.academy-analytics-card--icon {
		flex-basis: 80px !important;
		width: 80px !important;
		max-width: 80px !important;
		min-width: 80px !important;
		height: 80px !important;
		max-height: 80px !important;
		min-height: 80px !important;
		border-radius: 14px !important;
	}

	.academy-frontend-dashboard
		.academy-analytics-cards--card
		.academy-analytics-card--icon
		:is(i, span, svg, img) {
		width: 42px !important;
		max-width: 42px !important;
		height: 42px !important;
		max-height: 42px !important;
	}
}

/* Telefon. */
@media screen and (max-width: 600px) {
	.academy-frontend-dashboard .academy-analytics-cards--card {
		grid-template-columns: 70px minmax(0, 1fr) !important;
		column-gap: 17px !important;
	}

	.academy-frontend-dashboard
		.academy-analytics-cards--card
		.academy-analytics-card--icon {
		flex-basis: 70px !important;
		width: 70px !important;
		max-width: 70px !important;
		min-width: 70px !important;
		height: 70px !important;
		max-height: 70px !important;
		min-height: 70px !important;
		border-radius: 13px !important;
	}
}

/* NOVAEDU PLATFORM STATS ICONS V3.1 END */
