/* Schema Gallery Admin Layout */

/* Pro Preview Grid Styling - Add to existing CSS */
/* ADD THESE LINES TO YOUR admin.css - EDIT FUNCTIONALITY ONLY */
/* ========================================
/* File input cursor */
.schg-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

/* File input cursor - including the button */
.schg-admin-left input[type="file"],
.schg-admin-left input[type="file"]::-webkit-file-upload-button {
    cursor: pointer;
}

/* For Firefox */
.schg-admin-left input[type="file"]::file-selector-button {
    cursor: pointer;
}

/* For Firefox */
.schg-admin-left input[type="file"]::file-selector-button {
    cursor: pointer;
}
/* WordPress jQuery UI Tooltip Styling - FIXED POSITIONING */
.schg-wp-tooltip {
	background: #2c3338 !important;
	color: #fff !important;
	border: none !important;
	padding: 10px 14px !important;
	font-size: 13px !important;
	border-radius: 4px !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
	max-width: 320px !important; /* Increased from default */
	white-space: normal !important; /* Allow text wrapping */
	line-height: 1.5 !important;
	text-align: left !important;
	z-index: 999999 !important; /* Ensure it appears above everything */
	word-wrap: break-word !important;
	position: absolute !important; /* Critical for positioning */
}

/* Custom Tooltip Styles - FIXED VERSION */
.schg-custom-tooltip {
	position: fixed !important; /* Changed from absolute to fixed */
	background: #2c3338;
	color: #fff;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
	max-width: 320px; /* Wider to accommodate full text */
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	z-index: 999999; /* Very high z-index to appear above WP admin */
	white-space: normal; /* Allow multi-line text */
	line-height: 1.5;
	word-wrap: break-word;
	pointer-events: none;
	text-align: left;
}

.schg-custom-tooltip::after {
	content: '';
	position: absolute;
	top: 100%; /* Position arrow at bottom of tooltip */
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid #2c3338;
}

/* Ensure tooltip icon is positioned correctly */
.schg-admin-left .schg-tooltip-icon {
	display: inline-flex;
	align-items: center;
	cursor: help;
	position: relative;
	vertical-align: middle;
	margin-left: 4px;
	z-index: 1; /* Ensure icon is clickable */
}

/* Make sure tooltip container doesn't overflow */
.schg-admin-left .schg-upload-limit {
	position: relative;
	z-index: 1;
}
/* Section Headers - Light grey background */
.schg-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f6f7f7;
	padding: 12px 16px;
	margin: 0 0 20px 0;
	border-radius: 6px;
	border: 1px solid #dcdcde;
}

.schg-section-header h2,
.schg-section-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1d2327;
	display: flex;
	align-items: center;
}

