.tdp-field label {
	margin-bottom: 0;
}
/* Basic reset */
.tdp-body-reset {
	margin: 0;
	padding: 0;
	background: #f5f7fb;
}

.tdp-wrapper,
.tdp-wrapper * {
	box-sizing: border-box;
}

.tdp-wrapper {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	display: grid;
	grid-template-columns: 260px 1fr;
	min-height: 100vh;
	background: #f5f7fb;
	color: #1d2939;
}

.tdp-sidebar {
	background: #f3f5f9;
	color: #ffffff;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
}

.tdp-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
}

.tdp-logo-mark {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: linear-gradient(135deg, #e0322b, #951914);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #ffffff;
}

.tdp-logo-text {
	font-weight: 600;
	font-size: 16px;
}

.tdp-logo-image {
	max-width: 100%;
	height: auto;
	display: block;
}

.tdp-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.tdp-nav-item {
	padding: 16px 12px;
	border-radius: 8px;
	color: #ffffff;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
	background: #e0322b;
}

.tdp-nav-item:hover {
	background: #951914;
	color: #ffffff;
}

.tdp-nav-item--active {
	background: #951914;
	color: #ffffff;
	font-weight: 600;
}

.tdp-nav-divider {
	margin: 14px 0;
	border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.tdp-main {
	padding: 24px 28px 32px;
}

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

.tdp-page-title {
	font-size: 22px;
	font-weight: 600;
	margin: 0;
}

.tdp-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tdp-search-input {
	min-width: 260px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	padding: 8px 14px;
	font-size: 14px;
	outline: none;
}

.tdp-search-input:focus {
	border-color: #e0322b;
	box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.16);
}

.tdp-pos-button {
	background: #e0322b;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
	height: 42px;
}

.tdp-pos-button:hover {
	background: #0284c7;
	transform: translateY(-1px);
}

.tdp-user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
}

.tdp-user-initials {
	text-transform: uppercase;
}

.tdp-cards-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 20px;
}

.tdp-card {
	background: #ffffff;
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tdp-card--primary {
	background: linear-gradient(135deg, #e4332c, #911712);
	color: #ffffff;
}

.tdp-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 4px;
}

.tdp-card-icon {
	width: 26px;
	height: 26px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
	font-weight: 600;
}

.tdp-card-label {
	opacity: 0.9;
}

.tdp-card-value {
	font-size: 22px;
	font-weight: 700;
}

.tdp-card-sub {
	font-size: 12px;
	color: #6b7280;
}

.tdp-card--primary .tdp-card-sub {
	color: rgba(243, 244, 246, 0.95);
}

.tdp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 18px;
	margin-bottom: 18px;
}

.tdp-grid--bottom {
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.tdp-panel {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
	display: flex;
	flex-direction: column;
}

.tdp-panel-header {
	padding: 14px 18px;
	border-bottom: 1px solid #e5e7eb;
}

.tdp-panel-header h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.tdp-panel-body {
	padding: 18px;
	font-size: 14px;
}

.tdp-panel-body--centered {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 180px;
}

.tdp-panel-body--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9ca3af;
	min-height: 200px;
}

/* Modal for adding category */
.tdp-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 16px;
}

.tdp-modal-overlay.is-active {
	display: flex;
}

.tdp-modal {
	background: #ffffff;
	border-radius: 18px;
	max-width: 640px;
	width: 100%;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
	overflow: hidden;
}

.tdp-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px 8px;
	border-bottom: 1px solid #e5e7eb;
}

.tdp-modal-title {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.tdp-modal-close {
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	color: #6b7280;
	border-radius: 999px;
	padding: 4px 8px;
}

.tdp-modal-close:hover {
	background: #f3f4f6;
	color: #111827;
}

.tdp-modal-body {
	padding: 16px 20px 18px;
}

/* Modal content layout like Bootstrap */
.tdp-modal .tdp-category-form-row--stacked {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tdp-modal .tdp-category-form-row--metrics {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 12px;
	align-items: flex-end;
	margin-top: 20px;
}

.tdp-table-action.tdp-table-action--danger {
	font-weight: 600;
	font-size: 14px;
	align-items: center;
}

.tdp-field--col-6 {
	grid-column: span 6;
}

.tdp-field--col-12 {
	grid-column: span 12;
}

.tdp-modal-footer {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

/* Category add form (Kategorijas view) */
.tdp-category-form {
	margin-bottom: 4px;
}

.tdp-category-form-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: flex-end;
}

.tdp-category-form-row--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: stretch;
	min-height: 500px;
}

.tdp-field {
	width: 100%;
}

.tdp-field label {
	display: block;
	font-size: 14px;
	margin-bottom: 4px;
	color: #4b5563;
	font-weight: 600;
	padding-bottom: 5px;
}

#tdp_has_test {
	width: auto;
	border: none;
}

#tdp-metrics-row-toggle {
	margin-top: 15px;
}

.tdp-field input {
	width: 100%;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	padding: 7px 10px;
	font-size: 13px;
}

.tdp-field input:focus {
	outline: none;
	border-color: #0ea5e9;
	box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.12);
}

/* Global control height */
.tdp-wrapper input:not([type="checkbox"]):not([type="radio"]),
.tdp-wrapper select,
.tdp-wrapper button {
	height: 42px;
	box-sizing: border-box;
}

.tdp-field--actions {
	display: flex;
	justify-content: flex-end;
}

.tdp-category-form-note {
	margin-top: 8px;
	font-size: 12px;
	color: #6b7280;
}

.tdp-category-error {
	margin-top: 8px;
	font-size: 12px;
	color: #b91c1c;
}

