@font-face {
	font-family: 'Montserrat';
	src: url('../ttf/Montserrat.ttf');
}

@font-face {
	font-family: 'Montserrat Italic';
	src: url('../ttf/Montserrat\ Italic.ttf');
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat';
	margin: 0;
	padding: 0;
	color: #444;
	line-height: 1.6;
}

.container {
	margin-top: 35px;
	margin-bottom: 50px;
	display: flex;
	justify-content: center;
}

.auth-container {
	padding: 44px 36px;
	max-width: 768px;
	background-color: #fff;
	border-radius: 14px;
}

.auth-container h1 {
	margin: 0 0 16px 0;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	color: #444;
}

.auth-container p {
	margin: 0 0 24px 0;
	font-size: 0.95rem;
	color: #444;
	text-align: center;
}

hr {
	border: none;
	border-top: 1px solid #eee;
	margin: 28px 0;
}

.name-row {
	display: flex;
	gap: 16px;
}

.name-field {
	flex: 1;
}

.name-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.name-field input {
	width: 100%;
	padding: 14px 16px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #f8f9fa;
	font-size: 1rem;
	transition: all 0.2s ease;
}

.name-field input:focus {
	outline: none;
	background-color: #fff;
	border-color: #04AA6D;
	box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.15);
}

input[type=text],
input[type=email],
input[type=password] {
	width: 100%;
	padding: 14px 16px;
	margin: 8px 0 20px 0;
	border: 1px solid #ddd;
	border-radius: 8px;
	background-color: #f8f9fa;
	font-size: 1rem;
	transition: all 0.2s ease;
}

input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus {
	outline: none;
	background-color: #fff;
	border-color: #04AA6D;
	box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.15);
}

.login-button,
.register-button {
	background-color: #04AA6D;
	color: white;
	padding: 16px 20px;
	margin: 12px 0 0;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	width: 100%;
	font-size: 1.1rem;
	font-weight: 600;
	transition: 0.3s;
}

.login-button:hover,
.register-button:hover,
.button-add:hover,
.buttons .button-edit:hover {
	background-color: #039960;
}

a {
	color: #04AA6D;
	text-decoration: none;
	font-weight: 500;
}

a:hover {
	text-decoration: underline;
}

.sign-in,
.sign-up {
	background-color: #f1f1f1;
	text-align: center;
	border-radius: 0;
	font-size: 0.95rem;
	color: #666;
}

#toastContainer {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 12px;
	pointer-events: none;
}

.toast {
	padding: 16px 24px;
	border-radius: 12px;
	color: white;
	font-weight: 600;
	font-size: 15px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateX(100%);
	animation: toastIn 0.5s ease forwards, toastOut 0.6s ease 3.8s forwards;
	pointer-events: auto;
	word-wrap: break-word;
}

.toast.success {
	background-color: #039960;
}

.toast.error {
	background-color: #990303;
}

