/**
 * UniVoucher For WooCommerce - Inventory Page Styles
 *
 * @package UniVoucher_For_WooCommerce
 * @subpackage Admin
 */

/* Fix amount column alignment */
.wp-list-table .column-amount {
	text-align: left;
}

.wp-list-table th.column-amount {
	text-align: left;
}

/* Edit Card Modal */
.edit-card-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 999999;
}

body.edit-modal-open {
	overflow: hidden;
}

.edit-card-content {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	max-width: 800px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.edit-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #ddd;
	background: #f7f7f7;
}

.edit-card-header h2 {
	margin: 0;
	font-size: 18px;
}

.close-edit-modal {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
}

.edit-card-body {
	padding: 20px;
}

.edit-card-footer {
	padding: 15px 20px;
	border-top: 1px solid #ddd;
	background: #f7f7f7;
	text-align: right;
}

.edit-card-footer .button {
	margin-left: 8px;
}

/* Form Validation */
.validation-error {
	color: #dc3232;
	font-size: 12px;
	margin-top: 5px;
}

.edit-validation-section {
	margin-top: 20px;
}

.validation-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}

.validation-item {
	display: flex;
	align-items: left;
	justify-content: flex-start;
	gap: 8px;
	padding: 8px 12px;
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-align: left;
}

.validation-label {
	font-size: 12px;
	font-weight: 500;
}

.validation-icon.valid {
	color: #28a745;
}

.validation-icon.invalid {
	color: #dc3232;
}

.validation-icon.pending {
	color: #6c757d;
}

.validation-icon.loading {
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
} 