/**
 * Elite EB — Admin Styles
 *
 * Covers all Elite EB admin pages (dashboard, evaluations, submissions, projects).
 * Design: dark theme matching the public side.
 */

/* ============================================================
 * 1. Page wrapper
 * ============================================================ */
.elite-eb-wrap {
	max-width: 1400px;
	font-family: var(--elite-font-family, 'Inter', sans-serif);
}

.elite-eb-wrap h1 {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--elite-gold, #C5A028);
	letter-spacing: -0.02em;
}

.elite-eb-wrap h2 {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--elite-gold, #C5A028);
	margin-top: 1.5rem;
}

.elite-eb-wrap .description {
	color: var(--elite-text-muted, #888888);
	font-size: 0.9rem;
}

/* ============================================================
 * 2. Filters bar
 * ============================================================ */
.elite-eb-filters {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 20px 0;
}

.elite-eb-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.elite-eb-filter-row select,
.elite-eb-filter-row input[type="search"] {
	min-width: 160px;
	padding: 6px 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}

.elite-eb-filter-row input[type="search"] {
	flex: 1;
	min-width: 200px;
}

.elite-eb-filter-row .button {
	margin: 0;
}

/* ============================================================
 * 3. Tables
 * ============================================================ */
.elite-eb-table {
	margin-top: 20px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	overflow: hidden;
}

.elite-eb-table thead th {
	background: #f6f7f7;
	color: #1d2327;
	font-weight: 700;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid #c3c4c7;
}

.elite-eb-table tbody td {
	padding: 12px 10px;
	font-size: 14px;
	color: #3c434a;
	vertical-align: middle;
}

.elite-eb-table tbody tr:hover {
	background: #f8f9fa;
}

/* ============================================================
 * 4. Badges
 * ============================================================ */
.elite-eb-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.4;
}

.elite-eb-badge-exit_ticket {
	background: rgba(197, 160, 40, 0.15);
	color: #8b6f24;
}

.elite-eb-badge-weekly_quiz {
	background: rgba(52, 152, 219, 0.15);
	color: #2874a6;
}

.elite-eb-badge-monthly_exam {
	background: rgba(231, 76, 60, 0.15);
	color: #922b21;
}

/* ============================================================
 * 5. Status labels
 * ============================================================ */
.elite-eb-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 50px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.4;
	white-space: nowrap;
}

.elite-status-draft {
	background: #e2e3e5;
	color: #383d41;
}

.elite-status-open,
.elite-status-in-progress {
	background: #d1ecf1;
	color: #0c5460;
}

.elite-status-closed {
	background: #f8d7da;
	color: #721c24;
}

.elite-status-pending {
	background: #fff3cd;
	color: #856404;
}

.elite-status-submitted {
	background: #d1ecf1;
	color: #0c5460;
}

.elite-status-graded,
.elite-status-completed {
	background: #d4edda;
	color: #155724;
}

.elite-status-reopened,
.elite-status-needs-revision {
	background: #fff3cd;
	color: #856404;
}

.elite-status-unknown {
	background: #f0f0f1;
	color: #50575e;
}

/* ============================================================
 * 6. Empty state
 * ============================================================ */
.elite-eb-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border: 2px dashed #c3c4c7;
	border-radius: 8px;
	margin-top: 20px;
}

.elite-eb-empty p {
	font-size: 15px;
	color: #50575e;
	margin-bottom: 16px;
}

/* ============================================================
 * 7. Forms (create/edit evaluation)
 * ============================================================ */
.elite-eb-form {
	max-width: 1200px;
}

.elite-eb-form-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	margin-top: 20px;
}

.elite-eb-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.elite-eb-form-grid-3 {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
}

@media (max-width: 900px) {
	.elite-eb-form-grid,
	.elite-eb-form-grid-2,
	.elite-eb-form-grid-3 {
		grid-template-columns: 1fr;
	}
}

.elite-eb-form-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 24px;
	margin-top: 24px;
}

.elite-eb-form-section h2 {
	margin-top: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #dcdcde;
	font-size: 1.1rem;
}

.elite-eb-form-field {
	margin-bottom: 20px;
}

.elite-eb-form-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	margin-bottom: 6px;
}

.elite-eb-form-field label .required {
	color: #d63638;
	font-weight: 700;
}

.elite-eb-form-field input[type="text"],
.elite-eb-form-field input[type="number"],
.elite-eb-form-field input[type="date"],
.elite-eb-form-field input[type="url"],
.elite-eb-form-field select,
.elite-eb-form-field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.5;
	box-sizing: border-box;
}

