/**
 * Tutor Homework Collector - Frontend Styles
 * Fully responsive for mobile, tablet, and desktop devices.
 */

:root {
	--thc-primary: #3f6ad8;
	--thc-primary-hover: #2b51b8;
	--thc-primary-light: #eef2fd;
	--thc-success: #10b981;
	--thc-success-light: #ecfdf5;
	--thc-warning: #f59e0b;
	--thc-warning-light: #fffbeb;
	--thc-danger: #ef4444;
	--thc-danger-light: #fef2f2;
	--thc-dark: #1e293b;
	--thc-gray: #64748b;
	--thc-gray-light: #f8fafc;
	--thc-border: #e2e8f0;
	--thc-radius: 12px;
	--thc-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
	--thc-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.04);
	--thc-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
}

/* Base utilities */
.thc-hidden {
	display: none !important;
}

.thc-mobile-drop-text {
	display: none;
}

.thc-desktop-drop-text {
	display: inline;
}

/* ============================================================
   Lesson Upload Section (Directly after 'About Lesson')
============================================================ */
.thc-homework-wrapper {
	background: #ffffff;
	border: 1px solid var(--thc-border);
	border-radius: var(--thc-radius);
	padding: 24px;
	margin: 28px 0;
	box-shadow: var(--thc-shadow-sm);
	font-family: inherit;
	box-sizing: border-box;
	width: 100%;
	clear: both;
}

.thc-homework-wrapper * {
	box-sizing: border-box;
}

.thc-homework-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--thc-border);
}

.thc-header-left {
	display: flex;
	align-items: center;
	gap: 14px;
}

.thc-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--thc-primary-light);
	color: var(--thc-primary);
	border-radius: 10px;
	flex-shrink: 0;
}

.thc-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--thc-dark);
	line-height: 1.3;
}

.thc-subtitle {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: var(--thc-gray);
	line-height: 1.4;
}

.thc-deadline-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--thc-warning-light);
	color: #92400e;
	border: 1px solid #fde68a;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 0.8125rem;
}

.thc-deadline-badge.expired {
	background: var(--thc-danger-light);
	color: var(--thc-danger);
	border-color: #fecaca;
}

/* Dropzone */
.thc-dropzone {
	position: relative;
	border: 2px dashed #cbd5e1;
	border-radius: var(--thc-radius);
	background: var(--thc-gray-light);
	padding: 36px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	min-height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.thc-dropzone-content {
	width: 100%;
}

.thc-dropzone:hover,
.thc-dropzone.dragover {
	border-color: var(--thc-primary);
	background: var(--thc-primary-light);
}

.thc-dropzone-icon {
	color: var(--thc-primary);
	margin-bottom: 10px;
	display: inline-flex;
}

.thc-dropzone-primary-text {
	margin: 0 0 6px;
	font-size: 1rem;
	font-weight: 500;
	color: var(--thc-dark);
}

.thc-browse-link {
	color: var(--thc-primary);
	text-decoration: underline;
	cursor: pointer;
	margin-left: 4px;
	font-weight: 600;
}

.thc-browse-link:hover {
	color: var(--thc-primary-hover);
}

.thc-dropzone-meta {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--thc-gray);
}

.thc-file-input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

/* File Preview */
.thc-file-preview {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--thc-border);
	border-radius: 10px;
	padding: 12px 16px;
	margin-top: 14px;
	box-shadow: var(--thc-shadow-sm);
	gap: 12px;
}

