/**
 * Younus Academy Security - Public Frontend Stylesheet
 *
 * @package YounusAcademySecurity
 */

/* Secure Video Wrapper & Dynamic Watermark */
.yas-secure-video-wrapper {
	position: relative !important;
	display: block !important;
	overflow: hidden !important;
	max-width: 100%;
}

.yas-watermark-container {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	pointer-events: none !important;
	z-index: 99 !important;
	overflow: hidden !important;
	user-select: none !important;
	-webkit-user-select: none !important;
}

.yas-watermark-layer {
	position: absolute;
	padding: 6px 14px;
	border-radius: 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace, sans-serif;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.4);
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
	transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fixed Positions */
.yas-watermark-layer.yas-pos-top-left { top: 20px; left: 20px; }
.yas-watermark-layer.yas-pos-top-right { top: 20px; right: 20px; }
.yas-watermark-layer.yas-pos-bottom-left { bottom: 20px; left: 20px; }
.yas-watermark-layer.yas-pos-bottom-right { bottom: 20px; right: 20px; }
.yas-watermark-layer.yas-pos-center { top: 45%; left: 35%; }

/* Front-End Student Security Dashboard */
.yas-student-dashboard {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	max-width: 900px;
	margin: 20px auto;
	color: #0F172A;
}

.yas-sd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.yas-sd-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px;
	box-shadow: 0 4px 12px rgba(11, 44, 107, 0.04);
}

.yas-sd-card h4 {
	margin: 0 0 6px 0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #64748B;
	font-weight: 600;
}

.yas-sd-card .yas-val {
	font-size: 20px;
	font-weight: 700;
	color: #0B2C6B;
}

.yas-sd-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 14px;
	font-size: 13px;
}

.yas-sd-table th {
	background: #F8FAFC;
	padding: 10px 14px;
	text-align: left;
	font-weight: 600;
	color: #64748B;
	border-bottom: 1px solid #E2E8F0;
}

.yas-sd-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #F1F5F9;
	vertical-align: middle;
}

.yas-sd-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 11px;
	font-weight: 600;
}

.yas-sd-badge.active { background: #D1FAE5; color: #065F46; }
.yas-sd-badge.pending { background: #FEF3C7; color: #92400E; }
.yas-sd-badge.blocked { background: #FEE2E2; color: #991B1B; }

.yas-sd-btn {
	background: #1E63FF;
	color: #FFFFFF;
	padding: 8px 16px;
	border-radius: 6px;
	border: none;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: background 0.2s ease;
}

.yas-sd-btn:hover {
	background: #134ECC;
	color: #FFFFFF;
}

.yas-sd-btn-danger {
	background: #EF4444;
}

.yas-sd-btn-danger:hover {
	background: #DC2626;
}

/* Floating Modal Popup for Violations */
.yas-public-modal-wrap {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(11, 44, 107, 0.65);
	backdrop-filter: blur(4px);
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.yas-public-modal-dialog {
	background: #FFFFFF;
	border-radius: 12px;
	max-width: 480px;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	text-align: center;
	animation: yasPopIn 0.25s ease-out;
}

@keyframes yasPopIn {
	from { transform: scale(0.92); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.yas-public-modal-header {
	background: #0B2C6B;
	color: #FFFFFF;
	padding: 24px;
}

.yas-public-modal-header h3 {
	margin: 10px 0 0 0;
	font-size: 18px;
	font-weight: 700;
	color: #FFFFFF;
}

.yas-public-modal-body {
	padding: 24px 30px;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
}

.yas-public-modal-footer {
	padding: 16px 24px 24px 24px;
	display: flex;
	gap: 10px;
	justify-content: center;
}
