/* styles.css */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f9f9f9;
  color: #333;
}

.app-header {
  background: #333;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.search-bar input {
  padding: 0.5rem;
  border-radius: 6px;
  border: none;
  width: 250px;
  font-size: 1rem;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
  flex-wrap: wrap;
}

button {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  border: none;
  background: #333;
  color: white;
  cursor: pointer;
}

.content {
  display: flex;
  padding: 2rem;
  gap: 2rem;
}

.filter-sidebar {
  width: 200px;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  height: fit-content;
}

.filter-sidebar label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.employee-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.employee-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.employee-card .actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.footer {
  text-align: center;
  padding: 1rem;
  background: #333;
  font-size: 0.9rem;
  margin-top: 2rem;
  color: white;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.modal h2 {
  margin-top: 0;
}

form label {
  display: block;
  margin-top: 1rem;
  font-weight: 500;
}

form input,
form select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  
}

@media (max-width: 768px) {
  .content {
    flex-direction: column;
  }
  .employee-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    flex-direction: column;
  }
  .filter-sidebar {
    width: 100%;
  }
}

.hidden {
  display: none;
}

#filterPanel {
  transition: all 0.3s ease;
  padding: 1rem;
  border: 1px solid #ccc;
  margin-bottom: 1rem;
  background-color: #f9f9f9;
}

#toggleFilterBtn {
  padding: 0.5rem 1rem;
  background-color: white;
  color: #333;
  border: none;
  cursor: pointer;
  margin: 1rem 0;
  border-radius: 4px;
}

#toggleFilterBtn:hover {
  background-color: #0056b3;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

