/**
 * Admin Dashboard Styles
 *
 * @package madquick-ppg
 * @since 2.0.0
 * @version 2.2.0
 */

/* Dashboard Header - Enhanced */
.madquick-ppg-dashboard .madquick-header {
	margin-bottom: 32px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	padding: 32px;
	color: #fff;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.madquick-header-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

.madquick-header-text {
	flex: 1;
}

.madquick-ppg-dashboard .madquick-header h1 {
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 12px 0;
	color: #fff;
	letter-spacing: -0.5px;
}

.madquick-ppg-dashboard .madquick-subtitle {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.6;
	max-width: 600px;
	margin: 0;
}

/* FREE Badge */
.madquick-free-badge {
	display: inline-block;
	background: linear-gradient(135deg, #00a32a 0%, #00ba37 100%);
	color: #fff;
	font-size: 14px;
	padding: 6px 16px;
	border-radius: 20px;
	font-weight: 700;
	margin-left: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 2px 8px rgba(0, 163, 42, 0.4);
	animation: madquick-pulse 2s ease-in-out infinite;
	vertical-align: middle;
}

@keyframes madquick-pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 2px 8px rgba(0, 163, 42, 0.4);
	}
	50% {
		transform: scale(1.05);
		box-shadow: 0 4px 12px rgba(0, 163, 42, 0.6);
	}
}

.madquick-header-stats {
	display: flex;
	gap: 16px;
}

.madquick-stat-card {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 12px;
	padding: 20px 24px;
	text-align: center;
	min-width: 120px;
	transition: all 0.3s ease;
}

.madquick-stat-card:hover {
	background: rgba(255, 255, 255, 0.25);
	transform: translateY(-2px);
}

.madquick-stat-number {
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 8px;
	color: #fff;
}

.madquick-stat-label {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Legal Page Generators Section */
.madquick-generators-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 40px;
}

.madquick-generators-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 16px;
}

.madquick-generator-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: #f9f9f9;
	border: 2px solid #e5e5e5;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
	min-height: 140px;
}

.madquick-generator-card:hover {
	border-color: #2271b1;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-3px);
	background: #fff;
}

.madquick-generator-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
	transition: all 0.2s ease;
}

.madquick-generator-card:hover .madquick-generator-icon {
	transform: scale(1.1);
}

.madquick-generator-icon .dashicons {
	font-size: 28px;
	width: 28px;
	height: 28px;
	color: #fff;
}

.madquick-generator-card h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	text-align: center;
	line-height: 1.4;
}

.madquick-generator-card:hover h3 {
	color: #2271b1;
}

/* Legal Pages Overview Section */
.madquick-legal-pages-overview {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 40px;
}

.madquick-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 2px solid #f0f0f1;
}

.madquick-section-title-wrapper {
	display: flex;
	align-items: center;
	gap: 12px;
}

.madquick-section-header h2 {
	font-size: 22px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
}

.madquick-section-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
	border-radius: 12px;
}

.madquick-section-description {
	font-size: 14px;
	color: #646970;
	font-weight: 400;
}

.madquick-section-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 20px 0;
	color: #1d2327;
}

.madquick-priority-section {
	border: 2px solid #2271b1;
	box-shadow: 0 4px 16px rgba(34, 113, 177, 0.15);
}

/* Empty State - CTA Focused */
.madquick-empty-state {
	text-align: center;
	padding: 60px 20px;
	background: #f6f7f7;
	border-radius: 6px;
}

