/* Clean White & Shopee Orange Luxury Fintech Stylesheet */

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

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

/* Touch & Mobile Momentum Scrolling */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbars (Clean Light) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Sidebar Active State Styling */
.nav-item {
  transition: all 0.15s ease-in-out;
}

.nav-item.active {
  background-color: #FFF2EE !important;
  color: #EE4D2D !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px rgba(238, 77, 45, 0.15);
  border-radius: 0.75rem !important;
}

.nav-item.active svg {
  color: #EE4D2D !important;
}

/* Table styling polish */
.table th {
  background-color: #F8FAFC;
  font-weight: 700;
  color: #64748B;
  border-bottom: 1px solid #E2E8F0;
  white-space: nowrap;
}

.table td {
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.table tr:hover td {
  background-color: #F8FAFC;
}

/* Mobile Friendly Touch Tweaks */
@media (max-width: 768px) {
  .btn {
    min-height: 2.25rem;
  }
}

/* Print Stylesheet for Bookkeeping Report */
@media print {
  body {
    background: #FFFFFF !important;
  }

  aside, header, .md\:hidden, button, .modal, #sidebar-backdrop, .no-print {
    display: none !important;
  }

  main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .view-panel {
    display: none !important;
  }

  #view-bookkeeping {
    display: block !important;
  }

  .card, div[class*="rounded-2xl"] {
    border: 1px solid #E2E8F0 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
}