.tdp-category-success {
	margin-top: 8px;
	font-size: 12px;
	color: #e0322b;
}

/* Category cards grid (Kategorijas view) */
.tdp-category-grid {
	margin-top: 16px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.tdp-category-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #e5e7eb;
	padding: 18px 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
	min-height: 130px;
}

.tdp-category-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tdp-category-header-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

.tdp-category-location-id {
	display: none;
}

.tdp-category-icon {
	width: 36px;
	height: 36px;
	border-radius: 12px;
	background: #e0f2fe;
	color: #0284c7;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
}

.tdp-category-main {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tdp-category-main-title {
	font-size: 14px;
	font-weight: 400;
	color: #111827;
}

.tdp-category-main-sub {
	font-size: 12px;
	color: #6b7280;
}

.tdp-category-langs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding-top: 5px;
}

.tdp-lang-pill {
	font-size: 10px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 999px;
	background: #e5e7eb;
	color: #4b5563;
}

.tdp-category-body {
	font-size: 12px;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tdp-category-metric {
	font-size: 18px;
	font-weight: 600;
	color: #4b5563;
}

.tdp-category-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 4px;
}

.tdp-category-footer a {
	height: 42px;
	display: flex;
	align-items: center;
}

/* Question answers layout */
.tdp-question-answers {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 10px;
}

.tdp-question-answer-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px;
	border-radius: 12px;
	color: #ffffff;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform 0.05s ease, box-shadow 0.1s ease, border-color 0.1s ease, background 0.1s ease;
	background: #f3f5f9;
	flex-direction: row;
	justify-content: space-between;
}

.tdp-question-answer-inputs {
	width: 90%;
}

.tdp-question-answer-inputs .tdp-field label {
	padding-bottom: 0!important;
}

.tdp-question-answer-inputs .tdp-question-answer-delete {
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-bottom: 0px;
}


.tdp-question-answer-input {
	flex: 1;
}

.tdp-question-answer-correct {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: #ffffff;
}

.tdp-question-answer-row:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.18);
}

.tdp-question-answer-row--selected {
	box-shadow: 0 0 0 3px rgba(224, 50, 43, 0.9);
	border-color: #e0322b;
}

.tdp-question-answer-row input[type="radio"] {
	display: none;
}

.tdp-question-answer-correct-indicator {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	border: 2px solid rgb(201 97 97 / 70%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 5px;
}

.tdp-question-answer-row--selected .tdp-question-answer-correct-indicator {
	background: #e0322b;
	border-color: #e0322b;
}

.tdp-question-answer-row--selected .tdp-question-answer-correct-indicator::before {
	content: '✓';
	font-size: 11px;
	color: #ffffff;
}

.tdp-question-answer-delete {
	border: none;
	background: transparent;
	color: #9ca3af;
	font-size: 16px;
	line-height: 1;
	padding: 4px;
	border-radius: 999px;
	cursor: pointer;
}

.tdp-question-answer-delete:hover {
	background: rgba(15, 23, 42, 0.06);
	color: #4b5563;
}

/* Question image upload */
.tdp-question-image-upload {
	display: flex;
	flex-direction: column;
	gap: 10px;
	height: 100%;
}

.tdp-question-image-preview {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.tdp-question-image-preview img {
	max-width: 100%;
	max-height: 300px;
	border-radius: 12px;
	display: block;
	object-fit: cover;
	border: 1px solid #e5e7eb;
}

.tdp-question-image-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.7);
	color: #ffffff;
	border: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	z-index: 10;
}

.tdp-question-image-remove:hover {
	background: rgba(0, 0, 0, 0.9);
}

.tdp-question-image-upload.has-image .tdp-question-image-dropzone {
	display: none;
}

.tdp-hidden {
	display: none !important;
}

.tdp-question-image-progress {
	margin-top: 12px;
}

.tdp-question-image-progress-bar {
	width: 100%;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}

.tdp-question-image-progress-fill {
	height: 100%;
	background: #e0322b;
	border-radius: 4px;
	transition: width 0.3s ease;
	width: 0%;
}

.tdp-question-image-progress-text {
	font-size: 12px;
	color: #6b7280;
	text-align: center;
}

.tdp-question-image-dropzone.tdp-drag-over {
	background: #f9fafb;
	border-color: #e0322b;
}

/* Drag styles for topics table rows */
.tdp-topic-row--dragging {
	opacity: 0.6;
}

.tdp-topic-row--placeholder td {
	border: 2px dashed #0ea5e9;
	background: #eff6ff;
}

.tdp-topic-drag-cell {
	width: 32px;
	text-align: center;
}

.tdp-topic-drag-handle {
	border: none;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 999px;
	cursor: move;
	color: #9ca3af;
}

.tdp-topic-drag-handle:hover {
	background: #f3f4f6;
	color: #4b5563;
}

.tdp-topic-drag-dots {
	width: 14px;
	height: 18px;
	background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
	background-size: 4px 4px;
	background-position: 0 0;
	display: inline-block;
}

.tdp-question-image-dropzone {
	border: 2px dashed #d1d5db;
	border-radius: 16px;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #f9fafb;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	flex: 1;
}

.tdp-question-image-dropzone-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
}

.tdp-question-image-input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.tdp-question-image-help {
	font-size: 12px;
	color: #6b7280;
	margin: 0;
}

.tdp-question-image-icon-row {
	display: flex;
	gap: 6px;
}

.tdp-question-image-icon {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	border: 2px solid #d1d5db;
	background: #ffffff;
}

.tdp-question-image-icon--border {
	border-style: dashed;
}

/* Language tabs container */
.tdp-lang-tabs-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	gap: 12px;
}

