﻿/* Loading Animation for Pages */

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #7ca1c7; 
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: transparent;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.content {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.loaded .content {
    opacity: 1;
}

/* End of Section */

body {
	background-color: #4b779b;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	width: 100%;
	align-items: center;
}

/* index.php Styling */

.login-box {
	background-image: url('aluminum.jpg');
	background-size: cover;
	background-repeat: repeat;
	display: flex;
	flex-direction: column;
	gap: 20px;
	align-items: center;
	justify-content: center;
	position: absolute; /* Centering trick */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 800px;
	height: 600px;
	border: 2.5px solid black;
	border-radius: 10px;
	box-shadow: 0px 0px 20px rgba(0, 0, 0, 2);
}

.login-box .logo {
	display: flex;
	align-items: center;
	width: 400px;
	height: 200px;
	margin-bottom: 10px;
}

.login-box h2 {
    margin-bottom: 20px;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 30px;
    text-decoration: underline;
}

.login-box label {
    display: block;
    font-weight: bold;
    text-align: left;
    width: 100%;
    margin-top: 10px;
    font-size: 20px;
}

.login-box input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
}

.login-box button {
    width: 100%;
    padding: 8px;
    font-size: 20px;
    background-color: #7ca1c7;
    color: black;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 15px;
    transition: scale 0.3s ease-in-out;
}

.login-box button:hover {
    background-color: #5b87a9;
    transform: scale(1.05);
}

.login-box form {
    width: 80%;
    max-width: 350px;
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* End of Section */


/* dashboard.php Styling */

.maindashboardheader {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-end;
	background-image: url('aluminum.jpg');
	border: 2px solid black;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
	width: 100%;
	gap: 300px;
}

.maindashboardheader img {
	width: 400px;
	height: 200px;
	margin-right: 200px;
}

.maindashboardheader h1 {
	font-family: Montserrat, sans-serif;
	font-size: 38px;
	font-weight: 500;
	text-shadow: 0px 2px 4px rgba(0, 0, 0, 2);	
}

.maindashboard {
	display: flex;
	height: 900px;
	flex-direction: column;
	gap: 50px;
	justify-content: center;
	align-items: center;
	width: 90%;
	margin: 10px 0px 10px;
}

.maindashboard a {
	background-image: url('aluminum.jpg');
	background-size: cover;
	background-repeat: repeat;
	height: 200px;
	width: 100%;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
	border-radius: 10px;
	transition: scale 0.3s ease-in-out;
}

.maindashboard a:hover {
	transform: scale(1.04);
}

.dashboardtext {
	display: flex;
	font-family: Montserrat, sans-serif;
	font-size: 34px;
	color: black;
	text-align: center;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	text-shadow: 0px 3px 4px rgba(0, 0, 0, 2);	
}


/* Footer Styling */

.dashboardfooter {
	display: flex;
	flex-direction: row;
	border-top: 2px solid black;
	background-image: url('aluminum.jpg');
	background-size: cover;
	background-repeat: repeat;
	height: 200px;
	width: 100%;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
	align-items: center;
	justify-content: space-between;
}

.logoleft {
	width: 75px;
	height: 75px;
	margin-left: 10px;
}

.logoright {
	width: 75px;
	height: 75px;
	transform: scaleX(-1);
	margin-right: 10px;
}

.dashboardfooter p {
	font-size: 12px;
}


/* SearchOrder.php Styling */

.mainsearchheader {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-end;
	background-image: url('aluminum.jpg');
	border: 2px solid black;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
	width: 100%;
	gap: 200px;
}

.mainsearchheader img {
	width: 400px;
	height: 200px;
	margin-right: 600px;
}

.mainsearchheader h1 {
	font-family: Montserrat, sans-serif;
	font-size: 38px;
	font-weight: 500;
	text-shadow: 0px 2px 4px rgba(0, 0, 0, 2);	
}

.search-boxform {
	background-image: url('aluminum.jpg');
	background-size: cover;
	background-repeat: repeat;
	height: 500px;
	width: 65%;
	display: flex;
	flex-direction: column;
	border: 2px solid black;
	box-shadow: 0px 0px 4px rgba(0, 0, 0, 1.5);
	margin: auto;
	align-items: center;
	justify-content: center;
}

.formrow {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin: 75px 0px 75px;
}

.formrow label {
	font-family: Montserrat, sans-serif;
	font-size: 26px;
	font-weight: 600;
	min-width: 220px;
}

.formrow input {
	padding: 5px;
	border: 1px solid black;
	border-radius: 5px;
	font-family: Open Sans, sans-serif;
	font-size: 20px;
	width: 275px;
}

.formrow button {
	font-family: Open Sans, sans-serif;
	font-size: 16px;
	padding: 8px;
	border: 2px solid black;
	border-radius: 5px;
	background-color: #4b779b;
	color: white;
	cursor: pointer;
	transition: scale 0.3s ease-in-out;
}

.formrow button:hover {
	transform: scale(1.05);
}


/* Searchresults.php Styling */

.searchresultsheader {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	background-image: url('aluminum.jpg');
	border: 2px solid black;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
	width: 100%;
}

.searchresultsheader img {
	width: 400px;
	height: 200px;
	margin-left: 50px;
}

.searchresultsheader h1 {
	font-family: Montserrat, sans-serif;
	font-size: 38px;
	font-weight: 500;
	text-shadow: 0px 2px 4px rgba(0, 0, 0, 2);
	margin-right: 50px;	
}

.result-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 50px;
	border: 2.5px solid black;
	background-image: url('aluminum.jpg');
	background-size: cover;
	background-repeat: repeat;
	overflow-x: auto;
	margin: 10px 10px;
	max-width: 90%;
	box-sizing: border-box;
	padding: 20px;
}