.elite-eb-form-field textarea {
	resize: vertical;
	min-height: 100px;
}

.elite-eb-form-field input:focus,
.elite-eb-form-field select:focus,
.elite-eb-form-field textarea:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.elite-eb-form-field .description {
	color: #646970;
	font-size: 13px;
	margin-top: 4px;
	font-style: italic;
}

.elite-eb-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 24px;
	padding: 20px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
}

.elite-eb-form-actions .button-link {
	margin-left: auto;
	color: #b32d2e;
	text-decoration: none;
}

/* ============================================================
 * 8. Media field
 * ============================================================ */
.elite-eb-media-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.elite-eb-media-preview {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.elite-eb-media-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	font-size: 13px;
}

.elite-eb-media-name {
	flex: 1;
	color: #1d2327;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elite-eb-media-remove {
	background: transparent;
	border: 1px solid #d63638;
	color: #d63638;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0;
	transition: all 0.2s;
}

.elite-eb-media-remove:hover {
	background: #d63638;
	color: #fff;
}

/* ============================================================
 * 9. Today's Exit Tickets
 * ============================================================ */
.elite-eb-quick-create {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	margin: 20px 0;
	text-align: center;
}

.elite-eb-quick-create h2 {
	margin-top: 0;
}

.elite-eb-quick-create p {
	color: #646970;
	font-size: 14px;
	margin-bottom: 16px;
}

.elite-eb-quick-create .button-primary {
	padding: 8px 24px;
	height: auto;
	font-size: 14px;
}

.elite-eb-today-group {
	margin-top: 24px;
}

.elite-eb-today-group h2 {
	background: #f6f7f7;
	padding: 10px 16px;
	border-left: 4px solid var(--elite-gold, #C5A028);
	border-radius: 4px;
	font-size: 1.1rem;
	margin: 0 0 10px;
}

/* ============================================================
 * 10. Progress bar
 * ============================================================ */
.elite-eb-progress-bar {
	width: 100%;
	height: 6px;
	background: #f0f0f1;
	border-radius: 50px;
	overflow: hidden;
	margin-bottom: 4px;
}

.elite-eb-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--elite-gold, #C5A028), #FFD700);
	border-radius: 50px;
	transition: width 800ms ease;
}

.elite-eb-progress-large .elite-eb-progress-bar {
	height: 10px;
}

.elite-eb-progress-label {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 14px;
	color: #50575e;
	margin-top: 8px;
}

.elite-eb-progress-label strong {
	color: var(--elite-gold, #C5A028);
	font-size: 1.2rem;
	font-weight: 800;
}

/* ============================================================
 * 11. Grader layout (2-column)
 * ============================================================ */
.elite-eb-grader-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	margin-top: 20px;
}

@media (max-width: 1000px) {
	.elite-eb-grader-layout {
		grid-template-columns: 1fr;
	}
}

.elite-eb-grader-content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.elite-eb-grader-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.elite-eb-grader-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 24px;
}