.thc-file-preview-info {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.thc-preview-icon {
	font-size: 1.5rem;
	flex-shrink: 0;
}

.thc-preview-meta-col {
	min-width: 0;
	flex: 1;
}

.thc-preview-filename {
	font-weight: 600;
	color: var(--thc-dark);
	font-size: 0.9375rem;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.thc-preview-filesize {
	font-size: 0.8125rem;
	color: var(--thc-gray);
}

.thc-preview-remove {
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--thc-gray);
	cursor: pointer;
	padding: 8px;
	min-width: 44px;
	min-height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.thc-preview-remove:hover {
	color: var(--thc-danger);
}

/* Progress Bar */
.thc-progress-bar-wrap {
	width: 100%;
	background: #e2e8f0;
	height: 8px;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 14px;
}

.thc-progress-bar {
	height: 100%;
	background: var(--thc-primary);
	transition: width 0.3s ease;
}

/* Form Actions & Buttons */
.thc-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.thc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	line-height: 1.4;
	min-height: 44px;
	touch-action: manipulation;
}

.thc-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.thc-btn-primary {
	background: var(--thc-primary);
	color: #ffffff !important;
}

.thc-btn-primary:hover:not(:disabled) {
	background: var(--thc-primary-hover);
}

.thc-btn-secondary {
	background: #e2e8f0;
	color: var(--thc-dark) !important;
}

.thc-btn-secondary:hover {
	background: #cbd5e1;
}

.thc-btn-outline {
	background: #ffffff;
	border-color: var(--thc-border);
	color: var(--thc-dark) !important;
}

.thc-btn-outline:hover {
	background: var(--thc-gray-light);
	border-color: #cbd5e1;
}

.thc-btn-sm {
	padding: 8px 14px;
	font-size: 0.8125rem;
	border-radius: 6px;
	min-height: 38px;
}

.thc-btn-xs {
	padding: 6px 10px;
	font-size: 0.75rem;
	border-radius: 4px;
	min-height: 32px;
}

/* Alert Boxes */
.thc-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 0.875rem;
}

.thc-alert-warning {
	background: var(--thc-warning-light);
	border: 1px solid #fde68a;
	color: #92400e;
}

.thc-alert-box {
	padding: 12px 16px;
	border-radius: 8px;
	margin-top: 14px;
	font-size: 0.875rem;
}

.thc-alert-box.success {
	background: var(--thc-success-light);
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.thc-alert-box.error {
	background: var(--thc-danger-light);
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ============================================================
   Submission Card
============================================================ */
.thc-submission-card {
	background: #ffffff;
	border: 1px solid #c7d2fe;
	border-radius: var(--thc-radius);
	padding: 18px 20px;
	margin-bottom: 16px;
	box-shadow: var(--thc-shadow-sm);
	width: 100%;
}

.thc-card-top-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 14px;
}

.thc-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
}

.thc-status-success {
	background: var(--thc-success-light);
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.thc-status-showcase {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
}

.thc-card-body-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.thc-file-info-col {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	min-width: 200px;
}

.thc-file-type-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 10px;
	flex-shrink: 0;
}

.thc-file-type-icon.pdf {
	background: #fee2e2;
	color: #dc2626;
}

.thc-file-type-icon.image {
	background: #e0e7ff;
	color: var(--thc-primary);
}

.thc-file-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--thc-dark);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.thc-file-submeta {
	font-size: 0.8125rem;
	color: var(--thc-gray);
	margin-top: 2px;
}

.thc-dot {
	margin: 0 4px;
}

.thc-file-actions-col {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.thc-lock-note {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	color: var(--thc-gray);
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px dashed var(--thc-border);
}

/* ============================================================
   Student Dashboard / [thc_my_submissions]
============================================================ */
.thc-student-dashboard-wrap {
	margin: 20px 0;
	font-family: inherit;
	width: 100%;
}

.thc-dashboard-header {
	margin-bottom: 24px;
}

.thc-dashboard-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--thc-dark);
	margin: 0 0 6px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.thc-dashboard-desc {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--thc-gray);
}

.thc-course-filter-bar {
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.thc-course-block {
	background: #ffffff;
	border: 1px solid var(--thc-border);
	border-radius: var(--thc-radius);
	margin-bottom: 24px;
	overflow: hidden;
	box-shadow: var(--thc-shadow-sm);
}

.thc-course-card-header {
	background: var(--thc-gray-light);
	border-bottom: 1px solid var(--thc-border);
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.thc-course-info {
	flex: 1;
	min-width: 240px;
}

.thc-course-heading {
	margin: 0 0 8px;
	font-size: 1.2rem;
	font-weight: 600;
}

.thc-course-heading a {
	color: var(--thc-dark);
	text-decoration: none;
}

.thc-course-heading a:hover {
	color: var(--thc-primary);
}

.thc-course-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.thc-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.75rem;
	padding: 4px 10px;
	border-radius: 20px;
	font-weight: 500;
}

.thc-badge-deadline {
	background: var(--thc-warning-light);
	color: #92400e;
	border: 1px solid #fde68a;
}

.thc-badge-expired {
	background: var(--thc-danger-light);
	color: var(--thc-danger);
	border: 1px solid #fecaca;
}

.thc-badge-nodeadline {
	background: #f1f5f9;
	color: var(--thc-gray);
	border: 1px solid var(--thc-border);
}

.thc-badge-stats {
	background: var(--thc-primary-light);
	color: var(--thc-primary);
	border: 1px solid #c7d2fe;
}

.thc-progress-section {
	min-width: 220px;
}

.thc-progress-label {
	display: flex;
	justify-content: space-between;
	font-size: 0.8125rem;
	margin-bottom: 6px;
	color: var(--thc-dark);
}

.thc-progress-track {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 4px;
	overflow: hidden;
}

.thc-progress-fill {
	height: 100%;
	background: var(--thc-success);
	border-radius: 4px;
	transition: width 0.4s ease;
}

.thc-lessons-table-wrap {
	width: 100%;
}

.thc-lessons-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}

