/* Overdue + Completed: bright header radial animation (collapsed and open) */
#bppt-scope .bppt-root .bppt-task--overdue.bppt-task--completed .bppt-task__header {
    background:
        radial-gradient(120% 90% at 30% 50%, rgba(255, 64, 64, 0.50) 0%, rgba(255, 0, 0, 0.40) 40%, rgba(255, 0, 0, 0.00) 70%),
        radial-gradient(120% 90% at 70% 50%, rgba(255, 64, 64, 0.40) 0%, rgba(255, 0, 0, 0.30) 35%, rgba(255, 0, 0, 0.00) 65%);
    background-repeat: no-repeat;
    background-size: 260% 260%, 260% 260%;
    animation: bpptCompletedOverdueHeaderOrbit 6s ease-in-out infinite;
}

/* Premium shimmer overlay on header */
#bppt-scope .bppt-root .bppt-task--overdue.bppt-task--completed .bppt-task__header::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0) 76%);
    transform: translateX(-120%);
    animation: bpptTaskShimmer 4.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bpptCompletedOverdueHeaderOrbit {
	0%   { background-position: 0% 50%, 100% 50%; }
	25%  { background-position: 50% 0%, 50% 100%; }
	50%  { background-position: 100% 50%, 0% 50%; }
	75%  { background-position: 50% 100%, 50% 0%; }
	100% { background-position: 0% 50%, 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    #bppt-scope .bppt-root .bppt-task--overdue.bppt-task--completed .bppt-task__header {
        animation: none;
        background-position: 50% 50%, 50% 50%;
    }
    #bppt-scope .bppt-root .bppt-task--overdue.bppt-task--completed .bppt-task__header::before {
        animation: none !important;
        transform: none !important;
    }
}
/* BuddyPress User Tasks — front-end UI */
#bppt-scope .bppt-root {
	font: normal normal 400 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #0f172a;
	--bppt-font-size-xs: 12px;
	--bppt-font-size-sm: 13px;
	--bppt-font-size-caption: 13px;
	--bppt-font-size-md: 14px;
	--bppt-font-size-base: 16px;
	--bppt-font-size-lg: 17px;
	--bppt-font-size-xl: 18px;
	--bppt-line-height-tight: 1.45;
	--bppt-line-height-snug: 1.55;
	--bppt-task-admin-btn-size: var(--bppt-font-size-md);
	--bppt-task-bullet-size: var(--bppt-font-size-xl);
	--bppt-task-title-size: var(--bppt-font-size-lg);
	--bppt-task-badge-size: var(--bppt-font-size-sm);
	--bppt-task-header-gap: 12px;
	--bppt-task-header-padding: 12px;
	--bppt-task-details-padding: 0;
	--bppt-task-attachments-padding: 0;
	--bppt-task-actions-padding: 0;
	--bppt-task-detail-size: var(--bppt-font-size-md);
	--bppt-task-attachment-hint-size: var(--bppt-font-size-caption);
	--bppt-task-attachment-remove-size: var(--bppt-font-size-base);
	--bppt-tooltip-size: var(--bppt-font-size-xs);
	--bppt-radius-lg: 12px;
	--bppt-radius-sm: 8px;
	--bppt-blur: 24px;
	--bppt-shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.12);
	--bppt-shadow-hover: 0 30px 60px rgba(15, 23, 42, 0.16);
	--bppt-color-blue: 37, 99, 235;
	--bppt-color-blue-light: 59, 130, 246;
	--bppt-color-amber: 217, 119, 6;
	--bppt-color-amber-light: 245, 158, 11;
	--bppt-color-green: 5, 150, 105;
	--bppt-color-teal: 8, 145, 178;
	--bppt-color-cyan: 6, 182, 212;
	--bppt-color-red: 229, 57, 53;
	--bppt-color-red-deep: 211, 47, 47;
}

#bppt-scope .bppt-root,
#bppt-scope .bppt-root *::before,
#bppt-scope .bppt-root *::after,
#bppt-scope .bppt-root * {
	box-sizing: border-box;
}

#bppt-scope .bppt-root .bppt-panel {
	background: rgba(248, 250, 252, 0.3);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
	padding: 12px;
	margin: 20px 0;
}

#bppt-scope .bppt-root .bppt-admin-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

#bppt-scope .bppt-root .bppt-admin-toolbar__manage {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__review {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-left: auto;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__review.is-disabled {
	opacity: 0.55;
}

