:root {
	--brand-colour: #7EFFD8;
	--bg-gradient: radial-gradient(93.87% 43.35% at 50% 7.76%, #1C1B1B 26.44%, #000 100%);
	--card-bg: #222222;
	--card-border: #808080;
	--card-back-bg: #0B0B0B;
	--card-back-border: #1A1A1A;
	--text-color: #FFFFFF;
	--label-color: #888;
	--empty-state-color: #666;
	--progress-bg: #e0e0e0;
	--card-shadow: 0 14px 18px 0 rgba(0, 0, 0, 0.20);
	--card-back-shadow: 0 14px 18px 0 rgba(0, 0, 0, 0.20);
	--card-header-footer-border: #484848;
	--header-height: 74px;
	--footer-height: 82px;
	overscroll-behavior: none;
}

html {
	background-color: black;
}

body.day-theme {
	--bg-gradient: radial-gradient(99.35% 49.77% at 30.27% 5.42%, #F2F5F8 7.69%, #FFF 100%);
	--card-bg: #FFFFFF;
	--card-border: #D7D7D7;
	--card-back-bg: #EEEEEE;
	--card-back-border: #A7A7A7;
	--text-color: #000000;
	--label-color: #666;
	--empty-state-color: #666;
	--progress-bg: #e0e0e0;
	--card-shadow: 0 4px 18px 0 rgba(0, 0, 0, 0.10);
	--card-back-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
	--card-header-footer-border: #e8e8e8;
}

* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	margin: 0;
	padding: 0;
	background: var(--bg-gradient);
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	transition: background 0.3s ease;
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 2rem;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	flex-shrink: 0;
	transition: background 0.3s ease, border-color 0.3s ease;
}

body.day-theme .header {
	background: rgba(255, 255, 255, 0.95);
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header h1 {
	margin: 0;
	color: white;
	font-weight: 600;
	font-size: 1.5rem;
	transition: color 0.3s ease;
}

body.day-theme .header h1 {
	color: #232323;
}

/* Logo image styling */
.header img {
	transition: filter 0.3s ease;
}

body.day-theme .header img {
	filter: brightness(0) saturate(100%) invert(14%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(14%) contrast(87%);
}

.settings-btn {
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: none !important;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.2s ease;
}

.settings-btn:hover {
	background: rgba(255, 255, 255, 0.1) !important;
}

body.day-theme .settings-btn:hover {
	background: rgba(0, 0, 0, 0.1) !important;
}

.settings-btn img {
	width: 24px;
	height: 24px;
	transition: filter 0.3s ease;
}

body.day-theme .settings-btn img {
	filter: brightness(0) saturate(100%) invert(14%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(14%) contrast(87%);
}

.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 2rem;
	max-width: 450px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	justify-content: center;
}

.category-controls {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
	width: 100%;
	justify-content: center;
}

.category-controls select {
	flex: 1;
	max-width: 300px;
}

.category-controls button {
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: none !important;
}

.category-controls button:hover {
	background: rgba(255, 255, 255, 0.1) !important;
}

.category-controls button img {
	width: 24px;
	height: 25px;
}

select, button {
	padding: 0.5rem 1rem;
	border: 2px solid #e0e0e0;
	border-radius: 8px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

button {
	background: #667eea;
	color: white;
	border-color: #667eea;
}

button:hover {
	background: #5a6fd8;
	transform: translateY(-1px);
}

button:active {
	transform: translateY(0);
}

select {
	background: white;
}

select:focus, button:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.card-container {
	perspective: 1000px;
	width: 100%;
	margin-bottom: 1.5rem;
	position: relative;
	overflow: visible;
	flex: 1;
	display: flex;
	align-items: stretch;
	justify-content: center;
	min-height: 300px;
}

.card {
	width: 100%;
	flex: 1;
	position: relative;
	transform-style: preserve-3d;
	transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
	cursor: pointer;
}

.card.swiping {
	transition: transform 0.1s ease-out;
}

.card.slide-left {
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
}

.card.slide-right {
	transform: translateX(100%);
	transition: transform 0.3s ease-in-out;
}

.card.slide-in-left {
	transform: translateX(-100%);
	transition: none;
}

.card.slide-in-right {
	transform: translateX(100%);
	transition: none;
}

.card.flipped {
	transform: rotateY(180deg);
}

.card.flipped.swiping {
	transform: rotateY(180deg) translateX(var(--swipe-x, 0));
}

.card.swiping:not(.flipped) {
	transform: translateX(var(--swipe-x, 0));
}

.card .front, .card .back {
	position: absolute;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	padding: 10px;
	border-radius: 10px;
	outline: 1px solid var(--card-border);
	outline-offset: -1px;
	background: var(--card-bg);
	color: var(--text-color);
	box-shadow: var(--card-shadow);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.card .back {
	transform: rotateY(180deg);
	background: var(--card-back-bg);
	outline-color: var(--card-back-border);
	box-shadow: var(--card-back-shadow);
}

/* Add alignment classes for cards */
.card .front.text-left, .card .back.text-left {
	text-align: left;
}

.card .front.text-center, .card .back.text-center {
	text-align: center;
}

.card .front.text-left .card-text, .card .back.text-left .card-text {
	text-align: left;
}

.card .front.text-center .card-text, .card .back.text-center .card-text {
	text-align: center;
}

.card-header {
	align-self: stretch;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--card-header-footer-border);
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.card-info-text {
	text-align: center;
	color: #989898;
	font-size: 12px;
	font-weight: 400;
	word-wrap: break-word;
}

.card-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	overflow: hidden;
	padding: 1rem 0;
	position: relative;
}

.card-text {
	color: var(--text-color);
	font-size: 18px;
	font-weight: 400;
	word-wrap: break-word;
	width: 100%;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow-wrap: break-word;
	hyphens: auto;
	text-align: inherit;
}

/* When content overflows, make card-content scrollable and align to top */
.card-content.scrollable {
	align-items: flex-start;
	overflow-y: auto;
}

.card-content.scrollable .card-text {
	align-self: flex-start;
}

/* Responsive font sizes for better readability */
@media (min-width: 400px) {
	.card-text {
		font-size: 20px;
	}
}

@media (min-width: 600px) {
	.card-text {
		font-size: 22px;
	}
}

/* Rich text formatting support */
.card-text h1, .card-text h2, .card-text h3, .card-text h4, .card-text h5, .card-text h6 {
	margin: 0.5em 0;
	font-weight: 600;
	line-height: 1.3;
}

.card-text h1 { font-size: 1.5em; }
.card-text h2 { font-size: 1.3em; }
.card-text h3 { font-size: 1.2em; }
.card-text h4 { font-size: 1.1em; }
.card-text h5 { font-size: 1em; }
.card-text h6 { font-size: 0.9em; }

.card-text p {
	margin: 0.8em 0;
	line-height: 1.6;
}

.card-text ul, .card-text ol {
	margin: 0.8em 0;
	padding-left: 1.5em;
	line-height: 1.6;
}

.card-text li {
	margin: 0.3em 0;
}

.card-text blockquote {
	margin: 1em 0;
	padding: 0.5em 1em;
	border-left: 3px solid var(--brand-colour);
	background: rgba(126, 255, 216, 0.1);
	font-style: italic;
}

body.day-theme .card-text blockquote {
	background: rgba(126, 255, 216, 0.15);
}

.card-text code {
	background: rgba(255, 255, 255, 0.1);
	padding: 0.2em 0.4em;
	border-radius: 3px;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.9em;
}

body.day-theme .card-text code {
	background: rgba(0, 0, 0, 0.1);
}

.card-text pre {
	background: rgba(255, 255, 255, 0.05);
	padding: 1em;
	border-radius: 5px;
	overflow-x: auto;
	margin: 1em 0;
	font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
	font-size: 0.85em;
	line-height: 1.4;
}

body.day-theme .card-text pre {
	background: rgba(0, 0, 0, 0.05);
}

.card-text strong, .card-text b {
	font-weight: 600;
}

.card-text em, .card-text i {
	font-style: italic;
}

.card-text u {
	text-decoration: underline;
}

.card-text s, .card-text del {
	text-decoration: line-through;
}

.card-text a {
	color: var(--brand-colour);
	text-decoration: underline;
}

.card-text a:hover {
	opacity: 0.8;
}

.card-text hr {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	margin: 1.5em 0;
}

body.day-theme .card-text hr {
	border-top-color: rgba(0, 0, 0, 0.2);
}

/* Custom scrollbar for card content */
.card-content::-webkit-scrollbar {
	width: 6px;
}

.card-content::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

body.day-theme .card-content::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.1);
}

.card-content::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

body.day-theme .card-content::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.3);
}

