/**
 * Base styles for Fluid Design System Admin
 *
 * @package Arts\FluidDesignSystem
 * @since 1.0.0
 */

/* Tab Navigation */
#fluid-design-system-tabs-wrapper {
	margin-bottom: 20px;
}

#fluid-design-system-tabs-wrapper .nav-tab {
	background: #f1f1f1;
	border: 1px solid #ccc;
	color: #555;
	text-decoration: none;
	padding: 8px 14px;
	margin-right: 5px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

#fluid-design-system-tabs-wrapper .nav-tab:hover {
	background: #e9e9e9;
	color: #333;
}

#fluid-design-system-tabs-wrapper .nav-tab-active {
	background: #fff;
	border-bottom: 1px solid #fff;
	color: #000;
	margin-bottom: -1px;
}

/* Tab Content */
.fluid-design-system-form-page {
	display: none;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	padding: 20px;
	margin: 0;
}

.fluid-design-system-form-page.fluid-design-system-active {
	display: block;
}

.fluid-design-system-form-page h2 {
	margin-top: 0;
	font-size: 24px;
	font-weight: 400;
	color: #23282d;
}

.fluid-design-system-form-page p {
	margin-bottom: 15px;
	color: #666;
}

/* Enhanced Table Layout Styles */

/* Main Groups Table Section */
#fluid-main-groups-table {
	margin-bottom: 30px;
}

#fluid-main-groups-table h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #23282d;
}

#fluid-main-groups-table .description {
	margin: 0 0 15px 0;
	color: #646970;
	font-style: italic;
}

/* Developer Groups Table Section */
#fluid-developer-groups-table {
	margin-top: 30px;
}

#fluid-developer-groups-table h3 {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	color: #23282d;
}

#fluid-developer-groups-table .description {
	margin: 0 0 15px 0;
	color: #646970;
	font-style: italic;
}

/* Section separators */
hr {
	border: none;
	height: 1px;
	background: linear-gradient(to right, transparent, #ddd, transparent);
	margin: 30px 0;
}

/* Save button highlight */
.button-primary-highlight {
	background-color: #007017 !important;
	border-color: #007017 !important;
	transition: background-color 0.3s ease;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(0, 112, 23, 0.4);
	}

	70% {
		box-shadow: 0 0 0 4px rgba(0, 112, 23, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(0, 112, 23, 0);
	}
}

.button-primary-highlight:hover {
	background-color: #005812 !important;
	border-color: #005812 !important;
}

/* Delete confirmation styles */
.marked-for-deletion {
	background-color: #fcf2f2 !important;
	opacity: 0.7;
	transition: all 0.3s ease;
	pointer-events: none;
	/* Disable all mouse interactions */
}

/* Re-enable pointer events only for undo button */
.marked-for-deletion .deletion-notice {
	pointer-events: auto;
}

/* Disable editable elements in marked rows */
.marked-for-deletion .editable-title,
.marked-for-deletion .editable-description {
	cursor: not-allowed !important;
	opacity: 0.6;
}

.marked-for-deletion .editable-title:hover,
.marked-for-deletion .editable-description:hover {
	border-bottom-color: transparent !important;
	color: inherit !important;
}

/* Hide pencil icons for marked rows */
.marked-for-deletion .editable-title:after,
.marked-for-deletion .editable-description:after,
.marked-for-deletion .editable-title:hover:after,
.marked-for-deletion .editable-description:hover:after {
	display: none !important;
}

/* Hide order number for marked rows */
.marked-for-deletion .order-number {
	transform: scale(0) !important;
	transform-origin: center center !important;
}

/* Disable order drag handle */
.marked-for-deletion .order-draggable {
	cursor: not-allowed !important;
	background-color: #999 !important;
}

.deletion-notice {
	color: #d63638;
	font-weight: 600;
	font-size: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.undo-delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-color: transparent;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.2s ease;
	padding: 0;
	margin: 0;
	color: #666;
}

.undo-delete:hover {
	background-color: rgba(214, 54, 56, 0.1);
	color: #d63638 !important;
	transform: scale(1.05);
}

.undo-delete .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: color 0.2s ease;
}
