/**
 * CSP-Safe Styles for Encuesta Standalone
 * Reemplaza estilos inline para cumplir con Content Security Policy
 * 
 * @version 1.0.0
 * @date 2026-01-13
 */

/* ==========================================================================
   BODY & LAYOUT
   ========================================================================== */

.body-font-14 {
  font-size: 14px;
}

.header-hidden {
  display: none;
}

/* ==========================================================================
   STEPPER & WIZARD
   ========================================================================== */

/* Variable CSS para altura dinámica del stepper - Importante para layout horizontal */
.stepper.horizontal {
  min-height: var(--min-stepper-height, 900px) !important;
  position: relative;
}

/* Asegurar que step-content ocupe todo el espacio disponible */
.stepper.horizontal .step .step-content {
  height: calc(100% - 84px) !important;
  position: absolute;
  top: 84px;
  padding: 20px 20px 140px 20px !important; /* Más espacio para botones */
}

/* Posicionar step-actions al fondo del step-content */
.stepper.horizontal .step .step-content .step-actions {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  padding: 20px !important;
  margin: 0 !important;
  background-color: #ffffff !important;
  border-top: 2px solid #4CAF50 !important;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
  z-index: 100;
  display: flex !important;
  flex-direction: row-reverse !important;
}

.step-actions-hidden {
  display: none !important;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.navbar-padding {
  padding-left: 8%;
  padding-right: 8%;
}

.nav-auto-height {
  height: auto;
}

/* ==========================================================================
   LOGOS
   ========================================================================== */

.logo-large {
  width: 270px;
  height: 60px;
}

.logo-medium {
  width: 240px;
  height: 60px;
}

.logo-large-simple {
  width: 270px;
}

.logo-medium-simple {
  width: 240px;
}

.logo-login {
  height: 120px;
}

.logo-left-spacing {
  margin-left: 60px;
}

.logo-left-spacing-sm {
  margin-left: 20px;
}

/* ==========================================================================
   BANNERS & BACKGROUNDS
   ========================================================================== */

.banner-full {
  width: 100%;
}

.bg-login {
  background: url('../img/humanidades.jpg') center top;
  background-size: cover;
  height: 900px;
}

.bg-green-overlay {
  background-color: rgba(59, 194, 25, 0.5) !important;
  min-height: 900px;
}

.bg-white-card {
  background: #ffffff;
  opacity: 0.96;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.form-hidden {
  display: none !important;
}

.form-visible {
  display: block !important;
  background-color: rgba(59, 194, 25, 0.5) !important;
  min-height: 900px;
}

/* ==========================================================================
   BLOCKQUOTES
   ========================================================================== */

.blockquote-blue {
  border-left: 5px solid #89b2df;
}

/* ==========================================================================
   PREFERENCES SECTION
   ========================================================================== */

.preferencia-hidden {
  display: none !important;
}

.preferencia-visible {
  display: block !important;
}

/* ==========================================================================
   WIZARD STEPS
   ========================================================================== */

.wizard-padding {
  padding: 5px 0 15px 0;
}

.wizard-text-small {
  font-size: 12px;
}

.wizard-text-comment {
  margin: 0; /* Regla vacía comentada intencionalmente */
}

/* ==========================================================================
   TABLE STYLES
   ========================================================================== */

.table-header-min {
  min-width: 48px;
  max-width: 288px;
}

.table-header-center-small {
  text-align: center;
  font-size: 10px;
}

.table-row-border {
  border-bottom: 1px solid #000;
}

.table-cell-min {
  min-width: 48px;
  max-width: 288px;
}

.table-cell-center {
  text-align: center;
}

/* ==========================================================================
   RADIO BUTTONS
   ========================================================================== */

.radio-unset-position {
  position: unset;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-hidden {
  display: none;
}

.btn-left-margin {
  margin-left: 25%;
}

/* ==========================================================================
   ICONS
   ========================================================================== */

.icon-date-picker {
  cursor: pointer;
  position: absolute;
  width: 3rem;
  font-size: 2rem;
  transition: color .2s;
  top: 0px;
  right: 0px;
}

/* ==========================================================================
   MATERIALIZE OVERRIDES
   ========================================================================== */

/* Asegurar que las tablas no colapsen */
td, th {
  padding: 0px 0px !important;
}

table {
  border-collapse: unset;
  width: 95%;
}

/* ==========================================================================
   RESPONSIVE HELPERS
   ========================================================================== */

@media only screen and (max-width: 600px) {
  .navbar-padding {
    padding-left: 4%;
    padding-right: 4%;
  }
  
  .logo-large {
    width: 240px;
  }
  
  .bg-login,
  .bg-green-overlay,
  .form-hidden {
    min-height: 100vh;
  }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.display-none {
  display: none;
}

.display-block {
  display: block;
}

.width-full {
  width: 100%;
}

.height-auto {
  height: auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   TOAST ANIMATIONS - CSP Safe (sin inline styles)
   ========================================================================== */

/* Animación de entrada para toasts */
@keyframes toast-slide-in {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Animación de salida para toasts */
@keyframes toast-slide-out {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Estilos base del toast compatible con CSP */
.toast-csp-safe {
  position: fixed !important;
  bottom: 10% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 auto !important;
  max-width: 90% !important;
  width: auto !important;
  min-height: 48px !important;
  padding: 10px 25px !important;
  border-radius: 2px !important;
  font-size: 1.1rem !important;
  font-weight: 300 !important;
  color: #fff !important;
  line-height: 1.5em !important;
  word-wrap: break-word !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: default !important;
  box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12) !important;
}

/* Animación de entrada */
.toast-csp-entering {
  animation: toast-slide-in 0.3s ease-out forwards !important;
}

/* Animación de salida */
.toast-csp-exiting {
  animation: toast-slide-out 0.3s ease-in forwards !important;
}

/* Estado visible */
.toast-csp-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

/* Responsive para móviles */
@media only screen and (max-width: 600px) {
  .toast-csp-safe {
    bottom: 5% !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
}

.cursor-pointer {
  cursor: pointer;
}

/* ==========================================================================
   MUSTACHE CONDITIONAL CLASSES
   Estas clases se usan con Mustache {{#bool}}...{{/bool}}
   ========================================================================== */

.conditional-hidden {
  display: none !important;
}

.conditional-visible {
  display: block !important;
}
