/* Estilos globales ORG6 */

/* Ajuste global para etiquetas de formulario */
/* Ajuste global para etiquetas de formulario */
label.form-label {
  font-size: 0.75rem;
  color: #adb5bd; /* gris más claro */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Espaciado entre formularios y campos */
form .form-group,
form .mb-3 {
  margin-bottom: 1rem;
}

/* Ajustes globales a los títulos */
h1, h2, h3, h4 {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* Ajustes para tablas responsivas */
.table-sm td, .table-sm th {
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
}

/* Fix para botones alineados en formularios */
form .btn + .btn {
  margin-left: 0.5rem;
}

/* CAMPOS DESHABILITADO */
input[readonly] {
  background-color: #f8f9fa; /* gris claro */
}

/* INPUT EN AJUSTE */

/* Transición general */
input.modified,
select.modified,
input.saved,
select.saved {
  transition: background-color 0.3s ease;
}

/* Campo editado (modificado) */
input.modified,
select.modified {
  background-color: #fff3f3 !important; /* rojo claro */
}

/* Campo guardado (éxito) */
input.saved,
select.saved {
  background-color: #e6f4ea !important; /* verde suave */
}

.copied {
  background-color: #c8e6c9!important; /* Verde claro */
  transition: background-color 0.3s ease;
}

.copyText {
  cursor: pointer;
  transition: border 0.2s ease;
}

.copyText:hover {
  color: red!important;
  text-decoration: underline;
}

/* Perm view markers */
.perm-blocked-link,
.perm-blocked-action {
  position: relative;
}

.perm-blocked-link {
  color: #b42318 !important;
  border: 1px solid rgba(180, 35, 24, 0.4);
  border-radius: 4px;
  padding: 2px 6px;
}

.perm-blocked-action {
  border: 1px solid rgba(180, 35, 24, 0.5);
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.15);
  animation: perm-view-pulse 1.6s ease-in-out infinite;
}

.perm-blocked-icon {
  color: #b42318;
  margin-left: 6px;
  text-shadow: 0 0 6px rgba(180, 35, 24, 0.7);
  animation: perm-view-blink 0.8s steps(2, end) infinite;
}

.perm-view-banner {
  background: #fff3f3 !important;
  border-bottom: 1px solid rgba(180, 35, 24, 0.25);
  color: #7a271a !important;
  font-size: 0.85rem;
  padding: 6px 16px;
}

.perm-view-banner .perm-view-scopes {
  margin-left: 10px;
  color: #9c2a1d !important;
  font-weight: 600;
}

.perm-blocked-card {
  border: 1px solid rgba(180, 35, 24, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.15);
  animation: perm-view-pulse 1.6s ease-in-out infinite;
}

.perm-page-icon {
  color: #b42318;
  margin-right: 10px;
  text-shadow: 0 0 6px rgba(180, 35, 24, 0.7);
  animation: perm-view-blink 0.8s steps(2, end) infinite;
}

@keyframes perm-view-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.15); }
}

@keyframes perm-view-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.15); }
  50% { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.35); }
}
