/* HOSHO Custom Stylesheet & Design System */

/* Color utilities */
.bg-hosho-blue { background-color: #214AAB !important; }
.bg-hosho-blue-dark { background-color: #173887 !important; }
.bg-hosho-blue-light { background-color: #EFF6FF !important; }
.bg-hosho-blue-subtle { background-color: #E0EDFD !important; }
.bg-hosho-navy { background-color: #0F172A !important; }
.bg-hosho-surface { background-color: #F8FAFC !important; }

.text-hosho-blue { color: #214AAB !important; }
.text-hosho-blue-dark { color: #173887 !important; }
.text-hosho-navy { color: #0F172A !important; }
.text-hosho-slate { color: #334155 !important; }
.text-hosho-muted { color: #64748B !important; }

.border-hosho-blue { border-color: #214AAB !important; }
.border-hosho-subtle { border-color: #E2E8F0 !important; }
.border-hosho-blue-light { border-color: #BFDBFE !important; }

/* Focus states */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #214AAB;
  outline-offset: 2px;
}

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

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

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33, 74, 171, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(33, 74, 171, 0); }
}

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

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

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.status-requested {
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.status-in-review {
  background-color: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
}

.status-sent {
  background-color: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* Document Chip */
.doc-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.doc-chip-available {
  background-color: #EFF6FF;
  color: #214AAB;
  border: 1px solid #BFDBFE;
}
.doc-chip-available:hover {
  background-color: #DBEAFE;
}

.doc-chip-missing {
  background-color: #F1F5F9;
  color: #94A3B8;
  border: 1px solid #E2E8F0;
}

/* FAQ Accordion */
.faq-accordion-item {
  border: 1px solid #E2E8F0;
  border-radius: 0.875rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #FFFFFF;
  overflow: hidden;
}

.faq-accordion-item:hover {
  border-color: #CBD5E1;
}

.faq-accordion-item.active {
  border-color: #214AAB;
  box-shadow: 0 4px 16px rgba(33, 74, 171, 0.08);
}

.faq-header {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}

.faq-accordion-item .faq-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-answer {
  display: none !important;
  max-height: none !important;
  overflow: visible !important;
}

.faq-accordion-item.active .faq-answer {
  display: block !important;
  animation: faqSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes faqSlideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-accordion-item.active .faq-icon {
  transform: rotate(180deg);
  color: #214AAB;
}

/* Toast System */
#hosho-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.hosho-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideUp 0.3s ease-out;
}

.hosho-toast.success {
  background-color: #065F46;
  color: #FFFFFF;
}

.hosho-toast.error {
  background-color: #991B1B;
  color: #FFFFFF;
}

.hosho-toast.info {
  background-color: #214AAB;
  color: #FFFFFF;
}

/* Modal Backdrop */
.hosho-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.hosho-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.hosho-modal-card {
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hosho-modal-backdrop.active .hosho-modal-card {
  transform: scale(1) translateY(0);
}

/* Category grid cards */
.category-card {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.category-card:hover {
  transform: translateY(-3px);
  border-color: #214AAB;
  box-shadow: 0 12px 20px -5px rgba(33, 74, 171, 0.08);
}
