/* Fox Kids Branding */
:root {
  --fk-red: #dc3545;
  --fk-yellow: #ffc107;
}

body {
  font-family: 'Open Sans', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bebas {
  font-family: 'Antonio', 'Bebas Neue', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.navbar-brand {
  font-family: 'Bebas Neue', cursive;
  font-size: 1.8rem;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand #fox_text {
  color: #fff;
}

/* Chat container styling */
.columna_chat {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

#msj_vivo {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  padding-bottom: 1rem;
}

/* Chat Globe Styling (Premium Look) */
.chatGlobo {
  display: flex;
  flex-direction: column-reverse;
  /* Always shows newest at top if sorted DESC in PHP */
}

/* Dark mode overrides for specific components */
[data-bs-theme=dark] .bg-light {
  background-color: var(--bs-body-bg) !important;
}

[data-bs-theme=dark] .card {
  background-color: var(--bs-tertiary-bg);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .modal-content {
  background-color: var(--bs-body-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .list-group-item {
  background-color: transparent;
  color: inherit;
  border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme=dark] .form-control {
  background-color: #2c2e33;
  border-color: #3e4147;
  color: #fff;
}

[data-bs-theme=dark] .form-control:focus {
  background-color: #32353b;
  border-color: var(--fk-red);
}

/* Fix for horizontal collapse on chat */
#chatVivo.collapse:not(.show) {
  display: none !important;
}

#chatVivo.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease, width 0.35s ease;
}

@media (min-width: 1200px) {
  #chatVivo.collapse-horizontal {
    width: 25em;
    height: 100% !important;
  }
}