#bppt-scope .bppt-root .bppt-admin-toolbar.is-disabled {
	opacity: 0.45;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 18px;
	border: 1px solid #c7cdd2;
	border-radius: 8px;
	background: #fff;
	color: #1d2327;
	font-size: var(--bppt-task-admin-btn-size);
	font-weight: 600;
	line-height: 1.1;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, transform 0.08s ease, color 0.18s ease;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
	box-shadow: none !important;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn--primary {
	border-color: #1a5f94;
	background: #2271b1;
	color: #fff;
	box-shadow: 0 2px 4px rgba(19, 64, 104, 0.16);
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn--ghost {
	background: #f4f7fb;
	color: #1a4673;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn--danger {
	border-color: #dc2626;
	background: #fee2e2;
	color: #b91c1c;
}

@media (pointer: fine) {
	#bppt-scope .bppt-root .bppt-admin-toolbar__btn:hover {
		background: #f1f3f6;
		border-color: #b5bbc1;
		box-shadow: 0 2px 6px rgba(17, 24, 39, 0.14);
	}

	#bppt-scope .bppt-root .bppt-admin-toolbar__btn--primary:hover {
		background: #1b5f8f;
		border-color: #144a72;
		box-shadow: 0 6px 16px rgba(19, 64, 104, 0.18);
		color: #fff;
		transform: translateY(-1px);
	}

	#bppt-scope .bppt-root .bppt-admin-toolbar__btn--ghost:hover {
		background: #e7eef9;
		border-color: #9cb4d4;
		color: #123568;
		transform: translateY(-1px);
	}

	#bppt-scope .bppt-root .bppt-admin-toolbar__btn--danger:hover {
		background: #fecaca;
		border-color: #dc2626;
		color: #991b1b;
		transform: translateY(-1px);
	}
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

#bppt-scope .bppt-root .bppt-admin-toolbar__btn:active {
	transform: scale(0.97);
	box-shadow: inset 0 1px 2px rgba(17, 24, 39, 0.18);
}

#bppt-scope .bppt-root .bppt-footer {
	max-width: none;
	margin: 16px 0 10px;
	padding: 10px;
	border-radius: 8px;
	background: #f6f7f9;
	color: #555;
	font-size: var(--bppt-font-size-xs);
}

/* Task cards */
#bppt-scope .bppt-root .bppt-task {
	margin: 20px 0;
	position: relative;
}

#bppt-scope .bppt-root .bppt-task__card {
	position: relative;
	border-radius: 12px;
	background: transparent;
	box-shadow: none;
	transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
	overflow: hidden;
}

#bppt-scope .bppt-root .bppt-task__card:hover,
#bppt-scope .bppt-root .bppt-task--open .bppt-task__card {
	transform: translateY(-2px);
}

#bppt-scope .bppt-root .bppt-task--standard .bppt-task__card {
	background: linear-gradient(135deg, rgba(241, 245, 249, 0.60), rgba(255, 255, 255, 0.50) 50%, rgba(248, 250, 252, 0.60));
	border: 1px solid rgba(203, 213, 225, 0.5);
	border-left: 4px solid rgb(148, 163, 184);
	box-shadow: 0 8px 32px rgba(148, 163, 184, 0.15);
}

#bppt-scope .bppt-root .bppt-task--standard .bppt-task__card:hover {
	background: linear-gradient(135deg, rgba(241, 245, 249, 0.56), rgba(255, 255, 255, 0.48) 50%, rgba(248, 250, 252, 0.56));
	border-color: rgba(203, 213, 225, 0.5);
	box-shadow: 0 9px 34px rgba(148, 163, 184, 0.18);
}

#bppt-scope .bppt-root .bppt-task--review .bppt-task__card,
#bppt-scope .bppt-root .bppt-task--awaiting .bppt-task__card {
	background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(245, 158, 11, 0.20));
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 32px rgba(217, 119, 6, 0.18);
}

#bppt-scope .bppt-root .bppt-task--review .bppt-task__card:hover,
#bppt-scope .bppt-root .bppt-task--awaiting .bppt-task__card:hover {
	background: linear-gradient(135deg, rgba(217, 119, 6, 0.23), rgba(245, 158, 11, 0.18));
	box-shadow: 0 9px 34px rgba(217, 119, 6, 0.20);
}