/* Language tabs for question editing */
.tdp-lang-tabs {
	display: inline-flex;
	border-radius: 10px;
	background: #f3f4f6;
	padding: 2px;
}

.header_button {
	border: solid 1px;
	padding: 10px 15px!important;
}

.tdp-lang-tab {
	border: none;
	background: transparent;
	padding: 4px 25px;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	cursor: pointer;
}

.tdp-lang-tab--active {
	background: #e0322b;
	color: #ffffff;
}

.tdp-lang-panels {
	margin-top: 4px;
}

.tdp-lang-panel {
	display: none;
	max-width: 100%;
}

.tdp-lang-panel--active {
	display: block;
}

/* Answer language panels should also follow the same pattern */
.tdp-question-answer-row .tdp-lang-panel {
	display: none;
	max-width: 100%;
}

/* AI Translation button */
.tdp-ai-translate-button {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.tdp-ai-translate-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.tdp-ai-translate-button:active {
	transform: translateY(0);
}

.tdp-ai-translate-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.tdp-question-answer-row .tdp-lang-panel--active {
	display: block;
}

/* Question explanation size inside language panels */
.tdp-question-explanation {
	width: 100%;
	height: 265px;
	max-width: 100%;
	border: solid 1px #eaecef;
    border-radius: 10px;
	padding: 20px;
}

/* Drag handle on category cards */
.tdp-category-drag-handle {
	border: none;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px;
	border-radius: 999px;
	cursor: move; /* drag cross / move cursor */
	color: #9ca3af;
	margin-top: -30px;
	margin-right: -10px;
	height: 30px!important;
	width: 30px!important;
}

.tdp-category-drag-handle:hover {
	background: #f3f4f6;
	color: #4b5563;
}

.tdp-category-drag-dots {
	width: 12px;
	height: 16px;
	background-image: radial-gradient(circle, currentColor 1px, transparent 1px);
	background-size: 4px 4px;
	background-position: 0 0;
	display: inline-block;
}

/* Drag & drop visuals */
.tdp-category-card--dragging {
	opacity: 0.5;
}

.tdp-category-card--placeholder {
	border-style: dashed;
	border-color: #0ea5e9;
	background: #eff6ff;
	box-shadow: none;
	opacity: 0.7;
}

.tdp-category-card--add {
	align-items: center;
	justify-content: center;
	text-align: center;
	background: #f9fafb;
	border-style: dashed;
	border-color: #d1d5db;
	cursor: pointer;
}

.tdp-category-card--add:hover {
	background: #f3f4f6;
}

.tdp-add-card-icon {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #e0322b1a;
	color: #e0322b;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 6px;
}

.tdp-add-card-label {
	font-size: 13px;
	color: #4b5563;
}

/* Table view (Kategorijas / Temati) */
.tdp-panel--table-page {
	min-height: calc(100vh - 140px);
	display: flex;
	flex-direction: column;
}

.tdp-panel.tdp-panel--table-page .tdp-toolbar .tdp-toolbar-right {
	min-width: 400px;
}

.tdp-table-page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.tdp-table-page-subtitle {
	margin: 0;
	font-size: 13px;
	color: #6b7280;
}

.tdp-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.tdp-toolbar-left {
	flex: 1;
}

.tdp-search-input--wide {
	width: 100%;
	max-width: none;
}

.tdp-toolbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tdp-select {
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	padding: 6px 12px;
	font-size: 13px;
	color: #374151;
	width: 100%;
}

.tdp-table-scroll {
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	max-height: calc(100vh - 260px);
	background: #ffffff;
	position: relative;
	overflow: auto;
	overflow-x: auto;
	overflow-y: auto;
}

.tdp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 100%;
	table-layout: auto;
}

/* Pagination for questions table (Jautājumi view) */
.tdp-pagination {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin-top: 12px;
	font-size: 13px;
	color: #4b5563;
}

.tdp-pagination-links {
	display: flex;
	gap: 6px;
}

.tdp-page-link {
	min-width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: #111827;
	text-decoration: none;
	padding: 0 8px;
}

.tdp-page-link--active {
	border-color: #4f46e5;
	color: #4f46e5;
	box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.4);
}

.tdp-page-link--arrow {
	min-width: 34px;
}

.tdp-page-link--disabled {
	opacity: 0.4;
	cursor: default;
}

.tdp-page-link--dots {
	cursor: default;
}

/* Per-page selector (Jautājumi view) */
.tdp-per-page {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 8px 0 10px;
	font-size: 13px;
}

.tdp-per-page-form {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tdp-per-page-form label {
	color: #4b5563;
}

.tdp-table thead {
	background: #f9fafb;
}

.tdp-table th,
.tdp-table td {
	padding: 7px 14px;
	text-align: left;
	border-bottom: 1px solid #f3f4f6;
	white-space: normal;
	position: relative;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

.tdp-table th {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
}

.tdp-table th:last-child,
.tdp-table td:last-child {
	text-align: right;
}

.tdp-table tbody tr:hover {
	background: #f9fafb;
}

.tdp-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	color: #4b5563;
	background: #e5e7eb;
}

.tdp-badge--success {
	background: #dcfce7;
	color: #15803d;
}

.tdp-badge--warning {
	background: #fef3c7;
	color: #92400e;
}

.tdp-table-action {
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	font-size: 12px;
	padding: 5px 12px;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	display: inline-block;
}

.tdp-table-action:hover {
	background: #f3f4f6;
}

.tdp-table-action--danger {
	color: #b91c1c;
	border-color: #fecaca;
	margin-left: 8px;
}

.tdp-table-action--danger:hover {
	background: #fee2e2;
}

/* Actions menu dropdown */
.tdp-actions-menu {
	position: relative;
	display: inline-block;
	margin-left: auto;
}

.tdp-actions-menu-toggle {
	border: 1px solid #e5e7eb;
	background: #ffffff;
	border-radius: 6px;
	padding: 6px 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	height: 26px!important;
}

.tdp-actions-menu-toggle:hover {
	background: #f3f4f6;
	border-color: #d1d5db;
}

.tdp-actions-menu-dots {
	font-size: 20px;
	line-height: 1;
	color: #6b7280;
	user-select: none;
	font-weight: bold;
	letter-spacing: -2px;
}

.tdp-actions-menu-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
	min-width: 200px;
	z-index: 10000;
	overflow: hidden;
}

