* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.title-wrapper {
  text-align: center;
}

h1 {
  display: inline-block;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* clean modern font */
  font-size: 2.5rem;          /* nice readable size */
  font-weight: 600;           /* semi-bold for balance */
  letter-spacing: 1px;        /* adds some breathing room */
  text-align: center;
  padding: 1rem 2rem;
  border: 2px solid hsl(0, 16%, 92%);
  border-radius: 8px;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

body {
  background: URL("https://github.com/albertochan81/empmng_frontend/blob/main/images/background.jpg?raw=true") no-repeat center center fixed;
  background-size: cover;
  color: #333;
  padding: 2rem;
  line-height: 1.5;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Container */
.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* Form styling */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  grid-column: span 2;
}

input, button {
  padding: 0.6rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  width: 100%;
  transition: border 0.2s;
}

input:focus {
  border-color: #4a90e2;
  outline: none;
}

button {
  grid-column: span 2;
  background-color: #4a90e2;
  color: white;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
}

button:hover {
  background-color: #357ABD;
}

/* Employee list */

/* Employee cards */
.employee-cards {
  list-style: none;
  margin-top: 1.5rem;
  padding: 0;
}

.employee-cards li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.employee-cards img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.employee-info {
  flex: 1;
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 0.4rem;
  column-gap: 0.6rem;
  font-size: 0.9rem;
}

.employee-info div {
  font-weight: 500;
  color: #555;
}

.employee-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.employee-actions button {
  padding: 0.4rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.employee-actions .edit-btn {
  background-color: #4a90e2;
  color: white;
}
.employee-actions .edit-btn:hover {
  background-color: #357ABD;
}

.employee-actions .delete-btn {
  background-color: #e74c3c;
  color: white;
}
.employee-actions .delete-btn:hover {
  background-color: #c0392b;
}

/* Responsive */
@media (max-width: 600px) {
  .employee-cards li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .employee-info {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .employee-actions {
    flex-direction: row;
  }
}