/* General Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 2rem;
  background: linear-gradient(to bottom, #e6f0ff, #ffffff);
  color: #1a1a1a;
}

/* Form Elements */
label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="url"],
fieldset,
#searchInput {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fff;
}

fieldset {
  border: 1px solid #ccc;
  padding: 1rem;
  background-color: #fdfdfd;
  border-radius: 6px;
}

/* Buttons */
button {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

/* Error Text */
.error {
  color: #d93025;
  font-size: 0.9rem;
}

.sr {
  position: absolute;
  left: -9999px;
}

/* Cards Layout */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Individual Profile Card */
.card-person {
  background-color: #ffffff;
  border: 1px solid #cce0ff;
  border-radius: 6px;
  padding: 1rem;
  width: 220px;
  box-shadow: 2px 2px 6px rgba(0, 85, 170, 0.1);
  transition: transform 0.2s ease;
}

.card-person:hover {
  transform: scale(1.02);
}

.card-person img {
  width: 100%;
  height: 50%;
  border-radius: 4px;
  display: block;
}

/* Tags / Labels */
.badge {
  display: inline-block;
  padding: 0.3em 0.6em;
  background-color: #cce0ff;
  color: #003366;
  border-radius: 0.3em;
  margin-right: 0.5em;
  font-size: 0.9rem;
}

/* Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

th, td {
  border: 1px solid #cce0ff;
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #e6f0ff;
  color: #003366;
}

/* Search Box */
#searchInput {
  background-color: #ffffff;
  border: 1px solid #007bff;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.required {
  color: red;
  margin-left: 0.1rem;
}

/* Responsive Enhancements */
@media (max-width: 600px) {
  .card-container {
    flex-direction: column;
  }

  .card-person {
    width: 100%;
  }
}