.result-fields {
	display: flex;
	flex-wrap: nowrap;
	gap: 30px;
	overflow-x: auto;
	width: 100%;
}

.result-field {
	display: flex;
	flex-direction: column;
	min-width: 150px;
	flex: 1 1 150px;
	align-items: center;
}

.label {
	font-weight: bold;
	font-size: 18px;
	color: black;
	margin-bottom: 5px;
	font-family: Montserrat, sans-serif;
	white-space: nowrap;
	margin: 10px;
	text-align: center;
}

.value {
	font-size: 16px;
	color: #222;
	font-family: Open Sans, sans-serif;
	background-color: white;
	padding: 5px 8px;
	width: 100%;
	border-radius: 4px;
	box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
	box-sizing: border-box;
	margin-bottom: 10px;
}

.result-edit {
	display: flex;
	flex-direction: column;
	align-self: flex-end;
	gap: 10px;
}

.edit-button {
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	padding: 8px 14px;
	background-color: #7ca1c7;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: background-color 0.2s ease;
}
.edit-button:hover {
	background-color: #5e89b4;
}

.delete-button {
	font-family: Montserrat, sans-serif;
	font-size: 16px;
	padding: 8px 14px;
	background-color: red;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: background-color 0.2s ease;
}
.delete-button:hover {
	background-color: maroon;
}


.editmodal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Dim background */
}

.editmodal-content {
	background-color: #fff;
	margin: 10% auto;
	padding: 20px;
	border-radius: 10px;
	width: 500px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.3);
	position: relative;
}

.close-button {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 24px;
	cursor: pointer;
}

.tab-buttons {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}

.tab-btn {
	padding: 10px 20px;
	background-color: #e0e0e0;
	border: none;
	cursor: pointer;
	font-weight: bold;
	border-radius: 5px;
}

.tab-btn.active {
	background-color: #7ca1c7;
	color: white;
}

.tab-content {
  visibility: hidden;
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  width: 100%;
}

.tab-content.active {
  visibility: visible;
  position: relative;
  pointer-events: auto;
  opacity: 1;
}

.form-group {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
}

.form-group label {
	width: 150px; /* You can adjust this */
	text-align: left;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	color: #333;
}

.form-group input,
.form-group textarea {
	flex: 1;
	padding: 10px 12px;
	font-size: 16px;
	font-family: 'Open Sans', sans-serif;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
	border-color: #7ca1c7;
	box-shadow: 0 0 0 2px rgba(124, 161, 199, 0.3);
	outline: none;
}

.form-group textarea {
	resize: vertical;
	min-height: 80px;
}

.shipping-options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px 20px;
	margin: 10px 0 20px;
}

.shipping-options label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
	cursor: pointer;
}

#savechanges {
	padding: 8px;
	margin-bottom: 10px;
	color: white;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	background-color: #7ca1c7;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}

#savechanges:hover {
	background-color: #5e89b4;
}

