/* Simple Clean Dashboard CSS */
.shopglut-simple-dashboard {
	max-width: 1200px;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: #fff;
	padding: 0;
}

/* Header */
.dashboard-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 30px 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	color: white;
}

.dashboard-header h1 {
	margin: 0 0 8px 0;
	font-size: 28px;
	font-weight: 600;
	color: white;
	line-height: 1.2;
}

.dashboard-header p {
	margin: 0;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.9);
}

/* Stats Row */
.stats-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-box {
	background: #fff;
	border: 1px solid #e1e5e9;
	border-radius: 6px;
	padding: 24px 20px;
	text-align: center;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
}

.stat-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-box:nth-child(1)::before {
	background: linear-gradient(90deg, #667eea, #764ba2);
}

.stat-box:nth-child(2)::before {
	background: linear-gradient(90deg, #f093fb, #f5576c);
}

.stat-box:nth-child(3)::before {
	background: linear-gradient(90deg, #4facfe, #00f2fe);
}

.stat-box:nth-child(4)::before {
	background: linear-gradient(90deg, #43e97b, #38f9d7);
}

.stat-box:hover {
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
	transform: translateY(-2px);
}

.stat-number {
	font-size: 32px;
	font-weight: 700;
	color: #667eea;
	margin-bottom: 8px;
	line-height: 1;
}

.stat-label {
	font-size: 14px;
	color: #646970;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Content Rows */
.content-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 30px;
}

.content-box {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.content-box:hover {
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08);
	transform: translateY(-1px);
}

.content-box.full-width {
	grid-column: 1 / -1;
	margin-bottom: 30px;
}

.content-box h3 {
	margin: 0;
	padding: 20px;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-bottom: 1px solid #cbd5e1;
	font-size: 16px;
	font-weight: 600;
	color: #475569;
	position: relative;
}


/* Box Header for Full Width */
.box-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border-bottom: 1px solid #cbd5e1;
	position: relative;
}

.box-header::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.box-header h3 {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 600;
	color: #475569;
}

.refresh-btn {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	color: #475569;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	text-decoration: none;
}

.refresh-btn:hover {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(102, 126, 234, 0.2);
}

.refresh-btn .dashicons {
	font-size: 16px;
}

/* Quick Actions */
.actions-list {
	padding: 20px;
}

.action-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	margin-bottom: 8px;
	border: 1px solid #e1e5e9;
	border-radius: 4px;
	text-decoration: none;
	color: #1d2327;
	font-weight: 500;
	font-size: 14px;
	background: #fff;
	cursor: pointer;
	width: 100%;
	text-align: left;
	transition: all 0.2s ease;
}

.action-link:last-child {
	margin-bottom: 0;
}

.action-link:hover {
	background: #f0f4ff;
	border-color: #667eea;
	color: #4c5566;
	text-decoration: none;
}

.action-link .dashicons {
	color: #667eea;
	font-size: 18px;
	transition: all 0.2s ease;
}

.action-link:hover .dashicons {
	color: #5a67d8;
	transform: scale(1.1);
}

/* Specific icon colors */
.action-link .dashicons-admin-settings {
	color: #10b981;
}

.action-link .dashicons-list-view {
	color: #3b82f6;
}

.action-link .dashicons-trash {
	color: #ef4444;
}

.action-link .dashicons-admin-tools {
	color: #8b5cf6;
}

/* Status List */
.status-list {
	padding: 20px;
}

.status-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fafbfc;
	margin: 0 -20px;
	padding: 15px 20px;
	border-left: 4px solid transparent;
	border-bottom: 1px solid #e2e8f0;
	transition: all 0.2s ease;
}

.status-item:last-child {
	border-bottom: none;
}

.status-label {
	font-size: 14px;
	color: #1d2327;
	font-weight: 500;
}

.status-value {
	font-size: 13px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 3px;
}

.status-value.enabled {
	background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
	color: #065f46;
	border: 1px solid #34d399;
}

.status-value.disabled {
	background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
	color: #991b1b;
	border: 1px solid #f87171;
}

.status-item:hover {
	background: #f1f5f9;
	border-left-color: #667eea;
	transform: translateX(2px);
}

/* Documents Table */
.documents-table {
	overflow-x: auto;
}

.documents-table table {
	margin: 0;
	border: none;
}

.documents-table th,
.documents-table td {
	padding: 12px 16px;
	text-align: left;
	border-bottom: 1px solid #f0f0f1;
	font-size: 14px;
}

.documents-table th {
	background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
	font-weight: 600;
	color: #475569;
	border-bottom: 2px solid #cbd5e1;
	position: relative;
}

.documents-table th:first-child::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #667eea;
}