/* Icon Boxes - DARKER/RICHER gradients to match pro */
.schg-icon-box {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* CORRECTED Icon Colors - Darker/richer to match pro */
.schg-icon-purple {
	background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
}

.schg-icon-pink {
	background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.schg-icon-blue {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Update Gallery Info Button - Match pro style */
.schg-form-actions {
	text-align: right;
	margin-top: 20px;
}


/* UPDATED BUTTON COLORS - Schema Gallery Admin
 * Replace the button-primary section in your admin.css
 * Changes from deep purple (#6c3fb5) to bright PRO purple (#8b5cf6)
 */

/* SCOPED TO SCHEMA GALLERY ONLY - CRITICAL FIX */
.schg-admin-left .schg-form-actions .button-primary,
.schg-admin-left .button-primary,
.schg-admin-right .button-primary,
.schg-dashboard-stats .button-primary {
	background: #8b5cf6 !important;  /* Changed from #6c3fb5 to match PRO badge */
	border-color: #8b5cf6 !important;  /* Changed from #6c3fb5 to match PRO badge */
	color: #fff !important;
	padding: 8px 24px !important;
	height: auto !important;
	border-radius: 6px !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.schg-admin-left .button-primary:hover,
.schg-admin-right .button-primary:hover,
.schg-dashboard-stats .button-primary:hover {
	background: #7c3aed !important;  /* Darker purple for hover */
	border-color: #7c3aed !important;  /* Darker purple for hover */
}

/* Alternative if you want the EXACT hover to be slightly darker */
/* Uncomment these instead if the above hover doesn't look right:
.schg-admin-left .button-primary:hover,
.schg-admin-right .button-primary:hover,
.schg-dashboard-stats .button-primary:hover {
	background: #6d28d9 !important;
	border-color: #6d28d9 !important;
}
*/

/* Upload header layout */
.schg-upload-header {
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.schg-upload-title {
	flex: 1;
	margin-left: 12px;
}

.schg-upload-title h3 {
	margin: 0;
	display: inline-block;
}

.schg-upload-limit {
	color: #646970;
	font-size: 12px;
	font-weight: normal;
	margin-left: 10px;
}

/* Media Type Selection - Radio buttons */
.schg-media-type-selection {
	background: #fff;
	padding: 15px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	margin-bottom: 20px;
}

.schg-radio-option {
	display: block;
	margin-bottom: 12px;
	cursor: pointer;
	padding-left: 5px;
}

.schg-radio-option:last-child {
	margin-bottom: 0;
}

.schg-radio-option input[type="radio"] {
	margin-right: 8px;
	vertical-align: middle;
}

.schg-radio-option span {
	vertical-align: middle;
}

.schg-radio-option.schg-disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.schg-greyed-text {
	color: #999;
}

/* PRO Badge */
.schg-pro-badge {
	background: #8b5cf6;
	color: #fff;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
	margin-left: 8px;
	vertical-align: middle;
}

/* Upload Tips Button */
.schg-upload-tips-btn {
	flex-shrink: 0;
	margin: 0 !important;
	background: #fff !important;
	border: 1px solid #8b5cf6 !important;
	color: #8b5cf6 !important;
}

.schg-upload-tips-btn:hover {
	background: #f3f0ff !important;
}

.schg-upload-tips-btn .dashicons {
	color: #8b5cf6;
}

/* Tooltip Icon */
.schg-tooltip-icon {
	display: inline-flex;
	align-items: center;
	cursor: help;
	position: relative;
	vertical-align: middle;
	margin-left: 4px;
}

.schg-tooltip-icon svg {
	width: 16px;
	height: 16px;
}

/* Custom Tooltip Styles */
.schg-custom-tooltip {
	position: absolute;
	background: #2c3338;
	color: #fff;
	padding: 8px 12px;

	border-radius: 4px;
	font-size: 12px;
	max-width: 250px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	z-index: 10000;
	white-space: normal;
	pointer-events: none;
}

.schg-custom-tooltip::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 50%;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #2c3338;
}

/* Upload Section */
.schg-upload-section {
	margin-bottom: 20px;
}

/* HR separator */
.schg-admin-left hr {
	margin: 30px 0 20px 0;
	border: 0;
	border-top: 1px solid #dcdcde;
}

/* Responsive */
@media screen and (max-width: 782px) {
	.schg-upload-header {
		flex-wrap: wrap;
		gap: 10px;
	}
	
	.schg-upload-title {
		width: 100%;
		margin-left: 0;
	}
	
	.schg-upload-tips-btn {
		width: 100%;
		margin-top: 10px !important;
	}
	
	.schg-form-actions {
		text-align: center;
	}
	
	.schg-form-actions .button {
		width: 100%;
	}
}
/* Edit notice styling */
#edit-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

#edit-notice strong {
    color: #dc2626;
}

#edit-notice a {
    float: right;
    color: #2563eb;
    text-decoration: none;
}

#edit-notice a:hover {
    text-decoration: underline;
}

/* Space between Edit and Delete buttons */
.widefat td .button + .button,
.widefat td .button + a.button {
    margin-left: 5px;
}
/* Power Tools Section with Green Background */
.schg-pro-power-tools {
	background: #b8e7ca !important;
	border: 2px solid #4caf50 !important;
	border-radius: 4px 4px 0 0;
	padding: 20px 25px !important;
}

.schg-pro-power-tools h3 {
	color: #2e7d32;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 15px 0;
}

/* Lock Section Styling */
.schg-pro-lock-section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.schg-pro-lock-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #5b9a6e;
	color: white;
	padding: 8px 16px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	width: fit-content;
}

