/**
 * Advanced Consent Mode Manager Admin Styles
 */

.baton-consent-admin-wrap {
	margin-top: 20px;
	max-width: 1200px;
}

.baton-consent-admin-wrap h1 {
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 5px;
}

.baton-consent-admin-wrap .nav-tab-wrapper {
	margin-bottom: 20px;
	border-bottom: 1px solid #c3c4c7;
}

.baton-consent-admin-wrap .nav-tab {
	font-weight: 600;
	font-size: 14px;
	padding: 10px 16px;
}

.baton-consent-admin-wrap .tab-content-wrapper {
	display: none;
	background: #ffffff;
	border: 1px solid #c3c4c7;
	border-top: none;
	padding: 25px 30px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	border-radius: 0 0 4px 4px;
	margin-top: -20px;
	margin-bottom: 20px;
}

.baton-consent-admin-wrap .tab-content-wrapper.active-content {
	display: block;
}

/* Form Table adjustments */
.baton-consent-admin-wrap .form-table th {
	width: 250px;
	font-weight: 600;
	color: #334155;
}

.baton-consent-admin-wrap .form-table td {
	vertical-align: middle;
}

/* Integrations table styling */
.bcm-integrations-table {
	margin-top: 15px;
	border: 1px solid #e2e8f0;
	box-shadow: none !important;
	border-radius: 6px;
	overflow: hidden;
}

.bcm-integrations-table th {
	background: #f8fafc !important;
	color: #475569 !important;
	font-weight: 600;
	padding: 14px 16px !important;
	border-bottom: 2px solid #e2e8f0 !important;
}

.bcm-integrations-table td {
	padding: 14px 16px !important;
	vertical-align: middle !important;
}

.bcm-integrations-table tr.integration-row:hover {
	background: #f8fafc;
}

/* iOS Style Switch for Integraciones */
.bcm-switch-ios {
	position: relative;
	display: inline-block;
	width: 140px;
	height: 34px;
	user-select: none;
}

.bcm-switch-ios input {
	opacity: 0;
	width: 0;
	height: 0;
}

.bcm-slider-ios {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ef4444;
	transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 34px;
}

.bcm-slider-ios:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
	z-index: 2;
}

.bcm-slider-ios:after {
	content: "DESACTIVADO";
	color: white;
	font-weight: 700;
	font-size: 10px;
	position: absolute;
	top: 10px;
	right: 15px;
	transition: .3s;
	z-index: 1;
	letter-spacing: 0.5px;
}

.bcm-switch-ios input:checked + .bcm-slider-ios {
	background-color: #22c55e;
}

.bcm-switch-ios input:checked + .bcm-slider-ios:before {
	transform: translateX(106px);
}

.bcm-switch-ios input:checked + .bcm-slider-ios:after {
	content: "ACTIVADO";
	left: 15px;
	right: auto;
}

/* Warning messages */
.aepd-warning, .aepd-warning-small {
	padding: 4px 8px;
	background: #fef2f2;
	border-radius: 4px;
	border: 1px solid #fca5a5;
	display: inline-block;
}

/* Custom Scripts Repeater Table */
#bcm-repeater-table {
	border-collapse: collapse;
	width: 100%;
	margin-top: 10px;
}

#bcm-repeater-table th {
	background-color: #f8fafc;
	color: #475569;
	font-weight: 600;
	padding: 12px;
	border-bottom: 2px solid #e2e8f0;
}

#bcm-repeater-table td {
	padding: 12px;
	vertical-align: top;
	border-bottom: 1px solid #f1f5f9;
}

#bcm-repeater-table select,
#bcm-repeater-table input[type="text"] {
	width: 100%;
	min-height: 35px;
}

#bcm-repeater-table .code-textarea {
	font-family: Consolas, Monaco, monospace;
	font-size: 13px;
	line-height: 1.5;
	background-color: #0f172a;
	color: #38bdf8;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #1e293b;
	resize: vertical;
}

#bcm-repeater-table .code-textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 1px #3b82f6;
	outline: none;
}

/* Toggles & Actions */
.essential-toggle, .preselected-toggle {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.bcm-remove-row {
	color: #ef4444 !important;
	font-weight: 500;
	cursor: pointer;
}

.bcm-remove-row:hover {
	color: #b91c1c !important;
	text-decoration: underline;
}

/* Color Picker adjustments */
.wp-picker-container {
	display: inline-block;
	vertical-align: middle;
}

/* Description styles */
.description {
	color: #64748b;
	font-style: italic;
	margin-top: 6px;
}

/* iOS Style Switch small for features */
.bcm-slider-ios-small {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ef4444;
	transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 30px;
}

.bcm-slider-ios-small:before {
	position: absolute;
	content: "";
	height: 22px;
	width: 22px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
	z-index: 2;
}

.bcm-slider-ios-small:after {
	content: "NO";
	color: white;
	font-weight: 700;
	font-size: 10px;
	position: absolute;
	top: 8px;
	right: 15px;
	transition: .3s;
	z-index: 1;
	letter-spacing: 0.5px;
}

.bcm-switch-ios input:checked + .bcm-slider-ios-small {
	background-color: #22c55e;
}

.bcm-switch-ios input:checked + .bcm-slider-ios-small:before {
	transform: translateX(86px);
}

.bcm-switch-ios input:checked + .bcm-slider-ios-small:after {
	content: "SÍ";
	left: 15px;
	right: auto;
}

/* Info Box on tab legal */
.bcm-info-box ul {
	margin: 5px 0 0 20px;
}

.bcm-info-box ul li {
	list-style-type: disc;
}

/* Legal accordion styling */
.bcm-legal-accordion {
	margin-top: 25px;
}

.bcm-legal-collapsible {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	margin-bottom: 15px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
	transition: all 0.2s ease;
}

.bcm-legal-collapsible:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
	border-color: #cbd5e1;
}

.bcm-legal-collapsible-header {
	background: #f8fafc;
	padding: 16px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
	border-bottom: 1px solid transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bcm-legal-collapsible.active-collapsible .bcm-legal-collapsible-header {
	background: #f1f5f9;
	border-bottom-color: #e2e8f0;
}

.bcm-legal-collapsible-header h4 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

.bcm-legal-collapsible-header .dashicons {
	color: #64748b;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.bcm-legal-collapsible-content {
	padding: 20px 25px;
}