.thc-lessons-table th {
	background: #ffffff;
	text-align: left;
	padding: 12px 20px;
	font-weight: 600;
	color: var(--thc-gray);
	border-bottom: 1px solid var(--thc-border);
}

.thc-lessons-table td {
	padding: 14px 20px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.thc-row-submitted {
	background: #ffffff;
}

.thc-row-pending {
	background: #fafafa;
}

.thc-lesson-link {
	font-weight: 500;
	color: var(--thc-dark);
	text-decoration: none;
}

.thc-lesson-link:hover {
	color: var(--thc-primary);
}

.thc-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.75rem;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 500;
}

.thc-tag-success {
	background: var(--thc-success-light);
	color: #065f46;
}

.thc-tag-showcase {
	background: #fef3c7;
	color: #92400e;
	margin-left: 4px;
}

.thc-tag-pending {
	background: #f1f5f9;
	color: var(--thc-gray);
}

.thc-tag-expired {
	background: var(--thc-danger-light);
	color: var(--thc-danger);
}

.thc-file-cell-mini {
	display: flex;
	flex-direction: column;
}

.thc-file-name {
	font-weight: 500;
	color: var(--thc-dark);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.thc-file-meta-mini {
	font-size: 0.75rem;
	color: var(--thc-gray);
}

/* Empty States */
.thc-empty-state {
	text-align: center;
	padding: 48px 20px;
	background: #ffffff;
	border: 1px solid var(--thc-border);
	border-radius: var(--thc-radius);
}

.thc-empty-icon {
	font-size: 3rem;
	margin-bottom: 12px;
}

/* ============================================================
   Student Showcase Gallery [thc_showcase]
============================================================ */
.thc-showcase-container {
	margin: 24px 0;
	font-family: inherit;
	width: 100%;
}

.thc-showcase-empty {
	text-align: center;
	padding: 40px;
	background: var(--thc-gray-light);
	border-radius: var(--thc-radius);
	border: 1px dashed var(--thc-border);
	color: var(--thc-gray);
}

.thc-showcase-empty .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
}

.thc-showcase-section {
	margin-bottom: 36px;
}

.thc-showcase-section-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--thc-dark);
	margin: 32px 0 16px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.thc-showcase-grid {
	display: grid;
	gap: 20px;
}

