﻿/* Site.css */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background-color: #f4f4f9;
	margin: 0;
	padding: 0;
}

header {
	background-color: white; /* Consistent with the navbar */
	color: black;
	text-align: center;
	transition: background-color 0.3s ease;
	top: 0; /* Positions it at the top of the page */
	left: 0; /* Ensures it aligns with the left edge */
	width: 100%; /* Spans the entire width of the viewport */

	z-index: 1000; /* Ensures the header stays above other content */

	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth 
}

	header:hover {
		background-color: white; /* Slightly darker blue */
}

	header h1 {
		font-size: 32px; /* Balanced and professional font size */
		font-weight: bold;
		color: black; /* Consistent with the header color */
		text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
		text-align: center;
		padding-bottom: 10px;
		margin: 0 auto; /* Center align with auto margins */
		border-bottom: 2px solid #fff; /* Clean bottom border */
		animation: fadeIn 1s ease-in-out; /* Smooth fade-in animation */
		letter-spacing: 1px; /* Subtle letter spacing */
		transition: transform 0.3s ease, color 0.3s ease; /* Smooth transitions */
	}

/* Responsive Design */
@media (max-width: 768px) {
	header h1 {
		font-size: 24px; /* Smaller font for medium screens */
		letter-spacing: 0.8px;
	}

	header {
		padding: 10px; /* Adjust padding for smaller screens */
	}
}

@media (max-width: 480px) {
	header h1 {
		font-size: 20px; /* Smaller font for mobile screens */
		text-shadow: none; /* Simplify styling for better performance */
	}

	header {
		padding: 5px; /* Compact padding for smaller devices */
	}
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.navbar {
	background-color: #336799;
	padding: 10px;
	color: white;
}

/* Default horizontal layout */
.nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
}

	.nav-list li {
		margin: 0 0px;
	}

		.nav-list li a {
			display: block;
			color: white;
			text-align: center;
			padding: 15px 30px;
			text-decoration: none;
			font-size: 18px;
		}

			.nav-list li a:hover {
				background-color: #264b74;
				color: red;
			}

/* Responsive styling for small screens */
@media (max-width: 600px) {
	.nav-list {
		display: none; /* Hidden by default */
		flex-direction: column; /* Vertical layout */
		background-color: #336799;
	}

		.nav-list.show {
			display: flex; /* Show when toggled */
		}
}

.menu-toggle {
	display: none; /* Hidden by default */
	cursor: pointer;
	padding: 15px;
	text-decoration: none;
	color: white;
	font-size: 18px;
	font-weight: bold;
	background-color: #264b74;
}

/* Show the menu toggle only on small screens */
@media (max-width: 600px) {
	.menu-toggle {
		display: block; /* Visible on small screens */
	}
}

.right-align {
	margin-left: auto; /* Pushes the section to the far right */
	display: flex;
	align-items: center;
}

	.right-align asp-Literal,
	.right-align asp-LinkButton {
		margin-left: 10px; /* Adds spacing between elements */
	}




.user-info {
	display: flex;
	align-items: center;
	gap: 10px;
	position: absolute;
	top: 10px;
	right: 20px;
}


	.user-info .welcome-message {
		font-size: 16px;
		color: #336799;
	}

	.user-info button,
	.logoff-btn,
	.sign-in-btn,
	.sign-out-btn {
		background-color: #ff4c4c; /* Consistent background color */
		color: white;
		border: none;
		padding: 10px 20px;
		cursor: pointer;
		border-radius: 25px; /* Rounded corners for a modern look */
		font-size: 16px; /* Increased font size */
		font-weight: bold; /* Bold text */
		box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
		transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
	}

		.user-info button:hover,
		.logoff-btn:hover,
		.sign-in-btn:hover,
		.sign-out-btn:hover {
			background-color: #ff1c1c; /* Darker hover effect */
			transform: scale(1.05); /* Slight zoom-in effect */
			box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Enhanced shadow on hover */
		}

@media (max-width: 900px) {
	.user-info {
		flex-direction: column; /* Stack elements vertically */
		align-items: flex-start; /* Align items to the start */
		position: static; /* Reset the position to default */
		gap: 15px; /* Adjust the gap between elements */
		top: auto; /* Remove specific positioning */
		right: auto; /* Remove specific positioning */
	}
}

.hidden {
	display: none;
}

.container {
	max-width: 75%;
	margin: 20px auto;
	padding: 20px;
	background-color: white;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	animation: slideIn 1s ease-in-out;
	text-align: center; /* Center content inside the container */
}

	.container img {
		display: block;
		margin: 0 auto;
	}

	.container list-group {
		text-align: left !important;
	}

	.container list-group-item {
		text-align: left !important;
	}


