* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Title */
.title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

/* Button group */
.button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  font-size: 1rem;
  text-decoration: none;
  background-color: #007bff;
  color: white;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn-create {
  background-color: #6c757d;
}

.btn-create:hover {
  background-color: #545b62;
}

.form {
  max-width: 400px;
  margin: 40px auto;
  padding: 30px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

.form h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
}

.form label {
  display: block;
  margin-bottom: 6px;
  color: #555;
  font-weight: 500;
}

.form input {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 100px;
  font-size: 1rem;
  transition: border 0.2s ease;
}

.form input:focus {
  border-color: #007bff;
  outline: none;
}

.error-message {
  color: red;
  font-size: 0.9em;
  margin-bottom: 2px;
}

header {
    background-color: #4B0082;
    padding: 1em 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

main {
    margin-top: 120px; 
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 2em;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

.table-container {
    width: 90%;
    margin: 0 auto 40px auto;
    overflow-x: auto;
}

#employee-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    table-layout: auto; 
}

#employee-table th {
    background-color: #007bff;
    color: white;
    padding: 10px;
    white-space: nowrap; 
}

#employee-table td {
    border: 1px solid #ccc;
    padding: 10px;
}

#employee-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    display: block;
    width: 280px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.card h2 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    color: #007bff;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

.search-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px auto 30px auto;
    max-width: 600px;
}

.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

.search-bar input:focus {
    border-color: #007bff;
    outline: none;
}