/* Components CSS - Cards, buttons, forms, modals */

/* ===== CARDS ===== */
.card {
	background: var(--color-bg-card);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow: var(--shadow-md);
	transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
	box-shadow: var(--shadow-lg);
}

.card-gradient {
	background: var(--gradient-card);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Stat card */
.stat-card {
	background: var(--color-bg-card);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	text-align: center;
	box-shadow: var(--shadow-md);
}

.stat-card-icon {
	width: 40px;
	height: 40px;
	margin: 0 auto var(--space-sm);
	color: var(--color-primary);
}

.stat-card-value {
	font-size: var(--font-size-2xl);
	font-weight: 700;
	color: var(--color-text);
	line-height: 1.2;
}

.stat-card-label {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
	margin-top: var(--space-xs);
}

/* Colored stat cards */
.stat-card.primary {
	background: var(--gradient-primary);
	color: white;
}

.stat-card.primary .stat-card-value,
.stat-card.primary .stat-card-label,
.stat-card.primary .stat-card-icon {
	color: white;
}

.stat-card.accent {
	background: var(--gradient-accent);
	color: white;
}

.stat-card.accent .stat-card-value,
.stat-card.accent .stat-card-label,
.stat-card.accent .stat-card-icon {
	color: white;
}

/* ===== CIRCULAR PROGRESS ===== */
.progress-ring-container {
	position: relative;
	width: 200px;
	height: 200px;
	margin: 0 auto;
}

.progress-ring {
	transform: rotate(-90deg);
	width: 100%;
	height: 100%;
}

.progress-ring-bg {
	fill: none;
	stroke: var(--color-border);
	stroke-width: 12;
}

.progress-ring-fill {
	fill: none;
	stroke: url(#progress-gradient);
	stroke-width: 12;
	stroke-linecap: round;
	transition: stroke-dashoffset var(--transition-slow);
}

.progress-ring-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
}

.progress-ring-value {
	font-size: var(--font-size-4xl);
	font-weight: 800;
	color: var(--color-text);
	display: block;
	letter-spacing: -0.02em;
	animation: value_pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-ring-label {
	font-size: var(--font-size-xs);
	font-weight: 600;
	color: var(--color-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.8;
}

@keyframes value_pop {
	from {
		opacity: 0;
		transform: scale(0.5);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Staggered card animation */
.stat-card {
	background: var(--color-bg-card);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	text-align: center;
	box-shadow: var(--shadow-md);
	animation: card_fade_in 0.5s ease-out both;
}

@keyframes card_fade_in {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ===== BUTTONS ===== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-sm);
	padding: var(--space-sm) var(--space-lg);
	font-size: var(--font-size-base);
	font-weight: 500;
	border-radius: var(--radius-md);
	transition: all var(--transition-fast);
	cursor: pointer;
	border: none;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-primary {
	background: var(--gradient-primary);
	color: white;
	box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
	background: var(--color-bg-elevated);
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.btn-secondary:hover:not(:disabled) {
	background: var(--color-border);
}

.btn-ghost {
	background: transparent;
	color: var(--color-text-secondary);
}

.btn-ghost:hover:not(:disabled) {
	background: var(--color-bg-elevated);
	color: var(--color-text);
}

.btn-danger {
	background: var(--color-danger);
	color: white;
}

.btn-danger:hover:not(:disabled) {
	opacity: 0.9;
}

.btn-lg {
	padding: var(--space-md) var(--space-xl);
	font-size: var(--font-size-lg);
}

.btn-sm {
	padding: var(--space-xs) var(--space-md);
	font-size: var(--font-size-sm);
}

.btn-block {
	width: 100%;
}

.btn-icon {
	width: 40px;
	height: 40px;
	padding: 0;
	border-radius: var(--radius-full);
}

/* Floating action button - now inline in nav */
.fab {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-full);
	background: var(--gradient-primary);
	color: white;
	box-shadow: var(--shadow-lg), var(--shadow-glow);
	transition: all var(--transition-fast);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: -20px;
	position: relative;
	animation: fab_pulse 3s infinite;
}

.fab:hover {
	transform: scale(1.1) translateY(-2px);
	box-shadow: 0 15px 25px -5px rgba(99, 102, 241, 0.5);
}

.fab:active {
	transform: scale(0.95);
}

@keyframes fab_pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
	}

	70% {
		box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
	}
}

.fab svg {
	width: 24px;
	height: 24px;
}

/* ===== FORMS ===== */
.form-group {
	margin-bottom: var(--space-md);
}

.form-label {
	display: block;
	font-size: var(--font-size-sm);
	font-weight: 500;
	color: var(--color-text-secondary);
	margin-bottom: var(--space-sm);
}

.form-input {
	width: 100%;
	padding: var(--space-md);
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	font-size: var(--font-size-base);
	color: var(--color-text);
	transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
	color: var(--color-text-muted);
}

/* Number input spinner buttons - hide native spinners */
.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.form-input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* Custom number input wrapper with themed buttons */
.number-input-wrapper {
	display: flex;
	align-items: stretch;
	gap: 0;
}

.number-input-wrapper .form-input {
	flex: 1;
	border-radius: 0;
	text-align: center;
	min-width: 0;
}

.number-input-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	background: var(--gradient-primary);
	border: none;
	color: white;
	font-size: var(--font-size-xl);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-fast);
	user-select: none;
}

.number-input-btn:first-child {
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.number-input-btn:last-child {
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.number-input-btn:hover {
	filter: brightness(1.1);
}

.number-input-btn:active {
	filter: brightness(0.9);
	transform: scale(0.95);
}

.number-input-btn svg {
	width: 20px;
	height: 20px;
}

.form-input-lg {
	padding: var(--space-lg);
	font-size: var(--font-size-2xl);
	font-weight: 600;
	text-align: center;
}

.form-hint {
	font-size: var(--font-size-xs);
	color: var(--color-text-muted);
	margin-top: var(--space-xs);
}

/* Password input with toggle */
.password-input-container {
	display: flex;
	gap: var(--space-sm);
}

.password-input-container .form-input {
	flex: 1;
}

.password-toggle-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	background: var(--color-bg-elevated);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	color: var(--color-text-muted);
	cursor: pointer;
	transition: all var(--transition-fast);
}

.password-toggle-btn:hover {
	background: var(--color-border);
	color: var(--color-text);
}

.password-toggle-btn svg {
	width: 18px;
	height: 18px;
}

/* Toggle switch */
.toggle {
	position: relative;
	width: 50px;
	height: 28px;
	cursor: pointer;
}

.toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-slider {
	position: absolute;
	inset: 0;
	background: var(--color-border);
	border-radius: var(--radius-full);
	transition: background var(--transition-fast);
}

.toggle-slider::before {
	content: "";
	position: absolute;
	width: 22px;
	height: 22px;
	left: 3px;
	bottom: 3px;
	background: white;
	border-radius: var(--radius-full);
	transition: transform var(--transition-fast);
	box-shadow: var(--shadow-sm);
}

.toggle input:checked+.toggle-slider {
	background: var(--color-primary);
}

.toggle input:checked+.toggle-slider::before {
	transform: translateX(22px);
}

/* ===== MODALS ===== */
.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-modal);
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-base);
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal {
	background: var(--color-bg-card);
	border-radius: var(--radius-xl);
	padding: var(--space-xl);
	width: 100%;
	max-width: 550px;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.9) translateY(20px);
	transition: all var(--transition-base);
	box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal {
	transform: scale(1) translateY(0);
}

.modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2px;
}

.modal-title {
	font-size: var(--font-size-2xl);
	font-weight: 700;
	letter-spacing: -0.01em;
}

.modal-close {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-full);
	color: var(--color-text-secondary);
	transition: all var(--transition-fast);
	border: 1px solid transparent;
}

.modal-close:hover {
	background: var(--color-bg-elevated);
	border-color: var(--color-border);
	color: var(--color-text);
}

.modal-body {
	margin-bottom: var(--space-xl);
}

.modal-footer {
	display: flex;
	gap: var(--space-md);
}

.modal-footer .btn {
	flex: 1;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
	position: fixed;
	bottom: var(--space-xl);
	right: var(--space-xl);
	z-index: var(--z-toast);
	display: flex;
	flex-direction: column;
	gap: var(--space-sm);
}

.toast {
	background: var(--color-bg-card);
	color: var(--color-text);
	padding: var(--space-md) var(--space-xl);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xl);
	display: flex;
	align-items: center;
	gap: var(--space-md);
	min-width: 300px;
	border: 1px solid var(--color-border);
	animation: toast_slide_in 0.3s ease-out;
}

@keyframes toast_slide_in {
	from {
		opacity: 0;
		transform: translateX(20px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.toast.success {
	border-left: 4px solid var(--color-accent);
}

.toast.error {
	border-left: 4px solid var(--color-danger);
}

.toast.warning {
	border-left: 4px solid var(--color-warning);
}

.toast-action {
	color: var(--color-primary);
	font-weight: 500;
	cursor: pointer;
	margin-left: auto;
}

.toast-action:hover {
	text-decoration: underline;
}

/* ===== BADGES ===== */
.badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-xs) var(--space-sm);
	font-size: var(--font-size-xs);
	font-weight: 500;
	border-radius: var(--radius-full);
	background: var(--color-bg-elevated);
	color: var(--color-text-secondary);
}

.badge-primary {
	background: var(--color-primary);
	color: white;
}

.badge-accent {
	background: var(--color-accent);
	color: white;
}

/* Navigation Badge (Notification Bubble) */
.nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background-color: var(--color-danger);
	color: white;
	font-size: 11px;
	font-weight: 700;
	margin-left: auto;
	line-height: 1;
}