@keyframes slideIn {
	0% {
		transform: translateY(-20px);
		opacity: 0;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

footer {
	text-align: center;
	padding: 10px;
	background-color: #336799;
	color: white;
	position: fixed;
	width: 100%;
	bottom: 0;
}

	footer a {
		color: white;
		text-decoration: none;
		transition: color 0.3s ease;
	}

		footer a:hover {
			color: #ffdd57;
		}

h2 {
	color: #333;
	font-size: 32px;
	text-align: center;
	animation: slideIn 1s ease-in-out;
}

.form-group {
	margin-bottom: 15px;
	animation: fadeIn 1s ease-in-out;
}

	.form-group label {
		font-weight: bold;
		display: block;
	}

.form-control {
	padding: 10px;
	font-size: 16px;
	width: calc(100% - 22px);
	box-sizing: border-box;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.btn {
	padding: 10px 20px;
	font-size: 16px;
	color: white;
	background-color: #4a90e2;
	border: none;
	cursor: pointer;
	border-radius: 4px;
	transition: background-color 0.3s ease;
}

	.btn:hover {
		background-color: #357ABD;
	}

.btn-danger {
	background-color: #d9534f;
	color: white;
}

	.btn-danger:hover {
		background-color: #c9302c;
	}

.btn-secondary {
	background-color: #6c757d;
	color: white;
}

	.btn-secondary:hover {
		background-color: #5a6268;
	}

.alert {
	color: #721c24;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	padding: 10px;
	border-radius: 4px;
	margin-bottom: 15px;
	text-align: center;
	font-weight: bold;
}

.table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: 14px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

	.table th, .table td {
		border: 1px solid #ddd;
		padding: 12px;
		text-align: left;
		transition: all 0.3s ease;
	}

	.table thead {
		background-color: #4CAF50;
		color: white;
		font-weight: bold;
	}

	.table tbody tr:nth-child(odd) {
		background-color: #f9f9f9;
	}

	.table tbody tr:nth-child(even) {
		background-color: #ffffff;
	}

	.table tbody tr:hover {
		background-color: #f1f1f1;
		cursor: pointer;
	}

	.table th {
		background-color: #4CAF50;
		color: white;
		padding-top: 12px;
		padding-bottom: 12px;
		text-align: left;
		border-bottom: 2px solid #ddd;
	}

	.table td {
		border-bottom: 1px solid #ddd;
	}



.text-danger {
	color: red;
	font-weight: bold;
}

.result {
	margin-top: 20px;
	text-align: center;
	animation: fadeIn 1s ease-in-out;
}

	.result a {
		color: #4a90e2;
		text-decoration: none;
		font-size: 18px;
		transition: color 0.3s ease;
	}

		.result a:hover {
			color: #357ABD;
			text-decoration: underline;
		}

.input-validation-error {
	border-color: #ff0000;
	background-color: #ffe5e5;
}

.add-record-panel {
	background-color: #f8f9fa; /* Light background */
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	max-width: 400px; /* Adjust this value for a smaller width */
	margin: 0 auto; /* This centers the panel */
}

	.add-record-panel h3 {
		margin-bottom: 20px;
	}

.is-invalid {
	border-color: #dc3545;
}

.invalid-feedback {
	color: #dc3545;
	display: block;
}

.fixed-width {
	width: 200px; /* Adjust the width as needed */
}

.toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #FF0000, #32CD32); /* Bright red and bright green gradient */
	padding: 10px 20px;
	border-radius: 12px; /* Increased radius for a more rounded look */
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Slightly larger shadow for more depth */
	font-family: 'Arial', sans-serif; /* Font for a modern look */
	color: #ffffff; /* Label color in the toolbar */
}

.toolbar-button {
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.1); /* Transparent background */
	border: 1px solid #ffffff; /* Border for clarity */
	padding: 12px 24px; /* Increased padding for more space */
	border-radius: 8px; /* Increased radius for more rounded buttons */
	transition: background-color 0.3s, transform 0.3s; /* Added transform transition */
	font-size: 16px; /* Font size for better readability */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for button depth */
}

	.toolbar-button:hover {
		background-color: rgba(255, 255, 255, 0.3); /* Slightly darker transparent color on hover */
		transform: scale(1.05); /* Slight scale transformation on hover */
	}

.dropdown-list {
	color: #000000; /* Clear font color */
	background-color: rgba(255, 255, 255, 0.1); /* Transparent background */
	border: 1px solid #ffffff; /* Border for clarity */
	padding: 12px 24px; /* Increased padding for more space */
	border-radius: 8px; /* Increased radius for more rounded buttons */
	transition: background-color 0.3s, transform 0.3s; /* Added transform transition */
	font-size: 16px; /* Font size for better readability */
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for button depth */
}

	.dropdown-list:hover {
		background-color: rgba(255, 255, 255, 0.3); /* Slightly darker transparent color on hover */
		transform: scale(1.05); /* Slight scale transformation on hover */
	}






.chart {
	width: 100% !important;
	height: 100% !important;
	max-width: 600px !important; /* Maximum width for the chart */
	max-height: 600px !important; /* Maximum height for the chart */
	margin: auto; /* Center the charts */
	display: block; /* Ensures the chart takes up the entire width of its container */
	box-sizing: border-box; /* Ensure proper box-sizing */
}

.input-container {
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
}

.input-field {
	flex: 1;
	padding-right: 50px; /* Reserve space for the button */
	height: 40px; /* Adjust to match button height */
}

.check-btn {
	position: absolute;
	right: 5px;
	top: 50%;
	transform: translateY(-50%);
	height: 38px; /* Match the textbox height */
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 5px 10px;
	cursor: pointer;
}


.delete-button {
	background-color: red;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
}

	.delete-button i {
		margin-right: 5px;
	}