* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 24px;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  align-items: end;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.required {
  color: red;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #4472c4;
  border-radius: 4px;
  background-color: #4472c4;
  color: white;
  font-size: 14px;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group select {
  background-color: #4472c4;
  color: white;
}

.form-group select option {
  background-color: white;
  color: black;
}

.btn-agregar,
.btn-buscar,
.btn-regresar {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  min-width: 80px;
}

.btn-agregar,
.btn-buscar {
  background-color: #a5a5a5;
  color: white;
}

.btn-regresar {
  background-color: #a5a5a5;
  color: white;
}

.btn-agregar:hover,
.btn-buscar:hover,
.btn-regresar:hover {
  background-color: #8a8a8a;
}

.table-container {
  margin-top: 30px;
  overflow-x: auto;
}

.contacts-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #4472c4;
}

.contacts-table th,
.contacts-table td {
  border: 1px solid #4472c4;
  padding: 8px;
  text-align: left;
}

.contacts-table th {
  background-color: #e7f3ff;
  font-weight: bold;
  color: #333;
}

.contacts-table td {
  background-color: white;
}

.contacts-table tr:nth-child(even) td {
  background-color: #f8f9fa;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.action-btn:hover {
  background-color: #e0e0e0;
  border-radius: 4px;
}

.xml-link {
  text-align: center;
  margin-top: 20px;
}

.xml-link a {
  color: #4472c4;
  text-decoration: underline;
  font-weight: bold;
}

.xml-link a:hover {
  color: #2e5aa8;
}

/* Added styling for XML link positioned at bottom right */
.xml-link-bottom-right {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.xml-link-bottom-right a {
  color: #4472c4;
  text-decoration: underline;
  font-weight: bold;
  font-size: 14px;
}

.xml-link-bottom-right a:hover {
  color: #2e5aa8;
}

/* Estilos para la página de búsqueda */
.search-criteria {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}

.radio-group {
  display: flex;
  gap: 30px;
}

.radio-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #333;
}

.radio-group input[type="radio"] {
  margin-right: 8px;
}

.search-input {
  width: 300px;
}

.search-input input {
  width: 100%;
  padding: 10px;
  border: 2px solid #4472c4;
  border-radius: 4px;
  background-color: #4472c4;
  color: white;
  font-size: 14px;
}

.search-input input::placeholder {
  /* Changed placeholder text color from gray to white */
  color: white;
}

.search-buttons {
  display: flex;
  gap: 15px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  text-align: center;
}

.modal-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.btn-confirm {
  background-color: #dc3545;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Removed fixed positioning for XML link and added styling for below-table positioning */
.xml-link-below-table {
  text-align: right;
  margin-top: 15px;
  padding-top: 10px;
}

.xml-link-below-table a {
  color: #4472c4;
  text-decoration: underline;
  font-weight: bold;
  font-size: 14px;
}

.xml-link-below-table a:hover {
  color: #2e5aa8;
}