.nav-badge:empty {
	display: none;
}

/* Award badge */
.award-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-xs);
	padding: var(--space-md);
	text-align: center;
	position: relative;
	cursor: pointer;
	transition: transform var(--transition-fast);
}

.award-badge:hover {
	transform: scale(1.05);
	z-index: 10;
}

.award-badge:focus {
	outline: none;
}

.award-badge-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-full);
	background: var(--gradient-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: var(--font-size-xl);
	transition: box-shadow var(--transition-fast);
}

.award-badge:hover .award-badge-icon {
	box-shadow: var(--shadow-glow);
}

.award-badge.locked .award-badge-icon {
	background: var(--color-border);
	opacity: 0.5;
}

.award-badge-title {
	font-size: var(--font-size-xs);
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.2;
}

.award-badge.locked .award-badge-title {
	color: var(--color-text-muted);
}

.award-badge-date {
	font-size: var(--font-size-xs);
	color: var(--color-accent);
	font-weight: 600;
}

/* New award highlight */
.award-badge.new {
	animation: pulse-glow 2s ease-in-out infinite;
}

.award-badge.new .award-badge-icon {
	box-shadow: 0 0 20px var(--color-accent);
}

.award-badge.new .award-badge-date {
	color: var(--color-warning);
	animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse-glow {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

@keyframes pulse {

	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.5;
	}
}

/* Generic Tooltip Utility */
[data-tooltip] {
	position: relative;
	cursor: help;
}

[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	background: var(--color-bg-elevated);
	color: var(--color-text);
	padding: var(--space-sm) var(--space-md);
	border-radius: var(--radius-sm);
	font-size: 11px;
	white-space: normal;
	width: max-content;
	max-width: 180px;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-fast);
	z-index: 100;
	box-shadow: var(--shadow-md);
	border: 1px solid var(--color-border);
	line-height: 1.4;
	pointer-events: none;
	text-align: center;
}

/* Tooltip arrow */
[data-tooltip]::before {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(0);
	border-width: 6px 6px 0 6px;
	border-style: solid;
	border-color: var(--color-bg-elevated) transparent transparent transparent;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-fast);
	z-index: 101;
	pointer-events: none;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus::after,
