/*  Contenedor principal */
.block-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 3px;
    background-color: var(--layout-box-background);
    border: 1px solid var(--layout-box-border);  /* Opcional: para definir un borde base */
    border-radius: 8px;
    box-shadow: 0 1px 2px var(--logo-T);
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

/* Título */
.block-section .section-title {
font-size: 1.8rem;
font-weight: 500;
text-align: center;
color: #333;
margin-bottom: 20px;
}

.block-section .section-text-field {
font-size: 1.2rem;
font-weight: 500;
text-align: center;
color: #333;
margin-bottom: 20px;
}

.layout-box {  /* for main box content */
  max-width: 1200px;
  margin: 60px auto 0 auto; /* top offset matches bar heights */
  padding: 0 15px;
  flex: 1 0 auto;  /* Allow content to expand, pushing footer down */
  color: var(--layout-tile-text);
  background-color: var(--main-box-background);
  border-radius: 8px;
}

/* Alertas */
.block-section  .alert {
margin-bottom: 120px;
font-size: 0.95rem;
top: 96px;
/* border-radius: 5px; */
}

/* Full-width alert that slides down and fades out */
.alert-danger {
  position: fixed;
  top: 96px;
  left: 0;
  width: 100%;
  z-index: 1040;
  opacity: 1;
  animation: slideFade 5s ease-in forwards;
}

/* Slide down and fade out animation */
@keyframes slideFade {
  0% {
    transform: translateY(-20px);
    opacity: 1;
  }
  80% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
    visibility: hidden;
  }
}

/* Estilos del formulario */
.block-section  .form-group {
margin-bottom: 15px;
}

.block-section label {
font-weight: 500;
margin-bottom: 5px;
display: block;
}

.block-section .form-control {
width: 100%;
padding: 10px;
font-size: 1rem;
border: 1px solid #ccc;
border-radius: 4px;
transition: border-color 0.3s ease;
}

.block-section .form-control:focus {
border-color: #007bff;
outline: none;
}

.avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto; /* This centers the wrapper horizontally */
}

.block-section .text-section {
  background-color: var(--layout-box-background);
  border: 1px solid var(--layout-box-border);
  border-radius: 8px;
  padding: 1.25rem 2.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px var(--logo-T);
}

/* Botón */
.change-input-btn {
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--logo-T);
  color: var(--btnbar-bg);
  border: none;
  border-radius: 4px;
  width: 100%;
  max-width: 200px;
}
.change-input-btn:hover {
  font-weight: bold;
  background-color: var(--btnbar-bg);
  color: var(--logo-T);
}

.dismiss-input-btn {
  font-weight: bold;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--btnbar-bg);
  color: var(--logo-T);
  border: none;
  border-radius: 4px;
  width: 100%;
  max-width: 200px;
}
.dismiss-input-btn:hover {
  font-weight: bold;
  background-color: var(--logo-T);
  color: var(--btnbar-bg);
}

.change-edit-btn {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  width: 3.0rem;       /* or any fixed size */
  height: 2.0rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--logo-T);
  color: var(--btnbar-bg);
  border: none;
  border-radius: 4px;
  width: 100%;
  max-width: 30px;
}
.change-edit-btn:hover {
  font-weight: bold;
  background-color: var(--btnbar-bg);
  color: var(--logo-T);
}

.change-delete-btn {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  width: 3.0rem;       /* or any fixed size */
  height: 2.0rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--logo-T);
  color: var(--logo-MH);
  border: none;
  border-radius: 4px;
  width: 100%;
  max-width: 30px;
}
.change-delete-btn:hover {
  font-weight: bold;
  background-color: var(--logo-MH);
  color: var(--logo-T);
}

.change-info-btn {
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  width: 3.0rem;       /* or any fixed size */
  height: 2.0rem;
  font-size: 1rem;
  cursor: pointer;
  background-color: var(--logo-X);
  color: var(--logo-MC);
  border: none;
  border-radius: 4px;
  width: 100%;
  max-width: 30px;
}
.change-info-btn:hover {
  font-weight: bold;
  background-color: var(--logo-X);
  color: var(--logo-MC);
}

/* tooltip to add explanation to buttons on hoover */
.tooltip-wrapper {
  position: relative;
  cursor: help;

}

/* */
.tooltip-wrapper + .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  transition: opacity 0.2s ease;
}

.tooltip-wrapper:hover + .tooltip-text {
  visibility: visible;
  opacity: 1;
}


.tooltip-text {
  visibility: hidden;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--btnbar-bg);
  color: var(--logo-T);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

/* Errores */
.block-section .text-danger {
font-size: 0.9rem;
}
.pc-social .btn-facebook {
    background-color: #3b5998;
}

.pc-social .btn-success {
    background-color: #25d366;
}

.pc-social .btn-magenta {
    background-color: #e4405f;
}

/* Language and locattion top-bar dropdown menu*/
.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--btnbar-bg) !important; /* Replace #yourColor with your desired color */
  color: var(--logo-T) !important;        /* Optional: set text color */
}
/* Responsive */
@media (max-width: 768px) {
.block-section {
    padding: 15px;
    /* margin-left: 8px; */
}

}
