/* Settings Page Styles */
.opti-behavior-settings-page {
	background: #f8f9fa;
	margin: 0;
	padding: 0;
}

/* Fix WP footer overlap on settings pages */
body.opti-behavior_page_opti-behavior-settings #wpfooter {
	position: relative;
}

/* Vertical Tab Layout Container */
.opti-behavior-settings-container {
	display: flex;
	gap: 0;
	min-height: 600px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	overflow: visible;
}

/* Vertical Tab Navigation */
.settings-tab-nav {
	width: 280px;
	background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
	border-right: 2px solid #e1e5e9;
	padding: 24px 0;
	flex-shrink: 0;
	position: sticky;
	top: 32px;
	align-self: flex-start;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
}

/* Custom scrollbar for tab navigation */
.settings-tab-nav::-webkit-scrollbar {
	width: 6px;
}

.settings-tab-nav::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.settings-tab-nav::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 3px;
}

.settings-tab-nav::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

.settings-tab-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 24px;
	color: #4a5568;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border-left: 4px solid transparent;
	transition: all 0.2s ease;
	position: relative;
}

.settings-tab-link:hover {
	background: rgba(108, 92, 231, 0.05);
	color: #6c5ce7;
}

.settings-tab-link.active {
	background: rgba(108, 92, 231, 0.1);
	color: #6c5ce7;
	border-left-color: #6c5ce7;
	font-weight: 600;
}

.settings-tab-link.active::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right: 8px solid white;
}

.tab-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.tab-label {
	flex: 1;
}

/* Tab Content Area */
.settings-tab-content {
	flex: 1;
	padding: 40px;
	overflow-y: visible;
}

.opti-behavior-settings-form {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* Settings Header */
.settings-header {
	background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #6d28d9 100%);
	color: white;
	padding: 28px 32px;
	margin: -1px -20px 24px -20px;
	box-shadow: 0 4px 20px rgba(79, 70, 229, 0.25);
	border-radius: 0;
}

.settings-header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.settings-title-section {
	display: flex;
	align-items: center;
	gap: 16px;
}

.settings-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	color: #fff;
}

.settings-icon svg,
.settings-icon i {
	width: 24px;
	height: 24px;
}

.settings-title {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.settings-subtitle {
	color: rgba(255, 255, 255, 0.8);
	font-size: 13px;
	margin: 4px 0 0 0;
}

/* Settings Content */
.settings-content {
	max-width: 1400px;
	margin: 0 auto;
	padding: 40px;
}

.settings-sections {
	padding: 0;
}

/* Settings Section */
.settings-section {
	padding: 0;
}

.settings-section + .settings-section {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid #e5e7eb;
}

.settings-section:last-child {
	border-bottom: none;
}

.section-header {
	margin-bottom: 20px;
}

.section-title {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 8px 0;
	display: flex;
	align-items: center;
	gap: 12px;
}

.section-icon {
	font-size: 28px;
}

.section-description {
	font-size: 16px;
	color: #6c757d;
	margin: 0;
	line-height: 1.5;
}

/* Settings Grid */
.settings-grid {
	display: grid;
	gap: 32px;
}

/* Setting Item */
.setting-item {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
}

/* Setting Row (same as setting-item) */
.setting-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: start;
	margin-bottom: 24px;
}

.setting-label {
	display: block;
}

.label-text {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
	display: block;
	margin-bottom: 4px;
}

.label-description {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.4;
	display: block;
}