.card-content::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

body.day-theme .card-content::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.5);
}

/* Firefox scrollbar */
.card-content {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

body.day-theme .card-content {
	scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.1);
}

.card-footer {
	align-self: stretch;
	padding-top: 8px;
	border-top: 1px solid var(--card-header-footer-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
}

.card-action {
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.card-action:hover {
	opacity: 0.7;
}

.learned-action {
	justify-content: flex-end;
}

.card-action-text {
	text-align: center;
	color: #989898;
	font-size: 12px;
	font-weight: 400;
	word-wrap: break-word;
}

.card-icon {
	width: 24px;
	height: 24px;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.icon-edit {
	width: 18px;
	height: 18px;
	background-image: url('icons/icon-edit.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(60%) contrast(100%);
}

.icon-learned {
	width: 18px;
	height: 18px;
	background-image: url('icons/icon-check-off.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	filter: brightness(0) saturate(100%) invert(60%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(60%) contrast(100%);
	transition: background-image 0.2s ease, filter 0.2s ease;
}

.learned-action.active .icon-learned {
	background-image: url('icons/icon-check-on.svg');
	filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1352%) hue-rotate(87deg) brightness(119%) contrast(119%);
}

.learned-action.active .card-action-text {
	color: #5ACA6B;
}

.progress-section {
	width: 100%;
}

.progress-bar {
	width: 100%;
	height: 4px;
	background: #e0e0e0;
	border-radius: 2px;
	margin-bottom: 1rem;
	overflow: hidden;
}

.progress-fill {
	height: 100%;
	background: var(--brand-colour);
	transition: width 0.3s ease;
	border-radius: 2px;
}

.card-info {
	text-align: center;
	color: #666;
	font-size: 0.9rem;
}

.empty-state {
	text-align: center;
	color: #666;
	font-style: italic;
}

.nav-buttons {
	display: flex;
	gap: 1rem;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	flex-shrink: 0;
	transition: background 0.3s ease, border-color 0.3s ease;
}

body.day-theme .nav-buttons {
	background: rgba(255, 255, 255, 0.95);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-buttons button {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	padding: 0;
	background: transparent !important;
	border: none !important;
}

.nav-buttons button:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	transform: translateY(-1px);
}

body.day-theme .nav-buttons button:hover {
	background: rgba(0, 0, 0, 0.1) !important;
}

.nav-buttons button:active {
	transform: translateY(0);
}

.nav-buttons button img {
	flex-shrink: 0;
	transition: filter 0.3s ease;
}

body.day-theme .nav-buttons button img {
	filter: brightness(0) saturate(100%) invert(14%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(14%) contrast(87%);
}

/* Exceptions for day theme */
body.day-theme #delete-card img {
	filter: none; /* Keep red delete button */
}

#prev-btn img, #next-btn img {
	width: 30px;
	height: 30px;
}

#add-card img, #delete-card img {
	width: 40px;
	height: 40px;
}

#shuffle-btn img {
	width: 23px;
	height: 24px;
}

#shuffle-btn {
	background: rgba(255, 255, 255, 1) !important;
	border: none !important;
	margin: 0 0.5rem;
	border-radius: 30px !important;
	width: 55px !important;
	height: 44px !important;
}