#bppt-scope .bppt-root .bppt-task--completed .bppt-task__card {
	background: linear-gradient(135deg, rgba(22, 163, 74, 0.90) 0%, rgba(34, 197, 94, 0.85) 55%, rgba(74, 222, 128, 0.80) 100%);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 32px rgba(16, 185, 129, 0.24);
	background-size: 240% 240%;
	animation: bpptCompletedFlow 16s linear infinite alternate;
}

#bppt-scope .bppt-root .bppt-task--completed .bppt-task__card:hover {
	background: linear-gradient(135deg, rgba(22, 163, 74, 0.88) 0%, rgba(34, 197, 94, 0.83) 55%, rgba(74, 222, 128, 0.78) 100%);
	box-shadow: 0 9px 34px rgba(16, 185, 129, 0.26);
	background-size: 240% 240%;
}

#bppt-scope .bppt-root .bppt-task--completed .bppt-task__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.35) 48%, rgba(255, 255, 255, 0) 76%);
    transform: translateX(-120%);
    animation: bpptTaskShimmer 5.5s ease-in-out infinite;
    pointer-events: none;
}

#bppt-scope .bppt-root .bppt-task--overdue .bppt-task__card {
	background: linear-gradient(135deg, rgba(229, 57, 53, 0.50), rgba(211, 47, 47, 0.45) 50%, rgba(198, 40, 40, 0.40));
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 8px 32px rgba(229, 57, 53, 0.32);
}

#bppt-scope .bppt-root .bppt-task--overdue .bppt-task__card:hover {
	background: linear-gradient(135deg, rgba(229, 57, 53, 0.45), rgba(211, 47, 47, 0.40) 50%, rgba(198, 40, 40, 0.35));
	box-shadow: 0 12px 40px rgba(229, 57, 53, 0.26);
}



#bppt-scope .bppt-root .bppt-task__header {
	display: flex;
	align-items: flex-start;
	gap: var(--bppt-task-header-gap);
	padding: var(--bppt-task-header-padding);
	position: relative;
	z-index: 10;
}

#bppt-scope .bppt-root .bppt-task__header-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
}

#bppt-scope .bppt-root .bppt-task__trigger {
	flex: 1 1 auto;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	border: none;
	background: transparent;
	text-transform: none;
	color: inherit;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	margin: 0;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
	min-height: 75px; /* 75px target height */
}

#bppt-scope .bppt-root .bppt-task__trigger:focus-visible {
	outline: 2px solid rgb(var(--bppt-color-blue-light));
	outline-offset: 4px;
}

#bppt-scope .bppt-root .bppt-task__bullet {
	color: rgb(var(--bppt-color-cyan, 6, 182, 212));
	font-size: var(--bppt-task-bullet-size);
	line-height: 1;
	margin-top: 2px;
	flex-shrink: 0;
}

#bppt-scope .bppt-root .bppt-task--standard .bppt-task__bullet {
	color: rgb(148, 163, 184);
}

#bppt-scope .bppt-root .bppt-task--review .bppt-task__bullet {
	color: rgb(217, 119, 6);
}

#bppt-scope .bppt-root .bppt-task--completed .bppt-task__bullet {
	color: rgb(13, 148, 136);
}

#bppt-scope .bppt-root .bppt-task--overdue .bppt-task__bullet {
	color: rgb(220, 38, 38);
}

#bppt-scope .bppt-root .bppt-task__body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

#bppt-scope .bppt-root .bppt-task__title-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 6px;
	min-width: 0;
}

#bppt-scope .bppt-root .bppt-task__title {
	font-size: var(--bppt-task-title-size);
	font-weight: 600;
	color: #0f172a;
	line-height: var(--bppt-line-height-tight);
	letter-spacing: -0.01em;
	flex: 1;
	min-width: 0;
}

#bppt-scope .bppt-root .bppt-task__badges {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	margin-top: 6px;
}

#bppt-scope .bppt-root .bppt-task__chevron {
	width: 16px;
	height: 16px;
	color: rgba(148, 163, 184, 0.88);
	flex-shrink: 0;
	transition: transform 0.25s ease, color 0.25s ease;
}

#bppt-scope .bppt-root .bppt-task__trigger:hover .bppt-task__chevron,
#bppt-scope .bppt-root .bppt-task__trigger:focus-visible .bppt-task__chevron,
#bppt-scope .bppt-root .bppt-task__header:hover .bppt-task__chevron,
#bppt-scope .bppt-root .bppt-task__header:focus-within .bppt-task__chevron {
	color: rgb(var(--bppt-color-blue-light, 59, 130, 246));
}