.elite-eb-grader-card h2 {
	font-size: 1.05rem;
	color: var(--elite-gold, #C5A028);
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.elite-eb-grader-card h3 {
	font-size: 0.95rem;
	color: #1d2327;
	margin: 16px 0 8px;
}

.elite-eb-grader-question {
	background: #f6f7f7;
	border-left: 3px solid var(--elite-gold, #C5A028);
	padding: 12px 16px;
	border-radius: 0 4px 4px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #1d2327;
	margin-bottom: 12px;
}

.elite-eb-grader-answer {
	background: #f9f9f9;
	border: 1px solid #f0f0f1;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.7;
	color: #1d2327;
	margin: 8px 0;
}

.elite-eb-graded-notice {
	background: #edfaef;
	border-left: 3px solid #00a32a;
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 0 4px 4px 0;
}

.elite-eb-graded-notice p {
	margin: 0 0 6px;
	font-size: 14px;
}

.elite-eb-graded-notice p:last-child {
	margin: 0;
}

.elite-eb-grader-previous-notes {
	background: #fffbea;
	border-color: #f0c33c;
}

/* ============================================================
 * 12. Project view
 * ============================================================ */
.elite-eb-project-view-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	margin-top: 20px;
}

@media (max-width: 1000px) {
	.elite-eb-project-view-layout {
		grid-template-columns: 1fr;
	}
}

.elite-eb-project-view-main,
.elite-eb-project-view-sidebar {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.elite-eb-view-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 24px;
}

.elite-eb-view-card h2 {
	font-size: 1.05rem;
	color: var(--elite-gold, #C5A028);
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
}

.elite-eb-view-card h3 {
	font-size: 0.9rem;
	color: #1d2327;
	margin: 16px 0 8px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.elite-eb-view-content {
	font-size: 14px;
	line-height: 1.7;
	color: #3c434a;
	margin-bottom: 12px;
}

.elite-eb-view-content p {
	margin: 0 0 10px;
}

.elite-eb-tag {
	display: inline-block;
	padding: 3px 10px;
	background: rgba(197, 160, 40, 0.12);
	color: #8b6f24;
	border: 1px solid rgba(197, 160, 40, 0.3);
	border-radius: 50px;
	font-size: 12px;
	font-weight: 600;
	margin: 3px;
}

.elite-eb-summary-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.elite-eb-summary-list li {
	display: flex;
	justify-content: space-between;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
	font-size: 14px;
	color: #50575e;
}

.elite-eb-summary-list li:last-child {
	border-bottom: none;
}

.elite-eb-summary-list li strong {
	color: #1d2327;
	font-weight: 700;
}

/* ============================================================
 * 13. Dashboard
 * ============================================================ */
.elite-eb-admin-dashboard {
	margin-top: 20px;
}

.elite-eb-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.elite-eb-dashboard-stat-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 24px;
	text-align: center;
	transition: all 0.3s;
}

.elite-eb-dashboard-stat-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.elite-eb-dashboard-stat-icon {
	font-size: 32px;
	margin-bottom: 8px;
}

.elite-eb-dashboard-stat-value {
	font-size: 32px;
	font-weight: 800;
	color: var(--elite-gold, #C5A028);
	line-height: 1;
	margin-bottom: 4px;
}

.elite-eb-dashboard-stat-label {
	font-size: 12px;
	color: #646970;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}

.elite-eb-dashboard-sections {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin-top: 24px;
}

@media (max-width: 900px) {
	.elite-eb-dashboard-sections {
		grid-template-columns: 1fr;
	}
}

.elite-eb-dashboard-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 24px;
}

.elite-eb-dashboard-section h2 {
	font-size: 1.1rem;
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #dcdcde;
	color: #1d2327;
}

.elite-eb-dashboard-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.elite-eb-dashboard-list li {
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
	font-size: 14px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.elite-eb-dashboard-list li:last-child {
	border-bottom: none;
}

.elite-eb-dashboard-list a {
	color: #2271b1;
	text-decoration: none;
	font-weight: 500;
}

.elite-eb-dashboard-list a:hover {
	text-decoration: underline;
}

.elite-eb-dashboard-empty {
	color: #8c8f94;
	font-style: italic;
	font-size: 13px;
}

/* ============================================================
 * 14. Settings page
 * ============================================================ */
.elite-eb-settings-page {
	max-width: 900px;
	margin-top: 20px;
}

.elite-eb-settings-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid #c3c4c7;
	margin-bottom: 24px;
}

.elite-eb-settings-tab {
	padding: 12px 24px;
	background: transparent;
	border: none;
	color: #50575e;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: all 0.2s;
}

.elite-eb-settings-tab:hover {
	color: #2271b1;
}

.elite-eb-settings-tab.active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.elite-eb-settings-panel {
	display: none;
}

.elite-eb-settings-panel.active {
	display: block;
}

.elite-eb-settings-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 20px;
}

.elite-eb-settings-section h2 {
	margin-top: 0;
	padding-bottom: 12px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 1.15rem;
	color: #1d2327;
}

.elite-eb-settings-field {
	margin-bottom: 20px;
}

.elite-eb-settings-field label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	margin-bottom: 6px;
}

.elite-eb-settings-field input[type="text"],
.elite-eb-settings-field input[type="email"],
.elite-eb-settings-field input[type="number"],
.elite-eb-settings-field select {
	width: 100%;
	max-width: 400px;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}

.elite-eb-settings-field .description {
	color: #646970;
	font-size: 13px;
	margin-top: 4px;
	font-style: italic;
}

.elite-eb-settings-field input[type="checkbox"] {
	margin-right: 8px;
}

/* ============================================================
 * 15. Responsive
 * ============================================================ */
@media (max-width: 782px) {
	.elite-eb-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.elite-eb-filter-row select,
	.elite-eb-filter-row input[type="search"] {
		width: 100%;
	}

	.elite-eb-form-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.elite-eb-form-actions .button-link {
		margin-left: 0;
		text-align: center;
	}

	.elite-eb-dashboard-sections {
		grid-template-columns: 1fr;
	}

	.elite-eb-settings-tabs {
		overflow-x: auto;
		white-space: nowrap;
	}
}