body.day-theme #shuffle-btn {
	background: rgba(35, 35, 35, 1) !important;
}

#shuffle-btn:hover {
	background: rgba(255, 255, 255, 0.9) !important;
}

body.day-theme #shuffle-btn:hover {
	background: rgba(35, 35, 35, 0.9) !important;
}

#shuffle-btn img {
	filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
	transition: filter 0.3s ease;
}

body.day-theme #shuffle-btn img {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

/* New approach for shuffle active state - using background instead of filter */
#shuffle-btn.active {
	background: var(--brand-colour) !important;
	border-radius: 30px !important;
	width: 55px !important;
	height: 44px !important;
}

body.day-theme #shuffle-btn.active {
	background: var(--brand-colour) !important;
}

#shuffle-btn.active:hover {
	background: var(--brand-colour) !important;
	opacity: 0.9;
}

body.day-theme #shuffle-btn.active:hover {
	background: var(--brand-colour) !important;
	opacity: 0.9;
}

#shuffle-btn.active img {
	filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

body.day-theme #shuffle-btn.active img {
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

.delete-controls {
	margin-top: 1rem;
	display: flex;
	gap: 0.5rem;
}

.delete-btn {
	background: #e74c3c !important;
	border-color: #e74c3c !important;
}

.delete-btn:hover {
	background: #c0392b !important;
}