.madquick-cta-state {
	background: linear-gradient(135deg, #f6f7f7 0%, #fafafa 100%);
	border: 2px dashed #c3c4c7;
	padding: 80px 40px;
}

.madquick-empty-icon {
	margin-bottom: 24px;
}

.madquick-empty-icon .dashicons {
	font-size: 80px;
	width: 80px;
	height: 80px;
	color: #2271b1;
	opacity: 0.8;
}

.madquick-cta-state h3 {
	font-size: 24px;
	font-weight: 600;
	color: #1d2327;
	margin: 0 0 12px 0;
}

.madquick-cta-state p {
	font-size: 16px;
	color: #646970;
	margin: 0 0 28px 0;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.madquick-cta-state .button-hero {
	padding: 16px 32px;
	font-size: 16px;
	height: auto;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.madquick-cta-state .button-hero:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(34, 113, 177, 0.4);
}

.madquick-cta-state .button-hero .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
}

.madquick-empty-note {
	font-size: 13px;
	color: #787c82;
	margin-top: 16px;
	font-style: italic;
}

.madquick-empty-state .dashicons {
	font-size: 64px;
	width: 64px;
	height: 64px;
	color: #c3c4c7;
	margin-bottom: 16px;
}

.madquick-empty-state p {
	font-size: 16px;
	color: #646970;
	margin: 0 0 20px 0;
}

/* Legal Pages Grid */
.madquick-legal-pages-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
}

.madquick-legal-page-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.madquick-legal-page-card:hover {
	border-color: #c3c4c7;
	box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.madquick-legal-page-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
}

.madquick-legal-page-header .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.madquick-legal-page-header h3 {
	font-size: 15px;
	font-weight: 600;
	margin: 0;
	color: #1d2327;
	flex: 1;
}

.madquick-page-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	background: #2271b1;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	border-radius: 12px;
}

.madquick-legal-page-list {
	padding: 12px;
}

.madquick-page-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.madquick-page-item:hover {
	background: #f6f7f7;
}

.madquick-page-item + .madquick-page-item {
	border-top: 1px solid #f0f0f1;
}

.madquick-page-info {
	flex: 1;
	min-width: 0;
}

