/* 
 * NHA KHOA THẮNG LỢI - CUSTOM STYLES & PRINT STYLES 
 */

@layer base {
  html {
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
  }
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
  }
}

/* Fix iOS Safari auto-zoom khi focus vào input */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Safe Area Insets cho iPhone X / 11 / 12 / 13 / 14 / 15 / 16 */
.pb-safe {
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Tùy chỉnh thanh cuộn đẹp mắt (Smooth Scrollbar) */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

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

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

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

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

.animate-fade-in {
  animation: fadeIn 0.2s ease-out forwards;
}

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

/* Card hiệu ứng y tế */
.dental-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease-in-out;
}

.dental-card:hover {
  box-shadow: 0 4px 12px 0 rgba(13, 148, 136, 0.08);
  border-color: rgba(13, 148, 136, 0.2);
}

/* Vùng chạm chuẩn Mobile (Touch Target >= 44px) */
.touch-target {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* In ấn */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  #main-sidebar, #app-header, #app-mobile-nav, #toast-container {
    display: none !important;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
}
