/* ==========================================================================
   MedSkill Wow – Tutor LMS skin (all Tutor pages: dashboard and every
   dashboard screen, login / registration, course archive, learning area,
   lessons, quizzes, assignments, instructor profile, checkout).
   Tutor 4 is built on design tokens: the brand palette, fonts, surfaces and
   buttons are remapped here, so every Tutor screen follows the site design
   without copying Tutor templates (Tutor updates keep working).
   ========================================================================== */

:root,
[data-tutor-theme=light] {
	/* Brand palette from MedSkill navy (#0b1f6e) */
	--tutor-brand-100: #f4f7fd;
	--tutor-brand-200: #e8eefa;
	--tutor-brand-300: #d5dcec;
	--tutor-brand-400: #a9b7e0;
	--tutor-brand-450: #8597d6;
	--tutor-brand-500: #2a44b8;
	--tutor-brand-600: #0b1f6e;
	--tutor-brand-700: #142c94;
	--tutor-brand-800: #0b1a5c;
	--tutor-brand-900: #081449;
	--tutor-brand-950: #06124a;

	/* Main action = MedSkill red (clear, high contrast call to action) */
	--tutor-button-primary: #e5232e;
	--tutor-button-primary-hover: #c4141f;
	--tutor-button-primary-focused: #e5232e;
	--tutor-button-primary-disabled: #f3a3a8;
	--tutor-button-primary-soft: #fde8ea;
	--tutor-button-primary-soft-hover: #fbd3d6;
	--tutor-button-primary-soft-focused: #fde8ea;

	/* Text: strong contrast */
	--tutor-text-primary: #0e1b4d;
	--tutor-text-secondary: #333d5c;
	--tutor-text-subdued: #525d7d;
	--tutor-text-brand: #0b1f6e;
	--tutor-text-brand-hover: #e5232e;

	/* Light surfaces */
	--tutor-surface-base: #f4f7fd;
	--tutor-surface-l1: #ffffff;
	--tutor-surface-l1-hover: #f4f7fd;
	--tutor-surface-l2: #e8eefa;
	--tutor-surface-l3: #f4f7fd;
	--tutor-border-idle: #e4e9f5;
	--tutor-border-idle2: #e4e9f5;

	/* Two local fonts (theme) – no Google Fonts */
	--tutor-font-family-body: 'DM Sans', system-ui, sans-serif;
	--tutor-font-family-heading: 'Plus Jakarta Sans', system-ui, sans-serif;

	/* Soft, wide shadows */
	--tutor-shadow-sm: 0 4px 14px rgba(14, 27, 77, .06);
	--tutor-shadow-md: 0 10px 30px rgba(14, 27, 77, .08);
	--tutor-shadow-lg: 0 18px 44px rgba(14, 27, 77, .12);

	/* Legacy Tutor stylesheet (single course, archive widgets) */
	--tutor-color-primary: #0b1f6e;
	--tutor-color-primary-rgb: 11, 31, 110;
	--tutor-color-primary-hover: #e5232e;
	--tutor-body-color: #333d5c;
	--tutor-border-color: #e4e9f5;
	--tutor-color-muted: #525d7d;
}

/* Base type */
.tutor-wrap, .tutor-dashboard, .tutor-course-single-content-wrapper, [class*="tutor-"] {
	-webkit-font-smoothing: antialiased;
}
body.msw [class^="tutor-"] h1, body.msw [class^="tutor-"] h2, body.msw [class^="tutor-"] h3,
body.msw .tutor-dashboard h1, body.msw .tutor-dashboard h2, body.msw .tutor-dashboard h3, body.msw .tutor-dashboard h4 {
	font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
	letter-spacing: -.01em;
}

