/* ============================================================
   BASE STYLES & UTILS
   Global transitions, typography and common utility classes
   ============================================================ */

body {
  font-family: var(--vm-font-base);
}

body, .app-wrapper, .app-main, .app-content, .card, .modal-content, .navbar, .app-sidebar, table, th, td {
  transition: background-color var(--vm-trans-slow), 
              color var(--vm-trans-slow), 
              border-color var(--vm-trans-slow);
}

/* ── Utility Classes ──*/

.hover-shadow {
  transition: transform var(--vm-trans-base), box-shadow var(--vm-trans-base);
}

.hover-shadow:hover {
  transform: translateY(-3px);
  box-shadow: var(--vm-shadow-lg) !important;
}

.fade-in {
  animation: fadeIn var(--vm-trans-slow) ease-in;
}

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

.border-none {
  border: none !important;
}

.object-fit-cover {
  object-fit: cover !important;
}

.cursor-pointer {
  cursor: pointer;
}

.fs-7 {
  font-size: 0.75rem !important;
}

/* Inline size replacements */
.icon-32 { width: 32px; height: 32px; }
.icon-40 { width: 40px; height: 40px; }
.icon-48 { width: 48px; height: 48px; }
.icon-60 { width: 60px; height: 60px; }

.icon-50-rounded { width: 50px; height: 50px; border-radius: var(--vm-radius-lg); }
.icon-56-rounded { width: 56px; height: 56px; border-radius: var(--vm-radius-lg); }

.photo-preview {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--vm-radius-lg);
  border: 3px solid var(--bs-border-color-translucent);
}

/* ── Responsive: Tablet (≤ 768px) ── */
@media (max-width: 768px) {
  #total-pagar-display,
  #total-pagar-main,
  .display-4,
  .display-5 {
    font-size: 2.2rem !important;
  }

  .card-body {
    padding: 1rem !important;
  }

  /* Pagination on mobile: smaller & centered */
  .pagination-footer {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .pagination .page-link {
    min-width: 30px;
    font-size: 0.8rem;
  }
}

/* ── Responsive: Small Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .card-body {
    padding: 0.75rem !important;
  }

  .card-header {
    padding: 0.75rem 1rem !important;
  }

  /* Compress table rows on very small screens */
  .table-responsive .table td,
  .table-responsive .table th {
    padding: 0.5rem 0.5rem !important;
    font-size: 0.8rem !important;
  }

  /* reduce first/last column padding */
  .table-responsive .table td:first-child,
  .table-responsive .table th:first-child {
    padding-left: 0.75rem !important;
  }
  .table-responsive .table td:last-child,
  .table-responsive .table th:last-child {
    padding-right: 0.75rem !important;
  }

  /* Smaller badges on mobile */
  .badge {
    font-size: 0.65rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  /* Reduce font sizes */
  h4, .h4 { font-size: 1.1rem !important; }
  h5, .h5 { font-size: 1rem !important; }
}
