/* SPDX-License-Identifier: GPL-2.0-or-later */
/* Copyright (C) 2026 Julian Davis (https://xapi.com.au) */

.wpxl-dash-login,
.wpxl-dash-empty {
	padding: 16px 0;
}

.wpxl-dash-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wpxl-dash-item {
	padding: 18px 20px;
	border: 1px solid #d8dee6;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.wpxl-dash-item-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.wpxl-dash-item-title {
	margin: 0;
	font-size: 1.05rem;
}

.wpxl-dash-item-title a {
	text-decoration: none;
	color: inherit;
}

.wpxl-dash-item-title a:hover {
	text-decoration: underline;
}

.wpxl-dash-due {
	font-size: 13px;
	color: #9a6700;
	font-weight: 600;
	white-space: nowrap;
}

.wpxl-dash-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	border: 1px solid currentColor;
}

.wpxl-dash-badge-locked {
	color: #6b7280;
}

.wpxl-dash-badge-available {
	color: #0d6efd;
}

.wpxl-dash-badge-in-progress {
	color: #9a6700;
}

.wpxl-dash-badge-completed {
	color: #198754;
}

.wpxl-dash-progress {
	margin-top: 12px;
}

.wpxl-dash-progressbar {
	height: 10px;
	background: #e9eef5;
	border-radius: 999px;
	overflow: hidden;
}

.wpxl-dash-progressbar-fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #0d6efd 0%, #4dabf7 100%);
	border-radius: 999px;
}

.wpxl-dash-progress-text {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #586574;
}

.wpxl-dash-item-actions {
	margin-top: 14px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.wpxl-dash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	border-radius: .65rem;
	padding: .58rem 1rem;
	border: 1px solid #0d6efd;
	background: #0d6efd;
	color: #fff;
	text-decoration: none;
	transition: .2s ease;
}

.wpxl-dash-btn:hover {
	background: #0b5ed7;
	border-color: #0a58ca;
	color: #fff;
}

.wpxl-dash-btn-outline {
	background: #fff;
	border-color: #c7d4e6;
	color: #1f3b58;
}

.wpxl-dash-btn-outline:hover {
	background: #f5f9ff;
	border-color: #c7d4e6;
	color: #1f3b58;
}
