:root {
  /* --background: #edf0f3; */
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

/* ---------------- Colors -------------------- */
:root {
  /* Primary Colors */
  /* --primary-color: #1dbf73; */
  --primary-color: #2ebd85;
  --primary-color-hover: #19a463;
  --primary-color-2: #0d6efd;
  /*màu primary*/
  --dark-primary-color: #198754;
  /* Màu astor cream: #e54d8f  #e877a5 */
  /* Strawberry: #FA5053 */
  /* Text color */
  --txt-color-primary: #000000;
  --txt-color-secondary: #62646a;
  --txt-color-light: #ffffff;
  --txt-color-tittle: #326e51;
  /* Background color */
  /* --bg-gray-1: #d9d9d9; */
  --bg-gray-1: #e9ecef;
  --bg-input: rgba(33, 33, 33, 0.08);
  --bg-light-1: #ffffff;
  --bg-gradient-label: linear-gradient(180deg, #f21299 0%, #1b02b5 100%);
  /* --bg-red: #ff235c; */
  --bg-red: #f6465d;
  --bg-warning: #f7941d;
}

h1 {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 700;
  color: var(--txt-color-tittle);
}

h2 {
  font-size: 1.125rem;
  /* 20px */
  font-weight: 700;
  color: var(--txt-color-tittle);
}

h3 {
  font-size: 1.0rem;
  /* 16px */
  font-weight: 700;
  color: var(--txt-color-tittle);
}

h4 {
  font-size: 0.875rem;
  /* 14px */
  font-weight: 600;
  color: var(--txt-color-tittle);
}

h5 {
  font-size: 0.75rem;
  /* 12px */
  font-weight: 500;
  color: var(--txt-color-tittle);
}

h6 {
  font-size: 0.625rem;
  /* 10px */
  font-weight: 500;
  color: var(--txt-color-tittle);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Mặc định (Mobile-first) */
:root {
  font-size: 14px;
  /* 1rem = 14px khi màn hình nhỏ hơn 768px */
}

input:focus,
input:focus-visible,
.form-check-input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: 1px solid #ccc !important;
  /* Giữ viền bình thường */
}

/* Khi màn hình từ 768px trở lên */
@media (min-width: 768px) {
  :root {
    font-size: 16px;
    /* 1rem = 16px */
  }
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden; /* QUAN TRỌNG: Ngăn horizontal scroll */
}

body {
  color: var(--foreground);
  background: var(--background) !important;
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  text-decoration: none;
  list-style: none;
}

ul {
  margin: 0;
  padding: 0;
}

.Toastify__toast-container {
  z-index: 99999 !important;
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  display: block !important;
}
.Toastify__toast {
  opacity: 1 !important;
  visibility: visible !important;
}

@media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
}

/* styles/globals.css */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Bổ sung cho Card sản phẩm từng hệ thống */
.product-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 15px;
  gap: 15px;
  padding: 10px;
}

@media (max-width: 1200px) {
  .product-list {
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 992px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Highlight row animation for admin dashboard */
.highlight-row {
  animation: highlightPulse 0.5s ease-in-out 3;
  background-color: #fef9c3 !important;
  position: relative;
}

.highlight-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #eab308;
}

@keyframes highlightPulse {
  0%, 100% {
    background-color: #fef9c3;
  }
  50% {
    background-color: #fde047;
  }
}

/* Cách phối tone (gợi ý theme)
Primary: #2EC4B6 (teal)

Secondary: #1A1A2E (navy đậm)

Accent: #FF9F1C (cam đào sáng)

Background: #F5F7FA (trắng xám)

Text: #1A1A2E hoặc #333333 */