.tdp-actions-menu-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	color: #1d2939;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.15s ease;
	border: none;
	background: none;
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-weight: 400;
}

.tdp-actions-menu-item:hover {
	background: #f9fafb;
	color: #111827;
}

.tdp-actions-menu-item:active {
	background: #f3f4f6;
}

.tdp-actions-menu-item:first-child {
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
}

.tdp-actions-menu-item:last-child {
	border-bottom-left-radius: 8px;
	border-bottom-right-radius: 8px;
}

.tdp-actions-menu-icon {
	font-size: 16px;
	width: 20px;
	text-align: center;
}

/* Simple bar chart */
.tdp-bar-chart {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	height: 180px;
	padding: 10px 4px 0;
}

.tdp-bar {
	flex: 1;
	border-radius: 8px 8px 0 0;
	background: #0ea5e9;
}

.tdp-bar--muted {
	background: #e5e7eb;
}

/* Donut chart */
.tdp-donut {
	width: 140px;
	height: 140px;
	border-radius: 999px;
	background: conic-gradient(#e5e7eb 0 0, #e5e7eb 0 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.tdp-donut-inner {
	width: 90px;
	height: 90px;
	border-radius: 999px;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-shadow: 0 0 0 8px #f3f4f6;
}

.tdp-donut-value {
	font-weight: 700;
	font-size: 18px;
}

.tdp-donut-label {
	font-size: 11px;
	color: #6b7280;
	text-align: center;
}

.tdp-legend {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #6b7280;
}

.tdp-legend-dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
}

.tdp-legend-dot--primary {
	background: #0ea5e9;
}

.tdp-legend-dot--muted {
	background: #e5e7eb;
}

/* List section */
.tdp-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tdp-list-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #f3f4f6;
}

.tdp-list-item:last-child {
	border-bottom: none;
}

.tdp-list-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tdp-avatar-circle {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
}

.tdp-list-title {
	font-size: 14px;
	font-weight: 600;
}

.tdp-list-sub {
	font-size: 12px;
	color: #6b7280;
}

.tdp-list-right {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tdp-list-amount {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.tdp-status {
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
}

.tdp-status--success {
	background: #ecfdf3;
	color: #15803d;
	border-color: #bbf7d0;
}

/* Toast notification */
.tdp-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	min-width: 260px;
	max-width: 360px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	background: #e0322b;
	box-shadow: 0 18px 40px rgba(224, 50, 43, 0.45);
	opacity: 0;
	transform: translateY(10px);
	z-index: 9999;
	animation: tdp-toast-in-out 3.5s ease forwards;
}

.tdp-toast--success::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #fecaca;
	box-shadow: 0 0 0 4px rgba(224, 50, 43, 0.4);
}

@keyframes tdp-toast-in-out {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}
	10%,
	80% {
		opacity: 1;
		transform: translateY(0);
	}
	100% {
		opacity: 0;
		transform: translateY(10px);
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.tdp-wrapper {
		grid-template-columns: 220px 1fr;
	}

	.tdp-cards-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tdp-grid,
	.tdp-grid--bottom {
		grid-template-columns: minmax(0, 1fr);
	}

	.tdp-category-form-row {
		grid-template-columns: 1fr 1fr;
	}
	.tdp-category-form-row--two {
		grid-template-columns: 1fr;
	}
	.tdp-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.tdp-wrapper {
		grid-template-columns: 1fr;
	}

	.tdp-sidebar {
		display: none;
	}

	.tdp-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.tdp-header-actions {
		width: 100%;
		justify-content: space-between;
	}

	.tdp-search-input {
		min-width: 0;
		flex: 1;
	}
}

/* Responsive */
@media (max-width: 1024px) {
	.tdp-wrapper {
		grid-template-columns: 220px 1fr;
	}

	.tdp-cards-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tdp-grid,
	.tdp-grid--bottom {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.tdp-wrapper {
		grid-template-columns: 1fr;
	}

	.tdp-sidebar {
		display: none;
	}

	.tdp-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.tdp-header-actions {
		width: 100%;
		justify-content: space-between;
	}

	.tdp-search-input {
		min-width: 0;
		flex: 1;
	}
}

/* === Donezo-style UI overrides (paste at end of dashboard.css) === */

.tdp-body-reset {
	margin: 0;
	padding: 0;
	background: #f4f5fb;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
		Roboto, sans-serif;
}

/* Layout wrapper */
.tdp-wrapper {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	min-height: 100vh;
	background: #f4f5fb;
	color: #111827;
	column-gap: 24px;
}

/* Sidebar */
.tdp-sidebar {
	background: #f9fafb;
	border-radius: 28px;
	padding: 24px 20px;
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.tdp-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 32px;
}

.tdp-logo-mark {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: linear-gradient(135deg, #e0322b, #951914);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #ffffff;
}

.tdp-logo-text {
	font-weight: 700;
	font-size: 16px;
	color: #111827;
}

/* Sidebar navigation */
.tdp-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}

.tdp-nav::before {
	content: "MENU";
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9ca3af;
	margin-bottom: 8px;
}

.tdp-nav-divider {
	margin: 20px 0 10px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.35);
	position: relative;
}

