html {
  font-size: 14px;
}

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

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

body {
  margin-bottom: 60px;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Định dạng modal preview */
.preview-image-container {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.preview-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CSS cho datetime picker */
.datetime-picker-wrapper {
  position: relative;
}

.datetime-picker-icon {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Cải thiện hiển thị phần tử đã chọn */
.target-group {
  transition: all 0.3s ease;
}

.noi-dung-item {
  transition: all 0.3s ease;
}

.noi-dung-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* CSS cho search input */
.search-input-container {
  position: relative;
}

.search-input-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 10;
  color: #6c757d;
}

.search-input {
  padding-left: 35px;
}

/* Định dạng cho dropdown */
.custom-dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
  width: 100%;
}

/* CSS cho danh sách bài viết */
.bai-viet-item {
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin-bottom: 10px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 8px !important;
}

.bai-viet-item:hover {
  background-color: #f8f9fa;
  transform: translateX(2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bai-viet-item.active {
  border-left: 3px solid #0d6efd;
  background-color: rgba(13, 110, 253, 0.05);
}

.gradient-primary {
  background: linear-gradient(135deg, #0d6efd, #0b5ed7);
}

.article-list {
  max-height: 650px;
  overflow-y: auto;
  padding-right: 5px;
}

.btn-chon-bai-viet {
  min-width: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.btn-chon-bai-viet:hover {
  transform: scale(1.1);
}

/* CSS cho nội dung đã chọn */
.selected-content-item {
  transition: all 0.2s ease;
  border-left: 3px solid #0d6efd;
}

.selected-content-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* CSS cho Select2 */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border-color: #ced4da;
  border-radius: 0.25rem;
  min-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 38px;
  padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 38px;
}

/* CSS cho Bootstrap Table */
.bootstrap-table .fixed-table-container {
  border-radius: 0.25rem;
  border: 1px solid #dee2e6;
}

.bootstrap-table .fixed-table-toolbar .search {
  margin-right: 10px;
}

.bootstrap-table .fixed-table-pagination .pagination-detail,
.bootstrap-table .fixed-table-pagination .pagination {
  margin-top: 10px;
}

/* CSS cho bảng lịch chọn ngày */
.calendar-container .day-selectable {
  cursor: pointer;
  text-align: center;
  font-weight: bold;
}

.calendar-container td {
  text-align: center;
  padding: 5px;
  width: 35px;
  height: 35px;
}

.calendar-container th {
  text-align: center;
  font-size: 0.85rem;
}

.calendar-container .current-month {
  font-weight: bold;
  font-size: 1.1rem;
}

.calendar-container .day-selectable:hover {
  background-color: #e9ecef;
  border-radius: 4px;
}

/* CSS cho danh sách thời gian */
.time-picker-container .btn-time {
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 5px;
  text-align: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.time-picker-container .btn-time:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.custom-date-time-picker .row {
  margin-right: 0;
  margin-left: 0;
}