/* Custom styles and print optimizations for ClauseProtect AI */

/* iOS Auto-Zoom Prevention: keeps inputs at 16px on mobile screens so Safari doesn't zoom */
@media screen and (max-width: 640px) {
  select, input, textarea {
    font-size: 16px !important;
  }
}

/* Touch optimizations for top-tier mobile responsiveness */
* {
  -webkit-tap-highlight-color: transparent;
}

button, a, select, input, [role="button"], .cursor-pointer {
  touch-action: manipulation;
}

/* Smooth inertia scrolling on mobile without ugly scrollbars */
.no-scrollbar, .overflow-x-auto, .overflow-y-auto {
  -webkit-overflow-scrolling: touch;
}

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

@media print {
  /* Print stylesheet for clean executive PDF export */
  body {
    background-color: #ffffff !important;
    color: #0f172a !important;
  }
  .no-print, nav, #input-section, #paywall-banner, .btn-action, footer {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .report-container {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  .clause-card {
    page-break-inside: avoid;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 1.5rem !important;
  }
}

/* Glassmorphism and animations */
.glass-panel {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.frosted-paywall {
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.95) 85%);
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}
