html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* ==============================
   CRESME TOAST SYSTEM
   ============================== */

/* ==============================
   TOAST POSITIONING
   ============================== */

/* Default: top-right */
#toast-container{
  position: fixed;
  top: 7%;
  right: 0.5%;
  left: auto;
  bottom: auto;

  z-index: 2000;
  pointer-events: none;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* Small window: bottom-right (NOT centered) */
@media (max-width: 900px), (max-height: 800px) {
  #toast-container{
    top: auto;
    bottom: 2%;
    right: 0.5%;
    left: auto;

    transform: none !important;   /* kills the centering */
  }
}

/* Bootstrap toast reset */
#toast-container .toast{
  width: 320px !important;
  max-width: calc(100vw - 24px);
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  display: block !important;
  pointer-events: auto;
  margin-bottom: 10px;
}

/* Remove bootstrap header/body completely */
#toast-container .toast > .toast-header,
#toast-container .toast > .toast-body{
  display:none !important;
}

/* ===== MAIN TOAST CARD ===== */
#toast-container .cresme-toast{
  display:flex;
  gap:10px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.06);
  background:#ffffff;
  box-shadow:0 12px 28px rgba(0,0,0,.14);
  transition:all .2s ease;
}

/* ===== ACCENT BAR ===== */
#toast-container .cresme-toast__accent{
  width:4px;
  border-radius:6px;
  background:#adb5bd;
}

/* UCF / CRESME COLORS */
#toast-container .toast.toast-success .cresme-toast__accent{
  background:#2ecc71;
}

#toast-container .toast.toast-danger .cresme-toast__accent{
  background:#c0392b;
}

#toast-container .toast.toast-warning .cresme-toast__accent{
  background:#f1c400; /* UCF GOLD */
}

#toast-container .toast.toast-info .cresme-toast__accent{
  background:#3498db;
}

/* Optional soft background tint */
#toast-container .toast.toast-success .cresme-toast{
  background:#f3fbf6;
}

#toast-container .toast.toast-danger .cresme-toast{
  background:#fff5f5;
  border-color:#f5c2c7;
}

/* ===== CONTENT LAYOUT ===== */
#toast-container .cresme-toast__content{
  flex:1;
  min-width:0;
}

#toast-container .cresme-toast__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:4px;
}

#toast-container .cresme-toast__brand{
  display:flex;
  align-items:center;
  gap:8px;
}

/* Logo */
#toast-container .cresme-toast__logo{
  width:18px !important;
  height:18px !important;
  object-fit:contain;
}

/* Title */
#toast-container .cresme-toast__title{
  font-size:.85rem;
  font-weight:650;
  white-space:nowrap;
}

/* Close button */
#toast-container .cresme-toast__close{
  transform:scale(.8);
  opacity:.6;
}
#toast-container .cresme-toast__close:hover{
  opacity:1;
}

/* Message text */
#toast-container .cresme-toast__message{
  font-size:.9rem;
  color:#212529;
  line-height:1.3;
  font-weight:500;
  word-break:break-word;
}