﻿body {
	background-color: #E6F0FA;
	margin: 0;
	padding: 0;
}

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

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

li {
	list-style: none;
}

.alert {
    padding: 12px 16px;
    margin: 15px auto;
    width: 90%;
    max-width: 700px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/*Manual Login Page*/

.login-box {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 60%;
	height: auto;
	margin: 50px auto;
	padding: 20px;
	border: 2px solid #173753;
	border-radius: 8px;
	background-color: #9DB5D1;
}

.login-box img {
	width: 350px;
	height: auto;
}

.loginform {
	display: flex;
	flex-direction: column;
	background-color: #e6f0fa;
	width: 60%;
	margin: 40px auto;
	padding: 30px;
	gap: 30px;
	border-radius: 8px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.inputwrapper {
	display: flex;
	gap: 30px;
	font-size: 24px;
	margin-top: 20px;
}

.inputwrapper input {
	width: 80%;
	transition: transform 0.3s ease-in;
	padding: 8px;
}

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

.login {
	background-color: #9db5d1;
	border: 2px solid #173753;
	border-radius: 10px;
	font-size: 20px;
	padding: 10px;
	cursor: pointer;
	transition: background-color 0.3s ease-in;
}

.login:hover {
	background-color: #173753;
	color: white;
}

/*End of Manual Login Styling*/





/*Start Hourly Dashboard Styling*/

.dashboard-header {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	padding: 20px;
	background-color: #9DB5D1;
	border-bottom: 2px solid #173753;
}

.header-image img {
	width: 200px;
	height: auto;
}

.current-user h1, h2 {
	font-size: 28px;
}

#clock-status {
	font-size: 20px;
}

#datetime {
	font-size: 20px;
}

/*Main Dashboard*/

.dashboard-main {
	background-color: #7CA1C7;
	display: flex;
	flex-direction: column;
	height: auto;
	padding: 40px;
}

#calendar {
  margin: 2rem;
  height: auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  font-family: 'Montserrat', sans-serif;
}

.fc {
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

/*Hourly Dashboard Event Styling*/

.fc-daygrid-day {
  cursor: pointer;
  transition: background-color 0.3s ease-in, transform 0.3s ease-in;
  border-radius: 8px;
}

.fc-daygrid-day:hover {
	background-color: #9db5d1;
	transform: scale(1.03);
}

.fc-event.shift-event {
  background-color: #cfe7ff !important;
  border: 1px solid #8ab6e8 !important;
  color: #0a3d62 !important;
  font-weight: 500;
}

.fc-event.vacation-event {
  background-color: #B085FA !important;
  border: 1px solid #B085FA !important;
  color: white !important;
  font-weight: 600;
}

.fc-event.vacation-event::before {
  content: "🌞 ";
}

.fc-daygrid-day-frame .fc-event.vacation-event {
  background: rgba(255, 204, 0, 0.18); /* subtle highlight */
  padding: 2px 4px;
  border-radius: 6px;
}

.clockcontrols {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin: auto;
}

.clockcontrols form {
	width: 90%;
}

#clockin-button {
	padding: 8px 20px;
	width: 100%;
	margin: 20px auto;
	background-color: green;
	border: none;
	color: black;
	font-size: 24px;
	border-radius: 8px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: background-color 0.3s ease-in;
}

#clockin-button:hover {
	background-color: #006600;
}

#clockout-button {
	padding: 8px 20px;
	width: 100%;
	margin: 20px auto;
	background-color: red;
	border: none;
	color: black;
	font-size: 24px;
	border-radius: 8px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: background-color 0.3s ease-in;
}

#clockout-button:hover {
	background-color: maroon;
}

#admin-panel-btn {
	padding: 8px 20px;
	width: 100%;
	margin: 20px auto;
	background-color: silver;
	border: none;
	color: black;
	font-size: 24px;
	border-radius: 8px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: background-color 0.3s ease-in;
}

#admin-panel-btn:hover {
	background-color: #808080;
}

#weekly-total-box {
	text-align: center;
	font-size: 25px;
	color: #173753;
}

/*End of Main Dashboard Styling*/



/*Vacation Overview Panel Styling*/

#vacation-time {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: #9db5d1;
	color: #173753;
	border-top: 2px solid #173753;
}

#vacation-panel {
	font-size: 20px;
	color: #173753;
}

#vacation-panel li {
	margin-top: 10px;
}

.logoutsection {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #9db5d1;
}

.logout {
	display: inline-block;
	padding: 8px 20px;
	width: 90%;
	margin: 20px auto;
	background-color: red;
	text-align: center;
	border: none;
	color: black;
	font-size: 24px;
	border-radius: 8px;
	box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.5);
	cursor: pointer;
	transition: background-color 0.3s ease-in;
}