.setting-control {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Radio Groups */
.radio-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.radio-option {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	background: #fafbfc;
}

.radio-option:hover {
	border-color: #6c5ce7;
	background: #f8f7ff;
}

.radio-option input[type="radio"] {
	margin: 0;
	width: 18px;
	height: 18px;
	accent-color: #6c5ce7;
}

.radio-option input[type="radio"]:checked + .radio-label {
	color: #6c5ce7;
	font-weight: 600;
}

.radio-option:has(input[type="radio"]:checked) {
	border-color: #6c5ce7;
	background: #f8f7ff;
}

.radio-label {
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	margin-bottom: 2px;
	display: block;
}

.radio-description {
	font-size: 13px;
	color: #6c757d;
	line-height: 1.3;
	display: block;
}

/* Number Input */
.number-input {
	width: 120px;
	padding: 12px 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.number-input:focus {
	outline: none;
	border-color: #6c5ce7;
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.input-suffix {
	font-size: 14px;
	color: #6c757d;
	margin-left: 8px;
}

/* Toggle Switch */
.toggle-switch {
	display: flex;
	align-items: center;
}

.toggle-switch input[type="checkbox"] {
	display: none;
}

.toggle-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.toggle-slider {
	width: 48px;
	height: 24px;
	background: #e1e5e9;
	border-radius: 12px;
	position: relative;
	transition: background 0.2s ease;
}

.toggle-slider::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	background: white;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: transform 0.2s ease;
	box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider {
	background: #6c5ce7;
}

.toggle-switch input[type="checkbox"]:checked + .toggle-label .toggle-slider::before {
	transform: translateX(24px);
}

.toggle-text {
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
}

/* Settings Actions */
.settings-actions {
	padding: 32px 40px;
	background: #f8f9fa;
	border-top: 1px solid #e1e5e9;
	display: flex;
	align-items: center;
	gap: 16px;
}

.btn-save {
	background: #6c5ce7;
	color: white;
	border: none;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.btn-save:hover {
	background: #5a4fcf;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(108, 92, 231, 0.3);
}

.btn-icon {
	font-size: 18px;
}

.save-status {
	font-size: 14px;
	color: #28a745;
	font-weight: 500;
}

/* Data Protection Stats */
.protection-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.protection-stat-card {
	background: #fafbfc;
	padding: 20px;
	border-radius: 8px;
	border: 2px solid #e1e5e9;
	transition: all 0.2s ease;
}

.protection-stat-card:hover {
	border-color: #6c5ce7;
	background: #f8f7ff;
}

/* Storage Stats Grid - File Storage Tab */
.storage-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.storage-stats-grid .stat-card {
	background: #ffffff;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.storage-stats-grid .stat-card:hover {
	border-color: #6c5ce7;
	background: #f8f7ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(108, 92, 231, 0.15);
}

.storage-stats-grid .stat-icon {
	font-size: 32px;
	flex-shrink: 0;
	line-height: 1;
}

.storage-stats-grid .stat-content {
	flex: 1;
	min-width: 0;
}

.stat-label {
	font-size: 12px;
	color: #6c757d;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.stat-value {
	font-size: 16px;
	font-weight: 600;
	color: #2271b1;
	line-height: 1.4;
}

.stat-value-small {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a1a;
}

.stat-value-success {
	color: #28a745;
}

.protection-alert {
	background: #d7f0ff;
	border-left: 4px solid #28a745;
	padding: 16px;
	margin: 20px 0;
	border-radius: 8px;
}

.protection-alert-success {
	background: #d4edda;
}

.protection-alert strong {
	color: #28a745;
	display: block;
	margin-bottom: 8px;
}

.protection-alert-list {
	margin: 10px 0 0 20px;
	color: #1a1a1a;
}

.protection-actions {
	margin-top: 24px;
}

.protection-help-text {
	margin: 12px 0 0 0;
	font-size: 14px;
	color: #6c757d;
	font-style: italic;
}

/* Debug Settings Subsections */
.debug-subsections {
	display: grid;
	gap: 24px;
}

.debug-subsection {
	background: #fafbfc;
	padding: 24px;
	border-radius: 8px;
	border: 2px solid #e1e5e9;
}

.debug-subsection-title {
	margin: 0 0 20px 0;
	color: #1a1a1a;
	font-size: 18px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.subsection-icon {
	font-size: 20px;
}

.debug-field {
	margin-bottom: 20px;
}

.debug-field:last-child {
	margin-bottom: 0;
}

.debug-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #1a1a1a;
	font-size: 15px;
}

.debug-checkbox-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.debug-checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #6c5ce7;
}

.checkbox-text {
	font-weight: 600;
	color: #1a1a1a;
	font-size: 15px;
}

.debug-field-description {
	margin: 8px 0 0 0;
	font-size: 13px;
	color: #6c757d;
	line-height: 1.4;
}

.debug-input {
	width: 100%;
	padding: 10px 14px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.debug-input:focus {
	outline: none;
	border-color: #6c5ce7;
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.debug-input-monospace {
	font-family: "Courier New", monospace;
}

.debug-input-medium {
	max-width: 300px;
}

.debug-input-small {
	max-width: 150px;
}

.debug-select {
	width: 100%;
	max-width: 300px;
	padding: 10px 14px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 15px;
	background: white;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.debug-select:focus {
	outline: none;
	border-color: #6c5ce7;
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.debug-log-info {
	background: #f0f6fc;
	padding: 16px;
	border-radius: 8px;
	margin-top: 16px;
}

.debug-log-info-title {
	margin: 0 0 10px 0;
	font-weight: 600;
	color: #1a1a1a;
}

.debug-log-info-path {
	margin: 0;
	font-family: "Courier New", monospace;
	font-size: 12px;
	color: #6c757d;
	word-break: break-all;
}

.debug-log-info-size {
	margin: 10px 0 0 0;
	font-size: 13px;
	color: #6c757d;
}

.debug-actions {
	margin-top: 24px;
}

.debug-log-management {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid #e1e5e9;
}

.debug-log-management-title {
	margin: 0 0 16px 0;
	color: #1a1a1a;
	font-size: 18px;
	font-weight: 600;
}

.debug-log-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Danger Zone Styles */
.settings-section-danger {
	background: #fff5f5;
	border: 2px solid #f5c2c7;
}

.section-title-danger {
	color: #b02a37;
}

.danger-warning-box {
	background: white;
	border: 2px solid #f1aeb5;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.danger-warning-text {
	color: #842029;
	margin: 0 0 12px 0;
	font-size: 15px;
}

.danger-warning-list {
	margin: 0 0 0 20px;
	color: #842029;
}

.danger-action-group {
	margin-bottom: 32px;
}

.btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #dc3545;
	color: white;
	border: 1px solid #bb2d3b;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-danger:hover {
	background: #bb2d3b;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}


.danger-subtitle {
	margin: 0 0 16px 0;
	color: #842029;
	font-size: 16px;
	font-weight: 600;
}

.danger-range-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.danger-range-inputs {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.danger-range-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.danger-range-label {
	font-weight: 600;
	color: #842029;
	font-size: 14px;
}

.danger-date-input {
	padding: 10px 14px;
	border: 2px solid #f1aeb5;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.danger-date-input:focus {
	outline: none;
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-danger-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: white;
	color: #dc3545;
	border: 1px solid #dc3545;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-danger-secondary:hover:not(:disabled) {
	background: #dc3545;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-danger-secondary:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.btn-danger-secondary .btn-icon {
	display: flex;
	align-items: center;
}

.btn-danger-secondary .btn-icon svg {
	width: 16px;
	height: 16px;
}

/* ============================================
   Uninstall Settings Styles
   ============================================ */

.uninstall-settings-form {
	margin-top: 24px;
}

.uninstall-option {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	border: 2px solid #f5c2c7;
	margin-bottom: 24px;
}

.uninstall-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin-bottom: 12px;
}

.uninstall-checkbox {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	cursor: pointer;
	flex-shrink: 0;
}

.uninstall-checkbox-text {
	font-size: 16px;
	color: #2c3e50;
	line-height: 1.5;
}

.uninstall-checkbox-text strong {
	color: #dc3545;
	font-weight: 600;
}

.uninstall-option-description {
	margin: 0 0 0 32px;
	font-size: 14px;
	color: #6c757d;
	line-height: 1.6;
}

.uninstall-actions {
	display: flex;
	gap: 16px;
	align-items: center;
}

/* Danger Zone Styles */
.opti-behavior-settings-form-danger {
	background: transparent;
}

.settings-section-danger {
	background: #fff5f5;
	border: 2px solid #f5c2c7;
	border-radius: 12px;
	padding: 32px;
	margin-bottom: 24px;
}

.settings-section-danger:last-child {
	margin-bottom: 0;
}

.section-title-danger {
	color: #b02a37;
}

.danger-warning-box {
	background: white;
	border: 2px solid #f1aeb5;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 24px;
}

.danger-warning-text {
	color: #842029;
	margin: 0 0 12px 0;
	font-size: 15px;
}

.danger-warning-list {
	margin: 0 0 0 20px;
	color: #842029;
}

.danger-action-group {
	margin-bottom: 32px;
}

.btn-danger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #dc3545;
	color: white;
	border: 1px solid #bb2d3b;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-danger:hover {
	background: #bb2d3b;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}


.danger-subtitle {
	margin: 0 0 16px 0;
	color: #842029;
	font-size: 16px;
	font-weight: 600;
}

.danger-range-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.danger-range-inputs {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.danger-range-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.danger-range-label {
	font-weight: 600;
	color: #842029;
	font-size: 14px;
}

.danger-date-input {
	padding: 10px 14px;
	border: 2px solid #f1aeb5;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s ease;
}

.danger-date-input:focus {
	outline: none;
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #f8f9fa;
	color: #111827;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
}

.btn-secondary:hover {
	background: #eef2f7;
}

/* Uninstall Settings Styles */
.uninstall-settings-form {
	margin-top: 24px;
}

.uninstall-option {
	background: #fff;
	padding: 24px;
	border-radius: 8px;
	border: 2px solid #f5c2c7;
	margin-bottom: 24px;
}

.uninstall-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	margin-bottom: 12px;
}

.uninstall-checkbox {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	cursor: pointer;
	flex-shrink: 0;
}

.uninstall-checkbox-text {
	font-size: 16px;
	color: #2c3e50;
	line-height: 1.5;
}

.uninstall-checkbox-text strong {
	color: #dc3545;
	font-weight: 600;
}

.uninstall-option-description {
	margin: 0 0 0 32px;
	font-size: 14px;
	color: #6c757d;
	line-height: 1.6;
}

.uninstall-actions {
	display: flex;
	gap: 16px;
	align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.opti-behavior-settings-container {
		flex-direction: column;
	}

	.settings-tab-nav {
		width: 100%;
		border-right: none;
		border-bottom: 2px solid #e1e5e9;
		padding: 16px 0;
		display: flex;
		overflow-x: auto;
		position: static;
		max-height: none;
	}

	.settings-tab-link {
		flex-direction: column;
		text-align: center;
		padding: 12px 16px;
		border-left: none;
		border-bottom: 4px solid transparent;
		min-width: 120px;
	}

	.settings-tab-link.active {
		border-left-color: transparent;
		border-bottom-color: #6c5ce7;
	}

	.settings-tab-link.active::after {
		display: none;
	}

	.settings-tab-content {
		padding: 24px;
	}
}

@media (max-width: 768px) {
	.settings-header {
		padding: 20px;
	}

	.settings-content {
		padding: 20px;
	}

	.settings-section {
		padding: 24px 20px;
	}

	.setting-item {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.settings-actions {
		padding: 20px;
		flex-direction: column;
		align-items: stretch;
	}

	.btn-save {
		justify-content: center;
	}

	.tab-label {
		font-size: 13px;
	}

	.settings-tab-content {
		padding: 16px;
	}
}

/* ============================================
   License & Quota Tab Styles
   ============================================ */

/* License Status Card */
.license-status-card {
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-top: 15px;
}

.status-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 600;
	margin-bottom: 15px;
}

.status-badge.status-active {
	background: #d4edda;
	color: #155724;
}

.status-badge.status-inactive {
	background: #fff3cd;
	color: #856404;
}

.status-icon {
	font-size: 16px;
}

.status-text {
	font-size: 14px;
}

.license-info {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.info-row {
	display: flex;
	gap: 8px;
	font-size: 14px;
}

.info-label {
	font-weight: 600;
	color: #1a1a1a;
}

.info-value {
	color: #6c757d;
}

.info-value code {
	background: #f8f9fa;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 12px;
	color: #6c5ce7;
}

.license-warning {
	margin: 0;
	color: #856404;
	font-size: 14px;
	line-height: 1.5;
}

/* Quota Card */
.quota-card {
	background: #ffffff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 20px;
	margin-top: 15px;
}

.quota-card.quota-exceeded {
	border-color: #dc3545;
	background: #fff5f5;
}

.quota-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 20px;
}

.quota-stat {
	text-align: center;
}

.quota-stat .stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #6c5ce7;
	line-height: 1;
	margin-bottom: 8px;
}

.quota-stat .stat-label {
	font-size: 13px;
	color: #6c757d;
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.quota-progress {
	margin-top: 16px;
}

.progress-bar {
	width: 100%;
	height: 12px;
	background: #e9ecef;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 8px;
}

.progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #6c5ce7 0%, #a29bfe 100%);
	transition: width 0.3s ease;
	border-radius: 6px;
}

.progress-fill.progress-exceeded {
	background: linear-gradient(90deg, #dc3545 0%, #f8d7da 100%);
}

.progress-text {
	font-size: 13px;
	color: #6c757d;
	text-align: center;
}

.quota-warning {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8d7da;
	border: 1px solid #f5c2c7;
	border-radius: 6px;
	padding: 12px 16px;
	margin-top: 16px;
}

.warning-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.warning-text {
	font-size: 14px;
	color: #842029;
	line-height: 1.4;
}

.quota-notice {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #d1ecf1;
	border: 1px solid #bee5eb;
	border-radius: 6px;
	padding: 12px 16px;
	margin-top: 16px;
}

.notice-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.notice-text {
	font-size: 14px;
	color: #0c5460;
	line-height: 1.4;
}

.quota-error {
	margin: 0;
	color: #856404;
	font-size: 14px;
	text-align: center;
	padding: 20px;
}

/* Upgrade Card */
.upgrade-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 8px;
	padding: 30px;
	margin-top: 15px;
	color: #ffffff;
}

.upgrade-features h4 {
	margin: 0 0 16px 0;
	font-size: 18px;
	font-weight: 600;
	color: #ffffff;
}

.feature-list {
	list-style: none;
	padding: 0;
	margin: 0 0 20px 0;
}

.feature-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	font-size: 15px;
	color: #ffffff;
}

.feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	flex-shrink: 0;
}

.upgrade-action {
	margin-top: 20px;
}

.btn-upgrade {
	display: inline-block;
	background: #ffffff;
	color: #667eea;
	padding: 12px 30px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
}

.btn-upgrade:hover {
	background: #f8f9fa;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Quota Analytics Section */
.quota-analytics {
	margin-top: 20px;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #e9ecef;
}

.analytics-title {
	font-size: 16px;
	font-weight: 600;
	color: #2c3e50;
	margin: 0 0 15px 0;
}

.analytics-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 15px;
}

.analytics-item {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #ffffff;
	padding: 15px;
	border-radius: 6px;
	border: 1px solid #e9ecef;
}

.analytics-icon {
	font-size: 24px;
	flex-shrink: 0;
}

.analytics-data {
	flex: 1;
}

.analytics-value {
	font-size: 24px;
	font-weight: 700;
	color: #6c5ce7;
	line-height: 1;
}

.analytics-label {
	font-size: 12px;
	color: #6c757d;
	margin-top: 4px;
}

.analytics-note {
	margin: 0;
	padding: 10px;
	background: #fff3cd;
	border-radius: 4px;
	border: 1px solid #ffeaa7;
}

.analytics-note small {
	color: #856404;
	font-size: 13px;
}

/* Responsive adjustments for quota stats */
@media (max-width: 768px) {
	.quota-stats {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.quota-stat .stat-value {
		font-size: 24px;
	}

	.analytics-grid {
		grid-template-columns: 1fr;
	}

	.analytics-value {
		font-size: 20px;
	}
}

/* =========================================================
   Delete All Data Modal Styles
   ========================================================= */

.opti-behavior-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.opti-behavior-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.opti-behavior-modal-content {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow: hidden;
	animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.opti-behavior-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
}

.opti-behavior-modal-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.opti-behavior-modal-title svg {
	width: 22px;
	height: 22px;
}

.opti-behavior-modal-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}

.opti-behavior-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

.opti-behavior-modal-body {
	padding: 24px;
}

.opti-behavior-delete-step {
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.opti-behavior-modal-warning {
	background: #fef3c7;
	border: 1px solid #f59e0b;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 0 0 16px 0;
	color: #92400e;
	font-size: 14px;
}

.opti-behavior-modal-warning strong {
	color: #b45309;
}

.opti-behavior-delete-list {
	margin: 0 0 20px 0;
	padding: 0 0 0 20px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.8;
}

.opti-behavior-delete-list li {
	margin: 4px 0;
}

.opti-behavior-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.opti-behavior-modal-actions .btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.opti-behavior-modal-actions .btn-secondary:hover {
	background: #e5e7eb;
	border-color: #9ca3af;
}

.opti-behavior-modal-actions .btn-danger {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s;
}

.opti-behavior-modal-actions .btn-danger:hover {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	transform: translateY(-1px);
}

.opti-behavior-modal-actions .btn-primary {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: white;
	border: none;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
}

.opti-behavior-modal-actions .btn-primary:hover {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	transform: translateY(-1px);
}

/* Progress Step Styles */
.opti-behavior-progress-title {
	text-align: center;
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 20px 0;
}

.opti-behavior-progress-container {
	display: flex;
	align-items: center;
	gap: 16px;
}

.opti-behavior-progress-bar {
	flex: 1;
	height: 12px;
	background: #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
}

.opti-behavior-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #22c55e 100%);
	background-size: 200% 100%;
	border-radius: 6px;
	transition: width 0.3s ease;
	animation: progressGradient 2s ease infinite;
}

@keyframes progressGradient {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.opti-behavior-progress-percent {
	font-size: 16px;
	font-weight: 700;
	color: #374151;
	min-width: 48px;
	text-align: right;
}

.opti-behavior-progress-status {
	text-align: center;
	font-size: 14px;
	color: #6b7280;
	margin: 16px 0 0 0;
}

/* Completion Step Styles */
.opti-behavior-success-icon {
	text-align: center;
	margin-bottom: 16px;
}

.opti-behavior-success-icon svg {
	width: 64px;
	height: 64px;
	color: #22c55e;
}

.opti-behavior-success-title {
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
	margin: 0 0 8px 0;
}

.opti-behavior-success-message {
	text-align: center;
	font-size: 14px;
	color: #6b7280;
	margin: 0;
}

/* Date Range Modal Specific Styles */
.opti-behavior-modal-header-warning {
	background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.opti-behavior-date-range-summary {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 16px;
	text-align: center;
}

.opti-behavior-date-range-summary p {
	margin: 0 0 12px 0;
	color: #0369a1;
	font-size: 14px;
}

.opti-behavior-date-range-display {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

.date-badge {
	background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
	color: white;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
}

.date-separator {
	color: #6b7280;
	font-size: 14px;
}

.opti-behavior-delete-list-compact {
	margin: 0 0 16px 0;
	padding: 0 0 0 20px;
	font-size: 13px;
	line-height: 1.6;
}

.opti-behavior-delete-list-compact li {
	margin: 4px 0;
	color: #4b5563;
}

/* Description text for date range section */
.danger-date-range-description {
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 16px 0;
}

/* Danger warning list with bold labels */
.danger-warning-list li strong {
	color: #991b1b;
}

/* Modal delete list styling */
.opti-behavior-delete-list li strong {
	color: #1f2937;
}

/* ==========================================
   Storage Stats Page Styles
   ========================================== */

/* Storage Stats Grid */
.storage-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 24px 0;
}

@media (max-width: 1200px) {
	.storage-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.storage-stats-grid {
		grid-template-columns: 1fr;
	}
}

/* Storage Stat Cards */
.storage-stat-card {
	background: #fafbfc;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	transition: all 0.2s ease;
	position: relative;
}

.storage-stat-tooltip {
	position: absolute;
	top: 8px;
	right: 8px;
}

.storage-stat-card:hover {
	border-color: #6c5ce7;
	background: #f8f7ff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(108, 92, 231, 0.15);
	z-index: 10;
}

/* Ensure tooltip shows above adjacent cards when hovering tooltip */
.storage-stat-card:has(.ob-tooltip:hover),
.storage-stat-card:has(.ob-tooltip:focus),
.storage-stat-card:has(.ob-tooltip:focus-within),
.storage-stat-card.tooltip-active {
	z-index: 100;
}

.storage-stat-card-primary {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	border-color: transparent;
	color: white;
}

.storage-stat-card-primary:hover {
	background: linear-gradient(135deg, #5558e8 0%, #7c4fea 100%);
	border-color: transparent;
}

.storage-stat-card-primary .storage-stat-label {
	color: rgba(255, 255, 255, 0.85);
}

.storage-stat-card-primary .storage-stat-value {
	color: white;
}

.storage-stat-card-primary .storage-stat-icon {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.storage-stat-card-secondary {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	border-color: transparent;
	color: white;
}

.storage-stat-card-secondary:hover {
	background: linear-gradient(135deg, #0ea572 0%, #048a5c 100%);
	border-color: transparent;
}

.storage-stat-card-secondary .storage-stat-label {
	color: rgba(255, 255, 255, 0.85);
}

.storage-stat-card-secondary .storage-stat-value {
	color: white;
}

.storage-stat-card-secondary .storage-stat-icon {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.storage-stat-icon {
	width: 48px;
	height: 48px;
	background: #f0efff;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c5ce7;
	flex-shrink: 0;
}

.storage-stat-icon i {
	width: 24px;
	height: 24px;
}

.storage-stat-content {
	flex: 1;
	min-width: 0;
}

.storage-stat-label {
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.storage-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

/* Storage Table */
.storage-table-container {
	overflow-x: auto;
	margin: 20px 0;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
}

.storage-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.storage-table thead {
	background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
}

.storage-table th {
	padding: 14px 16px;
	text-align: left;
	font-weight: 600;
	color: #4a5568;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 2px solid #e1e5e9;
}

.storage-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #f1f3f5;
	color: #374151;
}

.storage-table tbody tr:hover {
	background: #f8f7ff;
}

.storage-table tbody tr:last-child td {
	border-bottom: none;
}

/* Table Name Column */
.table-name-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.table-icon {
	width: 20px;
	height: 20px;
	color: #6c5ce7;
	flex-shrink: 0;
}

.table-name-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.table-friendly-name {
	font-weight: 600;
	color: #1a1a1a;
}

.table-technical-name {
	font-size: 11px;
	color: #9ca3af;
	font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

/* Storage Bar */
.storage-bar-wrapper {
	width: 120px;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}

.storage-bar {
	height: 100%;
	border-radius: 4px;
	transition: width 0.3s ease;
}

.storage-bar-low {
	background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}

.storage-bar-medium {
	background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 100%);
}

.storage-bar-high {
	background: linear-gradient(90deg, #ef4444 0%, #f87171 100%);
}

/* Table Column Widths */
.storage-table-name {
	width: 30%;
	min-width: 200px;
}

.storage-table-rows,
.storage-table-data,
.storage-table-index,
.storage-table-total {
	width: 12%;
	text-align: right;
}

.storage-table-bar {
	width: 16%;
	min-width: 140px;
}

/* Empty State */
.storage-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #9ca3af;
}

.storage-empty-state .empty-icon {
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.storage-empty-state p {
	margin: 0;
	font-size: 15px;
}

/* File Storage Section */
.storage-file-info {
	background: #fafbfc;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
	padding: 24px;
}

.storage-file-path {
	margin-bottom: 24px;
}

.file-path-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.file-path-label i {
	width: 16px;
	height: 16px;
}

.file-path-value {
	display: block;
	background: #1f2937;
	color: #e5e7eb;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-family: 'SF Mono', Monaco, 'Courier New', monospace;
	overflow-x: auto;
	white-space: nowrap;
}

/* File Stats Grid */
.storage-file-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 900px) {
	.storage-file-stats-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 500px) {
	.storage-file-stats-grid {
		grid-template-columns: 1fr;
	}
}

.storage-file-stat {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.file-stat-icon {
	width: 40px;
	height: 40px;
	background: #f0efff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #6c5ce7;
	flex-shrink: 0;
}

.file-stat-icon i {
	width: 20px;
	height: 20px;
}

.file-stat-content {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.file-stat-value {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
}

.file-stat-value.file-stat-success {
	color: #10b981;
}

.file-stat-value.file-stat-muted {
	color: #9ca3af;
}

.file-stat-label {
	font-size: 12px;
	color: #6b7280;
	font-weight: 500;
}

/* File Storage Notice */
.storage-file-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-top: 20px;
	padding: 14px 16px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	color: #1e40af;
	font-size: 13px;
}

.storage-file-notice i {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	margin-top: 1px;
}

/* =========================================================
   Smart Data Cleanup Section
   ========================================================= */

/* Block 3 inherits settings-section-danger styles */

.smart-cleanup-subsection {
	margin-top: 24px;
	padding: 24px;
	background: white;
	border: 2px solid #f1aeb5;
	border-radius: 10px;
}

.smart-cleanup-subsection h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px 0;
	color: #842029;
	font-size: 15px;
	font-weight: 600;
}

.smart-cleanup-subsection h4 i {
	width: 18px;
	height: 18px;
}

.smart-cleanup-description {
	color: #6b7280;
	font-size: 14px;
	margin: 0 0 20px 0;
	line-height: 1.6;
}

.smart-cleanup-bot-count {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 10px 14px;
	background: white;
	border: 1px solid #f1aeb5;
	border-radius: 8px;
	font-size: 14px;
	color: #842029;
}

.bot-count-value {
	font-weight: 700;
	color: #dc3545;
	font-size: 16px;
}

/* Conditions */
.smart-cleanup-conditions {
	margin-bottom: 24px;
}

.conditions-group {
	margin-bottom: 20px;
	padding: 20px;
	background: white;
	border: 1px solid #f1aeb5;
	border-radius: 10px;
}

.conditions-group-title {
	margin: 0 0 16px 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f5e1e3;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #842029;
}

.conditions-group-options {
	background: #fef9f9;
	border-color: #f5e1e3;
}

.condition-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #374151;
	transition: background 0.15s;
}

.condition-row:last-child {
	margin-bottom: 0;
}

.condition-row:hover {
	background: #fef2f2;
}

.condition-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-width: 18px;
	margin: 0;
	cursor: pointer;
	accent-color: #dc3545;
}

.condition-label {
	font-size: 14px;
	color: #374151;
	white-space: nowrap;
}

.condition-input {
	padding: 6px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	width: 65px;
	min-width: 65px;
	max-width: 80px;
	text-align: center;
	transition: border-color 0.2s;
	background: white;
}

.condition-input:focus {
	outline: none;
	border-color: #dc3545;
	box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.condition-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #f9fafb;
}

.condition-input-small {
	width: 65px;
}

.condition-unit {
	font-size: 13px;
	color: #6b7280;
	white-space: nowrap;
}

/* Allow long category descriptions to wrap in the Full Reset panel */
.danger-category-row .condition-label {
	white-space: normal;
}

.condition-select {
	padding: 6px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	background: white;
}

/* Actions */
.smart-cleanup-actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	padding-top: 16px;
}

/* Consistent spacing before action buttons in danger zone */
#opti-behavior-delete-range-btn {
	margin-top: 20px;
}

.preview-count {
	margin-left: 4px;
	font-weight: 600;
	color: #dc3545;
}

/* Auto-cleanup settings */
.auto-cleanup-settings {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
}

.auto-cleanup-toggle {
	padding: 4px 0;
}

.auto-cleanup-frequency {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	transition: opacity 0.2s;
}

.auto-cleanup-last-run {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #059669;
	margin: 4px 0;
}

.auto-cleanup-last-run i {
	width: 14px;
	height: 14px;
}

/* Cleanup History */
.cleanup-history-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cleanup-history-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #f1f3f5;
	font-size: 13px;
}

.cleanup-history-item:last-child {
	border-bottom: none;
}

.cleanup-history-date {
	color: #6b7280;
	min-width: 150px;
}

.cleanup-history-type {
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.cleanup-history-type-scheduled {
	background: #dbeafe;
	color: #1e40af;
}

.cleanup-history-type-manual {
	background: #fef3c7;
	color: #92400e;
}

.cleanup-history-stats {
	color: #374151;
	font-weight: 500;
}

/* Danger Zone Sub-Tabs */
.danger-zone-tabs {
	display: flex;
	gap: 4px;
	padding: 0 0 20px 0;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.danger-zone-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
	background: #f9fafb;
	color: #6b7280;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	bottom: -2px;
}

.danger-zone-tab:hover {
	background: #fee2e2;
	color: #dc2626;
	border-color: #fca5a5;
}

.danger-zone-tab.active {
	background: #fff;
	color: #dc2626;
	border-color: #e5e7eb;
	border-bottom: 2px solid #fff;
	font-weight: 600;
}

.danger-zone-tab svg,
.danger-zone-tab i {
	width: 16px;
	height: 16px;
}

.danger-tab-panel {
	display: none;
}

.danger-tab-panel.active {
	display: block;
}

/* Custom Language Dropdown with Flags */
.ob-lang-dropdown {
	position: relative;
	width: 320px;
}

.ob-lang-selected {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.ob-lang-selected:hover {
	border-color: #6c5ce7;
}

.ob-lang-dropdown.open .ob-lang-selected {
	border-color: #6c5ce7;
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
	border-radius: 8px 8px 0 0;
}

.ob-lang-selected .ob-lang-name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	color: #2d3436;
}

.ob-lang-selected .ob-lang-arrow {
	display: flex;
	color: #636e72;
	transition: transform 0.2s;
}

.ob-lang-selected .ob-lang-arrow svg {
	width: 18px;
	height: 18px;
}

.ob-lang-dropdown.open .ob-lang-arrow {
	transform: rotate(180deg);
}

.ob-lang-options {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: #fff;
	border: 2px solid #6c5ce7;
	border-top: 1px solid #e1e5e9;
	border-radius: 0 0 8px 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 1000;
	max-height: 280px;
	overflow-y: auto;
}

.ob-lang-dropdown.open .ob-lang-options {
	display: block;
}

.ob-lang-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	cursor: pointer;
	transition: background-color 0.15s;
}

.ob-lang-option:hover {
	background: #f0edfc;
}

.ob-lang-option.active {
	background: #f5f3ff;
}

.ob-lang-option .ob-lang-name {
	flex: 1;
	font-size: 14px;
	color: #2d3436;
}

.ob-lang-option.active .ob-lang-name {
	font-weight: 600;
	color: #6c5ce7;
}

.ob-lang-option .ob-lang-check {
	display: flex;
	color: #6c5ce7;
}

.ob-lang-option .ob-lang-check svg {
	width: 16px;
	height: 16px;
}

.ob-lang-flag {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.ob-lang-flag svg {
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}


/* =========================================================
   Consent Banner Configuration Card (Privacy & GDPR tab)
   ========================================================= */

.ob-consent-card--hidden {
	display: none !important;
}

/* Privacy Mode: horizontal radio cards to match comparison table columns */
.privacy-settings-form .setting-item {
	grid-template-columns: 1fr;
	gap: 12px;
}

.privacy-settings-form .radio-group {
	flex-direction: row;
	gap: 12px;
}

.privacy-settings-form .radio-option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 4px;
	flex: 1 1 0;
	min-width: 0;
}

.privacy-settings-form .radio-option input[type="radio"] {
	grid-column: 1;
	grid-row: 1 / span 2;
	margin-top: 2px;
}

.privacy-settings-form .radio-option .radio-label {
	grid-column: 2;
	grid-row: 1;
	margin-bottom: 0;
}

.privacy-settings-form .radio-option .radio-description {
	grid-column: 2;
	grid-row: 2;
	max-width: 100%;
}

.privacy-settings-form .radio-option.ob-privacy-mode-option {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.privacy-settings-form .radio-option.ob-privacy-mode-option .radio-description {
	display: block;
	width: 100%;
	max-width: none;
}

.ob-consent-field-grid {
	display: grid;
	gap: 16px;
	width: 100%;
	margin-bottom: 14px;
}

.ob-consent-field-grid--buttons {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ob-consent-field-grid--two {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ob-consent-field {
	min-width: 0;
}

.ob-consent-field label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
	line-height: 1.35;
}

.privacy-settings-form .ob-consent-field input.regular-text,
.privacy-settings-form .ob-consent-field input[type="url"].regular-text,
.privacy-settings-form .setting-control textarea.large-text {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.ob-consent-advanced-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.ob-consent-advanced-toggle-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
	color: #1d2327;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ob-consent-advanced-toggle-row:hover,
.ob-consent-advanced-toggle:focus-visible + .ob-consent-advanced-toggle-row {
	border-color: #6c5ce7;
	background: #f8f7ff;
	color: #6c5ce7;
}

.ob-consent-advanced-toggle-indicator {
	width: 18px;
	height: 18px;
	border: 2px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	box-sizing: border-box;
	flex: 0 0 auto;
	position: relative;
}

.ob-consent-advanced-toggle:checked + .ob-consent-advanced-toggle-row .ob-consent-advanced-toggle-indicator {
	border-color: #6c5ce7;
	background: #6c5ce7;
}

.ob-consent-advanced-toggle:checked + .ob-consent-advanced-toggle-row .ob-consent-advanced-toggle-indicator::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.ob-consent-advanced-panel {
	display: none;
	margin-top: 16px;
	padding: 16px;
	border: 1px solid #e1e5e9;
	border-radius: 8px;
	background: #fff;
}

.ob-consent-advanced-toggle:checked ~ .ob-consent-advanced-panel {
	display: block;
}

@media (max-width: 768px) {
	.privacy-settings-form .radio-group {
		flex-direction: column;
	}
}

@media (max-width: 1100px) {
	.ob-consent-field-grid--buttons,
	.ob-consent-field-grid--two {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.ob-consent-field-grid--buttons,
	.ob-consent-field-grid--two {
		grid-template-columns: 1fr;
	}
}

.ob-consent-status-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 20px;
	font-size: 13px;
	line-height: 1.5;
}

.ob-consent-status-notice.ob-detected {
	background: #edf7ed;
	border: 1px solid #81c784;
	color: #2e7d32;
}

.ob-consent-status-notice.ob-not-detected {
	background: #e8f4fd;
	border: 1px solid #64b5f6;
	color: #1565c0;
}

.ob-consent-status-notice .ob-notice-icon {
	flex-shrink: 0;
	margin-top: 1px;
}

.ob-consent-status-notice .ob-notice-icon svg {
	width: 16px;
	height: 16px;
}

.ob-color-pickers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.ob-color-picker-item label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 6px;
	color: #1d2327;
}

.ob-color-picker-item input[type="color"] {
	width: 48px;
	height: 36px;
	padding: 2px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	cursor: pointer;
	vertical-align: middle;
}

.ob-color-picker-item .ob-color-hex {
	display: inline-block;
	margin-left: 8px;
	font-size: 12px;
	color: #646970;
	font-family: monospace;
	vertical-align: middle;
}

