* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  display: flex;
  height: 100vh;
  background-color: #f8f9fa;
}
a {
  text-decoration: none;
}
:root {
  --primaryColor: #ff7810;
}
/* Sidebar */
.sidebar {
  min-width: 250px;
  max-width: 250px;
  background-color: #df7524;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sidebar .logo {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.sidebar button {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 12px;
  margin: 8px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.sidebar button:hover,
.sidebar button.active {
  background: rgba(255, 255, 255, 0.2);
}
.sidebar a {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 12px;
  margin: 8px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  transition: background 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
  background: rgba(255, 255, 255, 0.2);
}
/* Main content */
.main-content {
  flex: 1;
  padding: 25px;
  height: 100vh;
  overflow-y: auto;
}

.content-section {
  display: none;
  width: 100%;
  max-width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.content-section.active {
  display: block;
}

h2 {
  margin-bottom: 20px;
  color: #333;
}
#employeeSignUp,
#assignTask {
  max-width: 700px;
}
/* Form */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.3s;
  width: 100%;
}
.form-group select {
  height: 39px;
}
.form-group input {
  height: 39px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #ff7810;
}
fieldset {
  padding: 10px;
  border: 1px solid #ccc;
}
legend {
  font-weight: bold;
  font-style: italic;
  color: #333;
  font-size: 18px;
}
button.submit-btn {
  background-color: #ff7810;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
  transition: background 0.3s;
}

button.submit-btn:hover {
  background-color: #e96b05;
}
.formFlex {
  display: flex;
  gap: 10px;
  width: 100%;
}
.formFlex input {
  width: 100%;
}
#emPhoto {
  min-width: 100px;
  max-width: 100px;
  min-height: 100px;
  max-height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e96b05;
}
/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
  position: relative;
}

.popup-content h3 {
  margin-bottom: 15px;
}

.popup-content .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.popup-content .info span {
  font-weight: bold;
}

.popup-content .info i {
  cursor: pointer;
  color: #ff7810;
}

.popup-content .close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
}
/* ===================== Employees Table ===================== */
#employeeList,
#activity,
#approvals,
#reports,
#leaveApplications,
#projects {
  margin: 20px;
  overflow-y: auto;
  position: relative;
}
.table-container {
  max-height: 80vh; /* Limit table height */
  overflow-y: auto; /* Enable vertical scrolling */
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}
.table-container table {
  min-width: 1300px;
  overflow-x: auto;
}
thead th {
  position: sticky;
  top: 0;
  background-color: #ff7810; /* Header background */
  color: white;
  padding: 10px;
  text-align: center;
  z-index: 2; /* Ensure it stays above rows */
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

tbody tr:nth-child(even) {
  background-color: #f8f9fa; /* Row striping */
}
#activity {
  margin: 20px;
}
#searchEmployee {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.3s;
  max-width: 200px;
  outline: none;
}
.searchBtn {
  padding: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  border: none;
  background-color: #ff7810;
  font-weight: 500;
  color: white;
  cursor: pointer;
}
.inputFrom {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 05px;
}
.opBtn {
  border: none;
  height: 30px;
  width: 30px;
  font-size: 18px;
  cursor: pointer;
  border-radius: 3px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#employeeDetailsPopup {
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  top: 0;
  left: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
}
.employeeDetailsContent {
  background-color: white;
  padding: 10px;
  border-radius: 5px;
  min-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: relative;
  height: 70vh;
  overflow-y: auto;
}
.employeeDetailsContent img {
  min-width: 100px;
  min-height: 100px;
  max-width: 100px;
  max-height: 100px;
  border-radius: 50%;
  border: 2px solid #df7524;
  object-fit: cover;
}
#emdc-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #eee;
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
}
.employeeDetailsContent table td:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tablePhotoEmployee {
  width: 50px;
  height: 50px;
  border: 1px solid #df7524;
  object-fit: contain;
}
.empDocViewBtn {
  font-weight: bold;
  text-decoration: none;
  color: #df7524;
}
/* Approval section styles */
.approve-btn,
.reject-btn {
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.85rem;
  margin-right: 5px;
}

.approve-btn {
  background-color: #28a745;
  color: #fff;
}

.approve-btn:hover {
  background-color: #218838;
}

.reject-btn {
  background-color: #dc3545;
  color: #fff;
}

.reject-btn:hover {
  background-color: #c82333;
}
.doc-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  z-index: 9999;
}

.doc-popup.active {
  visibility: visible;
  opacity: 1;
}

.doc-popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 800px;
  position: relative;
}

.doc-popup-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
  font-weight: bold;
  background-color: white;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid gainsboro;
}
.view-doc-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 5px;
  background-color: #007bff; /* blue button */
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.3s;
}