#bppt-scope .bppt-root .bppt-task--open .bppt-task__chevron {
	transform: rotate(180deg);
}

#bppt-scope .bppt-root .bppt-task__control {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    position: relative;
}

#bppt-scope .bppt-root .bppt-task__control-toggle {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: rgb(var(--bppt-color-blue));
    display: inline-block;
    appearance: auto;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    border-radius: 6px;
    transition: transform 0.16s ease, box-shadow 0.2s ease;
}

#bppt-scope .bppt-root .bppt-task__control-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(var(--bppt-color-blue), 0.18);
}

#bppt-scope .bppt-root .bppt-task__control-toggle:active {
    transform: scale(0.95);
}

#bppt-scope .bppt-root .bppt-task__control-toggle:focus-visible {
    outline: 2px solid rgb(var(--bppt-color-blue-light));
    outline-offset: 2px;
}

#bppt-scope .bppt-root .bppt-task__control-toggle.is-checked-pop {
    animation: bpptCheckboxPop 0.22s ease-out forwards;
}

#bppt-scope .bppt-root .bppt-task__control.is-checking {
    pointer-events: none;
}

#bppt-scope .bppt-root .bppt-task__control.is-checking .bppt-task__control-toggle {
    opacity: 0.65;
    transform: scale(0.85);
}

#bppt-scope .bppt-root .bppt-task__control-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

#bppt-scope .bppt-root .bppt-task__control--inline .bppt-task__control-text {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

#bppt-scope .bppt-root .bppt-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-height: 24px;
	padding: 5px 12px;
	font-size: var(--bppt-task-badge-size);
	font-weight: 600;
	line-height: 1;
	border-radius: 999px;
	border: 1px solid var(--bppt-badge-border, transparent);
	background: var(--bppt-badge-bg, transparent);
    color: var(--bppt-badge-color, #0f172a);
}

#bppt-scope .bppt-root .bppt-badge.today,
#bppt-scope .bppt-root .bppt-badge.bppt-badge--today,
#bppt-scope .bppt-root .bppt-badge.bppt-badge--due {
    background: rgb(219, 234, 254);
    color: rgb(30, 64, 175);
    border-color: rgb(191, 219, 254);
}

#bppt-scope .bppt-root .bppt-badge.bppt-badge--review {
    background: linear-gradient(to right, rgba(254, 243, 199, 0.95), rgba(253, 230, 138, 0.9));
    color: rgb(146, 64, 14);
    border-color: rgb(251, 191, 36);
}

#bppt-scope .bppt-root .bppt-badge.bppt-badge--warning {
    background: rgb(255, 247, 222);
    color: rgb(146, 64, 14);
    border-color: rgb(253, 230, 138);
}

#bppt-scope .bppt-root .bppt-badge.bppt-badge--critical {
	background: rgb(255, 234, 234);
	color: rgb(153, 27, 27);
	border-color: rgb(252, 165, 165);
}

#bppt-scope .bppt-root .bppt-badge.bppt-badge--overdue,
#bppt-scope .bppt-root .bppt-badge.overdue {
	background: linear-gradient(to right, rgb(254, 226, 226), rgb(254, 237, 220));
	color: rgb(153, 27, 27);
	border-color: rgb(252, 165, 165);
}

#bppt-scope .bppt-root .bppt-badge.bppt-badge--completed {
	background: linear-gradient(to right, rgb(209, 250, 229), rgb(204, 251, 241));
	color: rgb(6, 95, 70);
	border-color: rgb(110, 231, 183);
}

/* Completed badge on red overdue header: split‑complement teal for harmony */
#bppt-scope .bppt-root .bppt-task--overdue .bppt-badge.bppt-badge--completed {
	background: linear-gradient(to right, #fee2e2, #ffe4e6); /* soft rose-red blend */
	color: #7f1d1d;        /* deep warm red-brown for legibility */
	border-color: #fecaca; /* light rose border */
}

#bppt-scope .bppt-root .bppt-task__panel {
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	border-top: 1px solid rgba(226, 232, 240, 0.5);
	border-radius: 0 0 12px 12px;
}

#bppt-scope .bppt-root .bppt-task__panel-inner {
	padding: 12px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

