@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

body{
	font-family: "Inter", sans-serif;
	block-size: 100%;
	box-sizing: border-box;
}

/* Modal window */
.modal {
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999;
}
.modal-content {
	background-color: white;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	width: 300px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal input {
	width: 80%;
	padding: 10px;
	border-radius: 5px;
	border: 1px solid #ccc;
	font-size: 1.1rem;
	margin-bottom: 20px;
}

.modal button {
	width: 60%;
	font-size: 1.1rem;
}

.error-message{
	margin-top: 30px;
	color: red;
	text-align: center;
	font-size: 16px;
	opacity: 0;
	min-height: 24px;
	transition: opacity 0.5s ease-in-out;
	visibility: hidden;
 }

 .error-message.show {
	opacity: 1;
	visibility: visible;
}

 #ordersDashboard{
	display: none;
 }

.page{
	margin: 0 auto;
	margin-bottom: 100px;
	padding: 0 30px;
	font-size: 1.2rem;
}

h1{
	text-align: center;
	margin-bottom: 40px;
}

#ordersContainer{
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
}

.order {
	padding: 1em;
	border-radius: 8px;
	transition: background-color 0.3s ease;
	border: 1px solid #ccc;
	background-color:  #fcecba;
	line-height: 1;
 }

 .statusSelect{
	font-size: 1.1rem;
	text-align: center;
	padding: 5px;
	border-radius: 8px;
	margin-right: 20px;
 }

/* Status color */
.status-awaits {
	background-color: #fff3a3; /* yellow */
 }
 
 .status-ready {
	background-color: #b8d2fa; /* blue */
 }
 
 .status-delivered {
	background-color:#c1e5d5; /* green */ 
 }

 button{
	font-weight: 500;
	padding: 10px;
	background-color: #1a4783;
	color: white;
	border: none;
	border-radius: 7px;
	transition: background-color 0.3s ease, transform 0.2s ease;
	cursor: pointer;
 }

 button:hover{
	background-color: #2575fc;
}

button:active{
	transform: scale(0.95);
}

 .delBtn {
	display: none;
	font-size: 1rem;
	padding: 7px 10px;
 }

 .delBtn.visible{
	display: inline-block;
 }

.sort-orders__section{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-bottom: 40px;
}

#search-field{
	padding: 5px;
	font-size: 1.1rem;
	border-radius: 8px;
	border: 1px solid #ccc;
	padding: 10px;
}

#sort_btn{
	font-size: 1.1rem;
	padding: 10px 20px;
}

@media (max-width: 650px) {
	#ordersContainer{
		flex-direction: column;
	}
}