@media (max-width: 480px) {
	.main-content {
		padding: 1.5rem;
	}
	
	.header {
		padding: 1rem;
	}

	.header h1 {
		font-size: 1.25rem;
	}
	
	.category-controls {
		gap: 0.25rem;
	}
	
	.category-controls select {
		width: auto;
		min-width: 120px;
	}
	
	.category-controls button {
		width: auto;
	}

	.nav-buttons {
		/*padding: 0.75rem;*/
		padding-top: 0.75rem;
		padding-bottom: 1.5rem;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
		gap: 0.75rem;
	}

	.card-text {
		font-size: 16px;
	}
}

.flip-hint {
	position: absolute;
	bottom: 10px;
	right: 15px;
	font-size: 0.7rem;
	color: #aaa;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.card:hover .flip-hint {
	opacity: 1;
}

.edit-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 44px;
	background: rgba(102, 126, 234, 0.15);
	border: 2px solid rgba(102, 126, 234, 0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 1;
	transition: all 0.2s ease;
}

.edit-btn:hover {
	background: rgba(102, 126, 234, 0.25);
	border-color: rgba(102, 126, 234, 0.6);
	transform: scale(1.05);
}

.edit-btn:active {
	transform: scale(0.95);
	background: rgba(102, 126, 234, 0.3);
}

.edit-btn img {
	width: 20px;
	height: 20px;
	filter: brightness(0) saturate(100%) invert(37%) sepia(62%) saturate(1756%) hue-rotate(221deg) brightness(93%) contrast(89%);
}

.learned-btn {
	position: absolute;
	bottom: 10px;
	left: 10px;
	width: 44px;
	height: 44px;
	background: rgba(90, 202, 107, 0.15);
	border: 2px solid rgba(90, 202, 107, 0.4);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 20px;
}

.learned-btn:hover {
	background: rgba(90, 202, 107, 0.25);
	border-color: rgba(90, 202, 107, 0.6);
	transform: scale(1.05);
}

.learned-btn.active {
	background: #5ACA6B;
	border-color: #5ACA6B;
}

.learned-btn.active:hover {
	background: #4fb85d;
	border-color: #4fb85d;
}

