/**
 * DLC LMS SCORM Fullscreen Player Stylesheet
 */

body.dlc-scorm-player-active {
	overflow: hidden !important;
	height: 100vh !important;
	background-color: #f5f5f4;
}

.dlc-player-wrapper {
	display: flex;
	flex-direction: column;
	width: 100vw;
	height: 100vh;
	background-color: #f5f5f4;
	color: #1c1917;
	overflow: hidden;
}

/* Player Header */
.dlc-player-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 24px;
	height: 70px;
	background-color: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	z-index: 10;
}

.dlc-player-title-area {
	display: flex;
	align-items: center;
	gap: 15px;
	max-width: 50%;
}

.dlc-player-course-title {
	font-size: 1.1rem;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dlc-player-badge {
	background-color: rgba(255, 107, 107, 0.15);
	border: 1px solid rgba(255, 107, 107, 0.3);
	color: #ff6b6b;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 3px 8px;
	border-radius: 12px;
	text-transform: uppercase;
}

/* Progress bar inside header */
.dlc-player-progress-container {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 30%;
	max-width: 350px;
}

.dlc-player-progress-bar {
	flex-grow: 1;
	height: 6px;
	background-color: rgba(0, 0, 0, 0.08);
	border-radius: 3px;
	overflow: hidden;
}

.dlc-player-progress-fill {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #ff6b6b, #ff8e53);
	transition: width 0.4s ease;
}

.dlc-player-progress-text {
	font-size: 0.8rem;
	font-weight: 600;
	color: #57534e;
	white-space: nowrap;
}

/* Actions in header */
.dlc-player-header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.dlc-player-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s;
}

.dlc-player-btn-exit {
	background-color: #ef4444;
	color: #fff !important;
}

.dlc-player-btn-exit:hover {
	background-color: #dc2626;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.dlc-player-btn-toggle {
	background-color: rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.08);
	color: #1c1917 !important;
}

.dlc-player-btn-toggle:hover {
	background-color: rgba(0, 0, 0, 0.08);
}

/* Layout Split: Sidebar and Canvas */
.dlc-player-viewport {
	display: flex;
	width: 100vw;
	flex-grow: 1;
	overflow: hidden;
	background-color: #000;
}

/* Chapters Sidebar */
.dlc-player-sidebar {
	width: 300px;
	background-color: #fafaf9;
	border-right: 1px solid rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	overflow: hidden;
}

.dlc-player-sidebar.hidden {
	width: 0px;
	border-right: none;
}

.dlc-player-sidebar-title {
	padding: 20px 24px;
	font-weight: 700;
	font-size: 0.95rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	color: #57534e;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dlc-player-sidebar-menu {
	flex-grow: 1;
	overflow-y: auto;
	padding: 10px 0;
}

.dlc-sco-link {
	display: flex;
	align-items: center;
	padding: 14px 24px;
	color: #57534e;
	font-size: 0.9rem;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: all 0.2s;
	text-align: left;
	width: 100%;
	background: transparent;
	border-right: none;
	border-top: none;
	border-bottom: none;
	cursor: pointer;
}

.dlc-sco-link:hover {
	color: #1c1917;
	background-color: rgba(0, 0, 0, 0.03);
}

.dlc-sco-link.active {
	color: #ff6b6b;
	background-color: rgba(255, 107, 107, 0.08);
	border-left-color: #ff6b6b;
	font-weight: 600;
}

/* Player Canvas area */
.dlc-player-content {
	flex-grow: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	position: relative;
	background-color: #000;
	transition: all 0.3s ease;
}

.dlc-player-iframe-container {
	flex-grow: 1;
	width: 100%;
	height: 100%;
	position: relative;
}

#dlc-scorm-iframe {
	width: 100%;
	height: 100%;
	border: none;
	background-color: #000;
	display: block;
}