.thc-cols-1 { grid-template-columns: 1fr; }
.thc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.thc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.thc-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Image Item Card */
.thc-showcase-image-item {
	background: #ffffff;
	border: 1px solid var(--thc-border);
	border-radius: var(--thc-radius);
	overflow: hidden;
	box-shadow: var(--thc-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.thc-showcase-image-item:hover {
	transform: translateY(-4px);
	box-shadow: var(--thc-shadow-lg);
}

.thc-image-thumb-wrap {
	position: relative;
	width: 100%;
	height: 220px;
	background: #f1f5f9;
	overflow: hidden;
}

.thc-showcase-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.thc-showcase-image-item:hover .thc-showcase-img {
	transform: scale(1.05);
}

.thc-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(30, 41, 59, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.thc-showcase-image-item:hover .thc-image-overlay {
	opacity: 1;
}

.thc-zoom-icon {
	color: #ffffff;
	background: rgba(0,0,0,0.5);
	padding: 10px;
	border-radius: 50%;
	display: flex;
}

.thc-image-card-meta {
	padding: 14px 16px;
}

.thc-student-name {
	font-weight: 600;
	color: var(--thc-dark);
	font-size: 0.9375rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.thc-student-name .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: var(--thc-primary);
}

.thc-lesson-title {
	font-size: 0.8125rem;
	color: var(--thc-gray);
	margin-top: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.thc-course-title-sub {
	font-size: 0.75rem;
	color: var(--thc-primary);
	margin-top: 2px;
	font-weight: 500;
}

.thc-date-sub {
	font-size: 0.75rem;
	color: #94a3b8;
	margin-top: 4px;
}

/* Document / PDF Showcase List */
.thc-showcase-doc-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.thc-showcase-doc-item {
	background: #ffffff;
	border: 1px solid var(--thc-border);
	border-radius: 10px;
	padding: 16px 20px;
	box-shadow: var(--thc-shadow-sm);
	transition: box-shadow 0.2s ease;
}

.thc-showcase-doc-item:hover {
	box-shadow: var(--thc-shadow-md);
}

.thc-doc-card-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.thc-doc-icon-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: #fee2e2;
	color: #dc2626;
	border-radius: 10px;
	flex-shrink: 0;
}

.thc-doc-icon-wrap .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.thc-doc-content {
	flex: 1;
	min-width: 200px;
}

.thc-doc-filename {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--thc-dark);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.thc-doc-meta-row {
	font-size: 0.8125rem;
	color: var(--thc-gray);
	margin-top: 4px;
}

.thc-doc-course-title {
	font-size: 0.75rem;
	color: var(--thc-primary);
	margin-top: 2px;
	font-weight: 500;
}

.thc-doc-actions {
	display: flex;
	gap: 8px;
}

/* Showcase Pagination / Load More */
.thc-showcase-pagination {
	text-align: center;
	margin-top: 30px;
}

.thc-load-more-btn {
	background: #ffffff;
	border: 1px solid var(--thc-border);
	color: var(--thc-dark);
	font-weight: 600;
	padding: 12px 28px;
	border-radius: 30px;
	cursor: pointer;
	box-shadow: var(--thc-shadow-sm);
	transition: all 0.2s ease;
	min-height: 44px;
}

.thc-load-more-btn:hover {
	background: var(--thc-primary);
	color: #ffffff;
	border-color: var(--thc-primary);
	box-shadow: var(--thc-shadow-md);
}

/* ============================================================
   Lightbox Modal
============================================================ */
.thc-lightbox-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
}

.thc-lightbox-modal.is-open {
	display: flex;
}

.thc-lightbox-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.85);
	backdrop-filter: blur(4px);
}

