/**
 * Admin Styles for AHS - Image to WebP Converter
 *
 * @package AHS_Image_To_WebP
 */

.ahsitw-admin-wrap {
	margin-top: 20px;
	max-width: 1200px;
}

.ahsitw-grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 24px;
	margin-top: 24px;
}

.ahsitw-dashboard-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

@media (max-width: 1100px) {
	.ahsitw-dashboard-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	.ahsitw-grid {
		grid-template-columns: 1fr;
	}
}

/* Cards */
.ahsitw-card {
	padding: 24px;
	margin: 0 0 24px 0;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.06);
	border: 1px solid #e2e8f0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ahsitw-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ahsitw-card h2,
.ahsitw-card h3 {
	margin-top: 0;
	font-weight: 600;
}

/* Stats Card */
.ahsitw-stats-card {
	border-left: 4px solid #3b82f6;
}

.ahsitw-stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
}

.ahsitw-stat-row:last-child {
	border-bottom: none;
}

.ahsitw-label {
	font-weight: 500;
	color: #64748b;
}

.ahsitw-value {
	font-weight: 600;
	color: #1e293b;
	font-size: 1.1em;
}

/* Badges */
.ahsitw-badge {
	padding: 4px 10px;
	border-radius: 9999px;
	font-size: 0.85em;
	font-weight: 600;
}

.ahsitw-badge-premium {
	background: #dcfce7;
	color: #166534;
}

/* Bulk Card */
.ahsitw-bulk-card {
	border-left: 4px solid #10b981;
}

.ahsitw-bulk-actions {
	margin: 20px 0;
	display: flex;
	gap: 12px;
}

/* Progress Bar */
.ahsitw-progress-container {
	margin-top: 24px;
	padding: 20px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.ahsitw-progress-bar-wrap {
	height: 12px;
	background: #e2e8f0;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 12px;
}

.ahsitw-progress-fill {
	height: 100%;
	background: #3b82f6;
	width: 0%;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ahsitw-progress-status {
	font-size: 0.9em;
	color: #64748b;
	margin-bottom: 12px;
	font-weight: 500;
}

.ahsitw-progress-log {
	height: 150px;
	overflow-y: auto;
	background: #1e293b;
	color: #f8fafc;
	padding: 12px;
	border-radius: 6px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.85em;
	line-height: 1.6;
}

.ahsitw-success-notice {
	color: #065f46;
	background: #ecfdf5;
	padding: 16px 20px;
	border-radius: 8px;
	font-weight: 500;
	display: block;
	border: 1px solid #a7f3d0;
}

/* Settings Form */
.ahsitw-settings-card {
	padding: 30px;
}

.ahsitw-settings-card h2 {
	font-size: 1.5em;
	margin-bottom: 24px;
	color: #1e293b;
}

.ahsitw-settings-form table {
	width: 100%;
}

.ahsitw-settings-form th {
	width: 200px;
	padding: 15px 0;
	vertical-align: middle;
}

.ahsitw-settings-form td {
	padding: 15px 0;
}

.ahsitw-settings-form input[type="number"] {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	font-size: 14px;
}

.ahsitw-settings-form .submit {
	margin-top: 20px;
	padding-top: 0;
}

.ahsitw-settings-form .button-primary {
	background: #3b82f6;
	border: none;
	box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
	padding: 6px 24px;
	height: auto;
	line-height: 2;
	font-weight: 500;
}

/* Sidebar Info Card */
.ahsitw-info-card ul {
	margin: 15px 0 0 20px;
	list-style-type: disc;
}

.ahsitw-info-card li {
	margin-bottom: 10px;
	color: #475569;
}

/* Premium Card */
.ahsitw-premium-card {
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #fff;
	border: none;
}

.ahsitw-premium-card h3 {
	color: #fff;
}

.ahsitw-premium-card p {
	color: #94a3b8;
}

.ahsitw-premium-card .button-primary {
	background: #3b82f6;
	border-color: #3b82f6;
	width: 100%;
	text-align: center;
}

.ahsitw-premium-card .button-primary:hover {
	background: #2563eb;
	border-color: #2563eb;
}