.schg-lock-icon {
	flex-shrink: 0;
}

.schg-pro-unlock-text {
	margin: 5px 0 0 0;
	color: #2e7d32;
	font-size: 13px;
}

/* Main Grid Layout with increased spacing */
.schg-pro-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 35px 30px; /* Increased vertical gap from 20px to 35px */
}

.schg-pro-grid-item {
	padding: 0;
	margin: 0;
	border-bottom: none;
	min-height: 90px; /* Add minimum height for consistency */
}

.schg-pro-grid-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	margin-bottom: 12px; /* Increased from 10px */
	color: #1d2327;
	font-size: 14px;
	line-height: 1.2;
}

.schg-pro-grid-item input[type="number"],
.schg-pro-grid-item select {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	opacity: 0.6;
	cursor: not-allowed;
	background: #f6f7f7;
	box-sizing: border-box;
	text-align: left !important;
	font-size: 14px;
	margin-bottom: 8px; /* Add space below inputs */
}

.schg-pro-grid-item select {
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg fill="%23646970" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 6l5 5 5-5 2 1-7 7-7-7z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
	padding-right: 32px;
}

.schg-pro-grid-item input[type="number"] {
	background-image: none;
	padding-right: 12px;
}

.schg-pro-grid-item .schg-pro-note {
	margin: 8px 0 0 0;
	color: #646970;
	font-size: 12px;
	font-style: italic;
	text-align: left;
	line-height: 1.5; /* Increased line height for better readability */
}

/* Updated Pro Badge Styling */
.schg-pro-badge {
	background: #8b5cf6;
	color: #fff;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	display: inline-block;
	white-space: nowrap;
}

/* Toggle Switch Styling */
.schg-pro-toggle {
	width: 44px;
	height: 24px;
	background: #dcdcde;
	border-radius: 12px;
	position: relative;
	cursor: not-allowed;
	opacity: 0.6;
	display: inline-block;
	margin-bottom: 8px; /* Add space below toggles */
}

.schg-pro-toggle::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	top: 2px;
	left: 2px;
	transition: 0.3s;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Remove old field styling in grid context */
.schg-pro-grid .schg-pro-field {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

/* Updated CTA Button */
.schg-pro-cta {
	padding: 30px 25px; /* Increased padding */
	background: #f6f7f7;
	text-align: center;
	border-radius: 0 0 4px 4px;
	border-top: 1px solid #e0e0e0;
}

.schg-pro-cta-button {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 14px 40px;
	border-radius: 6px;
	text-decoration: none;
	font-weight: 700;
	font-size: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.schg-pro-cta-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
	color: #fff;
	text-decoration: none;
}

/* Ensure section spacing */
.schg-pro-section {
	padding: 30px 25px; /* Increased padding */
	border-bottom: 1px solid #f0f0f1;
}

.schg-pro-section:last-of-type {
	border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
	.schg-pro-grid {
		gap: 30px 25px;
	}
}

@media (max-width: 1200px) {
	.schg-pro-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}
	
	.schg-pro-grid-item {
		padding-bottom: 25px;
		border-bottom: 1px solid #f0f0f1;
		min-height: auto;
	}
	
	.schg-pro-grid-item:last-child,
	.schg-pro-grid-item:nth-last-child(2) {
		border-bottom: none;
		padding-bottom: 0;
	}
}

/* Remove duplicate styling for old single-column layout */
.schg-pro-section .schg-pro-field:not(.schg-pro-grid-item) {
	display: none; /* Hide old single-column fields if they exist */
}

select#sort_order {

	min-width: 200px;

	white-space: nowrap;

}

.schg-admin-wrapper {

	display: flex;

	gap: 30px;

	margin-top: 20px;

	align-items: flex-start;

}



.schg-admin-left {

	flex: 0 0 calc(50% - 15px);

	max-width: calc(50% - 15px);

	box-sizing: border-box;

	min-width: 0;

	background: #fff;

	border: 1px solid #ccd0d4;

	border-radius: 4px;

	padding: 20px;

	box-shadow: 0 1px 1px rgba(0,0,0,0.04);

}



.schg-admin-right {

	flex: 0 0 calc(50% - 15px);

	max-width: calc(50% - 15px);

	box-sizing: border-box;

	min-width: 0;

}



