/* EmployeeList.css */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  color: #333; /* Default text color */
  text-align: center; /* Center align text */
}

.headerEmpList {
  color: rgb(63, 61, 61); /* Highlight color */
  font-family: 'Arial', sans-serif;
  margin-bottom: 20px; /* Add margin to bottom */
  font-size: 24px;
  font-weight: bold;
}

.search-bar,
.department-filter {
  width: 90%; /* Reduced width */
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px; /* Adjusted font size */
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.total {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.employee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.employee-table th,
.employee-table td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.employee-table th {
  background-color: #333;
  color: white;
}

.employee-table tr:nth-child(even) {
  background-color: #f1f1f1;
}

.employee-table tr:nth-child(odd) {
  background-color: #e7e7e7;
}

.delete-button,
.edit-button {
  transition: 0.2s ease-in-out;
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  width: 80px; /* Consistent width */
  margin-top: 5px; /* Spacing between buttons */
}

.delete-button:hover,
.edit-button:hover {
  background-color: #ff1a1a;
  transition: 0.2s ease-in-out;
}

.edit-button {
  background-color: #4c6baf;
  transition: 0.2s ease-in-out; /* Different color for edit button */
}

.edit-button:hover {
  background-color: #4545a0;
  transition: 0.2s ease-in-out;
}



/* EmployeeList.css */

/* Existing styles... */
/* Overlay and Modal Styling */
.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  position: relative;
  z-index: 1100;
  animation: fadeIn 0.3s ease-out;
}

/* Modal Content Styling */
.modal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.modal-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: bold;
  color: #333;
}

.modal-row input,
.modal-row select {
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color 0.3s;
}

.modal-row input:focus,
.modal-row select:focus {
  border-color: #4a90e2;
  outline: none;
}

.modal-save,
.modal-close {
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 10px;
}

.modal-save {
  background-color: #4a90e2;
  color: #fff;
  margin-right: 10px;
}

.modal-close {
  background-color: #888;
  color: #fff;
}

.modal-save:hover {
  background-color: #3a78c3;
}

.modal-close:hover {
  background-color: #666;
}

/* Keyframes for Fade-In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
