:root {
  --color-primary: #e60041;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  min-height: var(--vh, 100vh);
  position: relative;
  /* Giúp font rõ hơn trên Safari iOS */
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  /* macOS: chữ mịn hơn khi dùng font web */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(
    135deg,
    #fff5f7 0%,
    #ffe4e9 25%,
    #fff0f3 50%,
    #ffe8ed 75%,
    #fff5f7 100%
  );
  background-attachment: fixed;
}

/* Force Inter font for all form elements */
input,
textarea,
button,
select {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.clear {
  clear: both;
}

/* Main Container */
.order_distribution {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

/* Utility Classes */
.d-flex {
  display: flex !important;
}

.flex-column {
  flex-direction: column !important;
  gap: 1rem;
}

/* Loading */
#globalLoading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

#globalLoading.hidden {
  display: none;
}

#globalLoading.visible {
  display: flex;
}

.loader {
  width: 3rem;
  height: 3rem;
  border: 0.375rem solid #f3f3f3;
  border-top: 0.375rem solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
  RESPONSIVE SCALE - Scale font-size global
============================================ */

@media screen and (max-width: 1536px) and (min-width: 993px) {
  html {
    font-size: 14px;
  }
}

@media screen and (max-width: 992px) {
  body {
    background-attachment: scroll;
  }
}
