.tasks.layouts.table .task-actions-menu {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	margin-left: auto;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.tasks.layouts.table .task-list-item:hover .task-actions-menu {
	opacity: 1;
}

.tasks.layouts.table .task-actions-trigger {
	width: 22px;
	height: 22px;
	min-width: 22px;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 4px;
	padding: 0;
	color: var(--text);
	opacity: 0.5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
}

.tasks.layouts.table .task-actions-trigger:hover {
	background-color: rgba(0, 0, 0, 0.06);
	opacity: 1;
}

.tasks.layouts.table .task-actions-trigger .material-symbols-rounded {
	font-size: 18px;
	line-height: 1;
}

.tasks.layouts.table .task-actions-dropdown {
	position: absolute;
	top: calc(100% - 2px);
	right: -4px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 6px 4px 4px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
	z-index: 100;
	min-width: 32px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-2px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
	pointer-events: none;
}

.tasks.layouts.table .task-actions-menu:hover .task-actions-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* ===============================================================
   ACTION BUTTONS (BÊN TRONG DROPDOWN)
   =============================================================== */

.tasks.layouts.table .task-add-btn,
.tasks.layouts.table .task-copy-btn,
.tasks.layouts.table .task-delete-btn {
	width: 28px;
	height: 28px;
	min-width: 28px;
	border: none;
	background: transparent;
	cursor: pointer;
	border-radius: 4px;
	padding: 0;
	color: var(--text);
	opacity: 0.7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.12s ease;
}

.tasks.layouts.table .task-add-btn:hover {
	background-color: rgba(25, 135, 84, 0.1);
	color: #198754;
	opacity: 1;
}

.tasks.layouts.table .task-copy-btn:hover {
	background-color: rgba(13, 110, 253, 0.1);
	color: var(--bs-primary);
	opacity: 1;
}

.tasks.layouts.table .task-delete-btn:hover {
	background-color: rgba(220, 53, 69, 0.1);
	color: #dc3545;
	opacity: 1;
}

.tasks.layouts.table .task-add-btn .material-symbols-rounded,
.tasks.layouts.table .task-copy-btn .material-symbols-rounded,
.tasks.layouts.table .task-delete-btn .material-symbols-rounded {
	font-size: 16px;
	line-height: 1;
}

/* ===============================================================
   TASK TITLE INPUT
   =============================================================== */

.tasks.layouts.table .task-title {
	border: none;
	background: transparent;
	width: 100%;
	color: var(--text);
	outline: none;
	padding: 0;
	line-height: 18px;
	font-size: 0.8125rem;
	transition: font-size 0.2s ease, transform 0.2s ease;
}

.tasks.layouts.table .task-title:hover {
	background-color: var(--bs-secondary);
}

.tasks.layouts.table .task-title-focused {
	font-size: 0.9375rem; 
	transform: scale(1.05);
	background-color: rgba(255, 255, 255, 0.9);
	border: 1px solid #ffffff; 
	border-radius: 3px;
	padding: 2px 4px;
	margin: -2px -4px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5);
}

/* ===============================================================
   MISC ROW STYLES
   =============================================================== */

.tasks.layouts.table .context-row {
	opacity: 0.2;
}

.tasks.layouts.table .task-badge {
	border-radius: 4px;
	white-space: nowrap;
}

.tasks.layouts.table .assignee-avatar,
.tasks.layouts.table .rounded-circle.border.border-white {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid white !important;
}

.tasks.layouts.table .rounded-circle.d-inline-flex {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid white !important;
	font-weight: 500;
	text-align: center;
	line-height: 1;
}

.tasks.layouts.table .assignee-more {
	color: var(--text);
	opacity: 0.7;
}

/* Empty state add button */
.tasks.layouts.table .empty-add-task-btn {
	transition: opacity 0.15s ease;
}

.tasks.layouts.table .empty-add-task-btn:hover {
	opacity: 0.8;
}

/* Loading state for buttons */
.tasks.layouts.table .task-add-btn.loading,
.tasks.layouts.table .task-copy-btn.loading,
.tasks.layouts.table .task-delete-btn.loading,
.tasks.layouts.table .empty-add-task-btn.loading {
	pointer-events: none;
	opacity: 0.6;
	cursor: not-allowed;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.tasks.layouts.table .task-add-btn.loading .material-symbols-rounded,
.tasks.layouts.table .task-copy-btn.loading .material-symbols-rounded {
	animation: spin 1s linear infinite;
}
