@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

html {
	font-family: 'Sora', sans-serif;
	--clip-height: 80px;
	--clip-notch: 3rem;
	--clip-notch-depth: calc(var(--clip-notch) * 0.6);
	--theme-primary: #9ED8BC;
	--theme-primary-hover: rgba(158, 216, 188, 0.5);
	--theme-gradient: linear-gradient(178deg, #FFF -0.28%, #9ED8BC 99.85%);
	--theme-active-text: inherit;
}

/* Naughty Blue color scheme for .test environments */
html.env-test {
	--theme-primary: #5e16f8;
	--theme-primary-hover: rgba(94, 22, 248, 0.5);
	--theme-gradient: linear-gradient(178deg, #FFF -0.28%, #5e16f8 99.85%);
	--theme-active-text: #fff;
}

body {
	margin: 0;
	background: var(--theme-gradient);
	background-attachment: fixed;
	min-height: 100vh;
}

.top-menu {
	position: fixed;
	top: 0;
	right: 0;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	background: rgba(255, 255, 255, 0.9);
	border-bottom-left-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	z-index: 200;
}
.top-menu .username {
	color: #1a2625;
	font-weight: 500;
	display: none;
}
html.env-test .top-menu .username {
	display: inline;
}
.top-menu .logout-btn {
	padding: 0.4rem 0.8rem;
	background: #e0e0e0;
	color: #1a2625;
	text-decoration: none;
	border-radius: 4px;
	font-size: 0.9rem;
}
.top-menu .logout-btn:hover {
	background: #d0d0d0;
}
.top-menu a:not(.logout-btn) {
	color: #1a2625;
	text-decoration: none;
	padding: 0.4rem 0.6rem;
	border-radius: 4px;
}
.top-menu a:not(.logout-btn):hover {
	background: var(--theme-primary-hover);
}
.top-menu a.active {
	font-weight: 600;
	background: var(--theme-primary);
	color: var(--theme-active-text);
}

.page-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 1.5rem 10px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	background: var(--background-color);
	z-index: 100;
	box-sizing: border-box;
}
/* On card pages, header stays fixed horizontally but scrolls vertically */
.page-cards .page-header {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	padding-top: 7.5vh;
	padding-bottom: 5vh;
}
/* On admin page, header is static */
.page-admin .page-header {
	position: static;
	padding-top: 7.5vh;
}
.header-logo {
	height: 40px;
}
.branding {
	position: fixed;
	max-width: 100%;
	bottom: -7px;
	right: 0;
	pointer-events: none;
	z-index: -1;
}
.branding svg {
	width: 100%;
	height: auto;
}
h1 {
	margin: 1rem 0 0 0;
	font-size: clamp(1.5rem, 1.5rem + ((1vw - 0.2rem) * 0.909), 2rem);
	text-align: center;
}
.cards {
	display: flex;
	overflow: visible;
	align-items: flex-start;
}
/* Add extra scrollable space after the last card */
.cards::after {
	content: '';
	flex-shrink: 0;
	width: 20vw;
	min-width: 100px;
	height: 1px;
}
/* Padding for fixed header on non-card pages */
.page-cards .cards {
	padding-top: 0;
}
.filter-bar {
	margin: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}
.sort-btn {
	padding: 0.4rem 0.6rem;
	background: rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
	transition: opacity 0.2s, background 0.2s;
}
.sort-btn:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.1);
}
.sort-btn.active {
	opacity: 1;
	background: rgba(0, 0, 0, 0.15);
}
.sort-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	transition: transform 0.2s;
}
.sort-btn.asc svg {
	transform: scaleY(-1);
}

