.cl-library-wrapper {
	direction: rtl;
	text-align: right;
}

.cl-library-search-box {
	position: relative;
	margin-bottom: 24px;
}

.cl-library-search-input {
	width: 100%;
	max-width: 420px;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.cl-library-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid #ccc;
	border-top-color: #555;
	border-radius: 50%;
	animation: cl-spin 0.6s linear infinite;
	margin-right: 8px;
	vertical-align: middle;
}

@keyframes cl-spin {
	to { transform: rotate(360deg); }
}

.cl-library-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.cl-library-item {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 12px;
	text-align: center;
	background: #fff;
	box-shadow: 0 0 0 #ddd;
	transition: all 300ms linear;
}
.cl-library-item:hover {
    box-shadow: 5px 5px 5px #cbcbcb73;
}

.cl-library-thumb img {
	max-width: 100%;
	height: 180px;
	object-fit: cover;
	border-radius: 6px;
	width: 100%!important;
}

.cl-library-thumb-placeholder {
	width: 100%;
	height: 180px;
	background: #f2f2f2;
	border-radius: 6px;
}

.cl-library-title {
	font-size: 16px;
	margin: 10px 0 4px;
}

.cl-library-author {
	font-size: 13px;
	color: #777;
	margin: 0 0 8px;
}

.cl-library-download {
	display: inline-block;
	padding: 6px 16px;
	background: #2271b1;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 13px;
}

.cl-library-download:hover {
	background: #135e96;
}

.cl-library-empty {
	text-align: center;
	color: #888;
	padding: 30px 0;
}

.cl-library-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.cl-page-btn {
	padding: 6px 12px;
	border: 1px solid #ddd;
	background: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.cl-page-btn.active {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}
