/**
 * plugins/generic/autoLoaTracker/assets/css/tracker.css
 *
 * Modern Styling for OJS 3.3 Auto LoA & Status Tracker Plugin.
 */

:root {
	--trk-primary: #2563eb;
	--trk-primary-dark: #1d4ed8;
	--trk-success: #16a34a;
	--trk-success-light: #f0fdf4;
	--trk-warning: #f59e0b;
	--trk-danger: #dc2626;
	--trk-slate: #1e293b;
	--trk-gray: #64748b;
	--trk-bg: #f8fafc;
	--trk-border: #e2e8f0;
	--trk-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	--trk-radius: 12px;
}

.auto_loa_tracker_container {
	max-width: 860px;
	margin: 2.5rem auto;
	padding: 0 1.25rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--trk-slate);
}

/* Hero Section */
.tracker-hero-section {
	text-align: center;
	margin-bottom: 2rem;
}

.tracker-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #eff6ff;
	color: var(--trk-primary);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 0.75rem;
	border: 1px solid #bfdbfe;
}

.tracker-main-heading {
	font-size: 2.2rem;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 0.5rem 0;
	letter-spacing: -0.02em;
}

.tracker-sub-heading {
	font-size: 1.05rem;
	color: var(--trk-gray);
	max-width: 620px;
	margin: 0 auto;
	line-height: 1.6;
}

/* Card Wrapper */
.tracker-card-wrapper {
	background: #ffffff;
	border: 1px solid var(--trk-border);
	border-radius: var(--trk-radius);
	box-shadow: var(--trk-shadow);
	padding: 2rem;
	margin-bottom: 2rem;
}

.tracker-card-header h3 {
	margin: 0 0 0.4rem 0;
	font-size: 1.3rem;
	font-weight: 700;
	color: #0f172a;
}

