/*
  DomBox — Custom styles
  Tailwind CSS via CDN — tu tylko nadpisania i animacje.
*/

/* Smooth transition na zmianie stron */
#app {
  animation: fadeIn 0.15s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animacja rozwijania property box (CSS Grid trick) */
.property-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.property-body.expanded {
  grid-template-rows: 1fr;
}

.property-body > div {
  overflow: hidden;
}

/* Modal overlay — fade in */
.modal-overlay {
  animation: modalFadeIn 0.15s ease-out;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Modal card — slide up */
.modal-card {
  animation: modalSlideUp 0.2s ease-out;
}

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

/* Mobile — padding za bottom nav */
@media (max-width: 767px) {
  body {
    padding-bottom: 4rem;
  }

  /* Modale — pełna szerokość na mobile */
  .modal-card {
    max-width: none !important;
    width: calc(100% - 1rem) !important;
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
}

/* Scrollbar — minimalistyczny */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1aa;
}
