/* Custom CSS for enhanced UI */

/* Apply Sora font to all plugin pages */
.wrap[class*="momcs"],
.momcs-header,
.momcs-sync-header,
.momcs-nav-tabs,
.momcs-sync-nav-tabs,
.momcs-connect-container,
.momcs-channel-item,
.momcs-marketplace-item,
.momcs-marketplace-card,
.momcs-channel-rect-container,
.momcs-btn,
.momcs-connect-btn,
.momcs-form-control,
.momcs-form-label,
.momcs-sync-card,
.momcs-sync-marketplace-card,
.momcs-auth-container,
.momcs-connect-card,
div[id*="momcs"],
div[class*="momcs"] {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* General Styles */
body {
	background-color: #f0f0f1;
}

/* Header Styles */
.momcs-sync-header {
	padding: 20px 20px 13px 0px;
}

.momcs-sync-header h1 {
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 18px;
	color: white;
}

.momcs-sync-logo {
	height: 50px;
	margin-right: 15px;
}

/* Enhanced title styling */
.momcs-sync-title-wrap {
	display: flex;
	align-items: center;
}

.momcs-sync-title-group {
	display: flex;
	flex-direction: column;
}

.momcs-sync-title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.momcs-sync-title-main {
	color: #1d2327;
}

.momcs-sync-title-accent {
	color: #ea580c;
	margin-left: 6px;
}

.momcs-sync-subtitle {
	margin: 2px 0 0 0;
	color: #5e6a72;
	font-size: 13px;
}

/* Marketplace Cards */
.momcs-sync-marketplace-card {
	transition: all 0.3s ease;
	border: 1px solid #e2e4e7;
}

.momcs-sync-marketplace-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	border-color: #ea580c;
}

.momcs-sync-marketplace-card img {
	height: 70px;
	margin-bottom: 20px;
	transition: all 0.3s ease;
}

.momcs-sync-marketplace-card:hover img {
	transform: scale(1.1);
}

.momcs-sync-marketplace-card h3 {
	font-size: 20px;
	color: #ea580c;
}

/* Authorization Form */
.momcs-auth-container,
.momcs-connect-card {
	border: 1px solid #e2e4e7;
	transition: all 0.3s ease;
}

.momcs-auth-container:hover,
.momcs-connect-card:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.momcs-auth-button-container button,
#momcs-auth-button,
.momcs-ebay-authorize-btn,
.momcs-walmart-authorize-btn {
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
	border-color: #ea580c !important;
	transition: all 0.3s ease;
}

.momcs-auth-button-container button:hover,
#momcs-auth-button:hover,
.momcs-ebay-authorize-btn:hover,
.momcs-walmart-authorize-btn:hover {
	background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
	border-color: #b45309;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Amazon Authorize button: same look as Save settings button */
#momcs-auth-button {
	background: #f97316 !important;
	border-color: #ea580c !important;
	color: #fff !important;
	padding: 3px 24px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 6px;
	transition: opacity 0.2s ease;
}

#momcs-auth-button:hover {
	background: #f97316 !important;
	border-color: #ea580c !important;
	opacity: 0.9;
	transform: none;
	box-shadow: none;
}

/* Success State */
.momcs-auth-success {
	padding: 15px;
	background-color: #f0f6e4;
	border-left: 4px solid #46b450;
	border-radius: 3px;
}

.momcs-auth-success .dashicons {
	font-size: 24px;
	width: 30px;
	height: 30px;
	background-color: #46b450;
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Form Inputs */
.momcs-form-control {
	border: 1px solid #ddd;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
	transition: all 0.3s ease;
}

.momcs-form-control:focus {
	border-color: #ea580c;
	box-shadow: 0 0 0 1px #ea580c;
}

/* Buttons */
.button-primary {
	background: #ea580c;
	border-color: #ea580c;
	color: white;
	transition: all 0.3s ease;
}

.button-primary:hover {
	background: #c2410c;
	border-color: #c2410c;
	transform: translateY(-1px);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Animation */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.momcs-sync-content {
	animation: fadeIn 0.5s ease-out;
}

/* Loading Spinner */
.momcs-auth-loader-spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-top: 4px solid #ea580c;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Skeleton Loader for Orders Table */
.momcs-sync-skeleton-row {
	position: relative;
	overflow: hidden;
	height: 16px;
	background-color: #f6f7f8;
}

.momcs-sync-skeleton-row::after {
	content: "";
	position: absolute;
	top: 0;
	left: -150px;
	height: 100%;
	width: 150px;
	background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
	animation: momcsAmazonSyncShimmer 1.2s infinite;
}

@keyframes momcsAmazonSyncShimmer {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(300%);
	}
}

.loading-placeholder td {
	padding: 8px;
}

/* Status chip for Unlisted */
.momcs-sync-status-chip.unsynced {
	background: #eaeaea;
	color: #555;
}

.momcs-sync-status-chip.unsynced .momcs-sync-status-dot {
	background: #555;
} 