.tdp-nav-divider::after {
	content: "GENERAL";
	position: absolute;
	left: 0;
	bottom: 100%;
	margin-bottom: 6px;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9ca3af;
}

.tdp-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	color: #4b5563;
	text-decoration: none;
	background: transparent;
	transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
}

.tdp-nav-item::before {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 2px solid #d1d5db;
}

.tdp-nav-item:hover {
	background: #fee2e2;
	color: #951914;
	transform: translateY(-1px);
}

.tdp-nav-item:hover::before {
	border-color: #e0322b;
}

.tdp-nav-item--active {
	background: #e0322b;
	color: #ffffff;
	font-weight: 600;
}

.tdp-nav-item--active::before {
	border-color: transparent;
	background: #ffffff;
}

/* Main content area */
.tdp-main {
	padding: 20px 4px 28px;
}

/* Top header bar */
.tdp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 18px;
	border-radius: 24px;
	background: #ffffff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
	margin-bottom: 24px;
}

.tdp-page-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 4px;
}

.tdp-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Search */
.tdp-search-input {
	min-width: 260px;
	border-radius: 999px;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
	padding: 9px 16px;
	font-size: 14px;
	outline: none;
}

.tdp-search-input::placeholder {
	color: #9ca3af;
}

.tdp-search-input:focus {
	border-color: #e0322b;
	box-shadow: 0 0 0 1px rgba(224, 50, 43, 0.18);
}

/* Primary pill button */
.tdp-pos-button {
	background: #e0322b;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 8px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.05s ease,
		box-shadow 0.15s ease;
}

.tdp-pos-button:hover {
	background: #951914;
	transform: translateY(-1px);
}

/* Hide primary button only in top header bar */
.tdp-header .tdp-pos-button {
	display: none;
}

/* Avatar */
.tdp-user-avatar {
	width: 36px;
	height: 36px;
	border-radius: 999px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 600;
	color: #111827;
}

.tdp-user-avatar-button {
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
	cursor: pointer;
	border-radius: 999px;
}

.tdp-user-menu {
	position: absolute;
	top: 48px;
	right: 0;
	width: 260px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
	border: 1px solid #e5e7eb;
	padding: 12px 16px 8px;
	display: none;
	z-index: 9999;
}

.tdp-user-menu.is-open {
	display: block;
}

.tdp-user-menu-name {
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 2px;
}

.tdp-user-menu-email {
	font-size: 13px;
	color: #6b7280;
}

.tdp-user-menu-header {
	margin-bottom: 8px;
}

.tdp-user-menu-icon {
	font-size: 16px;
}

.tdp-user-menu-divider {
	margin: 10px 0 8px;
	border: none;
	border-top: 1px solid #e5e7eb;
}

.tdp-user-menu-actions {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tdp-user-menu-link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	font-size: 13px;
	text-decoration: none;
	color: #111827;
	padding: 6px 6px;
	border-radius: 8px;
}

.tdp-user-menu-link:hover {
	background: #f3f4f6;
}

.tdp-user-menu-link--logout {
	color: #e0322b;
}

/* Generic confirm dialog overlay */
.tdp-confirm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	padding: 16px;
}

.tdp-confirm-overlay.is-active {
	display: flex;
}

.tdp-confirm-dialog {
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
	border: 1px solid #e5e7eb;
	padding: 18px 20px 14px;
	max-width: 420px;
	width: 100%;
}

.tdp-confirm-title {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
}

.tdp-confirm-text {
	font-size: 13px;
	color: #4b5563;
	margin: 0 0 10px;
}

.tdp-confirm-highlight {
	font-weight: 600;
	color: #111827;
}

.tdp-confirm-input {
	width: 100%;
	margin-top: 6px;
	border-radius: 10px;
	border: 1px solid #e5e7eb;
	padding: 7px 10px;
	font-size: 13px;
}

.tdp-confirm-error {
	margin-top: 6px;
	font-size: 12px;
	color: #b91c1c;
}

.tdp-confirm-footer {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

/* Top stat cards row */
.tdp-cards-row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-bottom: 22px;
}

