﻿/**
 * Enhanced Practice/Submit Focus System Styles
 * These styles provide visual enhancements for the Luyện Tập and Nộp Bài functionality
 */

/* ===== Notification Overlays ===== */
.focus-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 18px;
	background-color: rgba(0, 0, 0, 0.85);
	color: white;
	text-align: center;
	z-index: 9999;
	transform: translateY(-100%);
	transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

	.focus-overlay.active {
		transform: translateY(0);
	}

	.focus-overlay p {
		margin: 0;
		font-size: 16px;
		line-height: 1.5;
		max-width: 800px;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 10px;
	}

/* Back button in notifications */
.focus-back-btn {
	background-color: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: white;
	border-radius: 4px;
	padding: 5px 15px;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-left: 10px;
	font-weight: 500;
}

	.focus-back-btn:hover {
		background-color: rgba(255, 255, 255, 0.3);
		transform: translateY(-2px);
	}

.practice-back {
	background-color: rgba(0, 102, 255, 0.3);
}

.submit-back {
	background-color: rgba(255, 107, 10, 0.3);
}

.practice-overlay {
	background: linear-gradient(to right, #0044cc, #0866ff);
	border-bottom: 3px solid #00ccff;
}

.submit-overlay {
	background: linear-gradient(to right, #e65c00, #ff6b0a);
	border-bottom: 3px solid #ffcc00;
}

/* ===== Back Button ===== */
.ai-back-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: white;
	color: #333;
	border: none;
	border-radius: 50%;
	width: 56px;
	height: 56px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(0.8) translateY(20px);
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	font-size: 24px;
}

	.ai-back-button.active {
		opacity: 1;
		transform: scale(1) translateY(0);
	}

	.ai-back-button:hover {
		transform: scale(1.1);
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
	}

	.ai-back-button.practice {
		border: 2px solid #0866ff;
	}

	.ai-back-button.submit {
		border: 2px solid #ff6b0a;
	}

/* ===== Guidance Tooltips ===== */
.ai-guidance-tooltip {
	position: absolute;
	background-color: white;
	border-radius: 8px;
	padding: 10px 15px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	z-index: 9998;
	font-size: 14px;
	max-width: 250px;
	opacity: 0;
	transform: translateY(15px);
	transition: all 0.4s ease;
	pointer-events: none;
}

	.ai-guidance-tooltip.active {
		opacity: 1;
		transform: translateY(0);
	}

	.ai-guidance-tooltip.practice {
		border-left: 3px solid #0866ff;
	}

	.ai-guidance-tooltip.submit {
		border-left: 3px solid #ff6b0a;
	}

	.ai-guidance-tooltip::before {
		content: "";
		position: absolute;
		top: -10px;
		left: 20px;
		border-width: 0 10px 10px 10px;
		border-style: solid;
		border-color: transparent transparent white transparent;
	}

/* ===== Highlighting Effects ===== */
.highlight-element {
	position: relative;
	z-index: 2;
}

/* Practice Mode */
body[data-current-mode="practice"] .teacher-names {
	box-shadow: 0 0 20px #0866ff;
	background-color: rgba(8, 102, 255, 0.05);
	border-radius: 8px;
	padding: 8px;
	transition: all 0.4s ease;
	position: relative;
}

	body[data-current-mode="practice"] .teacher-names:hover {
		box-shadow: 0 0 25px #0866ff;
		background-color: rgba(8, 102, 255, 0.1);
	}

	body[data-current-mode="practice"] .teacher-names::after {
		content: "👉 Chọn mentor này";
		position: absolute;
		top: -10px;
		right: 10px;
		background-color: #0866ff;
		color: white;
		padding: 3px 10px;
		border-radius: 12px;
		font-size: 12px;
		opacity: 0;
		transform: translateY(5px);
		transition: all 0.3s ease;
	}

	body[data-current-mode="practice"] .teacher-names:hover::after {
		opacity: 1;
		transform: translateY(0);
	}

body[data-current-mode="practice"] .class-name {
	opacity: 0.6;
	transition: all 0.4s ease;
}

/* Submit Mode */
body[data-current-mode="submit"] .class-name {
	box-shadow: 0 0 20px #ff6b0a;
	background-color: rgba(255, 107, 10, 0.05);
	border-radius: 8px;
	padding: 8px;
	transition: all 0.4s ease;
	position: relative;
}

	body[data-current-mode="submit"] .class-name:hover {
		box-shadow: 0 0 25px #ff6b0a;
		background-color: rgba(255, 107, 10, 0.1);
	}

	body[data-current-mode="submit"] .class-name::after {
		content: "👉 Chọn lớp này";
		position: absolute;
		top: -10px;
		right: 10px;
		background-color: #ff6b0a;
		color: white;
		padding: 3px 10px;
		border-radius: 12px;
		font-size: 12px;
		opacity: 0;
		transform: translateY(5px);
		transition: all 0.3s ease;
	}

	body[data-current-mode="submit"] .class-name:hover::after {
		opacity: 1;
		transform: translateY(0);
	}

body[data-current-mode="submit"] .teacher-names {
	opacity: 0.6;
	transition: all 0.4s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.focus-overlay p {
		font-size: 14px;
	}

	.ai-back-button {
		width: 48px;
		height: 48px;
		font-size: 20px;
		bottom: 15px;
		right: 15px;
	}

	body[data-current-mode="practice"] .teacher-names::after,
	body[data-current-mode="submit"] .class-name::after {
		font-size: 10px;
		padding: 2px 8px;
	}
}
