﻿body {
	margin: 0;
	padding: 0;
	background-color: #CDDBFE;
	font-family: Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

h1, h2, h3 {
	font-family: Montserrat, sans-serif;
}

img {
	width: 100%;
}

a {
	text-decoration: none;
	display: inline-block;
}

/*Login Panel Styling*/

.login-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: auto;
}

.login-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 20px auto;
	background-color: #BDDAFD;
	padding: 60px;
	width: 60%;
	border-radius: 10px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.8);
}

.login-box img {
	height: 200px;
	width: 45%;
	margin: 50px;
}

.input-wrapper {
	display: flex;
	margin-bottom: 20px;
	gap: 30px;
}

.input-wrapper label {
	font-size: 28px;
	font-family: Roboto, sans-serif;
	min-width: 200px;
	text-align: right;
}

.input-wrapper input {
	font-size: 24px;
	transition: transform 0.3s ease-in;
	font-family: Roboto, sans-serif;
	margin-bottom: 10px;
}

.input-wrapper input:focus {
	transform: scale(1.02);
}

.login {
	display: inline-block;
	padding: 5px 10px;
	width: 80%;
	background-color: #1D76D8;
	margin: 60px auto 20px;
	color: white;
	font-size: 24px;
	cursor: pointer;
	border-radius: 10px;
	transition: transform 0.3s ease-in;
	font-family: Roboto, sans-serif;
}

.login:hover {
	transform: scale(1.02);
}

/*End of Login Panel Styling*/



/*Beginning of Dashboard Styling*/

.page-header {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
	background-color: #BDDAFD;
}

.page-header h1 {
	font-size: 30px;
	margin-bottom: 20px;
	margin-left: 2%;
	text-shadow: 0px 3px 8px rgba(0, 0, 0, 0.5);
	text-decoration: underline;
}

.page-header h2 {
	font-size: 24px;
	margin-left: 2%;
}

.logout-section {
	display: flex;
}

.logout {
	width: 90%;
	margin: 40px auto;
	color: white;
	background-color: red;
	transition: transform, background-color 0.3s ease-in;
	text-align: center;
	font-size: 24px;
	padding: 10px;
}

.logout:hover {
	background-color: maroon;
	transform: scale(1.02);
}

#addNewOrder {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-top: 40px;
}

#newOrder {
	background-color: white;
	padding: 30px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
}

.add-order,
.save-changes {
	width: 90%;
	margin: 30px auto;
	background-color: #1D76D8;
	color: white; 
	padding: 10px;
	font-size: 20px;
	cursor: pointer;
	transition: transform 0.3s ease-in;
}

.add-order:hover,
.save-changes:hover {
	transform: scale(1.02);
}

.dropdown-content {
	display: none;
	padding: 10px;
}

.dropdown-header {
	cursor: pointer;
	font-weight: 600;
	font-size: 28px;
	text-decoration: underline;
	letter-spacing: 1.7px;
	transition: transform 0.2s ease-in;
}

.dropdown-header:hover {
	transform: scale(1.02);
}

/* Table container */
#orderTable {
  margin: 20px auto;
  width: 95%;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  overflow-x: auto; /* helps on small screens */
  overflow-y: scroll;
}

/* Table itself */
#orderTable table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

/* Table header */
#orderTable th {
  background-color: #1e3a8a; /* dark Blueprint blue */
  color: #ffffff;
  font-weight: 600;
  padding: 12px;
  text-align: center;
}

/* Table cells */
#orderTable td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

/* Row styling */
#orderTable tr:nth-child(even) {
  background-color: #f9f9f9;
}

#orderTable tr:hover {
  background-color: #eef3ff; /* light Blueprint blue hover */
}

/* Drill Pattern images */
#orderTable img {
  max-height: 60px;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Buttons */
#orderTable .edit,
#orderTable .delete {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.2s ease;
}

/* Edit button */
#orderTable .edit {
  background-color: #2563eb;
  width: 80%;
  margin: 0px auto 10px; 
}

#orderTable .edit:hover {
  background-color: #1d4ed8;
}

/* Delete button */
#orderTable .delete {
  background-color: #dc2626; /* red */
  width: 80%;
  margin: 0px auto 10px;
}

#orderTable .delete:hover {
  background-color: #b91c1c;
}

.alert.success {
	width: 70%;
	margin: 15px auto;
	text-align: center;
	background-color: #33CC33;
	border: 1px solid #006600;
	padding: 10px;
	border-radius: 8px;
	font-size: 16px;
	font-family: Roboto, sans-serif;
}

/*Edit Modal Styling*/

#editOrderModal {
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.edit h1 {
	font-size: 28px;
}

.edit {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #CDDBFE;
	border: 2px solid #1E3A8A;
	width: 55%;
	margin: 30px auto;
	padding: 30px;
	border-radius: 10px;
}

#editOrderForm {
	background-color: white;
	padding: 30px;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	width: 100%; !important;
}

#editOrderForm input {
	width: 100%;
}

.close {
	position: absolute;
	right: 15px;
	top: 10px;
	font-size: 30px;
	color: white;
	cursor: pointer;
	transition: transform 0.3s ease-in;
}

.close:hover {
	transform: scale(1.03);
	color: maroon;
}

.modal-content {
	box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.7);
}

.lightbox {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 50%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px #000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