.tdp-card {
	background: #ffffff;
	border-radius: 22px;
	padding: 18px 20px;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tdp-card--primary {
	background: linear-gradient(135deg, #e0322b, #951914);
	color: #ffffff;
}

.tdp-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 13px;
	margin-bottom: 4px;
}

.tdp-card-icon {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
}

.tdp-card-label {
	opacity: 0.95;
}

.tdp-card-value {
	font-size: 24px;
	font-weight: 700;
}

.tdp-card-sub {
	font-size: 12px;
	color: #6b7280;
}

.tdp-card--primary .tdp-card-sub {
	color: rgba(241, 245, 249, 0.96);
}

/* Panels / analytics sections */
.tdp-grid,
.tdp-grid--bottom {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 18px;
	margin-bottom: 20px;
}

.tdp-grid--bottom {
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
}

.tdp-panel {
	background: #ffffff;
	border-radius: 22px;
	box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
	display: flex;
	flex-direction: column;
}

.tdp-panel-header {
	padding: 14px 20px;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tdp-panel-header h2 {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: #111827;
}

.tdp-panel-body {
	padding: 18px 20px 20px;
	font-size: 14px;
}

.tdp-panel-body--centered,
.tdp-panel-body--empty {
	min-height: 200px;
	border-radius: 0 0 22px 22px;
}

/* Category grid cards */
.tdp-category-grid {
	margin-top: 18px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.tdp-category-card {
	background: #ffffff;
	border-radius: 20px;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

/* Responsive – Donezo‑like stacking */
@media (max-width: 1200px) {
	.tdp-cards-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tdp-grid,
	.tdp-grid--bottom {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.tdp-wrapper {
		grid-template-columns: 1fr;
	}

	.tdp-sidebar {
		display: none;
	}

	.tdp-main {
		padding: 16px;
	}

	.tdp-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.tdp-header-actions {
		width: 100%;
	}

	.tdp-search-input {
		flex: 1;
		min-width: 0;
	}
}

/* ============================================
   Online Test Styles
   ============================================ */

.tdp-online-test-body {
	margin: 0;
	padding: 0;
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.tdp-online-test-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Navigation Bar */
.tdp-test-nav {
	background: #e4332c;
	color: #ffffff;
	padding: 12px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tdp-test-nav-left {
	display: flex;
	align-items: center;
}

.tdp-test-nav-brand {
	color: #ffffff;
	font-size: 22px;
	font-weight: 600;
}

.tdp-test-nav-lang {
	color: #ffffff;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
	transition: background 0.2s;
}

.tdp-test-nav-lang:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tdp-test-nav-lang.active {
	background: rgba(255, 255, 255, 0.2);
	font-weight: 600;
}

/* Language Dropdown */
.tdp-test-nav-lang-dropdown {
	position: relative;
}

.tdp-test-nav-lang-btn {
	background: transparent;
	border: none;
	color: #ffffff;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 24px;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
	font-size: 14px;
}

.tdp-test-nav-lang-btn:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tdp-test-nav-globe-icon {
	width: 16px;
	height: 16px;
	display: block;
}

.tdp-test-nav-lang-text {
	font-weight: 500;
}

.tdp-test-nav-lang-arrow {
	width: 12px;
	height: 12px;
	margin-left: 4px;
}

.tdp-test-nav-lang-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: #ffffff;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	margin-top: 4px;
	min-width: 120px;
	overflow: hidden;
	z-index: 1000;
}

.tdp-test-nav-lang-option {
	display: block;
	padding: 10px 16px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s;
	border-bottom: 1px solid #f0f0f0;
}

.tdp-test-nav-lang-option:last-child {
	border-bottom: none;
}

.tdp-test-nav-lang-option:hover {
	background: #f5f5f5;
}

.tdp-test-nav-lang-option.active {
	background: #e4332c;
	color: #ffffff;
	font-weight: 600;
}

.tdp-test-nav-lang-option.active:hover {
	background: #d12a24;
}

.tdp-test-nav-home {
	color: #ffffff;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 4px;
	transition: background 0.2s;
	font-size: 12px;
}

.tdp-test-nav-home:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tdp-test-nav-koni {
	color: #ffffff;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 4px;
	transition: background 0.2s;
	font-size: 14px;
}

.tdp-test-nav-koni:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tdp-test-nav-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tdp-test-nav-timer {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
}

.tdp-test-nav-timer-label {
	color: #ffffff;
	opacity: 0.9;
}

.tdp-test-nav-timer-value {
	color: #ffffff;
	font-weight: 700;
	font-family: monospace;
}

.tdp-test-nav-counter {
	color: #ffffff;
	font-size: 14px;
}

.tdp-test-nav-stop {
	background: #ff6b35;
	color: #ffffff;
	border: none;
	padding: 6px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

.tdp-test-nav-stop:hover {
	background: #e55a2b;
}

/* Content Area */
.tdp-online-test-content {
	flex: 1;
	padding: 40px;
	max-width: 1400px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

/* Start Page */
.tdp-test-start-container {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 40px;
	align-items: start;
}

.tdp-test-start-left {
	background: #f5f5f5;
	padding: 30px;
	border-radius: 8px;
}

.tdp-test-start-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #e4332c;
}

.tdp-test-category-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tdp-test-radio-option {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	padding: 8px;
	border-radius: 4px;
	transition: background 0.2s;
}

.tdp-test-radio-option:hover {
	background: rgba(0, 0, 0, 0.05);
}

.tdp-test-radio-option input[type="radio"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #e4332c;
}

.tdp-test-radio-label {
	font-size: 16px;
	color: #333;
	cursor: pointer;
}

.tdp-test-start-right {
	padding: 20px 0;
}

.tdp-test-main-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 20px 0;
	color: #e4332c;
}

.tdp-test-instructions {
	font-size: 16px;
	line-height: 1.6;
	color: #666;
	margin: 0;
}

.tdp-test-start-button {
	background: #e4332c;
	color: #ffffff;
	border: none;
	padding: 12px 32px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 20px;
	transition: background 0.2s;
	width: 100%;
}

.tdp-test-start-button:hover {
	background: #d8251e;
}

/* Topics Selection Page */
.tdp-test-topics-container {
	max-width: 1200px;
	margin: 0 auto;
}

.tdp-test-topics-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 30px 0;
	color: #e4332c;
	text-align: center;
}

.tdp-test-topics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-bottom: 40px;
}

.tdp-test-topic-checkbox {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	background: #ffffff;
}

.tdp-test-topic-checkbox:hover {
	border-color: #e4332c;
	background: #f5f5f5;
}

.tdp-test-topic-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #e4332c;
}

.tdp-test-topic-label {
	font-size: 15px;
	color: #333;
	cursor: pointer;
	flex: 1;
}

.tdp-test-topics-container .tdp-test-start-button {
	display: block;
	margin: 0 auto;
}

/* Test Question Page */
.tdp-test-question-container {
	display: grid;
	grid-template-columns: 1fr 400px;
	grid-template-rows: auto;
	gap: 30px;
	min-height: 600px;
}

/* Left Column: Question Text and Image */
.tdp-test-question-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tdp-test-question-left .tdp-test-question-text {
	order: 1;
	padding: 0;
	border-top: none;
}

.tdp-test-question-left .tdp-test-question-text p {
	font-size: 18px;
	font-weight: 600;
	color: #e4332c;
	margin: 0;
}

.tdp-test-question-left .tdp-test-question-image {
	order: 2;
	background: #f5f5f5;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 400px;
	flex: 1;
	position: relative;
}

.tdp-test-question-left .tdp-test-question-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.tdp-test-image-expand {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgb(160 160 160 / 70%);
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	z-index: 10;
	color: #ffffff;
	padding: 0;
}

.tdp-test-image-expand:hover {
	background: rgb(147 147 147 / 90%);
	transform: scale(1.1);
}

.tdp-test-image-expand svg {
	width: 24px;
	height: 24px;
}

.tdp-test-question-image-placeholder {
	padding: 40px;
	color: #999;
	text-align: center;
}

/* Right Column: Counter, Options, Actions */
.tdp-test-question-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tdp-test-question-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.tdp-test-question-counter {
	font-size: 16px;
	font-weight: 600;
	color: #333;
}

.tdp-test-question-stop {
	background: #e4332c;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

.tdp-test-question-stop:hover {
	background: #e74b46;
}

.tdp-test-question-options {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
}

.tdp-test-answer-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	background: #ffffff;
}

.tdp-test-answer-option:hover {
	border-color: #e4332c;
	background: #f5f5f5;
}

.tdp-test-answer-option.selected {
	border-color: #e4332c;
	background: #fef2f2;
}

.tdp-test-answer-option input[type="radio"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
	accent-color: #e4332c;
}

.tdp-test-answer-text {
	font-size: 15px;
	color: #333;
	cursor: pointer;
	flex: 1;
}

.tdp-test-question-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	align-items: flex-end;
	margin-top: auto;
}

.tdp-test-question-explanation-btn {
	background: #e4332c;
	color: #ffffff;
	border: none;
	padding: 12px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	transition: background 0.2s;
}

.tdp-test-question-explanation-btn:hover {
	background: #e74b46;
}

.tdp-test-nav-button {
	background: #ffffff;
	color: #e4332c;
	border: 2px solid #e4332c;
	padding: 10px 24px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.tdp-test-nav-button:hover {
	background: #e74b46;
	color: #ffffff;
}

.tdp-test-nav-button-primary {
	background: #e4332c;
	color: #ffffff;
	border-color: #e4332c;
}

.tdp-test-nav-button-primary:hover {
	background: #e74b46;
	border-color: #e74b46;
}

.tdp-test-nav-button-disabled,
.tdp-test-nav-button-primary:disabled {
	background: #cccccc !important;
	color: #666666 !important;
	border-color: #cccccc !important;
	cursor: not-allowed !important;
	opacity: 0.6;
}

.tdp-test-nav-button-disabled:hover,
.tdp-test-nav-button-primary:disabled:hover {
	background: #cccccc !important;
	border-color: #cccccc !important;
}

/* Results Page */
.tdp-test-results-container {
	max-width: 1200px;
	margin: 0 auto;
}

.tdp-test-results-title {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 30px 0;
	color: #e4332c;
	text-align: center;
}

.tdp-test-results-summary {
	background: #f5f5f5;
	padding: 24px;
	border-radius: 8px;
	margin-bottom: 40px;
	text-align: center;
}

.tdp-test-results-summary p {
	font-size: 16px;
	margin: 8px 0;
	color: #333;
}

.tdp-test-results-summary strong {
	font-size: 18px;
	color: #e4332c;
}

.tdp-test-results-correct {
	color: #28a745 !important;
}

.tdp-test-results-correct strong {
	color: #28a745 !important;
}

.tdp-test-results-incorrect {
	color: #dc3545 !important;
}

.tdp-test-results-incorrect strong {
	color: #dc3545 !important;
}

.tdp-test-results-questions {
	display: flex;
	flex-direction: column;
	gap: 30px;
	margin-bottom: 40px;
}

.tdp-test-result-question {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 24px;
}

.tdp-test-result-question-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #e4332c;
}

.tdp-test-result-wrapper {
	display: flex;
	flex-direction: row;
	gap: 24px;
	align-items: flex-start;
}

.tdp-test-result-question-image {
	flex: 0 0 60%;
	border-radius: 6px;
	overflow: hidden;
	background: #f5f5f5;
	min-height: 300px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tdp-test-result-question-image img {
	max-width: 100%;
	height: auto;
	display: block;
}

.tdp-test-result-image-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}

.tdp-test-result-image-placeholder img {
	max-width: 200px;
	height: auto;
	opacity: 0.6;
}

.tdp-test-result-answers {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tdp-test-result-answer {
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	font-size: 15px;
	color: #333;
	background: #ffffff;
}

.tdp-test-result-answer.correct {
	border-color: #28a745;
	background: #d4edda;
	color: #155724;
}

.tdp-test-result-answer.incorrect {
	border-color: #dc3545;
	background: #f8d7da;
	color: #721c24;
}

.tdp-test-result-explanation-btn {
	margin-top: 16px;
	padding: 10px 16px;
	background: transparent;
	border: none;
	color: #999;
	font-size: 14px;
	cursor: pointer;
	text-align: right;
	align-self: flex-end;
	transition: color 0.2s;
}

.tdp-test-result-explanation-btn:hover {
	color: #e4332c;
}

.tdp-test-results-actions {
	text-align: center;
}

/* Explanation Modal */
.tdp-test-explanation-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10000;
}

.tdp-test-explanation-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
}

.tdp-test-explanation-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 8px;
	max-width: 600px;
	max-height: 80vh;
	margin: 5vh auto;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tdp-test-explanation-modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px 8px;
	z-index: 1;
	transition: color 0.2s;
}