.documents-table td {
	color: #475569;
}

.documents-table tbody tr:hover {
	background: #f8fafc;
	transform: translateY(-1px);
	transition: all 0.2s ease;
}

.no-documents {
	padding: 40px 20px;
	text-align: center;
	color: #646970;
	font-style: italic;
	margin: 0;
}

/* Info Tables */
.info-table {
	padding: 20px;
}

.info-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #e2e8f0;
	transition: all 0.2s ease;
}

.info-row:hover {
	background: #f8fafc;
	margin: 0 -20px;
	padding: 12px 20px;
	border-radius: 6px;
}

.info-row:last-child {
	border-bottom: none;
}

.info-label {
	font-size: 14px;
	color: #646970;
}

.info-value {
	font-size: 14px;
	color: #1d2327;
	font-weight: 500;
}

.template-name {
	background: #f0f4ff;
	color: #667eea;
	padding: 4px 8px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 13px;
}

/* Buttons */
.button {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	text-decoration: none;
	display: inline-block;
	font-size: 13px;
	line-height: 2.15384615;
	min-height: 30px;
	margin: 0;
	padding: 0 10px;
	cursor: pointer;
	border-width: 1px;
	border-style: solid;
	border-radius: 3px;
	white-space: nowrap;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.button:hover {
	background: #135e96;
	border-color: #135e96;
	color: #fff;
	text-decoration: none;
}

.button.button-small {
	font-size: 11px;
	line-height: 1.6;
	min-height: 24px;
	padding: 2px 8px;
}

/* Simple Loading States */
.loading {
	opacity: 0.7;
}

/* Responsive Design */
@media screen and (max-width: 960px) {
	.stats-row {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.content-row {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media screen and (max-width: 600px) {
	.shopglut-simple-dashboard {
		padding: 0 10px;
	}
	
	.stats-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.stat-box {
		padding: 20px 16px;
	}
	
	.stat-number {
		font-size: 28px;
	}
	
	.content-box h3,
	.box-header {
		padding: 16px;
	}
	
	.actions-list,
	.status-list,
	.info-table {
		padding: 16px;
	}
	
	.action-link {
		padding: 10px 12px;
		font-size: 13px;
	}
	
	.documents-table {
		font-size: 13px;
	}
	
	.documents-table th,
	.documents-table td {
		padding: 10px 12px;
	}
	
	/* Stack table on mobile */
	.documents-table table,
	.documents-table thead,
	.documents-table tbody,
	.documents-table th,
	.documents-table td,
	.documents-table tr {
		display: block;
	}
	
	.documents-table thead tr {
		display: none;
	}
	
	.documents-table tr {
		border: 1px solid #e1e5e9;
		border-radius: 4px;
		margin-bottom: 10px;
		padding: 12px;
		background: #fff;
	}
	
	.documents-table td {
		border: none;
		padding: 4px 0;
		position: relative;
		padding-left: 35%;
	}
	
	.documents-table td:before {
		content: attr(data-label) ": ";
		position: absolute;
		left: 0;
		width: 30%;
		padding-right: 10px;
		white-space: nowrap;
		font-weight: 600;
		color: #646970;
	}
}

/* Print Styles */
@media print {
	.refresh-btn,
	.action-link,
	.button {
		display: none;
	}
	
	.shopglut-simple-dashboard {
		background: white;
	}
	
	.content-box,
	.stat-box {
		border: 1px solid #ccc;
		break-inside: avoid;
	}
}