html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  min-width: 1400px;
  overflow-x: auto;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Custom Styles */
.hover-shadow {
  transition: all 0.3s ease;
}

.hover-shadow:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* Điều chỉnh container full màn hình với khoảng cách 20px hai bên */
.container {
  max-width: 100% !important;
  min-width: 1400px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

/* Tối ưu cho iPad và thiết bị di động */
@media (max-width: 1024px) {
  input, select, textarea {
    font-size: 16px !important; /* Tránh zoom tự động trên iOS */
  }
  
  .dropdown-menu {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Cải thiện kích thước điểm chạm cho các nút */
  .btn {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Cải thiện hiển thị bảng trên thiết bị di động */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }
}

/* Hỗ trợ Safari trên iOS */
@supports (-webkit-touch-callout: none) {
  /* Hiệu chỉnh cho trình duyệt Safari trên iOS */
  iframe {
    width: 1px;
    min-width: 100%;
    *width: 100%;
  }
  
  /* Fix vấn đề với form inputs */
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"] {
    min-height: 40px;
  }
}