[data-tooltip]:hover::before,
[data-tooltip]:focus::before {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(-10px);
}

/* Specific adjustment for award badges which are larger */
.award-badge[data-tooltip]::after {
	padding: var(--space-md) var(--space-lg);
	border-radius: var(--radius-md);
	font-size: var(--font-size-sm);
	width: 200px;
}

/* Info Icon in form labels */
.info-icon {
	display: inline-flex;
	align-items: center;
	margin-left: var(--space-xs);
	color: var(--color-text-muted);
	cursor: help;
	vertical-align: middle;
	padding: 2px;
}

.info-icon:hover {
	color: var(--color-primary);
}

.info-icon svg {
	width: 14px;
	height: 14px;
}

/* Award progress bar */
/* Award radial progress */
.award-icon-container {
	position: relative;
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: var(--space-xs);
	z-index: 1;
}

.award-radial-progress {
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	background: conic-gradient(var(--color-accent) calc(var(--progress) * 1%),
			rgba(0, 0, 0, 0.08) 0);
	-webkit-mask: radial-gradient(transparent 62%, black 64%);
	mask: radial-gradient(transparent 62%, black 64%);
	transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

[data-theme="dark"] .award-radial-progress {
	background: conic-gradient(var(--color-accent) calc(var(--progress) * 1%),
			rgba(255, 255, 255, 0.12) 0);
}

.award-progress-text {
	position: absolute;
	bottom: -4px;
	right: -4px;
	font-size: 0.65rem;
	background: var(--color-bg-card);
	color: var(--color-accent);
	padding: 1px 4px;
	border-radius: 4px;
	font-weight: 700;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-sm);
	z-index: 2;
}

/* Award grid layout */
.award-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: var(--space-md);
}

/* ===== LISTS ===== */
.list-item {
	display: flex;
	align-items: center;
	gap: var(--space-md);
	padding: var(--space-md);
	background: var(--color-bg-card);
	border-radius: var(--radius-md);
	margin-bottom: var(--space-sm);
	transition: background var(--transition-fast);
}

.list-item:hover {
	background: var(--color-bg-elevated);
}

.list-item-icon {
	width: 40px;
	height: 40px;
	border-radius: var(--radius-md);
	background: var(--color-bg-elevated);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-primary);
}

.list-item-content {
	flex: 1;
	min-width: 0;
}

.list-item-title {
	font-weight: 500;
	color: var(--color-text);
}

.list-item-subtitle {
	font-size: var(--font-size-sm);
	color: var(--color-text-secondary);
}

.list-item-value {
	font-weight: 600;
	color: var(--color-text);
}

/* ===== CHARTS ===== */
.chart-container {
	background: var(--color-bg-card);
	border-radius: var(--radius-lg);
	padding: var(--space-lg);
	box-shadow: var(--shadow-md);
}

.chart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: var(--space-xl);
	margin-bottom: var(--space-md);
}

.chart-title {
	font-size: var(--font-size-lg);
	font-weight: 700;
	color: var(--color-text);
}

.chart-canvas {
	width: 100%;
	height: 200px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
	text-align: center;
	padding: var(--space-2xl);
	color: var(--color-text-secondary);
}

.empty-state-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--space-lg);
	opacity: 0.5;
}

.empty-state-title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--color-text);
	margin-bottom: var(--space-sm);
}

.empty-state-desc {
	font-size: var(--font-size-sm);
	margin-bottom: var(--space-lg);
}

/* ===== LOADING ===== */
.spinner {
	width: 24px;
	height: 24px;
	border: 2px solid var(--color-border);
	border-top-color: var(--color-primary);
	border-radius: var(--radius-full);
	animation: spin 0.8s linear infinite;
}

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

/* ===== DIVIDER ===== */
.divider {
	height: 1px;
	background: var(--color-border);
	margin: var(--space-lg) 0;
}