.view-doc-btn:hover {
  background-color: #0069d9; /* darker blue on hover */
}
#approvals {
  margin: 20px;
}
/* Report section styles */
/* ================= Analytics / Reports ================= */
.analytics-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.analytics-cards .card {
  flex: 1;
  min-width: 150px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.analytics-cards .card h3 {
  margin-bottom: 10px;
  color: #333;
}

.analytics-cards .card p {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ff7810;
}

#reports {
  margin: 20px;
}
.table-container table thead {
  position: sticky;
  top: 0;
  background-color: #ff7810;
  color: #fff;
  z-index: 1;
}
.flexJustify {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border 0.3s;
  outline: none;
  max-width: 200px;
}
.filter:focus {
  border: 1px solid #ff7810;
}
/* Profile page styles */
#container {
  width: 50%;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  margin: 0 auto;
  border: 1px solid gainsboro;
  padding: 10px;
  padding-bottom: 50px;
  background-color: white;
}
.main {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.topBar {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  left: 0;
  top: 0;
  background-color: white;
}
.topBar form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn {
  padding: 5px 10px;
  border-radius: 5px;
  border: none;
  background-color: var(--primaryColor);
  color: #01132e;
  display: block;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
}
/* .topBar h3 {
  text-transform: capitalize;
} */
.presentAddressContainer h4 {
  margin-bottom: 10px;
}
.permanentAddressContainer h4 {
  margin-bottom: 10px;
}
.optional {
  color: gray;
}
.main .detailsForm {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
}
.main .detailsForm form {
  margin-top: 15px;
  border: 1px solid gainsboro;
  padding: 10px;
  border-radius: 5px;
}
.formField {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}
.formField input,
select {
  border: 1px solid gainsboro;
  border-radius: 3px;
  padding: 8px;
  font-size: 17px;
  outline: none;
  width: 100%;
}
#numberCode select {
  border: 1px solid gainsboro;
  border-radius: 3px;
  padding: 7px;
  font-size: 17px;
  outline: none;
}
.formField select {
  text-transform: uppercase;
}
.sameAs {
  margin-bottom: 15px;
}
.profileImageUpload {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}
.profileImageContainer {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  overflow: hidden;
}
.profileImageContainer img {
  width: 100%;
  height: 100%;
}
.profileImageUpload .formField {
  flex: 1;
}
.saveChangesBtn {
  border: none;
  padding: 10px;
  border-radius: 5px;
  background-color: black;
  color: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  width: 150px;
  margin: 0 auto;
}
.warningContainer {
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  margin-top: 20px;
}
.warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(220, 220, 220, 0.3);
  padding: 10px;
  border-radius: 5px;
}
#nidContainer,
#passportContainer,
#drivingLicenseContainer,
#voterIdCardContainer {
  display: none;
}
.required {
  color: red;
  font-size: 15px;
  font-weight: bold;
}
.headingDiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.headingDiv p {
  font-size: 17px;
  font-weight: 500;
  text-transform: capitalize;
}
.formFlex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.formFlex2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.formFlex .formField {
  width: 100%;
}

#numberCode {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}
#numberCode select {
  max-width: 100px;
}
#emergency form h4 {
  margin-bottom: 10px;
}
.contactContainer {
  border: 1px solid gainsboro;
  padding: 8px;
  margin-bottom: 20px;
  border-radius: 3px;
}
.contactContainer h4 {
  text-align: center;
  background-color: white;
  max-width: 170px;
  margin: 0 auto;
  margin-top: -18px;
  display: flex;
  gap: 5px;
  text-align: center;
  justify-content: center;
}
.contactForm {
  padding: 10px;
}
.topStatusStyle {
  display: flex;
  align-items: center;
  gap: 5px;
}
/* employee delete popup */
.uniPopup {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 90;
}
.uniPopup .employeeDeleteContainer {
  padding: 20px;
  border-radius: 4px;
  background-color: white;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.uniPopup .employeeDeleteContainer button {
  padding: 10px;
  border-radius: 6px;
  font-size: 0.95rem;
  border: none;
  background-color: #ff7810;
  font-weight: 500;
  color: white;
  cursor: pointer;
}

#empUpdatePopup form {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
#empUPclose {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #eee;
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
}
#empUpdatePopup form .empUpdatePhoto {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#empUpdatePopup form .empUpdatePhoto img {
  width: 150px;
  height: 150px;
}
/* Leave application */
.leaveApplicationButtons a {
  border: none;
  color: white;
  padding: 8px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  margin-right: 5px;
}
.applicationViewBtn {
  border: none;
  padding: 3px;
  border-radius: 3px;
}
/* Admin login form */
#adminLoginFormContainer {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#adminLoginForm {
  background-color: white;
  padding: 20px;
  min-width: 350px;
  max-width: 90%;
  border-radius: 5px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.301);
}
#adminLoginForm h2 {
  text-align: center;
}
#adminLoginForm button {
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: var(--primaryColor);
  font-weight: bold;
  color: white;
}
/* Payment-US */
#paymentUS {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
#paymentUS form {
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  position: relative;
}
#paymentUS form #passkeyFormCloseBtn {
  position: absolute;
  right: 5px;
  top: 5px;
  cursor: pointer;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid gainsboro;
  display: flex;
  align-items: center;
  justify-content: center;
}
#paymentUS form h3 {
  text-align: center;
}

#paymentUS form button {
  padding: 10px;
  border-radius: 6px;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  background-color: var(--primaryColor);
  font-weight: bold;
  color: white;
}
/* login user details */
.loginUserDetails {
  font-size: 18px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 10px;
  align-items: center;
}
.docViewLink {
  color: var(--primaryColor);
  font-weight: bold;
  font-size: 16px;
}
/* project section */
.projectsNav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  left: 0;
  background-color: white;
}
.projectsNav button {
  padding: 8px;
  background-color: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  background-color: var(--primaryColor);
  color: white;
  font-weight: 600;
}
.projectActionBtn {
  font-size: 14px;
  border-radius: 3px;
  padding: 5px 8px;
  color: white;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
#createProject,
#assignEmployee {
  width: 100%;
  height: 92%;
  display: flex;
  align-items: start;
  justify-content: center;
}
#projects form {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  min-width: 500px;
  border: 1px solid rgba(220, 220, 220, 0.392);
}
#correctionPopup {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  z-index: 99;
}
#correctionPopup form {
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 400px;
  border-radius: 10px;
  position: relative;
}
#correctionPopupClose {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid gainsboro;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* custom scrollbar */
/* width */
::-webkit-scrollbar {
  width: 2px;
  border-radius: 4px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}