/* Compact toggle button */
.compact-toggle-btn {
	padding: 0.4rem 0.6rem;
	background: rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.6;
	transition: opacity 0.2s, background 0.2s;
}
.compact-toggle-btn:hover {
	opacity: 1;
	background: rgba(0, 0, 0, 0.1);
}
.compact-toggle-btn.active {
	opacity: 1;
	background: rgba(94, 22, 248, 0.15);
	border-color: rgba(94, 22, 248, 0.3);
	color: #5e16f8;
}
.compact-toggle-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Admin stats */
.admin-stats {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #666;
	margin: auto;
}
.admin-stats .stat strong {
	color: #333;
}
.admin-stats .stat-divider {
	color: #ccc;
}

/* Multi-select dropdown */
.multi-select {
	position: relative;
	display: inline-block;
}
.multi-select-toggle {
	padding: 0.4rem 0.75rem;
	font-size: 0.9rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}
.multi-select-toggle:hover {
	border-color: #999;
}
.multi-select-arrow {
	width: 6px;
	height: 6px;
	border-right: 1.5px solid #666;
	border-bottom: 1.5px solid #666;
	transform: rotate(45deg);
	transition: transform 0.2s;
	margin-bottom: 2px;
}
.multi-select.open .multi-select-arrow {
	transform: rotate(-135deg);
	margin-bottom: -2px;
}
.multi-select-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: calc(100% + 2rem);
	background: white;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 1000;
	max-height: 300px;
	overflow-y: auto;
	margin-top: 2px;
}
.multi-select.open .multi-select-dropdown {
	display: block;
}
.multi-select-option span {
	white-space: nowrap;
}
.multi-select-option {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background 0.15s;
}
.multi-select-option:hover {
	background: #f5f5f5;
}
.multi-select-option.select-all {
	border-bottom: 1px solid #eee;
	font-weight: 500;
}
.multi-select-option input[type="checkbox"] {
	margin: 0;
	cursor: pointer;
}
.card {
	width: 300px;
	min-width: 300px;
	padding: 1rem;
	margin: 10px;
	margin-bottom: 10vh;
	background-color: var(--background-color);
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto auto auto auto auto;
	gap: 0.25rem 0.5rem;
	align-items: start;
	align-content: start;
	overflow: visible;
	filter: drop-shadow(0 4px 54px rgba(0, 0, 0, 0.1));
}

.card::after {
	content: '';
	position: absolute;
	left: 2.5rem;
	right: 0;
	bottom: calc(-1 * var(--clip-height));
	height: var(--clip-height);
	background-color: var(--background-color);
	clip-path: polygon(
		0 0,
		100% 0,
		75% 100%,
		25% 100%
	);
	pointer-events: none;
	z-index: -1;
}

/* Color-specific text styles for legibility */
/* Dark backgrounds need light text */
.card[style*="#1a2625"],
.card[style*="#5e16f8"],
.card[style*="#c02b0a"],
.card[style*="#8e4af9"],
.card[style*="#05884d"] {
	color: #ffffff;
}

.card[style*="#1a2625"] h2,
.card[style*="#5e16f8"] h2,
.card[style*="#c02b0a"] h2,
.card[style*="#8e4af9"] h2,
.card[style*="#05884d"] h2 {
	color: #ffffff;
}

.card[style*="#1a2625"] .card-header,
.card[style*="#5e16f8"] .card-header,
.card[style*="#c02b0a"] .card-header,
.card[style*="#8e4af9"] .card-header,
.card[style*="#05884d"] .card-header {
	color: #ffffff;
}

.card[style*="#1a2625"] .card-date,
.card[style*="#5e16f8"] .card-date,
.card[style*="#c02b0a"] .card-date,
.card[style*="#8e4af9"] .card-date,
.card[style*="#05884d"] .card-date {
	color: rgba(255, 255, 255, 0.8);
}

.card[style*="#1a2625"] .card-org,
.card[style*="#5e16f8"] .card-org,
.card[style*="#c02b0a"] .card-org,
.card[style*="#8e4af9"] .card-org,
.card[style*="#05884d"] .card-org {
	color: #ffffff;
}

