/* CopyBan Services - Shared Styles */
.cbs-box {
	direction: rtl;
	text-align: right;
	font-family: Tahoma, "Vazirmatn", "IRANSans", sans-serif;
	max-width: 640px;
	margin: 20px auto;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.9;
}

.cbs-box * { box-sizing: border-box; }

.cbs-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 14px;
	color: #111827;
}

.cbs-info {
	background: #f3f4f6;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 18px;
	font-size: 14px;
	color: #374151;
}

.cbs-steps { margin-top: 12px; }

.cbs-step {
	background: #fff;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 8px;
	font-size: 14px;
	box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

.cbs-step b { color: #2563eb; margin-left: 4px; }

.cbs-tabs {
	display: flex;
	background: #f3f4f6;
	border-radius: 8px;
	padding: 4px;
	margin-bottom: 18px;
}

.cbs-tab {
	flex: 1;
	text-align: center;
	padding: 10px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #374151;
	background: transparent;
	border: none;
}

.cbs-tab.active {
	background: #fff;
	color: #111827;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

.cbs-label {
	font-size: 14px;
	color: #374151;
	margin-bottom: 6px;
	display: block;
}

.cbs-textarea, .cbs-input, .cbs-select {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	margin-bottom: 16px;
	direction: rtl;
	background: #fff;
	color: #111827;
	font-family: inherit;
}

.cbs-textarea { min-height: 110px; resize: vertical; }
.cbs-textarea.cbs-code { direction: ltr; text-align: left; font-family: monospace; }

.cbs-file-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 13px;
	color: #6b7280;
}

.cbs-file-row input[type=file] { display: none; }

.cbs-browse-btn {
	background: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
	color: #111827;
}

.cbs-btn-group {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.cbs-btn {
	flex: 1;
	border: none;
	border-radius: 8px;
	padding: 12px;
	font-size: 14px;
	cursor: pointer;
	font-weight: 600;
	transition: opacity .15s;
}

.cbs-btn:hover { opacity: .9; }
.cbs-btn:disabled { opacity: .55; cursor: not-allowed; }

.cbs-btn-outline {
	background: #fff;
	border: 1px solid #d1d5db;
	color: #374151;
}

.cbs-btn-primary { background: #2563eb; color: #fff; }
.cbs-btn-success { background: #16a34a; color: #fff; }
.cbs-btn-gray { background: #e5e7eb; color: #374151; }

.cbs-run-btn {
	width: 100%;
	background: #16a34a;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 14px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	margin-top: 4px;
}

.cbs-run-btn:disabled { opacity: .6; cursor: not-allowed; }

.cbs-result-code {
	background: #111827;
	color: #e5e7eb;
	border-radius: 8px;
	padding: 16px;
	font-family: monospace;
	font-size: 13px;
	direction: ltr;
	text-align: left;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
	margin-top: 16px;
}

.cbs-msg {
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 14px;
	display: none;
}

.cbs-msg.cbs-msg-error { background: #fef2f2; color: #b91c1c; display: block; }
.cbs-msg.cbs-msg-success { background: #f0fdf4; color: #15803d; display: block; }

.cbs-hint { font-size: 12px; color: #9ca3af; margin-top: -10px; margin-bottom: 14px; }

.cbs-check-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 14px;
}

.cbs-check-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.cbs-strength-bar {
	height: 6px;
	border-radius: 4px;
	background: #e5e7eb;
	margin-bottom: 14px;
	overflow: hidden;
}

.cbs-strength-fill {
	height: 100%;
	width: 0%;
	background: #ef4444;
	transition: width .2s, background .2s;
}

.cbs-pass-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f9fafb;
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 8px 12px;
	margin-bottom: 8px;
	font-family: monospace;
	direction: ltr;
	text-align: left;
	font-size: 14px;
}

.cbs-pass-item button {
	background: none;
	border: none;
	color: #2563eb;
	cursor: pointer;
	font-size: 12px;
	font-family: inherit;
}

.cbs-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255,255,255,.5);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cbs-spin .7s linear infinite;
	margin-left: 6px;
	vertical-align: middle;
}

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