/**
 * Settings page styles for Product Roles Manager for WooCommerce
 *
 * @package    Product_Roles_Manager_For_Woocommerce
 * @subpackage Product_Roles_Manager_For_Woocommerce/admin/css
 */

/* Settings page wrapper */
.prmfw-settings-wrap {
	max-width: 900px;
}

.prmfw-settings-container {
	margin-top: 20px;
}

/* Settings sections */
.prmfw-settings-section {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 20px;
	margin-bottom: 20px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.prmfw-settings-section h2 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #dcdcde;
	font-size: 1.3em;
	font-weight: 600;
}

.prmfw-settings-section .description {
	color: #646970;
	font-style: italic;
}

/* Plugin info section */
.prmfw-plugin-info {
	background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
	border-left: 4px solid #2271b1;
}

.prmfw-plugin-info table th {
	width: 150px;
}

.prmfw-plugin-info code {
	background: #f0f7ff;
	padding: 3px 8px;
	border-radius: 3px;
	color: #2271b1;
}

/* Categories list */
.prmfw-categories-list {
	max-height: 300px;
	overflow-y: auto;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 10px;
	background: #f9f9f9;
}

.prmfw-category-item {
	display: block;
	padding: 8px 10px;
	margin: 2px 0;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.prmfw-category-item:hover {
	background: #f0f7ff;
	border-color: #2271b1;
}

.prmfw-category-item input[type="checkbox"] {
	margin-right: 10px;
}

.prmfw-category-count {
	color: #787c82;
	font-size: 0.9em;
	margin-left: 5px;
}

/* Danger zone section */
.prmfw-danger-zone {
	border-color: #d63638;
	border-left: 4px solid #d63638;
}

.prmfw-danger-zone h2 {
	color: #d63638;
}

.prmfw-warning {
	color: #d63638 !important;
	font-weight: 500;
}

/* Button styles */
.button-danger {
	background: #d63638 !important;
	border-color: #d63638 !important;
	color: #fff !important;
}

.button-danger:hover,
.button-danger:focus {
	background: #b32d2e !important;
	border-color: #b32d2e !important;
	color: #fff !important;
}

/* Submit button area */
.prmfw-settings-section .submit {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #dcdcde;
	display: flex;
	align-items: center;
	gap: 10px;
}

.prmfw-settings-section .spinner {
	float: none;
	margin: 0;
}

/* Notices */
.prmfw-settings-notices {
	position: fixed;
	top: 50px;
	right: 20px;
	z-index: 9999;
	max-width: 350px;
}

.prmfw-notice {
	padding: 12px 15px;
	margin-bottom: 10px;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	animation: prmfw-slide-in 0.3s ease;
}

.prmfw-notice-success {
	background: #00a32a;
	color: #fff;
}

.prmfw-notice-error {
	background: #d63638;
	color: #fff;
}

.prmfw-notice-info {
	background: #2271b1;
	color: #fff;
}

@keyframes prmfw-slide-in {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Form table adjustments */
.prmfw-settings-section .form-table th {
	padding: 15px 10px 15px 0;
	width: 200px;
}

.prmfw-settings-section .form-table td {
	padding: 15px 10px;
}

/* Export/Import section */
.prmfw-settings-section .form-table td .button {
	min-width: 150px;
}

.prmfw-settings-section .form-table td .description {
	margin-top: 8px;
	display: block;
}

/* Confirmation modal */
.prmfw-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.prmfw-modal {
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	max-width: 450px;
	width: 90%;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: prmfw-modal-in 0.3s ease;
}

@keyframes prmfw-modal-in {
	from {
		transform: scale(0.9);
		opacity: 0;
	}
	to {
		transform: scale(1);
		opacity: 1;
	}
}

.prmfw-modal h3 {
	margin-top: 0;
	color: #d63638;
	font-size: 1.4em;
}

.prmfw-modal p {
	color: #50575e;
	line-height: 1.6;
}

.prmfw-modal-input {
	width: 100%;
	padding: 10px;
	border: 2px solid #dcdcde;
	border-radius: 4px;
	font-size: 14px;
	margin: 15px 0;
}

.prmfw-modal-input:focus {
	border-color: #d63638;
	outline: none;
}

.prmfw-modal-buttons {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}

.prmfw-modal-buttons .button {
	min-width: 100px;
}

/* Loading state */
.prmfw-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
	.prmfw-settings-section .form-table th {
		width: 100%;
		display: block;
		padding-bottom: 5px;
	}

	.prmfw-settings-section .form-table td {
		padding-left: 0;
		display: block;
	}

	.prmfw-settings-notices {
		left: 20px;
		right: 20px;
		max-width: none;
	}
}