.tracker-card-header p {
	margin: 0 0 1.5rem 0;
	color: var(--trk-gray);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* Search Bar */
.tracker-search-bar {
	display: flex;
	gap: 12px;
}

@media (max-width: 640px) {
	.tracker-search-bar {
		flex-direction: column;
	}
}

.input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.input-prefix {
	position: absolute;
	left: 16px;
	font-weight: 700;
	color: var(--trk-gray);
	font-size: 1.1rem;
	pointer-events: none;
}

.tracker-input {
	width: 100%;
	padding: 0.85rem 1rem 0.85rem 2.5rem;
	font-size: 1rem;
	border: 2px solid var(--trk-border);
	border-radius: 8px;
	background: #ffffff;
	color: var(--trk-slate);
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.tracker-input:focus {
	outline: none;
	border-color: var(--trk-primary);
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.btn-track-submit {
	padding: 0.85rem 1.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	white-space: nowrap;
}

.btn-track-submit:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
	transform: translateY(-1px);
}

.tracker-alert {
	margin-top: 1.25rem;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	font-size: 0.95rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.tracker-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Result Section */
.tracker-result-wrapper {
	margin-bottom: 2rem;
	animation: fadeInUp 0.35s ease-out;
}

@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.tracker-result-card {
	background: #ffffff;
	border: 1px solid var(--trk-border);
	border-radius: var(--trk-radius);
	box-shadow: var(--trk-shadow);
	padding: 2rem;
}

.result-meta-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: 10px;
}

.result-sub-id {
	font-weight: 700;
	font-size: 0.9rem;
	background: #f1f5f9;
	color: #0f172a;
	padding: 4px 12px;
	border-radius: 6px;
}

.result-badge {
	font-weight: 700;
	font-size: 0.85rem;
	padding: 5px 14px;
	border-radius: 999px;
}

.badge-submission {
	background: #eff6ff;
	color: #1d4ed8;
	border: 1px solid #bfdbfe;
}

.badge-review {
	background: #fffbeb;
	color: #b45309;
	border: 1px solid #fde68a;
}

.badge-accepted {
	background: #f0fdf4;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.badge-published {
	background: #faf5ff;
	color: #7e22ce;
	border: 1px solid #e9d5ff;
}

.badge-declined {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.result-title {
	font-size: 1.4rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.4;
	margin: 0 0 1.25rem 0;
}

/* Meta Data Container */
.result-meta-container {
	background: var(--trk-bg);
	border: 1px solid var(--trk-border);
	padding: 1.25rem 1.5rem;
	border-radius: 10px;
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.meta-row-full {
	width: 100%;
}

.meta-val-author {
	font-size: 1.05rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.5;
	display: block;
	margin-top: 2px;
}

.meta-row-sub {
	padding-bottom: 0.75rem;
	border-bottom: 1px dashed #cbd5e1;
}

/* 1 Horizontal Row for Dates */
.meta-dates-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.meta-date-card {
	flex: 1;
	min-width: 170px;
	background: #ffffff;
	border: 1px solid var(--trk-border);
	padding: 10px 14px;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.meta-date-accepted {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.meta-date-published {
	border-color: #fde68a;
	background: #fffbeb;
}

.meta-label {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--trk-gray);
}

.meta-val {
	font-size: 0.95rem;
	font-weight: 600;
	color: #0f172a;
}

.meta-val-highlight {
	color: #16a34a;
	font-weight: 700;
}

.meta-val-published {
	color: #d97706;
	font-weight: 700;
}

/* Stepper */
.tracker-stepper-wrap {
	margin: 2rem 0;
}

.tracker-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.step-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
	z-index: 2;
}

.step-circle {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #ffffff;
	border: 2.5px solid #cbd5e1;
	color: #64748b;
	font-weight: 700;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 0.5rem;
	transition: all 0.2s ease;
}

.step-item.completed .step-circle {
	background: var(--trk-success);
	border-color: var(--trk-success);
	color: #ffffff;
}

.step-item.active .step-circle {
	background: var(--trk-primary);
	border-color: var(--trk-primary);
	color: #ffffff;
	box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.2);
}

.step-title {
	font-size: 0.85rem;
	font-weight: 700;
	color: #334155;
}

.step-sub {
	font-size: 0.75rem;
	color: var(--trk-gray);
}

.step-item.active .step-title {
	color: var(--trk-primary);
}

.step-line {
	flex: 1;
	height: 3px;
	background: #e2e8f0;
	margin: -1.5rem -10px 0 -10px;
	z-index: 1;
}

.step-line.filled {
	background: var(--trk-success);
}

@media (max-width: 640px) {
	.tracker-stepper {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.25rem;
	}
	.step-item {
		flex-direction: row;
		gap: 12px;
		text-align: left;
	}
	.step-line {
		display: none;
	}
}

/* Status Description Box */
.status-description-box {
	background: #f8fafc;
	border-left: 4px solid var(--trk-primary);
	padding: 1rem 1.25rem;
	border-radius: 0 8px 8px 0;
	margin-bottom: 1.5rem;
}

.desc-heading {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.95rem;
	color: #1e293b;
	margin-bottom: 4px;
}

.desc-dot {
	width: 8px;
	height: 8px;
	background: var(--trk-primary);
	border-radius: 50%;
}

.status-description-box p {
	margin: 0;
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.5;
}

/* LoA Banner Box */
.loa-banner-box {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #ffffff;
	padding: 1.5rem;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 1.5rem;
	box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.loa-banner-text h4 {
	margin: 0 0 4px 0;
	font-size: 1.15rem;
	font-weight: 700;
}

.loa-banner-text p {
	margin: 0;
	font-size: 0.85rem;
	color: #cbd5e1;
}

.btn-loa-download {
	background: #16a34a;
	color: #ffffff;
	text-decoration: none;
	padding: 0.85rem 1.5rem;
	font-weight: 700;
	font-size: 0.95rem;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.btn-loa-download:hover {
	background: #15803d;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(22, 163, 74, 0.45);
}

/* Published Banner Box */
.published-banner-box {
	background: #faf5ff;
	border: 1px solid #e9d5ff;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 1rem;
	font-size: 0.9rem;
	color: #6b21a8;
	font-weight: 600;
}

.btn-view-article {
	background: #9333ea;
	color: #ffffff;
	text-decoration: none;
	padding: 6px 14px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

.btn-view-article:hover {
	background: #7e22ce;
	color: #ffffff;
}

/* Info Box */
.tracker-info-box {
	background: var(--trk-bg);
	border: 1px dashed var(--trk-border);
	border-radius: 8px;
	padding: 1.25rem;
	margin-top: 2rem;
}

.tracker-info-box h4 {
	margin: 0 0 4px 0;
	font-size: 0.95rem;
	color: #334155;
}

.tracker-info-box p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--trk-gray);
	line-height: 1.5;
}