/* Buttons: pill, generous padding */
body.msw [class*="tutor-btn"]:not(.tutor-btn-link):not(.tutor-btn-ghost):not(.tutor-iconic-btn) {
	border-radius: 999px !important;
	padding-left: 22px !important;
	padding-right: 22px !important;
	font-weight: 700 !important;
}
body.msw .tutor-btn-primary,
body.msw .tutor-btn.tutor-btn-primary {
	box-shadow: 0 10px 24px rgba(229, 35, 46, .25) !important;
	transition: transform .2s, box-shadow .2s, background .2s !important;
}
body.msw .tutor-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(229, 35, 46, .32) !important; }

/* Cards everywhere: rounded, soft */
body.msw .tutor-card {
	border-color: #e4e9f5 !important;
	border-radius: 18px !important;
}
body.msw .tutor-card { box-shadow: 0 10px 30px rgba(14, 27, 77, .06) !important; }

/* Form fields */
body.msw .tutor-form-control,
body.msw .tutor-input,
body.msw [class*="tutor-"] input[type="text"],
body.msw [class*="tutor-"] input[type="email"],
body.msw [class*="tutor-"] input[type="password"],
body.msw [class*="tutor-"] input[type="number"],
body.msw [class*="tutor-"] input[type="search"],
body.msw [class*="tutor-"] input[type="tel"],
body.msw [class*="tutor-"] input[type="url"],
body.msw [class*="tutor-"] select,
body.msw [class*="tutor-"] textarea {
	min-height: 46px;
	border-color: #d5dcec !important;
	border-radius: 12px !important;
	background-color: #fff !important;
	color: #0e1b4d !important;
	font-size: 15px !important;
}
body.msw [class*="tutor-"] input:focus,
body.msw [class*="tutor-"] select:focus,
body.msw [class*="tutor-"] textarea:focus {
	border-color: #0b1f6e !important;
	box-shadow: 0 0 0 3px rgba(11, 31, 110, .12) !important;
	outline: none !important;
}
body.msw [class*="tutor-"] ::placeholder { color: #525d7d !important; opacity: 1; }
body.msw [class*="tutor-"] input[type="checkbox"],
body.msw [class*="tutor-"] input[type="radio"] { accent-color: #e5232e; }

/* Tables (dashboard lists, orders, quiz attempts) */
body.msw .tutor-table { border-radius: 16px !important; overflow: hidden; }
body.msw .tutor-table thead th { background: #f4f7fd !important; color: #0e1b4d !important; font-weight: 700 !important; }
body.msw .tutor-table td { color: #333d5c; }

/* Badges / progress */
body.msw .tutor-progress-bar { border-radius: 999px; background: #e8eefa; }
body.msw .tutor-progress-value { border-radius: 999px; background: linear-gradient(90deg, #e5232e, #ff5c65) !important; }

/* Ratings */
body.msw .tutor-ratings-stars, body.msw .tutor-icon-star-bold, body.msw [class*="tutor-icon-star"] { color: #f5a524 !important; }

/* ==========================================================================
   Dashboard (/panou-control/ and every screen in it)
   ========================================================================== */
body.msw .tutor-dashboard,
body.msw .tutor-dashboard-wrapper,
body.msw [class*="tutor-dashboard-layout"] { background: #f4f7fd; }
body.msw .tutor-dashboard-header { background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border-bottom: 1px solid #e4e9f5; }
body.msw .tutor-dashboard-sidebar { background: #fff; border-right: 1px solid #e4e9f5; }
body.msw .tutor-dashboard-sidebar-logo img { max-height: 46px; width: auto; }
/* Sidebar menu */
body.msw [class*="tutor-dashboard-menu"] a,
body.msw [class*="tutor-dashboard-sidebar"] a,
body.msw [class*="tutor-sidebar-nav"] a {
	border-radius: 12px !important;
	color: #0e1b4d !important;
	font-weight: 600;
	transition: background .15s, color .15s;
}
body.msw [class*="tutor-dashboard-menu"] a:hover,
body.msw [class*="tutor-dashboard-sidebar"] a:hover,
body.msw [class*="tutor-sidebar-nav"] a:hover { background: #fff !important; color: #c4141f !important; }
body.msw [class*="tutor-dashboard-menu"] .active > a,
body.msw [class*="tutor-dashboard-menu"] a.active,
body.msw [class*="tutor-dashboard-menu"] a.is-active,
body.msw [class*="tutor-dashboard-sidebar"] a.is-active,
body.msw [class*="tutor-dashboard-sidebar"] .is-active > a {
	background: #0b1f6e !important;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(11, 31, 110, .25);
}
body.msw [class*="tutor-dashboard-menu"] .active > a *,
body.msw [class*="tutor-dashboard-menu"] a.active *,
body.msw [class*="tutor-dashboard-sidebar"] a.is-active * { color: #fff !important; }

/* Stat cards (Cursuri înscrise, Cursuri active …) */
body.msw .tutor-stat-card {
	border: 1px solid #e4e9f5 !important;
	border-radius: 18px !important;
	background: #fff !important;
	box-shadow: 0 10px 30px rgba(14, 27, 77, .06) !important;
}

/* ==========================================================================
   Login / registration (Tutor forms)
   ========================================================================== */
body.msw .tutor-login-wrap,
body.msw #tutor-registration-wrap {
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	padding: 34px 32px !important;
	border: 1px solid #e4e9f5 !important;
	border-radius: 24px !important;
	background: #fff !important;
	box-shadow: 0 24px 60px rgba(14, 27, 77, .12) !important;
}
body.msw .tutor-login-wrap .tutor-login-form-wrapper { padding: 0 !important; }
body.msw #tutor-registration-wrap { max-width: 760px; }
body.msw .tutor-login-wrap h1,
body.msw .tutor-login-wrap .tutor-login-title,
body.msw #tutor-registration-wrap h2 { color: #0e1b4d !important; font-size: 26px !important; font-weight: 800 !important; }

/* ==========================================================================
   Learning area (lessons, quizzes, assignments)
   ========================================================================== */
body.msw [class*="tutor-learning"] [class*="sidebar"],
body.msw .tutor-course-single-sidebar-wrapper { background: #fff !important; border-color: #e4e9f5 !important; }
body.msw [class*="tutor-learning"] .is-active,
body.msw .tutor-course-topic-item.is-active a { background: #fde8ea !important; color: #b3101b !important; }
body.msw [class*="tutor-learning"] .is-active * { color: #b3101b !important; }

/* Quiz answers */
body.msw [class*="tutor-quiz"] label,
body.msw [class*="tutor-quiz"] [class*="answer"] { border-radius: 14px !important; }

/* ==========================================================================
   Instructor public profile
   ========================================================================== */
body.msw [class*="tutor-instructor"] [class*="cover"],
body.msw .tutor-user-public-profile .tutor-user-profile-cover,
body.msw [class*="profile-cover"] {
	border-radius: 22px !important;
	background: radial-gradient(400px 220px at 0% 120%, rgba(229, 35, 46, .45), transparent 70%), linear-gradient(120deg, #06124a, #0b1f6e 60%, #142c94) !important;
}

/* Notices */
body.msw [class*="tutor-alert"] { border-radius: 14px !important; }

/* Links inside Tutor */
body.msw [class*="tutor-"] a:not([class*="btn"]):hover { color: #e5232e; }

/* ==========================================================================
   Tutor pages (registration, login, cart, checkout): full width, light
   background, centred title
   ========================================================================== */
body.msw-tutor-page #main-content { background: radial-gradient(900px 380px at 50% -120px, #e8eefa, transparent 70%), #f4f7fd; }
body.msw-tutor-page #main-content .container { padding-top: 56px; padding-bottom: 72px; }
body.msw-tutor-page #main-content .container::before { display: none; }
body.msw-tutor-page .main_title {
	margin-bottom: 28px;
	text-align: center;
	color: #0e1b4d;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	letter-spacing: -.02em;
}
body.msw-tutor-page .main_title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 16px auto 0;
	border-radius: 4px;
	background: #e5232e;
}
@media (max-width: 600px) {
	body.msw .tutor-login-wrap, body.msw #tutor-registration-wrap { padding: 26px 20px !important; border-radius: 20px !important; }
	body.msw-tutor-page #main-content .container { padding-top: 36px; padding-bottom: 48px; }
}

/* ==========================================================================
   Registration (student / instructor): side panel + wide form on desktop
   (the panel comes from the MedSkill plugin through Tutor's hooks)
   ========================================================================== */
body.msw #tutor-registration-wrap:has(> .ms-reg-side) {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
	max-width: 1240px !important;
	margin: 0 auto !important;
	padding: 0 !important;
	overflow: hidden;
}
body.msw #tutor-registration-wrap:has(> .ms-reg-side) > * { grid-column: 2; }
body.msw #tutor-registration-wrap > .ms-reg-side { grid-column: 1; grid-row: 1 / span 20; }
body.msw #tutor-registration-wrap:has(> .ms-reg-side) > form { padding: 44px 48px 40px; }
body.msw #tutor-registration-wrap:has(> .ms-reg-side) > :not(.ms-reg-side):not(form) { padding-right: 48px; padding-left: 48px; }

.ms-reg-side {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	overflow: hidden;
	background: #0b1f6e;
}
.ms-reg-img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.ms-reg-side::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 18, 74, .35) 0%, rgba(6, 18, 74, .82) 40%, rgba(6, 18, 74, .97) 100%); }
.ms-reg-txt h2, .ms-reg-txt p { text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.ms-reg-txt { position: relative; z-index: 1; padding: 40px 42px; color: #fff; }
body.msw #tutor-registration-wrap .ms-reg-txt h2 { margin: 0 0 14px; color: #fff !important; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: clamp(24px, 2.2vw, 32px) !important; font-weight: 800 !important; line-height: 1.2; letter-spacing: -.02em; }
.ms-reg-txt h2 span { color: #ff8a90; }
.ms-reg-txt p { margin: 0 0 10px; color: #fff; font-size: 16px; line-height: 1.65; opacity: .95; }
.ms-reg-badge { display: inline-grid; place-items: center; width: 76px; height: 76px; margin-bottom: 18px; border: 3px dashed rgba(255, 255, 255, .6); border-radius: 50%; background: #e5232e; color: #fff; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 22px; font-weight: 800; box-shadow: 0 14px 30px rgba(229, 35, 46, .4); }
.ms-reg-login { margin-top: 18px !important; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
.ms-reg-login a { color: #fff !important; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Fields in two columns: first / last name, user name / email, password / confirmation */
@media (min-width: 981px) {
	body.msw #tutor-registration-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
	body.msw #tutor-registration-form > * { grid-column: 1 / -1; }
	body.msw #tutor-registration-form > .tutor-input-field,
	body.msw #tutor-registration-form > .tutor-form-group,
	body.msw #tutor-registration-form > .tutor-password-strength-checker { grid-column: auto; min-width: 0; }
	body.msw #tutor-registration-form .tutor-password-strength-checker .tutor-input-field,
	body.msw #tutor-registration-form .tutor-password-field { width: 100%; }
	body.msw #tutor-registration-form > input[type="hidden"] { display: none; }
}
@media (max-width: 980px) {
	body.msw #tutor-registration-wrap:has(> .ms-reg-side) { grid-template-columns: 1fr; max-width: 640px !important; }
	body.msw #tutor-registration-wrap:has(> .ms-reg-side) > * { grid-column: 1; }
	body.msw #tutor-registration-wrap > .ms-reg-side { grid-row: auto; min-height: 280px; }
	body.msw #tutor-registration-wrap:has(> .ms-reg-side) > form { padding: 30px 24px; }
	body.msw #tutor-registration-wrap:has(> .ms-reg-side) > :not(.ms-reg-side):not(form) { padding-right: 24px; padding-left: 24px; }
	.ms-reg-txt { padding: 28px 24px; }
}

/* ==========================================================================
   Certificate verification (Tutor Pro 4 page /tutor-certificate-verification/)
   Tutor's own template; only restyled here.
   ========================================================================== */
.tutor-certificate-verification {
	position: relative;
	max-width: none;
	margin: 0;
	padding: 88px 16px 96px;
	overflow: hidden;
	background:
		radial-gradient(520px 320px at 100% 0%, rgba(229, 35, 46, .10), transparent 70%),
		radial-gradient(560px 360px at 0% 100%, rgba(20, 44, 148, .12), transparent 70%),
		linear-gradient(180deg, #f4f7fd, #ffffff);
}
.tutor-certificate-verification::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: radial-gradient(rgba(11, 31, 110, .09) 1px, transparent 1px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
	pointer-events: none;
}
.tutor-certificate-verification-wrapper { position: relative; z-index: 1; max-width: 540px; margin: 0 auto; }
.tutor-certificate-verification-content {
	position: relative;
	padding: 48px 44px 44px;
	overflow: hidden;
	border: 1px solid #e4e9f5;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 40px 90px rgba(14, 27, 77, .14);
}
.tutor-certificate-verification-content::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 5px;
	background: linear-gradient(90deg, #e5232e, #0b1f6e);
}
.tutor-certificate-verification-header { gap: 18px; }
.tutor-certificate-verification-header img { display: none; }
.tutor-certificate-verification-header::before {
	content: '';
	width: 76px;
	height: 76px;
	border-radius: 24px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 5 6v5c0 4.4 3 8.3 7 9.5 4-1.2 7-5.1 7-9.5V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") no-repeat center / 38px,
		linear-gradient(140deg, #e5232e, #c4141f);
	box-shadow: 0 16px 34px rgba(229, 35, 46, .32);
}
.tutor-certificate-verification-header h2,
body.msw .tutor-certificate-verification-header h2 {
	margin: 0;
	padding: 0;
	color: var(--msw-ink, #0e1b4d);
	font-family: var(--tutor-font-family-heading);
	font-size: clamp(26px, 3vw, 34px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	text-align: center;
}
.tutor-certificate-verification-body { margin-top: 36px; }
.tutor-certificate-verification-body .tutor-label { margin-bottom: 8px; color: var(--msw-ink, #0e1b4d); font-size: 15px; font-weight: 700; }
.tutor-certificate-verification-body .tutor-input {
	min-height: 56px;
	padding: 14px 18px;
	border: 1px solid #d5dcec;
	border-radius: 14px;
	background: #f8faff;
	color: var(--msw-ink, #0e1b4d);
	font-size: 16px;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.tutor-certificate-verification-body .tutor-input::placeholder { color: #525d7d; }
.tutor-certificate-verification-body .tutor-input:focus { border-color: #0b1f6e; background: #fff; box-shadow: 0 0 0 4px rgba(11, 31, 110, .12); outline: none; }
.tutor-certificate-verification-body .tutor-btn {
	min-height: 56px;
	border-radius: 999px;
	font-family: var(--tutor-font-family-heading);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: .01em;
	box-shadow: 0 14px 30px rgba(229, 35, 46, .3);
	transition: background .2s, transform .2s;
}
.tutor-certificate-verification-body .tutor-btn:hover:not(:disabled) { transform: translateY(-2px); }
.tutor-certificate-verification-footer {
	display: block;
	max-width: 460px;
	margin: 22px auto 0;
	text-align: center;
	color: #333d5c;
	font-size: 14px;
	line-height: 1.55;
}
.tutor-certificate-verification-footer::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-right: 8px;
	vertical-align: -5px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e8e4e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Cpath d='M14 14h3v3h-3zM20 14v.01M14 20h.01M17 20h4v-3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.tutor-certificate-verification-footer strong { color: var(--msw-ink, #0e1b4d); }
@media (max-width: 767px) {
	.tutor-certificate-verification { padding: 48px 16px 64px; }
	.tutor-certificate-verification-content { padding: 38px 22px 28px; border-radius: 24px; }
	.tutor-certificate-verification-header::before { width: 64px; height: 64px; border-radius: 20px; background-size: 32px, auto; }
}