#bppt-scope .bppt-root .bppt-task__panel[hidden] {
    display: none;
}

#bppt-scope .bppt-root .bppt-task__details {
    padding: var(--bppt-task-details-padding);
    font-size: var(--bppt-task-detail-size);
    color: rgba(51, 65, 85, 0.92);
    line-height: var(--bppt-line-height-snug);
}

#bppt-scope .bppt-root .bppt-task__details p {
	padding-top: 8px;
	color: inherit;
}

 #bppt-scope .bppt-root .bppt-task__attachments-block {
    margin: 0;
    padding: 0;
}

#bppt-scope .bppt-root .bppt-task__attachments {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 12px;
    position: relative;
    min-height: 110px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 12px;
    padding: 12px;
    background: rgba(237, 242, 247, 0.72);
}

#bppt-scope .bppt-root .bppt-task__attachments.is-empty::before {
    content: attr(data-empty-text);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(100, 116, 139, 0.85);
    font-size: var(--bppt-task-attachment-hint-size);
    text-align: center;
    max-width: 180px;
}

#bppt-scope .bppt-root .bppt-task__attachment {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(203, 213, 225, 0.7);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#bppt-scope .bppt-root .bppt-task__attachment:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.16);
}

#bppt-scope .bppt-root .bppt-task__attachment-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    color: #fff;
    font-size: var(--bppt-task-attachment-remove-size);
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

#bppt-scope .bppt-root .bppt-task__attachment-remove:hover {
    background: rgba(220, 38, 38, 0.85);
    transform: scale(1.05);
}

 #bppt-scope .bppt-root .bppt-task__actions {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    gap: 8px;
}

#bppt-scope .bppt-root .bppt-task__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border-radius: var(--bppt-radius-sm);
	font-weight: 600;
	border: none;
	text-transform: none;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background: rgb(var(--bppt-color-blue));
	color: #fff;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}

#bppt-scope .bppt-root .bppt-task__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(var(--bppt-color-blue), 0.22);
}

#bppt-scope .bppt-root .bppt-task__btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

#bppt-scope .bppt-root .bppt-task__meta {
	margin: 0;
	padding: 4px 0;
	font-size: var(--bppt-task-meta-size, 12px);
	color: rgba(51, 65, 85, 0.75);
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	column-gap: 12px;
}

#bppt-scope .bppt-root .bppt-task__meta-item {
	font-weight: 600;
}

#bppt-scope .bppt-root .bppt-task__meta-value {
	font-weight: 500;
	min-width: 0;
	white-space: normal;
}

#bppt-scope .bppt-root .bppt-task__meta-date {
	display: flex;
	gap: 4px;
	align-items: baseline;
	min-width: 0;
	flex: 1;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
}

#bppt-scope .bppt-root .bppt-task[data-meta-status="submitted"] .bppt-task__meta-value,
#bppt-scope .bppt-root .bppt-task[data-meta-status="completed"] .bppt-task__meta-value {
	font-weight: 600;
}

#bppt-scope .bppt-root .bppt-task__meta-action {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	margin-left: auto;
}

#bppt-scope .bppt-root .bppt-task__control--inline .bppt-task__control-text {
	font-weight: 600;
	font-size: 12px;
	text-transform: none;
}

#bppt-scope .bppt-root .bppt-task__meta-action .bppt-task__control-toggle {
	margin-right: 4px;
}

@media (max-width: 640px) {
	#bppt-scope .bppt-root .bppt-task__meta {
		column-gap: 8px;
		flex-wrap: nowrap;
		row-gap: 6px;
	}

	#bppt-scope .bppt-root .bppt-task__meta-date {
		flex-wrap: wrap;
		overflow: visible;
		text-overflow: clip;
	}

}

.bppt-toast {
	position: fixed;
	left: 50%;
	top: 30%;
	transform: translate(-50%, -50%) scale(0.92);
	background: rgba(15, 23, 42, 0.92);
	color: #fff;
	padding: 14px 18px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 9999;
}

.bppt-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