@keyframes toastIn {
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes toastOut {
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

.navbar {
	height: 70px;
	background: #ffffff;
	border-bottom: 1px solid #eaeaea;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.navbar-container {
	height: 100%;
	margin: 0 auto;
	padding-left: 50px;
	padding-right: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.brand {
	font-size: 26px;
	font-weight: 700;
	color: #04AA6D;
	text-decoration: none;
}

.brand:hover {
	text-decoration: none;
}

.user-menu {
	position: relative;
	display: inline-block;
}

.user-menu a {
	color: #444;
	margin: 12px;
	text-decoration: none;
}

.user-button {
	background: none;
	border: none;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	padding: 10px 16px;
	border-radius: 12px;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
}

.user-button:hover {
	background: #f8f8f8;
}

.dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	min-width: 220px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.user-menu:hover .dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown a {
	display: block;
	padding: 14px 20px;
	color: #444;
	text-decoration: none;
	border-radius: 12px;
	font-size: 15px;
	transition: 0.2s;
}

.dropdown a:hover {
	background: #f8f8f8;
}

.dropdown a.logout {
	color: #dc3545;
	font-weight: 500;
}

.dropdown a.admin {
	color: #04AA6D;
	font-weight: 500;
}

.mobile-menu {
	display: none;
}

.hamburger {
	display: none;
	font-size: 24px;
	background: none;
	border: none;
	color: #333;
	cursor: pointer;
}

.works-container {
	padding-left: 50px;
	padding-right: 50px;
}

.stats-section {
	margin-top: 35px;
	margin-bottom: 50px;
}

.stats-section h2 {
	font-size: 26px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 10px 0;
}

.stats-section p {
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 25px;
}

.stats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.stat-card {
	background: #ffffff;
	padding: 24px 28px;
	border: 1px solid #eef2f6;
	align-content: center;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	min-width: 180px;
	flex: 1;
	text-align: center;
}

.stat-card.big {
	background: #04AA6D;
	color: #ffffff;
	text-align: left;
}

.stat-card.big .label,
.stat-card.big .value {
	color: #ffffff;
}

.label {
	font-size: 14px;
	color: #666;
	margin-bottom: 8px;
	font-weight: 600;
}

.value {
	font-size: 14px;
	font-weight: 800;
	color: #444;
}

.list-section {
	margin-bottom: 50px;
}

.filters {
	display: flex;
	gap: 12px;
	justify-content: flex-start;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.filters a {
	padding: 10px 20px;
	border-radius: 12px;
	background: #f0f7f4;
	color: #444;
	font-weight: 600;
	text-decoration: none;
	font-size: 15px;
}

.filters a.active {
	background: #04AA6D;
	color: white;
}

.page-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.page-header h2 {
	font-size: 26px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 10px 0;
}

.list-section p {
	font-size: 12.5px;
	color: #64748b;
	margin-bottom: 25px;
}

.button-add {
	background: #04AA6D;
	color: white;
	padding: 12px 24px;
	border-radius: 12px;
	font-weight: 600;
	transition: 0.3s;
}

.button-add:hover {
	text-decoration: none;
}

.works-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin-top: 30px;
}

.card {
	background: white;
	border-radius: 16px;
	padding: 25px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
	border: 1px solid #eef2f6;
}

.row {
	display: flex;
	flex-direction: column;
	padding: 14px 0;
}

.row.highlight {
	background: #f0fdf4;
	border-radius: 14px;
	padding: 18px 20px;
	margin: 10px 0;
	border: none;
}

.row.total {
	background: #04AA6D;
	color: white;
	border-radius: 16px;
	padding: 20px;
	margin: 16px 0;
	font-weight: 700;
	border: none;
}

.row.total .label,
.row.total .value {
	color: white;
}

.row.note {
	background: #f0fdf4;
	border-left: 4px solid #10b981;
	border-radius: 0 12px 12px 0;
	padding-left: 20px;
	padding-right: 20px;
	border-bottom: none;
}

.row.note .value {
	color: #04AA6D;
}

.label {
	font-size: 15px;
	color: #64748b;
	font-weight: 600;
}

.value.money {
	font-size: 24px;
	font-weight: 900;
	color: #04AA6D;
}

.value.money.neg {
	color: #c41f3e;
}

.actions .buttons {
	display: flex;
	gap: 12px;
}

.card .button-edit,
.card .button-delete {
	padding: 10px 20px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 24px;
	border-radius: 12px;
	transition: 0.3s;
	font-weight: 600;
}

.card .button-edit {
	background: #04AA6D;
	color: #ffffff;
}

.card .button-delete {
	background: #fee2e2;
	color: #c41f3e;
	border: none;
	cursor: pointer;
}

.card .button-delete:hover {
	background: #f5d9d9;
}

.empty {
	text-align: center;
	padding: 100px 20px;
	background: white;
	display: flex;
	gap: 12px;
	border: 1px solid #eef2f6;
	align-items: center;
	flex-direction: column;
	border-radius: 14px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
	color: #64748b;
}

.empty h3,
p {
	color: #1e293b;
	margin: 0;
	font-weight: 700;
}

.empty p {
	color: #444;
	font-weight: 600;
}

.add-work-container {
	width: 768px;
	padding-right: 50px;
	margin: 50px auto;
	padding-left: 50px;
}

.add-work-wrapper {
	margin-top: 35px;
	margin-bottom: 50px;
	background: #fff;
	padding: 44px 36px;
	border-radius: 14px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
	border: 1px solid #f0f0f0;
}

.add-work-wrapper h1 {
	margin: 0 0 12px 0;
	font-size: 26px;
	font-weight: 700;
	text-align: center;
	color: #444;
}

.add-work-wrapper p {
	margin: 0 0 32px 0;
	font-size: 0.95rem;
	color: #444;
	text-align: center;
}

.add-work-field {
	margin-bottom: 22px;
}

.add-work-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #444;
	font-size: 0.95rem;
}

.add-work-field input,
.add-work-field textarea {
	width: 100%;
	font-family: inherit;
	padding: 15px 16px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	background-color: #f8f9fa;
	font-size: 0.95rem;
}

.add-work-field input:focus,
.add-work-field textarea:focus {
	outline: none;
	background-color: #fff;
	border-color: #04AA6D;
	box-shadow: 0 0 0 4px rgba(4, 170, 109, 0.15);
}

.add-work-field textarea {
	resize: none;
}

.add-work-row {
	display: flex;
	gap: 16px;
	margin-bottom: 22px;
}

.add-work-field.half {
	flex: 1;
	margin-bottom: 0;
}

.add-work-button {
	background-color: #04AA6D;
	color: #ffffff;
	padding: 17px 20px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	width: 100%;
	transition: 0.3s;
	font-size: 1.1rem;
	font-weight: 600;
}

.add-work-button:hover {
	background-color: #039960;
}

.add-work-footer {
	background-color: #f8f9fa;
	text-align: center;
	padding: 20px;
	margin: 28px -36px -44px;
	border-radius: 0 0 14px 14px;
	font-size: 0.95rem;
}

.add-work-footer a {
	color: #04AA6D;
	text-decoration: none;
	font-weight: 500;
}

.add-work-footer a:hover {
	text-decoration: none;
}

.edit-work-container {
	width: 768px;
	padding-right: 50px;
	margin: 50px auto;
	padding-left: 50px;
}

.edit-work-wrapper {
	background: #fff;
	padding: 44px 36px;
	border-radius: 14px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
	border: 1px solid #f0f0f0;
}

.edit-work-wrapper h1 {
	margin: 0 0 12px 0;
	font-size: 2rem;
	font-weight: 700;
	text-align: center;
	color: #444;
}

.edit-work-wrapper p {
	margin: 0 0 32px 0;
	font-size: 0.95rem;
	color: #444;
	text-align: center;
}

.edit-work-field {
	margin-bottom: 22px;
}

.edit-work-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #444;
	font-size: 0.95rem;
}

.edit-work-field input,
.edit-work-field textarea {
	width: 100%;
	padding: 15px 16px;
	border: 1.5px solid #ddd;
	border-radius: 10px;
	background-color: #f8f9fa;
	font-size: 1rem;
	font-family: inherit;
	transition: all 0.25s ease;
}

.edit-work-field input:focus,
.edit-work-field textarea:focus {
	outline: none;
	background-color: #fff;
	border-color: #04AA6D;
	box-shadow: 0 0 0 4px rgba(4, 170, 109, 0.15);
}

.edit-work-field textarea {
	resize: none;
}

.edit-work-row {
	display: flex;
	gap: 16px;
	margin-bottom: 22px;
}

.edit-work-field.half {
	flex: 1;
	margin-bottom: 0;
}

.edit-work-button {
	background-color: #04AA6D;
	color: white;
	padding: 17px 20px;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	width: 100%;
	font-size: 1.1rem;
	font-weight: 600;
	transition: all 0.3s ease;
}

.edit-work-button:hover {
	background-color: #039960;
}

.edit-work-footer {
	background-color: #f8f9fa;
	text-align: center;
	padding: 20px;
	margin: 28px -36px -44px;
	border-radius: 0 0 14px 14px;
	font-size: 0.95rem;
}

.edit-work-footer a {
	color: #04AA6D;
	text-decoration: none;
	font-weight: 500;
}

.edit-work-footer a:hover {
	text-decoration: none;
}

.footer {
	color: #fff;
	padding: 50px;
	background-color: #04AA6D;
}

.footer .footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.footer .footer-brand {
	font-size: 20px;
	font-weight: 700;
}

.footer .copyright {
	font-size: 15.2px;
}

.footer .footer-links a {
	color: #fff;
	font-size: 15.2px;
	margin: 12px;
	text-decoration: none;
}

@media (max-width: 768px) {
	.toast {
		font-size: 14px;
		padding: 14px 18px;
	}

	#toastContainer {
		top: 10px;
		right: 10px;
		left: 140px;
	}

	.sign-in,
	.sign-up {
		width: 100%;
		padding: 32px 80px;
	}

	.name-row {
		flex-direction: column;
		gap: 0;
		margin-bottom: 22px;
	}

	.navbar .navbar-container {
		padding-left: 35px;
		padding-right: 35px;
	}

	.hamburger {
		display: block;
	}

	.user-menu {
		display: none;
	}

	.mobile-menu {
		position: fixed;
		top: 70px;
		left: 0;
		display: block;
		width: 100%;
		background: white;
		transform: translateY(-100%);
		transition: transform 0.3s ease;
	}

	.mobile-menu.active {
		transform: translateY(0);
	}

	.mobile-menu a {
		display: block;
		padding: 18px 24px;
		color: #444;
		text-decoration: none;
		border-bottom: 1px solid #eee;
		font-size: 16px;
	}

	.mobile-menu a:last-child {
		border-bottom: none;
	}

	.mobile-menu a.logout {
		color: #dc3545;
		font-weight: 500;
	}

	.mobile-menu a.admin {
		color: #04AA6D;
		font-weight: 500;
	}

	.edit-work-row {
		flex-direction: column;
		gap: 0;
	}

	.edit-work-field.half {
		margin-bottom: 22px;
	}

	.footer .footer-content {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-content .footer-links {
		margin-top: 14px;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.footer-content .footer-links a {
		margin: 0;
	}
}

@media (max-width: 425px) {
	.filters {
		flex-direction: column;
	}

	.page-header {
		align-items: stretch;
		flex-direction: column;
	}

	.page-header a {
		margin-bottom: 25px;
	}

	.buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.stats-section {
		margin-bottom: 25px;
	}

	.add-work-row {
		flex-direction: column;
		gap: 0;
	}

	.add-work-field.half {
		margin-bottom: 22px;
	}
}
