/* ==========================================================================
   CUSTOM STYLES - PALETA TONOS BLANCO Y AMARILLO PASTEL (v54) - IGR KIDS
   Code Ahumada 2026
   ========================================================================== */

/* Custom Scrollbars (Pastel Yellow / Butter tones) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #fffbeb;
}

::-webkit-scrollbar-thumb {
  background: #fde047;
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #facc15;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(5px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpBottom {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUpBottom 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Tab buttons styling - Pastel Yellow theme */
.tab-btn {
  color: #64748b;
  background-color: transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  background-color: #fffbeb;
  color: #854d0e;
}

.active-tab {
  background-color: #fef9c3 !important;
  color: #713f12 !important;
  border: 1px solid #fef08a;
  box-shadow: 0 2px 4px rgba(202, 138, 4, 0.08);
}

/* Filter pills */
.filter-pill {
  background-color: #fffdf5;
  color: #64748b;
  border: 1px solid #fef08a;
}

.filter-pill:hover {
  background-color: #fef9c3;
  color: #854d0e;
}

.active-pill {
  background-color: #facc15 !important;
  color: #713f12 !important;
  border-color: #eab308 !important;
  box-shadow: 0 2px 6px rgba(234, 179, 8, 0.25);
}

/* Kid card interactions */
.kid-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #ffffff;
  border: 1px solid #fef08a;
}

.kid-card:hover {
  transform: translateY(-2px);
  border-color: #fde047;
  box-shadow: 0 12px 24px -6px rgba(202, 138, 4, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.kid-card-present {
  border-color: #86efac !important;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.08);
}

/* WhatsApp preset button active / hover */
.wa-preset-btn {
  background-color: #ffffff;
}

.wa-preset-btn:hover {
  background-color: #f0fdf4;
  border-color: #10b981;
}

/* Custom highlight when searching */
mark.search-highlight {
  background-color: #fef08a;
  color: #713f12;
  padding: 0 3px;
  border-radius: 4px;
  font-weight: 700;
}

/* Mobile & Touch Optimizations */
button, a, input, select {
  touch-action: manipulation;
}

body {
  padding-bottom: env(safe-area-inset-bottom, 1rem);
}

/* Card layout responsive clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Print Styles */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  header, nav, #statusBanner, footer, .no-print, button, input, select, #loginScreen, #mobilePwaInstallBanner, #pwaInstallModal {
    display: none !important;
  }

  #appContainer {
    display: block !important;
  }

  #tab-presentes {
    display: block !important;
  }

  .shadow-sm, .shadow-md, .shadow-lg, .shadow-2xl {
    box-shadow: none !important;
  }

  table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  th, td {
    border: 1px solid #cbd5e1 !important;
    padding: 8px !important;
    font-size: 11pt !important;
  }

  th {
    background-color: #fffbeb !important;
    color: #000000 !important;
  }
}
