/*
 * Admin CSS for Edu Bulk Emailer
 *
 * @version 1.0.0
 */

/* ==========================================================================
   Global Styles & Wrappers
   ========================================================================== */

.edubzl-wrap {
	max-width: 1400px;
	margin: 20px 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.edubzl-wrap > h1 {
	font-size: 32px;
	font-weight: 700;
	color: #1e1e1e;
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 3px solid #e5e7eb;
	display: flex;
	align-items: center;
	gap: 15px;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.edubzl-wrap > h1:before {
	content: "✉";
	font-size: 36px;
	-webkit-text-fill-color: #3b82f6;
	display: inline-block;
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
}

/* ==========================================================================
   Section Cards
   ========================================================================== */

.edubzl-section {
	background: #ffffff;
	border: none;
	border-radius: 12px;
	padding: 0;
	margin-top: 25px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	transition: all 0.3s ease;
	animation: slideIn 0.4s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.edubzl-section:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.edubzl-section h2 {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	color: #ffffff;
	font-size: 20px;
	font-weight: 600;
	padding: 20px 30px;
	margin: 0;
	border-bottom: none;
	position: relative;
	overflow: hidden;
}

.edubzl-section h2:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
}

.edubzl-section h3 {
	font-size: 18px;
	font-weight: 600;
	color: #1e3a8a;
	margin: 30px 30px 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid #e0e7ff;
	display: flex;
	align-items: center;
	gap: 10px;
}

.edubzl-section h3:before {
	content: "";
	width: 4px;
	height: 24px;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	border-radius: 2px;
}

.edubzl-section > form,
.edubzl-section > p,
.edubzl-section > table {
	padding: 0 30px 30px;
}

/* ==========================================================================
   Queue Status Dashboard
   ========================================================================== */

.edubzl-queue-stats-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	padding: 30px;
}

.edubzl-queue-stat-card {
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 25px;
	display: flex;
	align-items: center;
	gap: 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.edubzl-queue-stat-card:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.edubzl-queue-stat-card:hover {
	border-color: #3b82f6;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
	transform: translateY(-4px);
}

.edubzl-stat-icon {
	font-size: 48px;
	line-height: 1;
	opacity: 0.8;
}

.edubzl-stat-content {
	flex: 1;
}

.edubzl-stat-label {
	font-size: 14px;
	color: #6b7280;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.edubzl-stat-value {
	font-size: 32px;
	font-weight: 700;
	color: #1e3a8a;
	line-height: 1;
}

.edubzl-stat-pending:before {
	background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
}

.edubzl-stat-pending .edubzl-stat-value {
	color: #f59e0b;
}

.edubzl-stat-sent:before {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.edubzl-stat-sent .edubzl-stat-value {
	color: #059669;
}

.edubzl-stat-failed:before {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.edubzl-stat-failed .edubzl-stat-value {
	color: #dc2626;
}

.edubzl-stat-next-run:before {
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.edubzl-stat-next-run .edubzl-stat-value {
	font-size: 16px;
	color: #7c3aed;
	font-weight: 600;
}

.edubzl-queue-actions {
	padding: 0 30px 30px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* ==========================================================================
   Jobs Table
   ========================================================================== */

.edubzl-jobs-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.edubzl-jobs-table thead tr {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.edubzl-jobs-table thead th {
	color: #ffffff;
	font-weight: 600;
	padding: 16px 20px;
	text-align: left;
	font-size: 14px;
}

.edubzl-jobs-table tbody tr {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.edubzl-jobs-table tbody tr:hover {
	background: #f9fafb;
}

.edubzl-jobs-table tbody tr:last-child {
	border-bottom: none;
}

.edubzl-jobs-table tbody td {
	padding: 5px 8px;
	font-size: 14px;
	color: #374151;
}

.edubzl-job-highlight {
	background: #eff6ff !important;
	border-left: 4px solid #3b82f6 !important;
}

.edubzl-job-highlight:hover {
	background: #dbeafe !important;
}

.edubzl-jobs-table .column-job-id {
	width: 120px;
}

.edubzl-jobs-table .column-job-id code {
	background: #f3f4f6;
	padding: 4px 8px;
	border-radius: 4px;
	font-family: "Courier New", monospace;
	font-size: 12px;
	color: #1e3a8a;
}

.edubzl-jobs-table .column-subject {
	width: 100%;
}

.edubzl-jobs-table .column-progress {
	width: 50px;
}

.edubzl-jobs-table .column-status {
	width: 180px;
}

.edubzl-jobs-table .column-created {
	width: 180px;
	font-family: "Courier New", monospace;
	font-size: 13px;
	color: #6b7280;
}

.edubzl-jobs-table .column-actions {
	width: 220px;
}

.edubzl-progress-bar-container {
	width: 100%;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 6px;
}

.edubzl-progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 100%);
	border-radius: 4px;
	transition: width 0.5s ease;
}

.edubzl-progress-text {
	font-size: 12px;
	color: #6b7280;
	font-weight: 600;
}

.edubzl-status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-right: 6px;
}

.edubzl-status-complete {
	background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
	color: #059669;
}

.edubzl-status-processing {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	color: #d97706;
}

.edubzl-status-failed {
	background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
	color: #dc2626;
}

.edubzl-job-actions {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.edubzl-job-actions form {
	display: inline-block;
	margin: 0;
}

.edubzl-job-actions .button {
	padding: 6px 14px;
	font-size: 13px;
	margin: 0;
}

/* ==========================================================================
   Form Tables
   ========================================================================== */

.edubzl-form-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.edubzl-form-table tbody tr {
	transition: background 0.2s ease;
}

.edubzl-form-table tbody tr:hover {
	background: #f9fafb;
}

.edubzl-form-table th {
	width: 220px;
	padding: 20px 25px 20px 0;
	font-weight: 600;
	color: #1e3a8a;
	font-size: 14px;
	vertical-align: top;
	text-align: left;
}

.edubzl-form-table td {
	padding: 20px 0;
}

.edubzl-form-table .edubzl-input-text,
.edubzl-form-table .edubzl-input-textarea,
.edubzl-form-table .edubzl-input-wide {
	width: 100%;
	max-width: 700px;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
	background: #ffffff;
	color: #1e1e1e;
	font-family: inherit;
}

.edubzl-form-table .edubzl-input-text:focus,
.edubzl-form-table .edubzl-input-textarea:focus,
.edubzl-form-table .edubzl-input-wide:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	outline: none;
}

.edubzl-form-table .edubzl-input-textarea-small {
	width: 100%;
	max-width: 700px;
	height: 100px;
	resize: vertical;
}

.edubzl-form-table .edubzl-input-textarea-medium {
	width: 100%;
	max-width: 700px;
	height: 150px;
	resize: vertical;
}

.edubzl-form-table .edubzl-input-text-medium {
	width: 100%;
	max-width: 300px;
}

.edubzl-form-table input[type="file"] {
	padding: 10px;
	border: 2px dashed #e5e7eb;
	border-radius: 8px;
	background: #f9fafb;
	cursor: pointer;
	transition: all 0.2s ease;
}

.edubzl-form-table input[type="file"]:hover {
	border-color: #3b82f6;
	background: #eff6ff;
}

.edubzl-form-table .description {
	color: #6b7280;
	font-size: 13px;
	margin-top: 8px;
	line-height: 1.6;
	font-style: normal;
}

/* ==========================================================================
   WordPress Editor Integration
   ========================================================================== */

.wp-editor-container {
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
	transition: all 0.2s ease;
}

.wp-editor-container:focus-within {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mce-toolbar-grp {
	background: #f9fafb !important;
	border-bottom: 1px solid #e5e7eb !important;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.edubzl-wrap .button {
	padding: 10px 24px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	text-shadow: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.edubzl-wrap .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.edubzl-wrap .button:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.edubzl-wrap .button-primary {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	border-color: #1e3a8a;
	color: #ffffff;
	position: relative;
	overflow: hidden;
}

.edubzl-wrap .button-primary:before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s ease;
}

.edubzl-wrap .button-primary:hover:before {
	left: 100%;
}

.edubzl-wrap .button-primary:hover {
	background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
	border-color: #1e40af;
}

.edubzl-wrap .button-hero {
	padding: 14px 32px;
	font-size: 16px;
}

.edubzl-wrap .button-secondary {
	background: #ffffff;
	border-color: #d1d5db;
	color: #374151;
}

.edubzl-wrap .button-secondary:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.edubzl-button-warning {
	background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
	color: #ffffff;
	border-color: #f59e0b;
}

.edubzl-button-warning:hover {
	background: linear-gradient(135deg, #d97706 0%, #ca8a04 100%);
	border-color: #d97706;
}

.edubzl-button-delete {
	background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
	color: #ffffff;
	border-color: #dc2626;
}

.edubzl-button-delete:hover {
	background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
	border-color: #b91c1c;
}

/* ==========================================================================
   Template Cards
   ========================================================================== */

.edubzl-template-card {
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 20px;
	background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.edubzl-template-card:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 4px;
	height: 100%;
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.edubzl-template-card:hover {
	border-color: #3b82f6;
	box-shadow: 0 4px 16px rgba(59, 130, 246, 0.15);
	transform: translateX(4px);
}

.edubzl-template-card .edubzl-template-title-input {
	width: 100%;
	max-width: 600px;
	font-weight: 700;
	font-size: 18px;
	margin-bottom: 20px;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	background: #ffffff;
	color: #1e3a8a;
	transition: all 0.2s ease;
}

.edubzl-template-card .edubzl-template-title-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	outline: none;
}

.edubzl-template-card label {
	font-weight: 600;
	display: block;
	margin-top: 20px;
	margin-bottom: 8px;
	color: #1e3a8a;
	font-size: 14px;
}

.edubzl-template-card .edubzl-template-textarea {
	width: 100%;
	height: 120px;
	padding: 12px 16px;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	font-size: 14px;
	resize: vertical;
	transition: all 0.2s ease;
	font-family: inherit;
}

.edubzl-template-card .edubzl-template-textarea:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
	outline: none;
}

.edubzl-template-card .edubzl-template-actions {
	margin-top: 25px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.edubzl-template-card .edubzl-load-template-button {
	background: linear-gradient(135deg, #059669 0%, #10b981 100%);
	color: #ffffff;
	border-color: #059669;
}

.edubzl-template-card .edubzl-load-template-button:hover {
	background: linear-gradient(135deg, #047857 0%, #059669 100%);
	border-color: #047857;
}

/* ==========================================================================
   Logs Table
   ========================================================================== */

.edubzl-logs-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.edubzl-logs-table thead tr {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.edubzl-logs-table thead th {
	color: #ffffff;
	font-weight: 600;
	padding: 16px 20px;
	text-align: left;
	font-size: 14px;
}

.edubzl-logs-table tbody tr {
	background: #ffffff;
	border-bottom: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.edubzl-logs-table tbody tr:hover {
	background: #f9fafb;
	transform: scale(1.01);
}

.edubzl-logs-table tbody tr:last-child {
	border-bottom: none;
}

.edubzl-logs-table tbody td {
	padding: 16px 20px;
	font-size: 14px;
	color: #374151;
}

.edubzl-logs-table .column-success {
	width: 10%;
	font-weight: 700;
	color: #059669;
	font-size: 16px;
}

.edubzl-logs-table .column-fail {
	width: 10%;
	font-weight: 700;
	color: #dc2626;
	font-size: 16px;
}

.edubzl-logs-table .column-date {
	width: 20%;
	color: #6b7280;
	font-family: "Courier New", monospace;
	font-size: 13px;
}

.edubzl-logs-table .column-actions {
	width: 18%;
}

.edubzl-logs-table .edubzl-log-actions {
	display: flex;
	gap: 8px;
}

.edubzl-logs-table .edubzl-log-actions form {
	display: inline-block;
	margin: 0;
}

.edubzl-logs-table .edubzl-log-actions .button {
	padding: 6px 16px;
	font-size: 13px;
	margin: 0;
}

/* ==========================================================================
   Settings Section
   ========================================================================== */

.edubzl-settings-table th {
	width: 320px;
}

.edubzl-settings-table input[type="checkbox"] {
	width: 20px;
	height: 20px;
	border: 2px solid #e5e7eb;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	appearance: none;
	background: #ffffff;
	margin-right: 10px;
	vertical-align: middle;
}

.edubzl-settings-table input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	border-color: #1e3a8a;
}

.edubzl-settings-table input[type="checkbox"]:checked:after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #ffffff;
	font-size: 14px;
	font-weight: bold;
}

.edubzl-settings-table input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.edubzl-settings-table label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	font-size: 14px;
	color: #374151;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.edubzl-logs-section > p {
	text-align: center;
	padding: 60px 30px;
	color: #6b7280;
	font-size: 16px;
	font-style: italic;
}

.edubzl-logs-section > p:before {
	content: "📭";
	display: block;
	font-size: 48px;
	margin-bottom: 15px;
}

/* ==========================================================================
   Success/Error Messages
   ========================================================================== */

.edubzl-wrap .updated,
.edubzl-wrap .error,
.edubzl-wrap .notice {
	border-left: 4px solid;
	border-radius: 8px;
	padding: 16px 24px;
	margin: 20px 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	animation: slideIn 0.3s ease;
}

.edubzl-wrap .updated {
	border-left-color: #10b981;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.edubzl-wrap .updated p:before {
	content: "✓ ";
	font-weight: bold;
	color: #059669;
}

.edubzl-wrap .error {
	border-left-color: #ef4444;
	background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.edubzl-wrap .error p:before {
	content: "⚠ ";
	font-weight: bold;
	color: #dc2626;
}

.edubzl-wrap .updated p,
.edubzl-wrap .error p,
.edubzl-wrap .notice p {
	margin: 0;
	font-weight: 500;
	font-size: 14px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 1024px) {
	.edubzl-form-table th,
	.edubzl-form-table td {
		display: block;
		width: 100%;
		padding: 10px 0;
	}

	.edubzl-form-table th {
		padding-bottom: 5px;
	}

	.edubzl-form-table td {
		padding-top: 5px;
		padding-bottom: 20px;
	}

	.edubzl-form-table .edubzl-input-text,
	.edubzl-form-table .edubzl-input-textarea,
	.edubzl-form-table .edubzl-input-wide,
	.edubzl-form-table .edubzl-input-text-medium {
		max-width: 100%;
	}

	.edubzl-jobs-table,
	.edubzl-logs-table {
		font-size: 13px;
	}

	.edubzl-jobs-table thead th,
	.edubzl-jobs-table tbody td,
	.edubzl-logs-table thead th,
	.edubzl-logs-table tbody td {
		padding: 12px 10px;
	}

	.edubzl-template-card .edubzl-template-actions {
		flex-direction: column;
	}

	.edubzl-template-card .edubzl-template-actions .button {
		width: 100%;
	}

	.edubzl-queue-stats-wrapper {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}
}

@media screen and (max-width: 782px) {
	.edubzl-wrap > h1 {
		font-size: 24px;
	}

	.edubzl-section h2 {
		font-size: 18px;
		padding: 16px 20px;
	}

	.edubzl-section h3 {
		font-size: 16px;
		margin: 20px 20px 15px;
	}

	.edubzl-section > form,
	.edubzl-section > p,
	.edubzl-section > table {
		padding: 0 20px 20px;
	}

	.edubzl-template-card {
		padding: 20px;
	}

	.edubzl-jobs-table,
	.edubzl-logs-table {
		display: block;
		overflow-x: auto;
	}

	.edubzl-queue-stats-wrapper {
		padding: 20px;
		gap: 15px;
	}

	.edubzl-queue-actions {
		padding: 0 20px 20px;
	}
}

/* ==========================================================================
   Loading & Animations
   ========================================================================== */

@keyframes shimmer {
	0% {
		background-position: -1000px 0;
	}
	100% {
		background-position: 1000px 0;
	}
}

.edubzl-wrap .button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	background: linear-gradient(90deg, #e5e7eb 0%, #f3f4f6 50%, #e5e7eb 100%);
	background-size: 1000px 100%;
	animation: shimmer 2s infinite linear;
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

.edubzl-wrap textarea::-webkit-scrollbar,
.edubzl-jobs-table::-webkit-scrollbar,
.edubzl-logs-table::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.edubzl-wrap textarea::-webkit-scrollbar-track,
.edubzl-jobs-table::-webkit-scrollbar-track,
.edubzl-logs-table::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 5px;
}

.edubzl-wrap textarea::-webkit-scrollbar-thumb,
.edubzl-jobs-table::-webkit-scrollbar-thumb,
.edubzl-logs-table::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
	border-radius: 5px;
}

.edubzl-wrap textarea::-webkit-scrollbar-thumb:hover,
.edubzl-jobs-table::-webkit-scrollbar-thumb:hover,
.edubzl-logs-table::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* ==========================================================================
   Progress Animation
   ========================================================================== */

@keyframes progressPulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.7;
	}
}

.edubzl-job-row:not(.edubzl-status-complete) .edubzl-progress-bar {
	animation: progressPulse 2s ease-in-out infinite;
}

/* ==========================================================================
   Highlight Animation
   ========================================================================== */

@keyframes highlightFade {
	0% {
		background: #dbeafe;
	}
	100% {
		background: #eff6ff;
	}
}

.edubzl-job-highlight {
	animation: highlightFade 2s ease-in-out infinite alternate;
}

/* ==========================================================================
   Button Loading State
   ========================================================================== */

.edubzl-wrap .button.is-loading {
	position: relative;
	color: transparent;
	pointer-events: none;
}

.edubzl-wrap .button.is-loading:after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	top: 50%;
	left: 50%;
	margin-left: -8px;
	margin-top: -8px;
	border: 2px solid #ffffff;
	border-radius: 50%;
	border-top-color: transparent;
	animation: buttonSpin 0.6s linear infinite;
}

@keyframes buttonSpin {
	to {
		transform: rotate(360deg);
	}
}

/* ==========================================================================
   Tooltip Styles
   ========================================================================== */

.edubzl-tooltip {
	position: relative;
	display: inline-block;
}

.edubzl-tooltip:hover:after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	padding: 8px 12px;
	background: #1e1e1e;
	color: #ffffff;
	font-size: 12px;
	white-space: nowrap;
	border-radius: 6px;
	margin-bottom: 8px;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.edubzl-tooltip:hover:before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1e1e1e;
	margin-bottom: 2px;
	z-index: 1000;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
	.edubzl-wrap .button,
	.edubzl-queue-actions,
	.edubzl-job-actions,
	.edubzl-log-actions,
	.edubzl-template-actions {
		display: none;
	}

	.edubzl-section {
		box-shadow: none;
		border: 1px solid #000;
		page-break-inside: avoid;
	}

	.edubzl-wrap > h1:before {
		-webkit-text-fill-color: #000;
	}
}