:root {
	--primary: #6366f1;
	--primary-light: #818cf8;
	--primary-dark: #4f46e5;
	--secondary: #10b981;
	--light: #f8fafc;
	--dark: #1e293b;
	--gray-light: #e2e8f0;
	--gray: #94a3b8;
	--danger: #ef4444;
	--happy: #36fb24;
	--sad: #f87171;
	--cool: #60a5fa;
	--stressed: #fbbf24;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Outfit", "Big Shoulders", "Inter", "Segoe UI", Roboto,
		sans-serif;
	/* font-family: "Beau Rivage", "Style Script", "Rubik Beastly", "Big Shoulders",
		"Inter", "Segoe UI", Roboto, sans-serif; */
	font-weight: 500;
}

body {
	background-color: #f1f5f9;
	color: var(--dark);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

header {
	background-color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	padding: 1.5rem 0;
	position: sticky;
	top: 0;
	z-index: 10;
}

header h1 {
	text-align: center;
	font-weight: 900;
	font-size: 3rem;
	font-family: "Beau Rivage";
	letter-spacing: -0.025em;
	background: linear-gradient(
		to right,
		var(--primary-dark),
		var(--primary-light)
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1.5rem;
	flex: 1;
	width: 100%;
}

#search-n-filter-container {
	background-color: white;
	padding: 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
}

#search {
	flex: 2 1 300px;
	padding: 0.75rem 1rem;
	border: 1px solid var(--gray-light);
	border-radius: 8px;
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	background-color: var(--light);
}

#search:focus {
	outline: none;
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#filter-container {
	flex: 1 1 200px;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

label[for="filter-by-mood"] {
	font-size: 0.95rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--dark);
}

#filter-by-mood {
	padding: 0.75rem 1rem;
	border: 1px solid var(--gray-light);
	border-radius: 8px;
	background-color: var(--light);
	font-size: 0.95rem;
	flex-grow: 1;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#filter-by-mood:focus {
	outline: none;
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#entries-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.25rem;
	padding: 0 0.5rem;
}

#entries-heading h2 {
	font-weight: 700;
	font-size: 2.5rem;
	color: var(--dark);
	font-family: "Beau Rivage", "Style Script";
	text-align: center;
	width: 100%;
}

#entries-heading p {
	font-size: 1rem;
	color: var(--gray);
}

#entries-container {
	display: grid;
	gap: 1.25rem;
}

.entry {
	background-color: white;
	border-radius: 0 16px 16px 0;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	padding: 1.25rem;
	transition: transform 0.2s, box-shadow 0.2s;
	border: none;
	position: relative;
	overflow: hidden;
}

.entry::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	width: 4px;
	background-color: var(--primary);
}

.entry.mood-Happy::before {
	background-color: var(--happy);
}
.entry.mood-Sad::before {
	background-color: var(--sad);
}
.entry.mood-Cool::before {
	background-color: var(--cool);
}
.entry.mood-Stressed::before {
	background-color: var(--stressed);
}

.entry:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.entry h3 {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--dark);
}

.entry .meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	font-size: 0.85rem;
	color: var(--gray);
}

.entry .mood {
	display: inline-flex;
	align-items: center;
	padding: 0.3rem 0.7rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.mood-Happy {
	background-color: #36fb2426;
	color: #1d920e;
}

.mood-Sad {
	background-color: #f8717126;
	color: #af231e;
}

.mood-Cool {
	background-color: #60a5fa26;
	color: #2149b6;
}

.mood-Stressed {
	background-color: #fbbf2426;
	color: #b9821c;
}

.entry .content {
	margin-bottom: 1.25rem;
	line-height: 1.6;
	color: #475569;
}

.entry-actions {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}

.entry-actions button {
	padding: 0.5rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.edit-btn {
	background-color: white;
	color: var(--primary);
	border: 1px solid var(--primary);
}

.edit-btn:hover {
	background-color: rgba(99, 102, 241, 0.1);
}

.delete-btn {
	background-color: white;
	color: var(--danger);
	border: 1px solid var(--danger);
}

.delete-btn:hover {
	background-color: rgba(239, 68, 68, 0.1);
}

.empty {
	text-align: center;
	color: var(--primary);
	width: 100%;
	font-size: 1.25rem;
	font-weight: 600;
	animation: float-pulse 2s ease-in-out infinite;
	display: inline-block;
	margin: 0 auto;
	background-color: white;
	padding: 2rem 3rem;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
	position: relative;
	margin-top: 5rem;
}

@keyframes float-pulse {
	0% {
		transform: translateY(0) scale(1);
		box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
	}
	50% {
		transform: translateY(-10px) scale(1.02);
		box-shadow: 0 15px 25px rgba(99, 102, 241, 0.25);
	}
	100% {
		transform: translateY(0) scale(1);
		box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
	}
}

.floating-btn {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background-color: var(--primary);
	color: white;
	border: none;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
	transition: transform 0.2s, background-color 0.2s;
	z-index: 100;
	font-size: 1.75rem;
}

.floating-btn:hover {
	background-color: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 8px 16px rgba(99, 102, 241, 0.6);
}

.floating-btn span {
	line-height: 1;
}

.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(15, 23, 42, 0.7);
	align-items: center;
	justify-content: center;
	z-index: 999;
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.flex {
	display: flex;
	align-items: start;
	justify-content: space-between;
}
.modal.show {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}

.modal-content {
	background-color: white;
	padding: 2rem;
	border-radius: 16px;
	width: 90%;
	max-width: 550px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s ease;
}

.modal-content h2 {
	font-family: "Beau Rivage", "Style Script";
	font-weight: 900;
}

.modal.show .modal-content {
	transform: translateY(0);
}

.modal h2 {
	margin-bottom: 1.5rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--dark);
}

.close-btn {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	font-size: 1.5rem;
	font-weight: bold;
	color: var(--gray);
	cursor: pointer;
	transition: color 0.2s;
	background: none;
	border: none;
	line-height: 1;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}

.close-btn:hover {
	color: var(--dark);
	background-color: var(--gray-light);
}

#entry-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

#entry-form label {
	font-weight: 500;
	margin-bottom: 0.25rem;
	display: block;
	color: var(--dark);
}

#entry-form input,
#entry-form textarea,
#entry-form select {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--gray-light);
	border-radius: 8px;
	font-size: 0.95rem;
	transition: border-color 0.2s, box-shadow 0.2s;
	background-color: var(--light);
}

#entry-form input:focus,
#entry-form textarea:focus,
#entry-form select:focus {
	outline: none;
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

#entry-form button {
	background-color: var(--primary);
	color: white;
	padding: 0.75rem 1rem;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background-color 0.2s;
	margin-top: 0.5rem;
}

#entry-form button:hover {
	background-color: var(--primary-dark);
}

footer {
	background-color: white;
	text-align: center;
	padding: 1.5rem;
	margin-top: auto;
	color: var(--gray);
	font-size: 1rem;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
	.container {
		padding: 1rem;
	}

	#search-n-filter-container {
		padding: 1rem;
	}

	#entries-container {
		gap: 1rem;
	}

	.entry {
		padding: 1rem;
	}

	.floating-btn {
		bottom: 1.5rem;
		right: 1.5rem;
		width: 50px;
		height: 50px;
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	header h1 {
		font-size: 1.8rem;
	}

	#entries-heading h2 {
		font-size: 1.25rem;
	}

	.modal-content {
		padding: 1.5rem;
	}

	.entry-actions {
		flex-direction: column;
		width: 100%;
	}

	.entry-actions button {
		width: 100%;
		justify-content: center;
	}
}

.hidden {
	display: none;
}
