﻿.sidebarfeatures {
	position: fixed;
	top: 0;
	right: 0;
	width: 420px; /* your existing width */
	height: 100vh;
	display: flex;
	flex-direction: column;
}

.sidebarcontent {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
}

.sideheading {
	flex-shrink: 0;
}

.process-box {
	overflow-y: auto;
	max-height: calc(100vh - 320px);
}

.filelist {
	flex: 0 0 auto;
	max-height: 220px;
	overflow-y: auto;
}


/* File list */
.filelist {
	flex: 1 1 auto;
	min-height: 200px;
	overflow-y: auto;
	overflow-x: hidden;
}

/* Process button section */
.process-box {
	flex: 0 0 auto;
}

/* Better scrollbar */
.filelist::-webkit-scrollbar {
	width: 8px;
}

.filelist::-webkit-scrollbar-thumb {
	background: #bdbdbd;
	border-radius: 10px;
}

	.filelist::-webkit-scrollbar-thumb:hover {
		background: #9b9b9b;
	}

.watermark-panel {
	padding-bottom: 0;
}

.watermark-spacing {
	margin-top: 20px;
}

.watermark-text {
	width: 100%;
}

.watermark-font {
	max-width: 180px;
}

.watermark-font-size {
	width: 80px;
}

.watermark-mode .btn {
	padding: 12px;
	font-weight: 600;
}

	.watermark-mode .btn i {
		margin-right: 6px;
	}

.watermark-controls .card {
	border-radius: 12px;
}

.watermark-controls .card-body {
	padding: 18px;
}

.watermark-controls .form-label {
	font-size: .88rem;
	font-weight: 600;
	margin-bottom: 6px;
}

.watermark-controls .form-control,
.watermark-controls .form-select {
	height: 42px;
	border-radius: 10px;
}

.watermark-controls .form-control-color {
	width: 50%;
	height: 42px;
	padding: 10px;
}

.watermark-controls input[type="number"] {
	text-align: center;
}

.upload-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 180px;
	border: 2px dashed #cfcfcf;
	border-radius: 12px;
	cursor: pointer;
	background: #fafafa;
	transition: .2s;
}

	.upload-box:hover {
		background: #f5f5f5;
		border-color: #8c52ff;
	}

	.upload-box i {
		font-size: 42px;
		color: #8c52ff;
		margin-bottom: 10px;
	}

.watermark-panel .btn {
	min-height: 58px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
}

#watermarkTabImage {
	width: 100%;
}

.upload-box {
	width: 100%;
	min-height: 180px;
}

.watermark-panel .btn {
	height: 52px;
	display: flex;
	justify-content: center;
	align-items: center;
	white-space: normal;
	font-size: .92rem;
}

.upload-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	/* keep your existing border/padding styles */
}

	.upload-box strong {
		word-break: break-all; /* long filenames don't overflow */
		text-align: center;
		max-width: 100%;
	}

#page-spinner {
	position: fixed;
	top: 50px;
	z-index: 1000;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.6);
}

	#page-spinner #htmlloader {
		display: block;
		margin: 80px auto;
	}

	#page-spinner #loader {
		border: 16px solid #f3f3f3;
		border-top: 16px solid #449d44;
		border-radius: 50%;
		width: 120px;
		height: 120px;
		animation: spin 2s linear infinite;
		left: 50%;
		top: 50%;
		margin: 150px auto;
	}
/* ---- Watermark live preview workspace ---- */
.watermark-workspace {
	width: 100%;
	margin-top: 5px;
	border: 1px solid #e3e3e3;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	color: #000;
}

.wp-applies-note {
	padding: 10px 16px;
	font-size: .85rem;
	color: #555;
	background: #f8f6ff;
	border-bottom: 1px solid #eee;
}

.wp-preview {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wp-preview-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	border-bottom: 1px solid #eee;
}

.wp-page-nav, .wp-zoom-nav {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .88rem;
}

.wp-jump-input {
	width: 64px;
}

.wp-preview-stage {
	position: relative;
	min-height: 480px;
	overflow: auto;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 20px;
	background: #f2f2f2;
}

.wp-page-wrap {
	position: relative;
	box-shadow: 0 2px 10px rgba(0,0,0,.15);
	background: #fff;
}

	.wp-page-wrap canvas {
		position: absolute;
		top: 0;
		left: 0;
		display: block;
	}

	.wp-page-wrap #wpWatermarkCanvas {
		pointer-events: none;
	}

.wp-preview-loading,
.wp-preview-error {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	white-space: nowrap;
}

@@media (max-width: 991px) {
	.wp-preview-stage {
		min-height: 320px;
	}

	.wp-preview-toolbar {
		justify-content: center;
	}
}