.logout:hover {
	background-color: maroon;
}

/*End of Vacation Overview Panel*/




/*Beginning of Admin Panel Styling*/

.admin-panel, 
.back {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #7ca1c7;
	padding: 20px;
	gap: 20px;
	color: #173753;
}

.admin-panel h1 {
	text-decoration: underline;
	font-size: 32px;
}

.admin-section,
#time-management,
#addEmployeeForm,
#manageEmployeeForm,
#report,
#selectimeentry,
#addtimeentry,
#adjustVacationForm,
#holidayForm,
#deleteHolidayForm {
	width: 80%;
	margin: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #9db5d1;
	padding: 20px;
	border: 1px solid #173753;
	border-radius: 10px;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

#vacation-balance-box {
	width: 80%;
	margin: 20px auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #9db5d1;
	padding: 20px;
	font-size: 24px;
}


.admin-options {
	display: flex;
	flex-direction: column;
	font-size: 24px;
	font-weight: 600;
	padding: 5px 10px;
	gap: 10px;
}

.shift-row,
.vacation-row {
	font-size: 24px;
	font-weight: 600;
	padding: 5px 10px;
	gap: 10px;
}


.admin-options input,
.admin-options select,
.shift-row input,
.shift-row select,
.vacation-row input,
.vacation-row select {
	font-size: 20px;
}

.runreport,
.addentry,
.load-shifts,
.save-changes,
.updateemployee,
.deleteemployee,
.generate-pdf,
.return {
	padding: 8px 10px;
	width: 90%;
	margin: 30px auto;
	border: none;
	background-color: #173753;
	color: white;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.3s ease-in;
	font-size: 20px;
}

.backbutton {
	display: inline-block;
	padding: 8px 10px;
	width: 90%;
	margin: 30px auto;
	border: none;
	text-align: center;
	background-color: #173753;
	color: white;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.3s ease-in;
	font-size: 24px;
	text-decoration: none;
}

.runreport:hover,
.addentry:hover,
.load-shifts:hover,
.save-changes:hover,
.backbutton:hover {
	transform: scale(1.02);
}

/*Report Table Styling*/

.daterange {
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

.report-table {
  width: 90%;
  margin: 20px auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.report-table th, 
.report-table td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.report-table th {
  background: #3b6aa0;
  color: #fff;
}

.report-table tr:nth-child(even) {
  background: #f2f2f2;
}

.total-row th {
  background: #2f5275;
  color: #fff;
}

.report-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 20px;
}

.buttons {
	display: flex;
	flex-direction: column;
	padding: 10px;
	justify-content: center;
	align-items: center;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-label {
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  background: white;
  color: #173753;
  font-size: 24px;
  margin: auto 20px;
}

.dropdown-content,
.delete-dropdown-content {
  display: none;
  position: absolute;
  background: #9db5d1;
  border: 1px solid #aaa;
  padding: 10px;
  min-width: 200px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 100;
  font-size: 20px;
}

.dropdown-content.open,
.delete-dropdown.content.open {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/*End of Admin Panel Styling*/


/*Beginning of Salary Dashboard Styling*/

.dayeventModal {
  display: none; 
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 1.5rem;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  font-family: 'Montserrat', sans-serif;
  text-align: center;
}

.modal-content h2 {
  margin-top: 0;
  color: #7ca1c7;
  text-align: center;
}

.status-options li {
  list-style: none;
  margin: 0.5rem 0;
  font-size: 1.4rem;
  cursor: pointer;
}

.status-options li:hover {
  color: #7ca1c7;
  font-weight: bold;
}

#closeModal {
  float: right;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease-in;
}

#closeModal:hover {
	color: red;
}

.statusbuttons {
	display: flex;
	flex-direction: column;
	gap: 15px;
	justify-content: center;
	align-items: center;
}

.statusbuttons button {
	padding: 8px 10px;
	width: 80%;
	margin: auto;
	background-color: #9db5d1;
	color: #173753;
	border: none;
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.3s ease-in;
}

.statusbuttons button:hover {
	background-color: #7ca1c7;
}

/*Salary Calendar Event Styling*/

/* In Office */
.fc-event.in-office-event {
  background-color: #cfe7ff !important;
  border-color: blue !important;
  color: #0a3d62 !important;
  font-weight: 500;
}

/* Holiday */
.fc-event.holiday-event {
  background-color: #d4edda !important;
  border-color: green !important;
  color: #155724 !important;
  font-weight: 600;
}

/* Absent */
.fc-event.absent-event {
  background-color: #f8d7da !important;
  border-color: maroon !important;
  color: #721c24 !important;
  font-weight: 600;
}

/*End of Salary Calendar Event Styling*/

