/* ==== Tarjetas y layout para Rutinas ==== */

/* Contenedor global de la rutina */
.routine-container {
  margin: 2rem 0;
  position: relative;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

/* Series */
.routine-series {
  margin-bottom: 2rem;
}

.series-title {
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.series-info {
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* Listado de ejercicios */
.series-exercises {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Tarjeta individual de ejercicio */
.exercise-card {
  background-color: #22252b !important;
  border: 1px solid #22252b !important;
  border-radius: 10px;
  margin-bottom: 2rem;
  padding: 0px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
}

/* Video o placeholder */
.exercise-video {
  width: 100%;
  margin-bottom: 1rem;
  text-align: center;
}

.exercise-video-container iframe {
  width: 100% !important;
  height: 13rem !important;
  max-width: 100% !important;
}

/* Título, repeticiones y notas */
.exercise-text {
    padding: 0 1rem 1rem 1rem;
}

.exercise-title {
  font-size: 1.7rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: white;
  text-align: left;
}

.exercise-divider {
  width: 100%;
  height: 1px;
  background-color: #ccc;
  margin: 0 0 1rem;
}

.exercise-meta {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.exercise-reps {
  color: white;
  font-size: 1.3rem;
  line-height: 2rem;
}

.exercise-notes {
  flex: 1;
  text-align: left;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
}

.open-feedback-module {
  padding: 1rem;
  background-color: #2E977F;
  margin: 1rem;
  border-radius: 10px;
  color: white;
  text-align: center;
}

.open-feedback-module > .button {
  color: white;
  background-color: #22252b;
  border: 1px solid #22252b;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
}

.feedback.feedback-caption {
  font-size: 1.2rem;
  color: white;
  font-weight: 600;
}

.routine-header {
  background-color: #22252b;
  padding: 1rem;
  margin: 2rem;
  color:white
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .exercise-card {
    background-color: #22252b !important;
    margin-bottom: 2rem !important;
    padding: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 92% !important;
    box-sizing: border-box;
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    border-radius: 10px !important;
  }
  .exercise-meta {
    flex-direction: column;
    gap: 1rem;
  }
  .exercise-notes {
    text-align: left;
    color: white;
    font-weight: 600;
  }
  .exercise-text {
    padding: 1rem;
  }
  .exercise-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    text-align: left;
    color: white;
  }
  .series-title {
    font-size: 2.3rem;
    font-weight: bold;
    margin-botton: 0.5rem;
    padding-left: 0.5em;
  }
  .series-info {
    font-weight: bold;
    margin-bottom: 1rem;
    padding-left: 1em;
  }
  .exercise-reps {
    color: white;
    font-size: 1.3em;
  }
  .open-feedback-modal {
    display: flex;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: #2e977f;
    border: 1px solid #2e977f;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 3px;
    transition: all 0.3s;
    margin-left: 8em;
  }
  .exercise-video-container iframe {
    width: 100% !important;
    height: 11rem !important;
    max-width: 100% !important;
  }
}

/* ====================================== */
/* MODIFICACIÓN: Estilos del Modal de Feedback */
/* ====================================== */

/* Fondo del modal: overlay oscuro, con alineación hacia el inicio vertical para que el formulario se muestre desde el comienzo */
.feedback-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  overflow: auto;
  display: flex;
  align-items: flex-start; /* Alinea el contenido al inicio vertical */
  justify-content: center;
  padding: .5rem; /* Espacio para evitar que quede pegado al borde superior */
}

/* Contenedor del modal con look dark */
.feedback-modal-content {
  background-color: #2b2d33;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  border-radius: 8px;
  position: relative;
  color: #f1f1f1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

/* Botón de cerrar el modal */
.feedback-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  color: #f1f1f1;
}

/* Estilos del formulario dentro del modal */
#feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#feedback-form label {
  font-size: 1rem;
  color: #f1f1f1;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

#feedback-form input[type="text"],
#feedback-form select,
#feedback-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #444;
  border-radius: 4px;
  background-color: #3a3c42;
  color: #f1f1f1;
  font-size: 1rem;
}

#feedback-form input[type="text"]::placeholder,
#feedback-form textarea::placeholder {
  color: #bbb;
}

#feedback-form textarea {
  resize: vertical;
  min-height: 80px;
}

#feedback-form button {
  background-color: #2E977F;
  border: none;
  padding: 0.75rem 1.5rem;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  margin-top: 1rem;
}

#feedback-form button:hover {
  background-color: #278a75;
}

/* Campos para cargas */
.carga-field {
  margin-bottom: 1rem;
}

.carga-field label {
  display: block;
  font-size: 1rem;
  color: #f1f1f1;
  margin-bottom: 0.3rem;
}

.routine-full-title{
  color: white!important;
}

.routine-header{
  border-radius: 10px;
}

#feedback-detail-card {
margin: 1rem;
}