/* Isaac Trip Studio - Cloud Portal & Workbench Shared Styling */

:root {
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-light: #f0fdf4;
  --primary-border: #bbf7d0;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Touch targets */
.btn-touch {
  min-width: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

/* Checked checklist item styling */
.checked-item {
  opacity: 0.55;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

.checked-item .item-title {
  text-decoration: line-through;
  color: #64748b !important;
}

/* Compact itinerary card details transition */
.itin-details {
  transition: max-height 0.25s ease-out, opacity 0.2s ease-out;
}

.itin-details.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

.itin-details.expanded {
  max-height: 1000px;
  opacity: 1;
}

/* Accordion collapse */
.accordion-content {
  transition: max-height 0.25s ease-in-out, opacity 0.2s ease-in-out;
}

.accordion-content.collapsed {
  display: none;
}

/* Custom Scrollbar for tab bars */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile specific optimisations (width <= 768px) */
@media (max-width: 768px) {
  .mobile-tight-padding {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .mobile-grid-2x2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .mobile-stack-action {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Modal backdrop fade */
.modal-backdrop {
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
}

/* Toast animations */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translate(-50%, -15px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.toast-animate {
  animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