/* Header with Logo and Title */

.schg-header {

	display: flex;

	align-items: center;

	gap: 20px;

	margin-bottom: 20px;

}



.schg-header .schg-header-logo {

	margin-bottom: 0;

}



.schg-header h1 {

	margin: 0;

}



.schg-header-logo {

	max-width: 200px;

	height: auto;

	margin-bottom: 20px;

}



/* Style form elements in left panel */

.schg-admin-left .form-table th {

	font-weight: 600;

	color: #1d2327;

	padding: 15px 10px 15px 0;

}



.schg-admin-left .form-table td {

	padding: 15px 10px;

}



.schg-admin-left input[type="text"],

.schg-admin-left input[type="url"],

.schg-admin-left input[type="file"],

.schg-admin-left textarea,

.schg-admin-left select {

	border: 1px solid #dcdcde;

	border-radius: 4px;

	padding: 8px 12px;

	font-size: 14px;

	line-height: 1.5;

	transition: border-color 0.2s ease;

}



.schg-admin-left input[type="text"]:focus,

.schg-admin-left input[type="url"]:focus,

.schg-admin-left textarea:focus,

.schg-admin-left select:focus {

	border-color: #2271b1;

	outline: none;

	box-shadow: 0 0 0 1px #2271b1;

}



.schg-admin-left .description {

	color: #646970;

	font-size: 13px;

	font-style: normal;

	margin-top: 5px;

}



.schg-admin-left .button-primary {

	background: #2271b1;

	border-color: #2271b1;

	color: #fff;

	padding: 8px 16px;

	border-radius: 4px;

	font-weight: 500;

	transition: all 0.2s ease;

}



.schg-admin-left .button-primary:hover {

	background: #135e96;

	border-color: #135e96;

}



.schg-admin-left h2 {

	font-size: 18px;

	font-weight: 600;

	margin-bottom: 15px;

	color: #1d2327;

}



.schg-admin-left h3 {

	font-size: 16px;

	font-weight: 600;

	margin: 20px 0 10px;

	color: #1d2327;

}



.schg-admin-left hr {

	margin: 30px 0;

	border: none;

	border-top: 2px solid #f0f0f1;

}



/* Pro Preview Styling */

.schg-pro-preview {

	background: #fff;

	border: 1px solid #ccd0d4;

	border-radius: 4px;

	padding: 0;

	box-shadow: 0 1px 1px rgba(0,0,0,0.04);

	position: sticky;

	top: 32px;

}



.schg-pro-section {

	padding: 25px;

	border-bottom: 1px solid #f0f0f1;

}



.schg-pro-section:last-of-type {

	border-bottom: none;

}



.schg-pro-section:first-child {

	background: #fffbcc;

	border-radius: 4px 4px 0 0;

	border: 2px solid #f0d55c;

}



.schg-pro-section h3 {

	margin: 0 0 10px 0;

	font-size: 16px;

	font-weight: 600;

	color: #1d2327;

	text-align: left;

}



.schg-pro-section p {

	margin: 0 0 15px 0;

	color: #646970;

	font-size: 13px;

	text-align: left;

}



.schg-pro-input {

	width: 100%;

	padding: 10px;

	border: 1px solid #dcdcde;

	border-radius: 4px;

	margin-bottom: 10px;

	opacity: 0.7;

	cursor: not-allowed;

	box-sizing: border-box;

	text-align: left !important;

}



.schg-pro-button {

	background: #6c5ce7;

	color: #fff;

	border: none;

	padding: 10px 20px;

	border-radius: 4px;

	cursor: not-allowed;

	opacity: 0.7;

	font-weight: 500;

}



.schg-pro-field {

	margin-bottom: 25px;

	padding-bottom: 20px;

	border-bottom: 1px solid #f0f0f1;

}



.schg-pro-field:last-child {

	border-bottom: none;

	margin-bottom: 0;

	padding-bottom: 0;

}



.schg-pro-field label {

	display: block;

	font-weight: 600;

	margin-bottom: 10px;

	color: #1d2327;

	font-size: 14px;

	text-align: left;

}