.tdp-test-explanation-modal-close:hover {
	color: #333;
}

.tdp-test-explanation-modal-body {
	padding: 32px;
	overflow-y: auto;
}

.tdp-test-explanation-modal-body h3 {
	margin: 0 0 20px 0;
	font-size: 24px;
	font-weight: 600;
	color: #e4332c;
}

.tdp-test-explanation-text {
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.tdp-test-explanation-text img {
	max-width: 100%;
	height: auto;
	margin: 10px 0;
	border-radius: 4px;
}

.tdp-test-explanation-text p {
	margin: 0 0 10px 0;
}

.tdp-test-explanation-text p:last-child {
	margin-bottom: 0;
}

.tdp-test-explanation-text ul,
.tdp-test-explanation-text ol {
	margin: 10px 0;
	padding-left: 20px;
}

.tdp-test-explanation-text li {
	margin: 5px 0;
}

.tdp-test-explanation-text strong {
	font-weight: 600;
}

.tdp-test-explanation-text em {
	font-style: italic;
}

.tdp-test-explanation-text a {
	color: #2563eb;
	text-decoration: underline;
}

.tdp-test-explanation-text a:hover {
	color: #1d4ed8;
}

.tdp-tinymce-editor {
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #ffffff;
}

.tdp-tinymce-editor .mce-content-body {
	padding: 10px;
}

/* Image Lightbox */
.tdp-test-image-lightbox {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10001;
	display: flex;
	flex-direction: column;
	background: rgba(0, 0, 0, 0.95);
}

.tdp-test-image-lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.9);
	z-index: 1;
}