.madquick-page-title {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: #2271b1;
	text-decoration: none;
	margin-bottom: 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.madquick-page-title:hover {
	color: #135e96;
	text-decoration: underline;
}

.madquick-page-date {
	display: block;
	font-size: 12px;
	color: #787c82;
}

.madquick-page-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.madquick-page-actions .button-small {
	padding: 6px 10px;
	height: auto;
	line-height: 1;
	min-width: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.madquick-page-actions .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

/* Cards Container */
.madquick-cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-bottom: 40px;
}

/* Individual Card */
.madquick-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 32px 24px;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.madquick-card:hover {
	border-color: #2271b1;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	transform: translateY(-2px);
}

/* Card Icon */
.madquick-card-icon {
	margin-bottom: 20px;
	color: #2271b1;
}

.madquick-card-icon svg {
	width: 64px;
	height: 64px;
}

.madquick-icon-legal {
	color: #2271b1;
}

.madquick-icon-cookie {
	color: #d63638;
}

.madquick-icon-security {
	color: #00a32a;
}

.madquick-icon-seo {
	color: #8a2387;
}

/* Card Title */
.madquick-card h2 {
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 12px 0;
	color: #1d2327;
}

/* Card Description */
.madquick-card p {
	font-size: 14px;
	color: #646970;
	line-height: 1.6;
	margin-bottom: 20px;
	min-height: 60px;
}

/* Card Button */
.madquick-card .button {
	margin-top: 8px;
}

/* Help Section */
.madquick-help-section {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	margin-top: 40px;
}

.madquick-help-section h2 {
	margin-top: 0;
	font-size: 18px;
	font-weight: 600;
	color: #1d2327;
}

.madquick-help-section p {
	font-size: 14px;
	color: #646970;
	margin: 8px 0;
}

.madquick-help-section a {
	color: #2271b1;
	text-decoration: none;
}

.madquick-help-section a:hover {
	text-decoration: underline;
}

/* All Pages Manager */
.madquick-ppg-all-pages .madquick-page-section {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 24px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	transition: all 0.2s ease;
}

.madquick-ppg-all-pages .madquick-page-section:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.madquick-page-header {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	flex: 1;
}

.madquick-page-icon {
	font-size: 32px;
	color: #2271b1;
}

.madquick-page-icon .dashicons {
	width: 48px;
	height: 48px;
	font-size: 48px;
}

.madquick-page-info h2 {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 600;
	color: #1d2327;
}

.madquick-page-info p {
	margin: 0;
	font-size: 14px;
	color: #646970;
	line-height: 1.6;
}

.madquick-page-actions {
	flex-shrink: 0;
}

.madquick-page-actions .button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.madquick-page-actions .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

/* Existing Pages Table */
.madquick-existing-pages {
	margin-top: 40px;
}

.madquick-existing-pages h2 {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #1d2327;
}

.madquick-existing-pages .wp-list-table {
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.madquick-existing-pages .column-title {
	width: 30%;
}

.madquick-existing-pages .column-type {
	width: 20%;
}

.madquick-existing-pages .column-status {
	width: 15%;
}

.madquick-existing-pages .column-date {
	width: 15%;
}

.madquick-existing-pages .column-actions {
	width: 20%;
}

.madquick-existing-pages .status-publish {
	color: #00a32a;
	font-weight: 600;
}

.madquick-existing-pages .status-draft {
	color: #dba617;
	font-weight: 600;
}

.madquick-existing-pages .status-pending {
	color: #2271b1;
	font-weight: 600;
}

.madquick-existing-pages .button-small {
	padding: 4px 12px;
	height: auto;
	line-height: 1.4;
	font-size: 13px;
}

/* No Pages Message */
.madquick-no-pages {
	background: #f6f7f7;
	border: 1px dashed #c3c4c7;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	margin-top: 24px;
}

.madquick-no-pages p {
	font-size: 16px;
	color: #646970;
	margin: 0;
}

/* Responsive Design */
@media screen and (max-width: 782px) {
	.madquick-ppg-dashboard .madquick-header {
		padding: 24px;
		margin-bottom: 24px;
	}

	.madquick-header-content {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.madquick-ppg-dashboard .madquick-header h1 {
		font-size: 24px;
	}

	.madquick-free-badge {
		font-size: 12px;
		padding: 4px 12px;
		margin-left: 8px;
		display: inline-block;
	}

	.madquick-ppg-dashboard .madquick-subtitle {
		font-size: 14px;
	}

	.madquick-header-stats {
		width: 100%;
		justify-content: space-around;
	}

	.madquick-stat-card {
		flex: 1;
		min-width: 0;
		padding: 16px 12px;
	}

	.madquick-stat-number {
		font-size: 28px;
	}

	.madquick-stat-label {
		font-size: 11px;
	}

	.madquick-cta-state {
		padding: 48px 24px;
	}

	.madquick-cta-state h3 {
		font-size: 20px;
	}

	.madquick-cta-state p {
		font-size: 14px;
	}

	.madquick-cta-state .button-hero {
		padding: 14px 24px;
		font-size: 14px;
	}

	.madquick-generators-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.madquick-generator-card {
		min-height: 120px;
		padding: 16px 12px;
	}

	.madquick-generator-icon {
		width: 48px;
		height: 48px;
		margin-bottom: 8px;
	}

	.madquick-generator-icon .dashicons {
		font-size: 24px;
		width: 24px;
		height: 24px;
	}

	.madquick-generator-card h3 {
		font-size: 13px;
	}

	.madquick-cards-container {
		grid-template-columns: 1fr;
	}

	.madquick-legal-pages-grid {
		grid-template-columns: 1fr;
	}

	.madquick-section-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.madquick-section-title-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.madquick-section-header .button {
		width: 100%;
	}

	.madquick-page-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.madquick-page-actions {
		width: 100%;
		justify-content: flex-start;
	}

	.madquick-ppg-all-pages .madquick-page-section {
		flex-direction: column;
		align-items: flex-start;
	}

	.madquick-page-header {
		flex-direction: column;
	}

	.madquick-page-actions .button {
		width: 100%;
		justify-content: center;
	}

	.madquick-existing-pages .column-actions .button {
		margin: 2px 0;
		display: block;
	}
}

@media screen and (min-width: 783px) and (max-width: 1200px) {
	.madquick-generators-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	}

	.madquick-legal-pages-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	}
}