/* Menu Overlay Styles */
.menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 200;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.menu-content {
	background: #232323;
	color: white;
	border-radius: 20px;
	padding: 2rem;
	max-width: 400px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	transform: translateY(-10px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.day-theme .menu-content {
	background: white;
	color: #333;
}

.menu-overlay.active .menu-content {
	transform: translateY(0);
	opacity: 1;
}

.menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.menu-header h2 {
	margin: 0;
	font-size: 1.5rem;
	color: white;
	transition: color 0.3s ease;
}

body.day-theme .menu-header h2 {
	color: #333;
}

.close-menu {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.close-menu:hover {
	background: #444;
}

body.day-theme .close-menu:hover {
	background: #f0f0f0;
}

.close-menu img {
	width: 24px;
	height: 24px;
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
	transition: filter 0.3s ease;
}

body.day-theme .close-menu img {
	filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(20%) contrast(100%);
}

.menu-section {
	margin-bottom: 1.5rem;
}

.menu-section h3 {
	font-size: 0.9rem;
	text-transform: uppercase;
	color: #aaa;
	margin-bottom: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.5px;
	transition: color 0.3s ease;
}

body.day-theme .menu-section h3 {
	color: #666;
}

.menu-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid #444;
	transition: border-color 0.3s ease;
}

body.day-theme .menu-item {
	border-bottom: 1px solid #f0f0f0;
}

.menu-item:last-child {
	border-bottom: none;
}

.menu-item label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: white;
	font-size: 1rem;
	cursor: pointer;
	flex: 1;
	transition: color 0.3s ease;
}

body.day-theme .menu-item label {
	color: #333;
}

.menu-item input[type="checkbox"] {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.menu-item select {
	padding: 0.4rem 0.8rem;
	border: 2px solid #666;
	border-radius: 6px;
	font-size: 0.9rem;
	cursor: pointer;
	background: #444;
	color: white;
	transition: all 0.3s ease;
}

body.day-theme .menu-item select {
	border: 2px solid #e0e0e0;
	background: white;
	color: #333;
}

.menu-item button {
	padding: 0.5rem 1rem;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: background 0.2s ease;
}

.menu-item button:hover {
	background: #5a6fd8;
}

.menu-item button.danger {
	background: #e74c3c;
}

.menu-item button.danger:hover {
	background: #c0392b;
}

.menu-footer {
	margin-top: 1.5rem;
	text-align: center;
	color: #aaa;
	font-size: 0.85rem;
	transition: color 0.3s ease;
}

body.day-theme .menu-footer {
	color: #999;
}

/* Theme Toggle Styles */
.toggle-switch {
	position: relative;
	width: 60px;
	height: 30px;
	background: #ccc;
	border-radius: 15px;
	cursor: pointer;
	transition: background 0.3s ease;
}

.toggle-switch.active {
	background: var(--brand-colour);
}

.toggle-slider {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 24px;
	height: 24px;
	background: white;
	border-radius: 50%;
	transition: transform 0.3s ease;
}

.toggle-switch.active .toggle-slider {
	transform: translateX(30px);
}

.theme-labels {
	display: flex;
	gap: 1rem;
	align-items: center;
	color: white;
	transition: color 0.3s ease;
}

body.day-theme .theme-labels {
	color: #333;
}

/* Color Picker Styles */
.color-options {
	display: flex;
	gap: 1rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.color-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	border: 3px solid transparent;
	transition: all 0.2s ease;
}

.color-circle:hover {
	transform: scale(1.1);
}

.color-circle.active {
	border-color: #333;
	box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

body.day-theme .color-circle.active {
	border-color: #333;
	box-shadow: 0 0 0 2px white, 0 0 0 4px #333;
}

.menu-link {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background: var(--brand-colour);
	color: #000;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.menu-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Support section text styling */
.menu-item p {
	color: #aaa;
	transition: color 0.3s ease;
}

body.day-theme .menu-item p {
	color: #666;
}

/* Link styling - use brand color in both themes */
a {
	color: var(--brand-colour);
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

a:hover {
	opacity: 0.8;
}

.menu-footer a {
	color: var(--brand-colour);
	text-decoration: underline;
}

.menu-footer a:hover {
	opacity: 0.8;
}

/* Edit Modal Styles */
.edit-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(5px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.edit-modal-content {
	background: #232323;
	color: white;
	border-radius: 20px;
	padding: 2rem;
	max-width: 450px;
	width: 90%;
	max-height: 80vh;
	overflow-y: auto;
	transform: translateY(-10px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

body.day-theme .edit-modal-content {
	background: white;
	color: #333;
}

.edit-modal-overlay.active .edit-modal-content {
	transform: translateY(0);
	opacity: 1;
}

.edit-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.edit-modal-header h2 {
	margin: 0;
	font-size: 1.5rem;
	color: white;
	transition: color 0.3s ease;
}

body.day-theme .edit-modal-header h2 {
	color: #333;
}

.close-edit-modal {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: background 0.2s ease;
}

.close-edit-modal:hover {
	background: #444;
}

body.day-theme .close-edit-modal:hover {
	background: #f0f0f0;
}

.close-edit-modal img {
	width: 24px;
	height: 24px;
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
	transition: filter 0.3s ease;
}

body.day-theme .close-edit-modal img {
	filter: brightness(0) saturate(100%) invert(20%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(20%) contrast(100%);
}

.edit-modal-body {
	margin-bottom: 2rem;
}

.edit-modal-body textarea {
	width: 100%;
	min-height: 200px;
	padding: 1rem;
	border: 2px solid #444;
	border-radius: 12px;
	background: #1a1a1a;
	color: white;
	font-family: inherit;
	font-size: 1rem;
	resize: vertical;
	transition: all 0.3s ease;
	line-height: 1.5;
	white-space: pre-wrap;
}

body.day-theme .edit-modal-body textarea {
	border: 2px solid #e0e0e0;
	background: #f8f9fa;
	color: #333;
}

.edit-modal-body textarea:focus {
	outline: none;
	border-color: var(--brand-colour);
	box-shadow: 0 0 0 3px rgba(126, 255, 216, 0.15);
}

.edit-modal-body textarea::placeholder {
	color: #888;
	transition: color 0.3s ease;
}

body.day-theme .edit-modal-body textarea::placeholder {
	color: #999;
}

.alignment-controls {
	margin-top: 1.5rem;
}

.segmented-control {
	display: flex;
	background: #1a1a1a;
	border-radius: 8px;
	padding: 4px;
	height: 40px;
	transition: background 0.3s ease;
}

body.day-theme .segmented-control {
	background: #f0f0f0;
}

.segment {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	height: 32px;
	padding: 4px;
}

.segment img {
	width: 24px;
	height: 24px;
	filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
	transition: filter 0.2s ease;
	pointer-events: none;
}

body.day-theme .segment img {
	filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(40%) contrast(100%);
}

.segment.active {
	background: var(--brand-colour);
}

.segment.active img {
	filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.segment:hover:not(.active) {
	background: #333;
}

body.day-theme .segment:hover:not(.active) {
	background: #e0e0e0;
}

.edit-modal-footer {
	display: flex;
	gap: 1rem;
	justify-content: stretch;
}

.modal-btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	flex: 1;
}

.modal-btn.secondary {
	background: #444;
	color: white;
	border: 2px solid #666;
}

body.day-theme .modal-btn.secondary {
	background: #f0f0f0;
	color: #333;
	border: 2px solid #d0d0d0;
}

.modal-btn.secondary:hover {
	background: #555;
	border-color: #777;
}

body.day-theme .modal-btn.secondary:hover {
	background: #e0e0e0;
	border-color: #bbb;
}

.modal-btn.primary {
	background: var(--brand-colour);
	color: #000;
	border: 2px solid var(--brand-colour);
	font-weight: 700;
}

.modal-btn.primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(126, 255, 216, 0.3);
}