/* Task item styling */
.task-item {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 8px;
	padding: 8px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.task-item:hover {
	background-color: var(--bg-secondary);
}

.task-checkbox {
	appearance: none;
	width: 18px;
	height: 18px;
	background-color: var(--bg-primary);
	border: 2px solid var(--border-color);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
}

.task-checkbox:checked {
	background-color: var(--primary);
	border-color: var(--primary);
}

.task-checkbox:checked::after {
	content: '✓';
	font-size: 12px;
	color: white;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.task-text {
	flex: 1;
	font-size: 14px;
	color: var(--text-primary);
}

.task-date {
	font-size: 12px;
	color: var(--text-secondary);
}

.completed .task-text {
	text-decoration: line-through;
	color: var(--text-secondary);
}

/* Task reset timer styles */
.task-remaining-time {
	font-size: 0.8em;
	color: var(--text-secondary);
	margin-left: 30px;
	font-style: italic;
}

.task-remaining-time.expiring-soon {
	color: var(--error);
	animation: pulse 2s infinite;
}

/* Countdown timer with reset time */
.task-remaining-time.with-reset-time {
	display: flex;
	flex-direction: column;
	font-size: 0.75em;
}

.task-remaining-time .next-reset {
	font-size: 0.9em;
	opacity: 0.8;
}

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

/* Recurring task indicator */
.recurring-indicator {
	font-size: 12px;
	color: var(--primary);
	margin-left: 8px;
	display: inline-flex;
	align-items: center;
}

.recurring-indicator i {
	font-size: 14px;
	margin-right: 2px;
}

/* Task states */
.task-item.checked {
	background-color: rgba(76, 175, 80, 0.1);
}

.task-item.task-inactive {
	opacity: 0.6;
	cursor: not-allowed;
}

.task-item.task-clicked {
	transform: scale(0.98);
	box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
	background-color: rgba(30, 46, 128, 0.1);
}

.task-status {
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 10px;
	background-color: var(--text-secondary);
	color: white;
	margin-left: 8px;
}

/* Odyssey card styling */
.odyssey-card {
	padding: 16px;
	border-radius: 12px;
	background-color: var(--card-bg);
	box-shadow: 0 2px 5px rgba(0,0,0,0.05);
	margin-bottom: 16px;
	transition: all 0.3s ease;
}

.odyssey-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.odyssey-progress {
	height: 6px;
	background-color: var(--bg-secondary);
	border-radius: 4px;
	overflow: hidden;
	margin: 12px 0;
}

.odyssey-progress-bar {
	height: 100%;
	background-color: var(--success);
	border-radius: 4px;
}

/* Odyssey view toggle */
.view-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

.view-toggle button {
	background: none;
	border: 1px solid var(--border-color);
	padding: 6px 12px;
	border-radius: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	color: var(--text-primary);
}

.view-toggle button.active {
	background-color: var(--primary);
	color: white;
	border-color: var(--primary);
}

/* Odyssey cards layout */
.odyssey-card-view {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

/* Task click animation */
@keyframes clickEffect {
	0% { transform: scale(1); }
	50% { transform: scale(0.97); }
	100% { transform: scale(1); }
}

.task-click-animation {
	animation: clickEffect 0.3s forwards;
}

/* Reset time indicator */
.reset-time-indicator {
	font-size: 10px;
	color: var(--text-secondary);
	margin-left: 4px;
	vertical-align: middle;
	opacity: 0.8;
}

/* Enhanced tooltip styling */
.tooltip-inner {
	max-width: 300px;
	padding: 10px;
	text-align: left;
	line-height: 1.4;
}