@keyframes bpptCheckboxPop {
    0% { transform: scale(0.7); }
    55% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

@keyframes bpptTaskShimmer {
    0% { transform: translateX(-120%); opacity: 0; }
    45% { transform: translateX(120%); opacity: 0.75; }
    100% { transform: translateX(120%); opacity: 0; }
}



@keyframes bpptCompletedFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    #bppt-scope .bppt-root .bppt-task--completed .bppt-task__card,
	#bppt-scope .bppt-root .bppt-task--completed .bppt-task__card::before {
        animation: none !important;
        background-position: 0% 50% !important;
    }
    #bppt-scope .bppt-root .bppt-task__card {
        transition: none !important;
    }
}

#bppt-scope .bppt-root .bppt-badge__icon {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}
/* AJAX state */
#bppt-scope .bppt-root .bppt-task--ajax,
#bppt-scope .bppt-root .bppt-task--ajax * {
	cursor: progress !important;
}

#bppt-scope .bppt-root .bppt-badge.bppt-loading {
	position: relative;
	padding-left: 22px;
	background: #eef2f7;
	color: #49607a;
	opacity: 0;
	transform: translateY(-4px);
	animation: bpptFadeInUp 0.15s ease-out forwards;
}

#bppt-scope .bppt-root .bppt-badge.bppt-loading::before {
	position: absolute;
	top: 50%;
	left: 6px;
	width: 12px;
	height: 12px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	transform: translateY(-50%);
	animation: bppt-spin 0.8s linear infinite;
	content: "";
}

@keyframes bppt-spin {
	to { transform: translateY(-50%) rotate(360deg); }
}

@keyframes bpptFadeInUp {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}

.bppt-badge-insert {
	opacity: 0;
	transform: scale(0.95);
	animation: bpptBadgeInsert 0.2s ease-out forwards;
}

.bppt-badge-remove {
	opacity: 1;
	transform: scale(1);
	animation: bpptBadgeRemove 0.15s ease-in forwards;
}

@keyframes bpptBadgeInsert {
	to { opacity: 1; transform: scale(1); }
}

@keyframes bpptBadgeRemove {
	to { opacity: 0; transform: scale(0.95); }
}

/* Tooltip */
.bppt-tooltip {
	position: fixed;
	z-index: 1000001;
	padding: 8px 10px;
	border-radius: 4px;
	background: #333;
	color: #fff;
	font-size: var(--bppt-tooltip-size);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.18s ease-out, transform 0.18s ease-out;
	pointer-events: none;
}

.bppt-tooltip.is-visible {
	opacity: 0.95;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	#bppt-scope .bppt-root *, #bppt-scope .bppt-root *::before, #bppt-scope .bppt-root *::after {
		animation: none !important;
		transition: none !important;
	}

	#bppt-scope .bppt-root .bppt-loading::before {
		animation: none;
		border-top-color: currentColor;
		opacity: 0.5;
	}

	#bppt-scope .bppt-root .bppt-tick::after {
		display: none;
	}

	#bppt-scope .bppt-root *:focus {
		outline: 2px solid #2271b1;
		outline-offset: 2px;
	}
}
#bppt-scope .bppt-root button,
#bppt-scope .bppt-root input,
#bppt-scope .bppt-root select,
#bppt-scope .bppt-root textarea {
	font: inherit;
	color: inherit;
}
#bppt-scope .bppt-root .bppt-task__submit-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 0;
    background: none;
    border: none;
    transition: none;
}

#bppt-scope .bppt-root .bppt-task__submit-chip {
    display: none;
    font-weight: 600;
    font-size: 12px;
    color: rgb(var(--bppt-color-blue));
    letter-spacing: 0.02em;
    position: relative;
    padding-right: 12px;
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-submitting,
#bppt-scope .bppt-root .bppt-task__submit-control.is-complete {
    padding: 0;
    gap: 4px;
    border-radius: 0;
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-submitting .bppt-task__control {
    transform: scale(0);
    opacity: 0;
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-submitting .bppt-task__submit-chip {
    display: inline-flex;
    align-items: center;
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-submitting .bppt-task__submit-chip::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    text-align: left;
    animation: bpptSubmittingDots 1.2s steps(3, end) infinite;
    color: inherit;
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-complete {
    background: none;
    border: none;
    color: rgb(6, 95, 70);
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-complete .bppt-task__submit-chip {
    display: inline-flex;
    color: inherit;
    animation: none;
}

#bppt-scope .bppt-root .bppt-task__submit-control.is-complete .bppt-task__control {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

@keyframes bpptSubmittingDots {
    0% { content: ''; }
    33% { content: '.'; }
    66% { content: '..'; }
    100% { content: '...'; }
}
