/* ===========================================
   MAIN.CSS - Arquivo Central de Imports
   PdvSmart - Sistema de Gestão
   =========================================== */

/* Base Styles */
@import url('base/variables.css');
@import url('base/reset.css');
@import url('base/typography.css');

/* Components */
@import url('components/float-label.css');
@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/sidebar.css');
@import url('components/tables.css');
@import url('components/datepicker.css');
@import url('components/sweetalertsmart.css');

/* 
  Note: Page-specific CSS files are imported 
  directly in their respective HTML files:
  - pages/home.css (for index.html)
  - pages/login.css (for login.html)
*/

/* ===========================================
   UTILITIES
   =========================================== */

/* Spacing Utilities */
.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: 0.25rem !important;
}

.mt-2 {
  margin-top: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: 0.25rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

/* Gap Utilities */
.gap-1 {
  gap: 0.25rem !important;
}

.gap-2 {
  gap: 0.5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

.gap-5 {
  gap: 3rem !important;
}

/* Display Utilities */
.d-flex {
  display: flex !important;
}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

.d-inline-flex {
  display: inline-flex !important;
}

/* Flex Utilities */
.flex-column {
  flex-direction: column !important;
}

.flex-row {
  flex-direction: row !important;
}

.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-1 {
  flex: 1 !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-end {
  align-items: flex-end !important;
}

/* Text Utilities */
.text-center {
  text-align: center !important;
}

.text-start {
  text-align: left !important;
}

.text-end {
  text-align: right !important;
}

.text-white {
  color: var(--color-white) !important;
}

.text-black {
  color: var(--color-black) !important;
}

/* Background Utilities */
.bg-white {
  background-color: var(--color-white) !important;
}

.bg-light {
  background-color: var(--color-gray-lighter) !important;
}

.bg-dark {
  background-color: var(--bg-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-transparent {
  background-color: transparent !important;
}

/* Width Utilities */
.w-100 {
  width: 100% !important;
}

.w-auto {
  width: auto !important;
}

.mw-100 {
  max-width: 100% !important;
}

/* Height Utilities */
.h-100 {
  height: 100% !important;
}

.min-vh-100 {
  min-height: 100vh !important;
}

/* Position Utilities */
.position-relative {
  position: relative !important;
}

.position-absolute {
  position: absolute !important;
}

.position-fixed {
  position: fixed !important;
}

/* Overflow Utilities */
.overflow-hidden {
  overflow: hidden !important;
}

.overflow-auto {
  overflow: auto !important;
}

.overflow-x-hidden {
  overflow-x: hidden !important;
}

/* Border Radius Utilities */
.rounded {
  border-radius: var(--radius-md) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

.rounded-pill {
  border-radius: var(--radius-full) !important;
}

/* Shadow Utilities */
.shadow-sm {
  box-shadow: var(--shadow-sm) !important;
}

.shadow {
  box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
  box-shadow: var(--shadow-lg) !important;
}

.shadow-none {
  box-shadow: none !important;
}

/* Cursor Utilities */
.cursor-pointer {
  cursor: pointer !important;
}

/* Transition Utilities */
.transition {
  transition: all var(--transition-normal) !important;
}

.transition-fast {
  transition: all var(--transition-fast) !important;
}

/* ===========================================
   RESPONSIVE UTILITIES
   =========================================== */

/* Hide on mobile */
@media (max-width: 767px) {
  .d-none-mobile {
    display: none !important;
  }
}

/* Hide on desktop */
@media (min-width: 768px) {
  .d-none-desktop {
    display: none !important;
  }
}

/* Show only on mobile */
@media (min-width: 768px) {
  .d-mobile-only {
    display: none !important;
  }
}

/* Show only on desktop */
@media (max-width: 767px) {
  .d-desktop-only {
    display: none !important;
  }
}

/* Responsive text alignment */
@media (min-width: 992px) {
  .text-lg-start {
    text-align: left !important;
  }

  .text-lg-center {
    text-align: center !important;
  }

  .text-lg-end {
    text-align: right !important;
  }
}

/* ===========================================
   ANIMATION UTILITIES
   =========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.3s ease forwards;
}

.animate-slideInLeft {
  animation: slideInLeft 0.3s ease forwards;
}

.animate-slideInRight {
  animation: slideInRight 0.3s ease forwards;
}