/**
 * Admin page styles (WordPress.org compliant).
 *
 * Premium dark UI built on `@wordpress/components` markup.
 *
 * @package WPLC
 */

/* WordPress admin compatibility */
.wrap {
	margin: 0 !important;
}

.toplevel_page_launchify-checklist #wpbody-content{
	width: 98%;
}
/* Main app container */
#wplc-checklist-app {
	margin: 20px 0 0 0;
	padding: 0;
	background: #f0f2f5;
	min-height: calc(100vh - 32px);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Override WordPress admin styles that might conflict */
#wplc-checklist-app * {
	box-sizing: border-box;
}

/* Premium hero */
.wplc-app {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 12px 80px;
}

.wplc-hero {
	background: linear-gradient(135deg, #111827 0%, #374151 100%);
	border-radius: 14px;
	padding: 28px 22px;
	color: #fff;
	box-shadow: 0 10px 25px rgba(17, 24, 39, 0.14);
	margin-bottom: 18px;
}

.wplc-hero-title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 8px;
}

.wplc-hero-sub {
	margin: 0;
	color: rgba( 255, 255, 255, 0.85 );
	font-size: 14px;
	line-height: 1.5;
}

/* Progress */
.wplc-progress {
	background: #fff;
	border: 1px solid rgba( 17, 24, 39, 0.06 );
	border-radius: 14px;
	padding: 18px 18px 16px;
	box-shadow: 0 4px 20px rgba( 0, 0, 0, 0.03 );
	margin-bottom: 18px;
}

.wplc-progress-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.wplc-progress-label {
	font-weight: 700;
	color: #111827;
}

.wplc-progress-numbers {
	color: #6b7280;
	font-weight: 600;
}

.wplc-progress-bar {
	height: 10px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.wplc-progress-fill {
	height: 100%;
	background: linear-gradient( 90deg, #111827, #4b5563 );
	border-radius: 999px;
	transition: width 200ms ease;
}

/* Tabs (WP components) */
.wplc-tabpanel .components-tab-panel__tabs {
	border-bottom: 1px solid rgba( 17, 24, 39, 0.08 );
	padding: 6px 4px 0;
	gap: 6px;
}

.wplc-tabpanel .components-tab-panel__tab {
	border-radius: 10px 10px 0 0;
	padding: 10px 12px;
	font-weight: 700;
	color: #6b7280;
}

.wplc-tabpanel .components-tab-panel__tab.is-active {
	color: #111827;
	background: #fff;
	box-shadow: 0 -1px 0 rgba( 17, 24, 39, 0.08 );
}

.wplc-task-list {
	display: grid;
	gap: 14px;
	padding-top: 14px;
}

/* Task cards */
.wplc-task-card {
	border-radius: 14px;
	border: 1px solid rgba( 17, 24, 39, 0.06 );
	box-shadow: 0 4px 18px rgba( 0, 0, 0, 0.03 );
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.wplc-task-card:hover {
	transform: translateY( -1px );
	box-shadow: 0 10px 24px rgba( 0, 0, 0, 0.06 );
}

.wplc-task-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.wplc-task-title {
	font-size: 15px;
	font-weight: 800;
	color: #111827;
	line-height: 1.35;
}

.wplc-task-desc {
	color: #4b5563;
	line-height: 1.6;
	margin-bottom: 10px;
}

.wplc-task-why {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px 12px;
	color: #374151;
	margin-bottom: 12px;
}

.wplc-task-why-label {
	font-weight: 800;
	color: #111827;
}

.wplc-task-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
}

/* Premium dark buttons (WP components) */
.wplc-app .components-button.is-primary {
	background: #111827;
	border-color: #111827;
	border-radius: 10px;
	font-weight: 800;
	box-shadow: 0 2px 4px rgba( 17, 24, 39, 0.12 );
}

.wplc-app .components-button.is-primary:hover,
.wplc-app .components-button.is-primary:focus {
	background: #374151;
	border-color: #374151;
	box-shadow: 0 6px 14px rgba( 17, 24, 39, 0.18 );
	transform: translateY( -1px );
}

.wplc-app .components-button.is-secondary,
.wplc-app .components-button.is-tertiary {
	border-radius: 10px;
	font-weight: 800;
}

.wplc-app .components-button.is-secondary {
	background: #fff;
	border: 1px solid #d1d5db;
	color: #111827;
}

.wplc-app .components-button.is-secondary:hover,
.wplc-app .components-button.is-secondary:focus {
	background: #f9fafb;
	border-color: #9ca3af;
	color: #111827;
}

/* Status accents */
.wplc-status-complete .wplc-task-card {
	border-left: 4px solid #10b981;
}
.wplc-status-in_progress .wplc-task-card {
	border-left: 4px solid #f59e0b;
}
.wplc-status-skipped .wplc-task-card {
	border-left: 4px solid #9ca3af;
	opacity: 0.85;
}

/* Plugin recommendation note */
.wplc-plugin-rec {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 16px;
	font-size: 13px;
	color: #4b5563;
}

.wplc-plugin-rec strong {
	color: #111827;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	#wplc-checklist-app {
		margin: 10px 0 0 0;
	}
	
	#wplc-checklist-app .ant-card-body {
		padding: 16px;
	}
	
	#wplc-checklist-app .ant-tabs-tab {
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* Custom animations */
@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#wplc-checklist-app .ant-card {
	animation: slideInUp 0.3s ease-out;
}

/* Smooth transitions */
#wplc-checklist-app * {
	transition: all 0.2s ease;
}

/* Fix for WordPress admin menu overlap */
#wplc-checklist-app {
	position: relative;
	z-index: 1;
}