/* NPHA Custom Styling & Print Rules */
@import url('../vendor/css/google-fonts.css');

:root {
  --color-npha-green: #006837;
  --color-npha-green-dark: #004d28;
  --color-npha-green-light: #e6f4ed;
  --color-npha-yellow: #d99b26;
  --color-npha-yellow-dark: #b67d15;
  --color-npha-yellow-light: #fef8eb;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #006837;
}

/* Smooth view transitions */
.view-section {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Watermark for official document */
.watermark {
  background-image: url('../assets/logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 320px;
}

/* Custom Toast Animation */
.toast-slide {
  animation: slideToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Print styling for Slip and reports */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-slip, #printable-slip * {
    visibility: visible;
  }
  #printable-slip {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
  .no-print {
    display: none !important;
  }
}