.tdp-test-image-lightbox-topbar {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	gap: 20px;
	z-index: 2;
	background: rgba(0, 0, 0, 0.8);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(8px);
}

.tdp-test-image-lightbox-question {
	flex: 1;
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	padding-right: 20px;
}

.tdp-test-image-lightbox-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.tdp-test-image-lightbox-zoom-controls {
	display: flex;
	align-items: center;
	gap: 12px;
	background: rgba(255, 255, 255, 0.1);
	padding: 8px 16px;
	border-radius: 8px;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.tdp-test-image-lightbox-close {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #ffffff;
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 8px;
	transition: all 0.2s;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
}

.tdp-test-image-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
}

.tdp-test-image-lightbox-content {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	overflow: auto;
	padding: 0;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

.tdp-test-image-lightbox-image-wrapper {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	min-width: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

.tdp-test-image-lightbox-img {
	max-width: 90vw;
	max-height: calc(100vh - 100px);
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
	transition: transform 0.3s ease;
	display: block;
}

.tdp-test-image-lightbox-zoom-btn {
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	color: #ffffff;
	font-size: 24px;
	line-height: 1;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s;
	padding: 0;
}

.tdp-test-image-lightbox-zoom-btn:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
}

.tdp-test-image-lightbox-zoom-btn:active {
	transform: scale(0.95);
}

.tdp-test-image-lightbox-zoom-percentage {
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	min-width: 50px;
	text-align: center;
}

/* Footer */
.tdp-test-footer {
	background: #202020;
	color: #ffffff;
	padding: 24px;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
	align-items: center;
}

.tdp-test-footer-left {
	text-align: left;
}

.tdp-test-footer-center {
	text-align: center;
}

.tdp-test-footer-right {
	text-align: right;
}

.tdp-test-footer p {
	margin: 4px 0;
	font-size: 14px;
	color: #ffffff;
}

.tdp-test-footer-link {
	color: #ffffff;
	text-decoration: none;
	font-size: 14px;
	transition: opacity 0.2s;
}

.tdp-test-footer-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
	.tdp-test-start-container {
		grid-template-columns: 1fr;
	}

	.tdp-test-question-container {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.tdp-test-question-left {
		order: 1;
	}

	.tdp-test-question-right {
		order: 2;
	}

	.tdp-test-question-left .tdp-test-question-image {
		min-height: 300px;
	}

	.tdp-test-question-info {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.tdp-test-question-actions {
		justify-content: space-between;
	}

	.tdp-test-topics-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.tdp-online-test-content {
		padding: 20px;
	}

	.tdp-test-nav {
		padding: 10px 16px;
		flex-wrap: wrap;
		gap: 8px;
	}

	.tdp-test-nav-left {
		flex-wrap: wrap;
		gap: 8px;
	}

	.tdp-test-topics-grid {
		grid-template-columns: 1fr;
	}

	.tdp-test-main-title {
		font-size: 24px;
	}

	.tdp-test-results-title {
		font-size: 24px;
	}

	.tdp-test-result-wrapper {
		flex-direction: column;
	}

	.tdp-test-result-question-image {
		flex: 1;
		min-height: 200px;
	}

	.tdp-test-explanation-modal-content {
		max-width: 90%;
		margin: 10vh auto;
	}

	.tdp-test-footer {
		grid-template-columns: 1fr;
		gap: 16px;
		text-align: center;
	}

	.tdp-test-footer-left,
	.tdp-test-footer-center,
	.tdp-test-footer-right {
		text-align: center;
	}

	.tdp-test-nav-right {
		width: 100% !important;
		justify-content: space-between !important;
	}

	.tdp-test-result-answers {
		width: 100%;
	}

	.tdp-test-nav-button-primary {
		float: right !important;
	}

	.tdp-test-image-lightbox-topbar {
		justify-content: space-between !important;
		align-items: flex-end !important;
		flex-direction: column-reverse !important;
	}
}