.card[style*="#1a2625"] .card-drag-handle,
.card[style*="#5e16f8"] .card-drag-handle,
.card[style*="#c02b0a"] .card-drag-handle,
.card[style*="#8e4af9"] .card-drag-handle,
.card[style*="#05884d"] .card-drag-handle,
.card[style*="#1a2625"] .card-archive-btn,
.card[style*="#5e16f8"] .card-archive-btn,
.card[style*="#c02b0a"] .card-archive-btn,
.card[style*="#8e4af9"] .card-archive-btn,
.card[style*="#05884d"] .card-archive-btn,
.card[style*="#1a2625"] .card-org-edit-btn,
.card[style*="#5e16f8"] .card-org-edit-btn,
.card[style*="#c02b0a"] .card-org-edit-btn,
.card[style*="#8e4af9"] .card-org-edit-btn,
.card[style*="#05884d"] .card-org-edit-btn,
.card[style*="#1a2625"] .card-date-icon,
.card[style*="#5e16f8"] .card-date-icon,
.card[style*="#c02b0a"] .card-date-icon,
.card[style*="#8e4af9"] .card-date-icon,
.card[style*="#05884d"] .card-date-icon {
	color: #ffffff;
	opacity: 0.7;
}

.card[style*="#1a2625"] .card-drag-handle:hover,
.card[style*="#5e16f8"] .card-drag-handle:hover,
.card[style*="#c02b0a"] .card-drag-handle:hover,
.card[style*="#8e4af9"] .card-drag-handle:hover,
.card[style*="#05884d"] .card-drag-handle:hover,
.card[style*="#1a2625"] .card-archive-btn:hover,
.card[style*="#5e16f8"] .card-archive-btn:hover,
.card[style*="#c02b0a"] .card-archive-btn:hover,
.card[style*="#8e4af9"] .card-archive-btn:hover,
.card[style*="#05884d"] .card-archive-btn:hover,
.card[style*="#1a2625"] .card-org-edit-btn:hover,
.card[style*="#5e16f8"] .card-org-edit-btn:hover,
.card[style*="#c02b0a"] .card-org-edit-btn:hover,
.card[style*="#8e4af9"] .card-org-edit-btn:hover,
.card[style*="#05884d"] .card-org-edit-btn:hover,
.card[style*="#1a2625"] .card-date-icon:hover,
.card[style*="#5e16f8"] .card-date-icon:hover,
.card[style*="#c02b0a"] .card-date-icon:hover,
.card[style*="#8e4af9"] .card-date-icon:hover,
.card[style*="#05884d"] .card-date-icon:hover {
	opacity: 1;
}

/* Light backgrounds need dark text */
.card[style*="#9ed8bc"],
.card[style*="#7eb89f"] {
	color: #1a2625;
}

.card[style*="#9ed8bc"] h2,
.card[style*="#7eb89f"] h2 {
	color: #1a2625;
}

.card[style*="#9ed8bc"] .card-header,
.card[style*="#7eb89f"] .card-header {
	color: #1a2625;
}

.card[style*="#9ed8bc"] .card-date,
.card[style*="#7eb89f"] .card-date {
	color: rgba(26, 38, 37, 0.7);
}

.card[style*="#9ed8bc"] .card-org,
.card[style*="#7eb89f"] .card-org {
	color: #1a2625;
}

.card[style*="#9ed8bc"] .card-drag-handle,
.card[style*="#7eb89f"] .card-drag-handle,
.card[style*="#9ed8bc"] .card-archive-btn,
.card[style*="#7eb89f"] .card-archive-btn,
.card[style*="#9ed8bc"] .card-org-edit-btn,
.card[style*="#7eb89f"] .card-org-edit-btn,
.card[style*="#9ed8bc"] .card-date-icon,
.card[style*="#7eb89f"] .card-date-icon {
	color: #1a2625;
	opacity: 0.7;
}