#production_complete {
	padding: 8px;
	margin-bottom: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background-color: #3399FF;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}

#production_complete:hover {
	background-color: #0066FF;
}

#undo_production {
	padding: 8px;
	margin-bottom: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background-color: #CC0000;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}

#undo_production:hover {
	background-color: maroon;
}

#audit {
	padding: 8px;
	margin-bottom: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background-color: #3399FF;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}

#audit:hover {
	background-color: #0066FF;
}

#backorder {
	padding: 8px;
	margin-bottom: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background-color: #3399FF;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}

#backorder:hover {
	background-color: #0066FF;
}



/* AddNewOrder.php Styling */

.addnewheader {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-end;
	background-image: url('aluminum.jpg');
	border: 2px solid black;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
	width: 100%;
	gap: 800px;
}

.addnewheader img {
	width: 400px;
	height: 200px;
	margin-right: 200px;
}

.addnewheader h1 {
	font-family: Montserrat, sans-serif;
	font-size: 38px;
	font-weight: 500;
	text-shadow: 0px 2px 4px rgba(0, 0, 0, 2);	
}

.neworderform {
	display: flex;
	flex-direction: column;
	border: 1px solid black;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 1.5);
	background-image: url('aluminum.jpg');
	height: 900px;
	width: 75%;
	margin: 20px auto;
	justify-content: center;
	align-items: center;
}

.neworderform h1 {
    text-align: center;
    font-size: 26px;
    color: black;
    text-decoration: underline;
    margin-bottom: 30px;
}

/* Label styling */
.neworderform label {
    display: flex;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 20px;
    color: black;
    white-space: nowrap;
    margin-right: 25px;
}

/* Styling for the inputs */
.neworderform input,
.neworderform textarea {
    min-width: 400px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    margin-bottom: 10px; /* Adds spacing between inputs */
}

.neworderform textarea {
    height: 100px;
    resize: vertical; /* Allows vertical resizing of the textarea */
}

/* Input focus */
.neworderform input:focus,
.neworderform textarea:focus {
    border-color: #7ca1c7;
    outline: none;
}

#saveandcontinue {
	padding: 8px;
	margin-bottom: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background-color: #3399FF;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}
#saveandcontinue:hover {
	background-color: #0066FF;
}

#saveneworder {
	padding: 8px;
	margin-bottom: 10px;
	font-family: Montserrat, sans-serif;
	font-size: 18px;
	font-weight: bold;
	color: white;
	background-color: #3399FF;
	border: 1px solid black;
	cursor: pointer;
	align-items: center;
	width: 100%;
}
#saveneworder:hover {
	background-color: #0066FF;
}

.ticket-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    background-image: url('Images/aluminumtexture.jpg'); /* optional */
    background-repeat: repeat;
    background-size: auto;
}

.ticket-form {
    background-color: #f7f7f7;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    width: 500px;
    max-width: 90%;
    font-family: 'Open Sans', sans-serif;
}

.ticket-form select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Open Sans', sans-serif;
    margin-top: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.ticket-form h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
}

.ticket-form label {
    font-size: 18px;
    color: #444;
}

.ticket-form input[type=text], .ticket-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: 'Open Sans', sans-serif;
    margin-top: 5px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.ticket-form input[type=submit] {
    background-color: #9db5d1;
    color: white;
    font-size: 18px;
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.ticket-form input[type=submit]:hover {
    background-color: #7ca1c7;
}

.admin-ticket-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f0f8ff;
    border-radius: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
    font-family: 'Open Sans', sans-serif;
}

.admin-ticket-container h1 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

.ticket-card {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    border-left: 6px solid #7ca1c7;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.ticket-card h3 {
    margin-top: 0;
    color: #444;
    font-size: 22px;
}

.ticket-status {
    font-size: 16px;
    font-weight: 600;
    color: #7ca1c7;
}

.ticket-card p {
    margin: 5px 0;
    font-size: 16px;
}

.ticket-filter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
}

.ticket-filter-form select {
    padding: 8px;
    border-radius: 8px;
    font-size: 16px;
}

.completed-style {
	background-color: #c3e6cb !important;
	color: #155724 !important;
	font-weight: bold;
	padding: 4px 8px;
	border-radius: 4px;
}

.audited-style {
	background-color: #cce5ff !important;
	color: #004085 !important;
	font-weight: bold;
	padding: 4px 8px;
	border-radius: 4px;
}