.schg-pro-badge {

	background: #6c5ce7;

	color: #fff;

	padding: 3px 10px;

	border-radius: 3px;

	font-size: 11px;

	font-weight: 700;

	margin-left: 8px;

	text-transform: uppercase;

	letter-spacing: 0.5px;

}



.schg-pro-field input[type="number"],

.schg-pro-field select {

	width: 100%;

	padding: 8px 12px;

	border: 1px solid #dcdcde;

	border-radius: 4px;

	opacity: 0.6;

	cursor: not-allowed;

	background: #f6f7f7;

	box-sizing: border-box;

	text-align: left !important;

	direction: ltr !important;

	appearance: none;

	background-image: url('data:image/svg+xml;utf8,<svg fill="%23646970" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M5 6l5 5 5-5 2 1-7 7-7-7z"/></svg>');

	background-repeat: no-repeat;

	background-position: right 8px center;

	background-size: 16px;

	padding-right: 32px;

}



.schg-pro-field input[type="number"] {

	background-image: none;

	padding-right: 12px;

}



.schg-pro-field select option {

	text-align: left !important;

	direction: ltr !important;

}



.schg-pro-note {

	margin: 10px 0 0 0;

	color: #646970;

	font-size: 12px;

	font-style: italic;

	text-align: left;

}



.schg-pro-toggle {

	width: 44px;

	height: 24px;

	background: #dcdcde;

	border-radius: 12px;

	position: relative;

	cursor: not-allowed;

	opacity: 0.6;

	display: inline-block;

}



.schg-pro-toggle::after {

	content: '';

	position: absolute;

	width: 20px;

	height: 20px;

	background: #fff;

	border-radius: 50%;

	top: 2px;

	left: 2px;

	transition: 0.3s;

}



.schg-pro-upload-btn,

.schg-pro-export-btn,

.schg-pro-import-btn {

	padding: 8px 16px;

	border: 1px solid #dcdcde;

	border-radius: 4px;

	background: #f6f7f7;

	cursor: not-allowed;

	opacity: 0.6;

	font-size: 13px;

	margin-right: 8px;

}



.schg-pro-actions {

	display: flex;

	gap: 8px;

	flex-wrap: wrap;

}



.schg-pro-cta {

	padding: 25px;

	background: #f6f7f7;

	text-align: center;

	border-radius: 0 0 4px 4px;

}



.schg-pro-cta-button {

	display: inline-block;

	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

	color: #fff;

	padding: 14px 40px;

	border-radius: 6px;

	text-decoration: none;

	font-weight: 600;

	font-size: 16px;

	transition: all 0.3s ease;

	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);

	text-transform: uppercase;

	letter-spacing: 0.5px;

}



.schg-pro-cta-button:hover {

	transform: translateY(-2px);

	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);

	color: #fff;

}



/* Enhanced table styling */

.widefat.striped tr {

	transition: all 0.2s ease;

}



.widefat.striped tr:hover {

	background: #f6f7f7;

	box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}



.widefat td {

	vertical-align: middle;

	padding: 12px !important;

}



/* Make thumbnails look better */

.widefat td img {

	border-radius: 6px;

	box-shadow: 0 2px 4px rgba(0,0,0,0.1);

	transition: transform 0.2s ease;

}



.widefat td img:hover {

	transform: scale(1.05);

}



/* Image count badge */

.schg-count-badge {

	background: #2271b1;

	color: #fff;

	padding: 4px 12px;

	border-radius: 12px;

	font-size: 12px;

	font-weight: 600;

	margin-left: 10px;

}



/* Enhanced delete button */

.button-link-delete {

	background: #fff !important;

	border: 1px solid #dc3232 !important;

	color: #dc3232 !important;

	transition: all 0.2s ease !important;

}



.button-link-delete:hover {

	background: #dc3232 !important;

	color: #fff !important;

	border-color: #dc3232 !important;

	transform: translateY(-1px);

	box-shadow: 0 2px 4px rgba(220, 50, 50, 0.3);

}



/* Empty state styling */

.schg-empty-state {

	text-align: center;

	padding: 60px 20px;

	background: #f9f9f9;

	border-radius: 8px;

	border: 2px dashed #dcdcde;

	margin: 20px 0;

}



