.app {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 56px 1fr;
  height: 100vh;
}
.app-body {
  display: contents;
  grid-template-columns: var(--sidebar-width) 1fr;
}
.header {
  grid-column: 2;
  grid-row: 1;
  height: 56px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.header-center {
  text-align: center;
  color: #9ca3af;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar {
  grid-column: 1;
  grid-row: 1 / span 2;
  background: var(--color-panel);
  border-right: 1px solid #e5e7eb;
  position: relative;
  overflow-y: auto;
}
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px; 
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #4f46e5;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
  cursor: pointer;
  z-index: 3000;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.main {
  grid-column: 2;
  grid-row: 2;
  padding: 22px 30px;
  background-color: #f6f7fb;
  background-image:
    linear-gradient(rgba(246,247,251,0.91), rgba(246,247,251,0.91)),
    url('../img/zebra.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow-y: auto;
}
.main-container {
  max-width: 1200px; 
  margin: 0 auto;
}
.header-left img {
  width: 28px;
  height: 28px;
}
/* =========================
   Animaciones
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.welcome {
  animation-delay: 0s;
}
.cards-grid {
  animation-delay: 0.05s;
}
.content-grid {
  animation-delay: 0.1s;
}
/*************************************************************
 * Mensajes Exito / Mensajes con Error
 *************************************************************/
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-width: 280px;
  max-width: 380px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: all .3s ease;
}
.toast-success {
  background: #2563eb;
}
.toast-error {
  background: #dc2626;
}
.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

