/* EduTalks — shared frontend dashboard styles (Stage 3+) */

.et-dash-wrap {
	display: flex;
	gap: 24px;
	max-width: 1100px;
	margin: 24px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1a1a2e;
}

.et-dash-sidebar {
	flex: 0 0 220px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 16px 0;
	height: fit-content;
}

.et-dash-brand {
	font-weight: 700;
	font-size: 18px;
	padding: 8px 20px 16px;
	color: #4f46e5;
}

.et-dash-sidebar ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.et-dash-sidebar li a {
	display: block;
	padding: 10px 20px;
	text-decoration: none;
	color: #33334d;
	font-size: 14px;
	font-weight: 500;
}

.et-dash-sidebar li.active a {
	background: #eef0fb;
	color: #4f46e5;
	border-right: 3px solid #4f46e5;
}

.et-dash-sidebar li a:hover {
	background: #f7f7fb;
}

.et-dash-content {
	flex: 1;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 28px;
	min-width: 0;
}

.et-dash-content h1 {
	margin-top: 0;
	font-size: 22px;
}

.et-status-line {
	color: #6b6b85;
	margin-top: -8px;
}

.et-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 16px;
}

.et-card {
	flex: 1 1 160px;
	background: #f7f7fb;
	border-radius: 10px;
	padding: 18px;
}

.et-card-value {
	font-size: 26px;
	font-weight: 700;
	color: #4f46e5;
}

.et-card-label {
	color: #6b6b85;
	font-size: 13px;
	margin-top: 4px;
}

.et-form .et-field {
	margin-bottom: 16px;
}

.et-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
}

.et-form input[type="text"],
.et-form input[type="email"],
.et-form input[type="url"],
.et-form input[type="password"],
.et-form input[type="date"],
.et-form select,
.et-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d8dae5;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
	font-family: inherit;
}

.et-form-row {
	display: flex;
	gap: 16px;
}

.et-form-row .et-field {
	flex: 1;
}

.et-help {
	display: block;
	font-size: 12px;
	color: #9494a8;
	margin-top: 4px;
}

.et-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.et-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 400;
}

.et-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.et-gallery-item img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 8px;
	margin-bottom: 6px;
}

.et-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 8px;
	border: none;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	background: #eef0fb;
	color: #33334d;
}

.et-btn-primary {
	background: #4f46e5;
	color: #fff;
}

.et-btn-primary:hover {
	background: #4338ca;
}

.et-btn-danger {
	background: #fef2f2;
	color: #b91c1c;
	width: 100%;
}

.et-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.et-table th,
.et-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid #eef0f5;
}

.et-badge {
	background: #eef0fb;
	color: #4f46e5;
	border-radius: 999px;
	padding: 2px 10px;
	font-size: 12px;
	font-weight: 600;
}

.et-notice {
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.et-notice ul {
	margin: 0;
	padding-left: 18px;
}

.et-notice-error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.et-notice-success {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

/* Mobile: sidebar becomes a horizontal scrollable top nav (spec §37) */
@media (max-width: 782px) {
	.et-dash-wrap {
		flex-direction: column;
		margin: 12px;
		gap: 12px;
	}

	.et-dash-sidebar {
		flex: none;
		width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		padding: 8px 0;
	}

	.et-dash-brand {
		display: none;
	}

	.et-dash-sidebar ul {
		display: inline-flex;
	}

	.et-dash-sidebar li.active a {
		border-right: none;
		border-bottom: 3px solid #4f46e5;
	}

	.et-dash-content {
		padding: 18px;
	}

	.et-form-row {
		flex-direction: column;
		gap: 0;
	}

	.et-table {
		display: block;
		overflow-x: auto;
	}
}