.schg-empty-icon {

	font-size: 48px;

	margin-bottom: 15px;

}



.schg-empty-state h3 {

	color: #1d2327;

	margin-bottom: 8px;

}



.schg-empty-state p {

	color: #646970;

}



/* Shortcode copy wrapper */

.schg-shortcode-wrapper {

	display: flex;

	gap: 8px;

	align-items: center;

	flex-wrap: wrap;

}



.schg-copy-btn {

	padding: 4px 12px;

	background: #2271b1;

	color: #fff;

	border: none;

	border-radius: 4px;

	cursor: pointer;

	font-size: 12px;

	transition: background 0.2s ease;

}



.schg-copy-btn:hover {

	background: #135e96;

}

/* Dashboard Stats Cards */

.schg-dashboard-stats {

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

	gap: 20px;

	margin: 20px 0 30px 0;

}



.schg-stat-card {

	background: #fff;

	border: 1px solid #ccd0d4;

	border-radius: 8px;

	padding: 20px;

	display: flex;

	align-items: center;

	gap: 15px;

	box-shadow: 0 2px 4px rgba(0,0,0,0.05);

	transition: all 0.2s ease;

}



.schg-stat-card:hover {

	transform: translateY(-2px);

	box-shadow: 0 4px 8px rgba(0,0,0,0.1);

}



.schg-stat-card-cta {

	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

	border: none;

	color: #fff;

}



.schg-stat-card-cta .schg-stat-label {

	color: #fff !important;

}



.schg-stat-icon {

	font-size: 36px;

	line-height: 1;

}



.schg-stat-content {

	flex: 1;

}



.schg-stat-number {

	font-size: 32px;

	font-weight: 700;

	color: #1d2327;

	line-height: 1;

	margin-bottom: 5px;

}



.schg-stat-label {

	font-size: 13px;

	color: #646970;

	font-weight: 500;

	text-transform: uppercase;

	letter-spacing: 0.5px;

}



/* Enhanced main table styling */

.wrap > h1.wp-heading-inline {

	font-size: 23px;

	font-weight: 600;

	margin-bottom: 15px;

}



.wrap .widefat {

	border: 1px solid #ccd0d4;

	border-radius: 8px;

	overflow: hidden;

	box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}



.wrap .widefat thead th {

	background: #f6f7f7;

	font-weight: 600;

	text-transform: uppercase;

	font-size: 12px;

	letter-spacing: 0.5px;

	color: #50575e;

	padding: 12px;

	border-bottom: 2px solid #ccd0d4;

}



.wrap .widefat tbody tr {

	border-bottom: 1px solid #f0f0f1;

}



.wrap .widefat tbody tr:last-child {

	border-bottom: none;

}



.wrap .widefat tbody tr:hover {

	background: #f9f9f9;

}



.wrap .widefat td {

	padding: 15px 12px;

	vertical-align: middle;

}



/* Make gallery names stand out */

.wrap .widefat td a strong {

	font-size: 15px;

	color: #2271b1;

	transition: color 0.2s ease;

}



.wrap .widefat td a strong:hover {

	color: #135e96;

}



/* ID column styling */

.wrap .widefat td:first-child {

	font-weight: 600;

	color: #646970;

	font-size: 14px;

}



/* Date styling */

.wrap .widefat td:nth-child(4) {

	color: #646970;

	font-size: 13px;

}



/* Mobile responsive for stats */

@media (max-width: 768px) {

	.schg-dashboard-stats {

		grid-template-columns: 1fr;

	}

}

/* Mobile styles for Current Images table */

