/**
 * Video Admin Styles
 *
 * Styles for the video upload admin page.
 *
 * @package KursBooking
 * @since   1.3.0
 */

/* ==========================================================================
   Layout
   ========================================================================== */

.kb-video-admin {
	max-width: 1200px;
}

.kb-video-admin h1 .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	margin-right: 8px;
	vertical-align: middle;
}

.kb-video-upload-container {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 30px;
	margin-top: 20px;
}

@media (max-width: 1024px) {
	.kb-video-upload-container {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   Upload Form
   ========================================================================== */

.kb-video-upload-form {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 24px;
}

.kb-video-upload-form h2 {
	margin-top: 0;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #dcdcde;
	font-size: 16px;
}

.kb-form-row {
	margin-bottom: 20px;
}

.kb-form-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

.kb-form-row .description {
	margin-top: 6px;
	color: #646970;
	font-size: 12px;
}

.kb-select,
.kb-input {
	width: 100%;
	max-width: 500px;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}

.kb-select:focus,
.kb-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

/* ==========================================================================
   Dropzone
   ========================================================================== */

.kb-dropzone {
	border: 2px dashed #c3c4c7;
	border-radius: 8px;
	padding: 50px 30px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #f9f9f9;
}

.kb-dropzone:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.kb-dropzone.kb-dropzone-active {
	border-color: #2271b1;
	border-style: solid;
	background: #e7f2fb;
}

.kb-dropzone-content .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #8c8f94;
	margin-bottom: 15px;
}

.kb-dropzone:hover .dashicons,
.kb-dropzone.kb-dropzone-active .dashicons {
	color: #2271b1;
}

.kb-dropzone-text {
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 5px 0;
}

.kb-dropzone-subtext {
	font-size: 14px;
	color: #646970;
	margin: 0 0 10px 0;
}

.kb-dropzone-formats {
	font-size: 12px;
	color: #8c8f94;
	margin: 0;
}

/* ==========================================================================
   Progress
   ========================================================================== */

.kb-upload-progress {
	padding: 30px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #dcdcde;
}

.kb-progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.kb-progress-filename {
	font-weight: 600;
	font-size: 14px;
	color: #1d2327;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 70%;
}

.kb-progress-percent {
	font-weight: 600;
	font-size: 14px;
	color: #2271b1;
}

.kb-progress-bar {
	height: 8px;
	background: #dcdcde;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 15px;
}

.kb-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #2271b1, #135e96);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.kb-progress-status {
	text-align: center;
	color: #646970;
	font-size: 13px;
	margin-bottom: 15px;
}

.kb-cancel-btn {
	display: block;
	margin: 0 auto;
}

/* ==========================================================================
   Success Message
   ========================================================================== */

.kb-upload-success {
	text-align: center;
	padding: 40px 30px;
	background: #edfaef;
	border: 1px solid #00a32a;
	border-radius: 8px;
}

.kb-upload-success .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #00a32a;
	margin-bottom: 15px;
}

.kb-upload-success p {
	font-size: 16px;
	font-weight: 600;
	color: #00a32a;
	margin: 0 0 10px 0;
}

.kb-success-note {
	font-size: 13px !important;
	font-weight: normal !important;
	color: #646970 !important;
}

.kb-success-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 20px;
}

/* ==========================================================================
   Error Message
   ========================================================================== */

.kb-upload-error {
	text-align: center;
	padding: 40px 30px;
	background: #fcf0f1;
	border: 1px solid #d63638;
	border-radius: 8px;
}

.kb-upload-error .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #d63638;
	margin-bottom: 15px;
}

.kb-upload-error p {
	font-size: 14px;
	color: #d63638;
	margin: 0 0 20px 0;
}

/* ==========================================================================
   Recent Uploads
   ========================================================================== */

.kb-recent-uploads {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	height: fit-content;
}

.kb-recent-uploads h2 {
	margin-top: 0;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
	font-size: 14px;
}

.kb-no-videos {
	text-align: center;
	color: #646970;
	padding: 30px 0;
	font-size: 13px;
}

.kb-video-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.kb-video-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #dcdcde;
	transition: border-color 0.2s;
}

.kb-video-item:hover {
	border-color: #2271b1;
}

.kb-video-thumb {
	width: 60px;
	height: 40px;
	background: #e0e0e0;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}

.kb-video-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kb-video-thumb .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	color: #8c8f94;
}

.kb-video-info {
	flex: 1;
	min-width: 0;
}

.kb-video-title {
	display: block;
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-bottom: 4px;
}

.kb-video-title:hover {
	color: #2271b1;
}

.kb-video-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #646970;
}

.kb-video-duration {
	color: #1d2327;
}

.kb-video-date {
	color: #8c8f94;
}

/* Status badges (from class-video.php) */
.kb-video-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
}

.kb-video-status-draft {
	background: #f0f0f0;
	color: #646970;
}

.kb-video-status-uploading {
	background: #e5f3ff;
	color: #0073aa;
}

.kb-video-status-processing {
	background: #fff8e5;
	color: #996800;
}

.kb-video-status-ready {
	background: #e5ffe5;
	color: #00a32a;
}

.kb-video-status-error {
	background: #ffe5e5;
	color: #d63638;
}

.kb-all-videos-link {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #dcdcde;
	text-align: center;
}

.kb-all-videos-link a {
	font-size: 13px;
	color: #2271b1;
	text-decoration: none;
}

.kb-all-videos-link a:hover {
	color: #135e96;
	text-decoration: underline;
}
