/** Utility helpers for the new dashboard layout **/

.glass-card {
	position: relative;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(16px);
}

.floating-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(16, 17, 26, 0.1);
}

.accent-label {
	font-size: 0.65rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

/* jQuery UI Datepicker - Shadcn/UI style overrides */
.ui-datepicker {
	background: #ffffff;
	border: 1px solid hsl(214.3 31.8% 91.4%);
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	padding: 0.75rem;
	font-family: inherit;
}

#ui-datepicker-div {
	z-index: 10050 !important;
}

.ui-autocomplete {
	z-index: 10060 !important;
}

.ui-datepicker .ui-datepicker-header {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0.5rem 0;
	margin-bottom: 0.5rem;
}

.ui-datepicker .ui-datepicker-title {
	line-height: 2rem;
	font-weight: 600;
	color: hsl(222.2 47.4% 11.2%);
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
	border: 1px solid hsl(214.3 31.8% 91.4%);
	background: #ffffff;
	border-radius: 0.375rem;
	cursor: pointer;
	width: 2rem;
	height: 2rem;
	top: 0.5rem;
}

.ui-datepicker .ui-datepicker-prev:hover,
.ui-datepicker .ui-datepicker-next:hover {
	background: hsl(210 40% 96.1%);
	border-color: hsl(214.3 31.8% 91.4%);
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
	background-position: center;
}

.ui-datepicker table {
	margin: 0;
}

.ui-datepicker th {
	font-weight: 600;
	font-size: 0.75rem;
	color: hsl(215.4 16.3% 46.9%);
	padding: 0.5rem 0;
}

.ui-datepicker td {
	padding: 2px;
}

.ui-datepicker td a,
.ui-datepicker td span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	color: hsl(222.2 47.4% 11.2%);
	text-decoration: none;
	border: 1px solid transparent;
}

.ui-datepicker td a:hover {
	background: hsl(210 40% 96.1%);
	border-color: hsl(214.3 31.8% 91.4%);
}

.ui-datepicker td .ui-state-active {
	background: hsl(222.2 47.4% 11.2%);
	color: #ffffff;
	font-weight: 600;
}

.ui-datepicker td .ui-state-active:hover {
	background: hsl(222.2 47.4% 11.2%);
	opacity: 0.9;
}

.ui-datepicker td .ui-state-disabled {
	color: hsl(215.4 16.3% 46.9%);
	opacity: 0.4;
}

.ui-datepicker-buttonpane {
	background: transparent;
	border: none;
	border-top: 1px solid hsl(214.3 31.8% 91.4%);
	margin-top: 0.5rem;
	padding-top: 0.5rem;
}

.ui-datepicker-buttonpane button {
	background: #ffffff;
	border: 1px solid hsl(214.3 31.8% 91.4%);
	border-radius: 0.375rem;
	color: hsl(222.2 47.4% 11.2%);
	padding: 0.375rem 0.75rem;
	font-size: 0.875rem;
	cursor: pointer;
	font-weight: 500;
	margin: 0.25rem;
}

.ui-datepicker-buttonpane button:hover {
	background: hsl(210 40% 96.1%);
}