.thc-lightbox-dialog {
	position: relative;
	z-index: 2;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.thc-lightbox-close {
	position: absolute;
	top: -48px;
	right: 0;
	background: rgba(0,0,0,0.5);
	border: none;
	color: #ffffff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.9;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.thc-lightbox-close:hover {
	background: rgba(0,0,0,0.8);
	opacity: 1;
}

.thc-lightbox-content {
	background: #0f172a;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
	text-align: center;
	max-width: 100%;
}

.thc-lightbox-img {
	max-width: 85vw;
	max-height: 75vh;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.thc-lightbox-caption {
	padding: 14px 20px;
	color: #f8fafc;
	font-size: 0.875rem;
	background: #1e293b;
	text-align: center;
	word-break: break-word;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE OPTIMIZATIONS)
============================================================ */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
	.thc-cols-4,
	.thc-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.thc-course-card-header {
		flex-direction: column;
		align-items: stretch;
	}

	.thc-progress-section {
		width: 100%;
	}
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
	.thc-mobile-drop-text {
		display: inline;
	}

	.thc-desktop-drop-text {
		display: none;
	}

	.thc-homework-wrapper {
		padding: 16px 14px;
		margin: 20px 0;
		border-radius: 10px;
	}

	.thc-homework-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		margin-bottom: 16px;
		padding-bottom: 14px;
	}

	.thc-header-left {
		width: 100%;
		gap: 12px;
	}

	.thc-header-icon {
		width: 38px;
		height: 38px;
	}

	.thc-header-icon svg {
		width: 20px;
		height: 20px;
	}

	.thc-title {
		font-size: 1.1rem;
	}

	.thc-subtitle {
		font-size: 0.8125rem;
	}

	.thc-deadline-badge {
		width: 100%;
		justify-content: flex-start;
		font-size: 0.75rem;
		padding: 6px 10px;
	}

	.thc-dropzone {
		padding: 24px 14px;
		min-height: 120px;
	}

	.thc-dropzone-icon svg {
		width: 30px;
		height: 30px;
	}

	.thc-dropzone-primary-text {
		font-size: 0.875rem;
		line-height: 1.4;
	}

	.thc-dropzone-meta {
		font-size: 0.75rem;
	}

	.thc-file-preview {
		padding: 10px 12px;
	}

	.thc-preview-filename {
		font-size: 0.875rem;
	}

	.thc-form-actions {
		flex-direction: column;
		width: 100%;
	}

	.thc-btn {
		width: 100%;
		min-height: 46px;
		font-size: 0.9375rem;
	}

	/* Submission Card on Mobile */
	.thc-submission-card {
		padding: 16px 14px;
	}

	.thc-card-top-status {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.thc-status-badge {
		width: 100%;
		justify-content: flex-start;
		font-size: 0.75rem;
	}

	.thc-card-body-row {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.thc-file-info-col {
		width: 100%;
		min-width: 0;
	}

	.thc-file-type-icon {
		width: 42px;
		height: 42px;
	}

	.thc-file-title {
		font-size: 0.9375rem;
	}

	.thc-file-actions-col {
		width: 100%;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.thc-file-actions-col .thc-btn {
		width: 100%;
		min-height: 42px;
		padding: 8px 10px;
		font-size: 0.8125rem;
	}

	.thc-file-actions-col #thc_trigger_replace_btn {
		grid-column: span 2;
	}

	/* Student Submissions Table to Mobile Cards */
	.thc-lessons-table-wrap {
		overflow-x: visible;
	}

	.thc-lessons-table,
	.thc-lessons-table tbody,
	.thc-lessons-table tr,
	.thc-lessons-table td {
		display: block;
		width: 100%;
	}

	.thc-lessons-table thead {
		display: none;
	}

	.thc-lessons-table tr {
		margin-bottom: 14px;
		border: 1px solid var(--thc-border);
		border-radius: 10px;
		padding: 14px;
		background: #ffffff;
		box-shadow: 0 1px 2px rgba(0,0,0,0.03);
	}

	.thc-lessons-table td {
		padding: 6px 0;
		border-bottom: none;
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-wrap: wrap;
		gap: 6px;
		font-size: 0.875rem;
	}

	.thc-lessons-table td:before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--thc-gray);
		font-size: 0.75rem;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

	.thc-lessons-table td.thc-col-lesson-title {
		padding-bottom: 8px;
		border-bottom: 1px solid #f1f5f9;
		margin-bottom: 6px;
	}

	.thc-lessons-table td.thc-col-lesson-title:before {
		display: none;
	}

	.thc-lessons-table td.thc-col-lesson-title .thc-lesson-link {
		font-size: 1rem;
		font-weight: 600;
		color: var(--thc-dark);
	}

	.thc-lessons-table td.thc-col-actions {
		padding-top: 10px;
		border-top: 1px solid #f1f5f9;
		margin-top: 8px;
		display: flex;
		gap: 8px;
		justify-content: stretch;
	}

	.thc-lessons-table td.thc-col-actions:before {
		display: none;
	}

	.thc-lessons-table td.thc-col-actions .thc-btn {
		flex: 1;
		min-height: 40px;
		font-size: 0.8125rem;
	}

	/* Showcase Grid & Cards on Mobile */
	.thc-cols-4,
	.thc-cols-3,
	.thc-cols-2 {
		grid-template-columns: 1fr;
	}

	.thc-image-thumb-wrap {
		height: 200px;
	}

	.thc-doc-card-inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.thc-doc-actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
		width: 100%;
		gap: 8px;
	}

	.thc-doc-actions .thc-btn {
		width: 100%;
		min-height: 40px;
	}

	.thc-load-more-btn {
		width: 100%;
		padding: 14px;
	}

	/* Lightbox on Mobile */
	.thc-lightbox-dialog {
		max-width: 95vw;
		max-height: 92vh;
	}

	.thc-lightbox-close {
		top: -44px;
		right: 4px;
		font-size: 28px;
	}

	.thc-lightbox-img {
		max-width: 92vw;
		max-height: 65vh;
	}

	.thc-lightbox-caption {
		font-size: 0.8125rem;
		padding: 10px 14px;
	}
}

/* Very Small Smartphones (<= 480px) */
@media (max-width: 480px) {
	.thc-homework-wrapper {
		padding: 14px 12px;
	}

	.thc-course-heading {
		font-size: 1.05rem;
	}

	.thc-file-actions-col {
		grid-template-columns: 1fr;
	}

	.thc-file-actions-col #thc_trigger_replace_btn {
		grid-column: span 1;
	}

	.thc-doc-actions {
		grid-template-columns: 1fr;
	}

	.thc-lessons-table td.thc-col-actions {
		flex-direction: column;
	}

	.thc-lessons-table td.thc-col-actions .thc-btn {
		width: 100%;
	}
}