@media (max-width: 768px) {

	.widefat {

		display: block;

		overflow-x: auto;

	}

	

	.widefat thead {

		display: none;

	}

	

	.widefat tbody,



	.widefat tr,

	.widefat td {

		display: block;

		width: 100%;

	}

	

	.widefat tr {

		margin-bottom: 20px;

		border: 1px solid #ccd0d4;

		border-radius: 4px;

		padding: 15px;

		background: #fff;

	}

	

	.widefat td {

		border: none !important;

		padding: 8px 0 !important;

		text-align: left !important;

	}

	

	/* Hide URL column on mobile */

	.widefat td:nth-child(3) {

		display: none;

	}

	

	/* Make preview image larger and centered */

	.widefat td:first-child {

		text-align: center !important;

		margin-bottom: 10px;

	}

	

	.widefat td img {

		max-width: 200px !important;

		width: 100% !important;

		height: auto;

		margin: 0 auto;

	}

	

	/* Style the title */

	.widefat td:nth-child(2) strong {

		font-size: 16px;

		display: block;

		margin-bottom: 5px;

	}

	

	/* Center and style delete button */

	.widefat td:last-child {

		text-align: center !important;

		margin-top: 15px;

		padding-top: 15px !important;

		border-top: 1px solid #f0f0f1 !important;

	}

	

	.widefat .button-link-delete {

		display: inline-block;

		width: auto;

		min-width: 120px;

		text-align: center;

		padding: 10px 20px;

		background: #fff;

		border: 1px solid #dc3232;

		color: #dc3232;

		border-radius: 4px;

		text-decoration: none;

		font-weight: 500;

	}

	

	.widefat .button-link-delete:hover {

		background: #dc3232;

		color: #fff;

	}

}

/* Resources Section */

.schg-resources-section {

	margin-top: 40px;

	padding-top: 30px;

	border-top: 2px solid #f0f0f1;

}



.schg-resources-section h2 {

	font-size: 20px;

	font-weight: 600;

	margin-bottom: 20px;

	color: #1d2327;

}



.schg-resources-grid {

	display: grid;

	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

	gap: 20px;

	margin-bottom: 30px;

}



.schg-resource-card {

	background: #fff;

	border: 1px solid #ccd0d4;

	border-radius: 8px;

	padding: 25px;

	transition: all 0.3s ease;

	box-shadow: 0 2px 4px rgba(0,0,0,0.05);

}



.schg-resource-card:hover {

	transform: translateY(-4px);

	box-shadow: 0 6px 12px rgba(0,0,0,0.1);

	border-color: #2271b1;

}



.schg-resource-card-highlight {

	background: linear-gradient(135deg, #f6f9fc 0%, #f0f4ff 100%);

	border: 2px solid #2271b1;

}



.schg-resource-card-highlight:hover {

	border-color: #135e96;

}



.schg-resource-icon {

	font-size: 40px;

	margin-bottom: 15px;

	line-height: 1;

}



.schg-resource-card h3 {

	font-size: 17px;

	font-weight: 600;

	margin: 0 0 10px 0;

	color: #1d2327;

}



.schg-resource-card p {

	font-size: 14px;

	color: #646970;

	line-height: 1.6;

	margin: 0 0 20px 0;

	min-height: 60px;

}



.schg-resource-card .button {

	display: inline-flex;

	align-items: center;

	gap: 5px;

	padding: 8px 16px;

	font-weight: 500;

	text-decoration: none;

	transition: all 0.2s ease;

}



.schg-resource-card .button-secondary {

	background: #f6f7f7;

	border-color: #ccd0d4;

	color: #2271b1;

}



.schg-resource-card .button-secondary:hover {

	background: #2271b1;

	border-color: #2271b1;

	color: #fff;

}



.schg-resource-card-highlight .button-primary {

	background: #2271b1;

	border-color: #2271b1;

	box-shadow: 0 2px 8px rgba(34, 113, 177, 0.3);

}



.schg-resource-card-highlight .button-primary:hover {

	background: #135e96;

	border-color: #135e96;

	transform: translateY(-1px);

	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.4);

}



/* Mobile responsive */

@media (max-width: 768px) {

	.schg-resources-grid {

		grid-template-columns: 1fr;

	}

	

	.schg-resource-card p {

		min-height: auto;

	}

}

@media (max-width: 1024px) {

	.schg-admin-wrapper {

		flex-direction: column;

	}

	

	.schg-admin-left,

	.schg-admin-right {

		flex: 0 0 100%;

		max-width: 100%;

	}

	

	.schg-pro-preview {

		position: relative;

		top: 0;

		text-align: center;

	}

	

	.schg-pro-preview img {

		max-width: 100%;

		width: 100%;

		height: auto;

		margin: 0 auto;

	}

}