/* ===== HISTORY FILTERS ===== */
.filter-bar-container {
	margin-bottom: var(--space-xl);
	padding: 4px;
	background: var(--color-bg-elevated);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.filter-bar {
	display: flex;
	position: relative;
	gap: 4px;
	z-index: 1;
}

.filter-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-sm) var(--space-xs);
	border-radius: var(--radius-lg);
	color: var(--color-text-secondary);
	font-size: var(--font-size-xs);
	font-weight: 600;
	transition: all var(--transition-base);
	border: none;
	background: transparent;
	gap: 4px;
	z-index: 2;
}

.filter-btn-icon {
	opacity: 0.7;
	transition: transform var(--transition-fast);
}

.filter-btn-icon svg {
	width: 20px;
	height: 20px;
}

.filter-btn-label {
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.filter-btn:hover {
	color: var(--color-text);
}

.filter-btn:hover .filter-btn-icon {
	transform: translateY(-2px);
	opacity: 1;
}

.filter-btn.active {
	color: white;
}

.filter-btn.active .filter-btn-icon {
	opacity: 1;
}

/* Sliding Indicator Logic */
.filter-bar:has(.filter-btn[data-filter="7d"].active) .filter-indicator {
	transform: translateX(0%);
}

.filter-bar:has(.filter-btn[data-filter="30d"].active) .filter-indicator {
	transform: translateX(calc(100% + 4px));
}

.filter-bar:has(.filter-btn[data-filter="all"].active) .filter-indicator {
	transform: translateX(calc(200% + 8px));
}

.filter-indicator {
	position: absolute;
	top: 0;
	left: 0;
	width: calc(33.333% - 2.66px);
	height: 100%;
	background: var(--gradient-primary);
	border-radius: var(--radius-lg);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
	z-index: 1;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.history-group-header {
	font-size: var(--font-size-xs);
	font-weight: 700;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-top: var(--space-xl);
	padding: var(--space-lg) 0 var(--space-sm);
	display: flex;
	align-items: center;
	gap: var(--space-sm);
}

.history-group-header::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--color-border);
	opacity: 0.5;
}

/* ===== CALENDAR PICKER ===== */
.calendar-picker {
	background: var(--color-bg-elevated);
	border-radius: var(--radius-lg);
	border: 1px solid var(--color-border);
	padding: var(--space-md);
	width: 100%;
}

.calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-md);
}

.calendar-month {
	font-weight: 600;
	font-size: var(--font-size-md);
	color: var(--color-text);
}

.calendar-nav {
	display: flex;
	gap: var(--space-xs);
}

.calendar-nav-btn {
	width: 32px;
	height: 32px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--color-border);
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--color-text-secondary);
	transition: all var(--transition-fast);
}

.calendar-nav-btn:hover {
	background: var(--color-bg-card);
	color: var(--color-primary);
	border-color: var(--color-primary-light);
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 2px;
}

.calendar-day-label {
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	color: var(--color-text-muted);
	text-transform: uppercase;
	padding-bottom: var(--space-xs);
}

.calendar-day {
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	font-size: var(--font-size-sm);
	color: var(--color-text);
	cursor: pointer;
	position: relative;
	transition: all var(--transition-fast);
	border: 1px solid transparent;
}

.calendar-day:hover {
	background: var(--color-bg-card);
}

.calendar-day.other-month {
	opacity: 0.3;
}

.calendar-day.selected {
	background: var(--color-primary) !important;
	color: white !important;
	font-weight: 600;
}

.calendar-day.today {
	border-color: var(--color-primary-light);
	color: var(--color-primary);
	font-weight: 700;
}

.calendar-day.has-entry::after {
	content: "";
	position: absolute;
	bottom: 4px;
	width: 4px;
	height: 4px;
	border-radius: var(--radius-full);
	background: var(--color-primary);
	box-shadow: 0 0 4px var(--color-primary-light);
}

.calendar-day.selected.has-entry::after {
	background: white;
	box-shadow: none;
}