* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #b9c9e0;
  padding: 20px;
  background-image: url('https://www.transparenttextures.com/patterns/white-paper-fibers.png');
  background-size: cover;

}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

h1 {
  text-align: center;
  background-color: #39250a;
  color: #fff;
  padding: 15px;
  border: 3px solid #4e342e;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

form {
  background-color: #fdfdfd;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 40px;
  border: 3px solid #3d250d;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 14px;
  color: #333;
}

input, select {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-top: 5px;
}

.gender {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

button {
  padding: 10px 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.save {
  background-color: #4a2f1e;
  color: white;
  width: 100%;
}

.save:hover {
  background-color: #3b2418;
}

.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

thead {
  background-color: #4e342e;
  color: white;
}

table button {
  background-color: #e53935;
  color: white;
}

table button:hover {
  background-color: #c62828;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 20px;
  }

  input, select {
    font-size: 14px;
  }

  table th, table td {
    font-size: 13px;
  }
}
