html, body { height: 100%; }
body {
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top:40px;
}
.container { margin-top: 0px; }
main { flex: 1 0 auto; }
pre {
  background: #1e1e2f;
  color: #e5e9f0;
  padding: 1em;
  min-height: 180px;
  border-radius: 6px;
}
.material-icons { vertical-align: middle; }
.btn { margin: 2px 0; }
.btn { transition: background-color .3s ease, box-shadow .3s ease, transform .2s ease; }
.btn:hover { box-shadow: 0 4px 8px rgba(0,0,0,.15); transform: translateY(-1px); }
.brand-logo { font-size: 1.3rem; }
.brand-text { vertical-align: middle; }
.version-chip { opacity: .8; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; font-size: .85rem; }

@media (max-width: 600px) {
  .brand-logo { font-size: 1.15rem; }
  nav .material-icons { font-size: 1.2rem; }
  .card .card-content p { font-size: .95rem; }
  .btn-small i.material-icons { font-size: 18px; }
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  padding: 15px 15px;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 26px;
}

/* Fondos claros → texto oscuro */
.badge.bg-success { background-color: #44ff9a; color: #000; }
.badge.bg-info     { background-color: #42a5f5; color: #fff; }
.badge.bg-secondary{ background-color: #888; color: #fff; }
.badge.bg-danger   { background-color: #ef5350; color: #fff; }
.badge.bg-dark     { background-color: #555; color: #fff; }

/* Animations (generales del sitio) */
.pulse-badge { box-shadow: 0 0 0 0 #44ff9a70; animation: pulse-shadow 1.2s infinite; }
@keyframes pulse-shadow { 0% { box-shadow: 0 0 0 0 #44ff9a70; } 60% { box-shadow: 0 0 0 8px #44ff9a00; } 100% { box-shadow: 0 0 0 0 #44ff9a70; } }
.spin { display: inline-block; animation: spin 1.3s linear infinite; font-size: 20px; vertical-align: middle; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.dot-anim { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #44ff9a; box-shadow: 0 0 8px #44ff9a90; animation: dot-blink 1s infinite; }
@keyframes dot-blink { 0%,100% { opacity: 1; } 50% { opacity: .1; } }
.pulse-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #44ff9a; box-shadow: 0 0 7px #44ff9a80; animation: dot-blink 1s infinite; margin-left: 6px; }

/* Utilities */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2em; }
.flex-center { display: flex; align-items: center; gap: .5em; }
.flex-center-sm { display: flex; align-items: center; gap: .35rem; }
.flex-wrap { display: flex; gap: 6px; flex-wrap: wrap; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.mb-08 { margin-bottom: 0.8em; }
.mt-30 { margin-top: 30px; }
.max-w-950 { max-width: 950px; }
.icon-sm { font-size: 18px; }
.icon-large { font-size: 1.6rem; }
.user-view-padding { padding: 18px 16px; }
.user-title { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.text-small { font-size: .9rem; }
.copy-msg { display: none; color: #44ff9a; font-size: 0.97em; margin-left: 8px; }
.console-log {
  height: 510px;
  max-height: 75vh;
  overflow-y: auto;
  background: #1e1e2f;
  color: #e5e9f0;
  padding: 1em 1.2em;
  border-radius: 6px;
  font-size: 9px;
  font-family: 'Fira Mono', 'Menlo', 'Consolas', monospace;
  margin-bottom: 1.4em;
  border: 1.5px solid #4f46e5;
  box-shadow: 0 3px 8px #27334033;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 600px) {
  .console-log {
    font-size: 9px;
    height: 520px;
  }
}
.icon-heart { font-size: 1em; color: #e25555; }
.title-sm { font-size: 1.1rem; }
.mt-025 { margin-top: .25rem; }
.ml-04 { margin-left: .4rem; }
.d-inline { display: inline; }
.pb-5 { padding-bottom: 5px; }
.mb-0 { margin-bottom: 0; }
.console-title { font-weight: 500; font-size: 1.13em; }
.min-w-70 { min-width: 70px; }
.min-w-140 { min-width: 140px; }
.min-w-160 { min-width: 160px; }
.min-w-180 { min-width: 180px; }
.min-w-260 { min-width: 260px; }
.log-preview { font-family: monospace; font-size: 11px; color: #fff; display: block; max-width: 210px; overflow: hidden; white-space: nowrap; }
.my-02 { margin: .2rem 0; }
.my-04 { margin: .4rem 0; }

/* Form field styling for mejor visibilidad */
input, select, textarea {
  background-color: #fff;
  color: #000;
}

input:focus, select:focus, textarea:focus {
  background-color: #fff;
  color: #000;
  box-shadow: 0 0 0 2px #44ff9a80;
  transition: box-shadow .3s ease;
}

/* Materialize dropdown options */
.dropdown-content li>span {
  color: #000;
}

.dropdown-content li:hover, .dropdown-content li.active {
  background-color: #e0e0e0;
}

/* Fade-in SEGURO: nunca oculta el contenido por defecto */
.fade-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  html.fx .fade-in { animation: fadeIn .5s ease-in-out both; }
}
@keyframes fadeIn {
  from { opacity: .999; transform: translateY(10px); }
  to   { opacity: 1;    transform: translateY(0); }
}

