/* Make buttons wrap nicely inside */
button {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: var(--color-secondary);
}

.button-container {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.button-container-border .content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 10px;

  width: 100%;
  text-align: center;
}

.btn-wrapper {
  width: 100%;
  max-width: 150px; /* Match form width */
  text-align: center;
}

.login-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  font-size: 14px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  line-height: normal;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  margin-left: 2rem; /* Ensures spacing from previous link */
  text-align: center;
  font-weight: bold;
}

.login-btn:hover {
  background-color: var(--color-secondary); /* Lighter blue on hover */
  color: white;
  transform: scale(1.05);
  cursor: pointer;
}

@media (max-width: 768px) {
  .login-btn {
    display: block;
    margin: 1rem auto 0 auto; /* top auto bottom auto */
    text-align: center;
  }
}

.btn-standard {
  background-color: #007bff;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  max-width: 200px;
}

.btn-standard:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* Inline S button */
.s-button {
  padding: 6px 12px;
  margin-left: 10px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 0.9rem;
  height: 30px;
}

.s-button:hover {
  background-color: #155a9b;
}

.btn-user-area {
  margin: 0px;
}

.button-container-border {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  position: relative;

  padding: 2rem 1rem 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 1rem auto;
  max-width: 600px;
  background: white;
}

.border-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white; /* should match the container's background */
  padding: 0 10px;
  font-weight: bold;
  color: #666;
  font-size: 1rem;
}

.button-container-border .content {
  display: flex;
  gap: 12px;
  flex-wrap: wrap; /* Optional: allows wrapping on small screens */
  justify-content: center;
  align-items: center;
  width: 100%;
}

.button-container-small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  max-width: 100%;
}

.button-container-big {
  width: 100%;
  overflow-x: auto;
  padding: 1rem;
}

/* Desktop/default layout (horizontal row) */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
}

/* All form inputs/buttons should flex naturally */
.form-row select,
.form-row input,
.form-row button {
  flex: 1 1 auto;
  min-width: 150px;
}

/* Mobile layout: stack vertically */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    align-items: stretch; /* full width on mobile */
  }

  .form-row select,
  .form-row input,
  .form-row button {
    width: 100%;
  }
}

.professional-btn-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 150px;
  margin: 15px auto 0;
  text-align: center;
}

.form-row {
  display: flex;
  flex-wrap: nowrap; /* Prevent line wrapping */
  gap: 12px;
  align-items: center;
  justify-content: center;
}

/* Make sure all select fields have consistent appearance */
select.select-plan {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 200px;
  background-color: white;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

/* Style for date inputs */
input.select-date {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 200px;
  background-color: white;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

/* Style for text inputs */
input.select-text {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 200px;
  background-color: white;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

/* Small button */
.btn-small {
  color: white;
  padding: 4px 10px;
  font-size: 1rem;
  line-height: 1.2;
  max-width: 150px;
  height: 40px;
}

.add-btn {
  background-color: #28a745; /* verde Bootstrap */
  color: white;
}

.add-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.selected-btn {
  background-color: #00b4d8; /* Turquesa vibrante */
  color: white;
}
.selected-btn:hover {
  background-color: #0096c7; /* Más saturado */
}

.view-btn {
  background-color: #d49a2a; /* Mostaza amarillento */
  color: white;
}

.view-btn:hover {
  background-color: #b87f1a; /* Más oscuro para el hover */
  transform: translateY(-2px);
}

.modify-btn {
  background-color: #9b59b6; /* Fucsia-violeta (mezcla de tu fucsia original + morado) */
  color: white;
}
.modify-btn:hover {
  background-color: #8e44ad; /* Violeta más saturado */
  transform: translateY(-2px);
}

.delete-btn {
  background-color: #e74c3c; /* Rojo vibrante */
  color: white;
}
.delete-btn:hover {
  background-color: #c0392b; /* Rojo oscuro (más serio) */
  transform: translateY(-2px);
}

.grey-btn {
  background-color: #777; /* Gris medio */
  color: white;
}
.grey-btn:hover {
  background-color: #555; /* Gris oscuro */
  transform: translateY(-2px);
}

.check-btn {
  background-color: #777; /* Gris medio */
  color: white;
}
.check-btn:hover {
  background-color: #39aa99; /* clearer bright green */
  color: white;
}

.rdv-btn {
  background-color: #39aa99; /* Gris medio */
  color: white;
}
.rdv-btn:hover {
  background-color: #6accbd; /* clearer bright green */
  color: white;
}

.booking-btn {
  background-color: #735ad9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.booking-btn:hover {
  background-color: #5f49c7;
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.active-btn {
  background-color: #3bc574; /* clearer bright green */
  color: white;
}

.active-btn:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

.inactive-btn {
  background-color: #db5e50; /* bright red */
  color: white;
}

.inactive-btn:hover {
  background-color: #c54234; /* darker red on hover */
  transform: translateY(-2px);
}

.href-btn {
  background-color: #007bff; /* Blue background color */
  color: #fff; /* White text color */
  text-decoration: none; /* Removes underline */
  padding: 0.75rem 1.5rem; /* Padding for the button */
  border-radius: 8px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  font-size: 1rem; /* Font size */
  display: inline-block; /* Makes the link behave like a button */
  transition:
    background-color 0.3s ease,
    transform 0.2s; /* Smooth transitions for color and movement */
}

.href-btn:hover {
  background-color: #0056b3; /* Darker blue when hovered */
  transform: translateY(-2px); /* Button lift effect */
}

.href-btn:active {
  transform: translateY(0); /* Removes lift effect when clicked */
}