.card[style*="#9ed8bc"] .card-drag-handle:hover,
.card[style*="#7eb89f"] .card-drag-handle:hover,
.card[style*="#9ed8bc"] .card-archive-btn:hover,
.card[style*="#7eb89f"] .card-archive-btn:hover,
.card[style*="#9ed8bc"] .card-org-edit-btn:hover,
.card[style*="#7eb89f"] .card-org-edit-btn:hover,
.card[style*="#9ed8bc"] .card-date-icon:hover,
.card[style*="#7eb89f"] .card-date-icon:hover {
	opacity: 1;
}
.card.dragging {
	opacity: 0.5;
}
.card-drag-handle {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	padding: 0.25rem 0.5rem;
	cursor: grab;
	color: inherit;
	font-size: 1rem;
	user-select: none;
	letter-spacing: -2px;
	opacity: 0.7;
}
.card-drag-handle:hover {
	opacity: 1;
}
.card-drag-handle:active {
	cursor: grabbing;
}
.card-archive-btn,
.card-restore-btn {
	position: absolute;
	top: 0.85rem;
	right: 2.5rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	color: inherit;
	opacity: 0.7;
	width: 1.1rem;
	height: 1.1rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.card-archive-btn:hover,
.card-restore-btn:hover {
	opacity: 1;
}
.card-archive-btn svg,
.card-restore-btn svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
	display: block;
}
.card-restore-btn {
	right: 0.5rem;
}
.slot-delete-btn {
	/* Exact dimensions to match .clip with "0": 26px x 24px total */
	width: 26px;
	height: 24px;
	padding: 0;
	background-color: #5e16f8;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	color: #fff;
	opacity: 0.7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
.slot-delete-btn:hover {
	opacity: 1;
}
.slot-delete-btn svg {
	/* Icon sized to fit the 16px content height */
	width: 12px;
	height: 12px;
	fill: currentColor;
	display: block;
}
.card-org {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	position: relative;
}

.card-org-edit-btn {
	background: none;
	border: none;
	padding: 0.2rem;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}
.card-org-edit-btn:hover {
	opacity: 1;
}
.card-org-edit-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
.card-org-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 100;
	background: white;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	padding: 0.25rem;
	min-width: 150px;
}
.card-org-dropdown .org-select {
	width: 100%;
	padding: 0.25rem 0.5rem;
	font-size: 0.85rem;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 4px;
	background: white;
	cursor: pointer;
	color: #333;
}
.card.archived-card {
	opacity: 0.7;
}
.card.archived-card:hover {
	opacity: 1;
}
.empty-message {
	text-align: center;
	color: #666;
	margin: 2rem;
	font-size: 1.1rem;
}
.card h2 {
	grid-column: 1 / -1;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
}
.card-meta-row {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}
.card-date-wrapper {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}
.card-date-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	order: 1;
}
.card-date-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
.card-date {
	font-size: 0.85rem;
	margin: 0;
}
.card-date-input-wrapper {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	cursor: pointer;
	position: relative;
}
.card-date-input-wrapper .card-date-icon,
.card-date-input-wrapper .card-date {
	cursor: pointer;
}
.card-date-input-wrapper .card-date-icon {
	order: 1;
}
.card-date-input-wrapper .card-date-icon:hover {
	opacity: 1;
}
.card-date-input {
	position: absolute;
	opacity: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	z-index: -1;
	pointer-events: none;
}
/* WebKit browsers: expand the calendar icon to cover the entire wrapper */
.card-date-input::-webkit-calendar-picker-indicator {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.card-header {
	grid-column: 1 / -1;
	font-size: 1.2rem;
	font-weight: 700;
}
.card-header .unit-icon {
	width: 1em;
	height: 1em;
	margin-left: 0.25rem;
	vertical-align: middle;
	fill: currentColor;
}

.slot * {
	margin: 0;
}

.slots {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 1.25rem;
	/* Reserve space for the trapezoid at the bottom */
	padding-bottom: 2rem;
	position: relative;
}

.slot {
	flex: 1 1 100%;
	max-width: 100%;
	--background-color: #fffffff0;
	background: var(--background-color);
	padding: 0.5rem 0.75rem;
	color: #1a2625;
	font-size: 0.8rem;
	border-radius: 4px;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	min-height: 3.5rem;
}
.is-admin .slot:not(.new-slot) {
	cursor: grab;
}
.is-admin .slot:not(.new-slot):active {
	cursor: grabbing;
}
.slot [contenteditable] {
	cursor: text;
}
.slot .slot-content {
	flex: 1 1 auto;
	min-width: 0;
}
.slot h3,
.slot p,
.slot .clip-label,
.slot .clip {
	color: #1a2625;
	font-size: 0.8rem;
}
.slot h3 {
	margin-top: 0.25rem;
	margin-bottom: 0.25rem;
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
}
.slot p {
	margin-bottom: 0;
	line-height: 1.2;
}
.slot .meta {
	display: flex;
	align-items: flex-start;
	gap: 0.25rem;
	font-weight: 600;
	font-size: 0.9rem;
	text-align: right;
	justify-content: flex-end;
	flex-wrap: wrap;
}
.slot .meta .clip {
	background-color: #e8e8e8;
	border-radius: 4px;
	padding: 0.25rem 0.5rem;
}

.slot.dragging {
	opacity: 0.5;
	background: #e0e0e0;
}
.slot.new-slot {
	color: #999;
	opacity: 0.5;
	transition: opacity 0.2s;
}
.slot.new-slot:hover,
.slot.new-slot:focus-within {
	opacity: 1;
}
.slot.new-slot .drag-handle {
	display: none;
}
/* New slot in the new card template should always be fully visible */
.card.new-card .slot.new-slot {
	opacity: 1;
}

.card.new-card {
	opacity: 0.6;
	background-color: var(--background-color);
	overflow: visible;
	position: relative;
}
.card.new-card:hover,
.card.new-card:focus-within {
	opacity: 1;
}
.card.new-card h2 {
	color: #666;
}
.card.archived-card {
	opacity: 1;
}
.card.archived-card .slot {
	cursor: default;
}
.organisation-select {
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.organisation-select label {
	font-size: 0.875rem;
	color: #666;
}
.organisation-select select {
	flex: 1;
	padding: 0.25rem 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.875rem;
}

span.clip {
	display: inline-block;
	text-align: right;
}

/* Admin styles */
.admin-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 1rem;
}

.admin-container section {
	margin-bottom: 2rem;
}

.admin-container section h2 {
	margin-bottom: 1rem;
}

.admin-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
	background: white;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-table th,
.admin-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.admin-table th {
	background: var(--theme-primary);
	font-weight: 600;
	color: var(--theme-active-text);
}

.admin-table tr:hover {
	background: #f9f9f9;
}

.admin-table .actions {
	white-space: nowrap;
}

.btn {
	padding: 0.5rem 1rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.875rem;
	background: #e0e0e0;
}

.btn:hover {
	background: #d0d0d0;
}

.btn-primary {
	background: #05884d;
	color: white;
}

.btn-primary:hover {
	background: #046b3d;
}

.btn-edit {
	background: #8e4af9;
	color: white;
}

.btn-edit:hover {
	background: #7a3de0;
}

.btn-delete {
	background: #c02b0a;
	color: white;
}

.btn-delete:hover {
	background: #a02408;
}

/* Modal styles */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-content {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
}

.modal-content h2 {
	margin-top: 0;
	margin-bottom: 1.5rem;
}

.form-group {
	margin-bottom: 1rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group label .hint {
	font-weight: 400;
	color: #888;
	font-size: 0.85em;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
	width: 100%;
	padding: 0.5rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
	width: auto;
}

.form-actions {
	margin-top: 1.5rem;
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}

#passwordHint {
	font-weight: normal;
	color: #666;
	font-size: 0.875rem;
}

/* Import page styles */
.import-section p {
	margin-bottom: 1.5rem;
	color: #666;
}

.import-boards {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.import-card {
	background: white;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	min-width: 250px;
}

.import-card h3 {
	margin: 0 0 0.5rem 0;
}

.import-card .org-note {
	color: #666;
	font-size: 0.875rem;
	margin-bottom: 1rem;
}

.alert {
	padding: 1rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.import-progress {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.import-progress h2 {
	margin-top: 0;
}

.progress-bar {
	width: 100%;
	height: 24px;
	background: #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	margin: 1rem 0;
}

.progress-fill {
	height: 100%;
	background: #05884d;
	transition: width 0.3s ease;
}

.progress-text {
	color: #666;
	margin-bottom: 1.5rem;
}

.cli-note {
	background: #f5f5f5;
	padding: 0.75rem 1rem;
	border-radius: 4px;
	font-size: 0.9rem;
}

.cli-note code {
	background: #e0e0e0;
	padding: 0.2rem 0.5rem;
	border-radius: 3px;
	font-family: monospace;
}

/* Toast notifications */
.toast-container {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.06);
	pointer-events: auto;
	animation: toast-slide-in 0.3s ease-out;
	max-width: 400px;
	font-size: 0.95rem;
	line-height: 1.4;
}

.toast.toast-warning {
	border-left: 4px solid #f59e0b;
}

.toast.toast-error {
	border-left: 4px solid #ef4444;
}

.toast.toast-success {
	border-left: 4px solid #10b981;
}

.toast.toast-info {
	border-left: 4px solid #3b82f6;
}

.toast-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.toast-warning .toast-icon {
	background: #fef3c7;
	color: #d97706;
}

.toast-error .toast-icon {
	background: #fee2e2;
	color: #dc2626;
}

.toast-success .toast-icon {
	background: #d1fae5;
	color: #059669;
}

.toast-info .toast-icon {
	background: #dbeafe;
	color: #2563eb;
}

.toast-message {
	flex: 1;
	color: #1a2625;
}

.toast-close {
	flex-shrink: 0;
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 4px;
	transition: background 0.15s, color 0.15s;
	font-size: 1.25rem;
	line-height: 1;
}

.toast-close:hover {
	background: #f3f4f6;
	color: #6b7280;
}

.toast.toast-hiding {
	animation: toast-slide-out 0.2s ease-in forwards;
}

@keyframes toast-slide-in {
	from {
		opacity: 0;
		transform: translateY(-1rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes toast-slide-out {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-1rem);
	}
}

/* Compact mode */
body.compact-mode.page-cards .page-header {
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: calc(100vw - 450px);
}
body.compact-mode .page-header h1 {
	display: none;
}
body.compact-mode .admin-stats {
	display: none;
}

/* Auth Pages Styles */
.login-container {
	max-width: 400px;
	margin: 100px auto;
	padding: 2rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-container h1 {
	margin-top: 0;
	text-align: center;
}

.login-container .form-group {
	margin-bottom: 1rem;
}

.login-container .form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.login-container .form-group input {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.login-container .form-group input:focus {
	outline: none;
	border-color: #007bff;
}

.login-container .error {
	color: #dc3545;
	background: #f8d7da;
	padding: 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.login-container .success {
	color: #155724;
	background: #d4edda;
	padding: 0.75rem;
	border-radius: 4px;
	margin-bottom: 1rem;
}

.login-container button[type="submit"] {
	width: 100%;
	padding: 0.75rem;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
}

.login-container button[type="submit"]:hover {
	background: #0056b3;
}

/* Login page uses green button */
body:has(form[action="login.php"]) .login-container button[type="submit"] {
	background: #05884d;
}

body:has(form[action="login.php"]) .login-container button[type="submit"]:hover {
	background: #046b3d;
}

.forgot-link,
.back-link {
	display: block;
	text-align: center;
	margin-top: 1rem;
	color: #007bff;
	text-decoration: none;
}

.forgot-link:hover,
.back-link:hover {
	text-decoration: underline;
}
