body {
    font-family: 'Inter', sans-serif;
}
.custom-textarea {
    font-size: 10px;
    /* Thêm các thuộc tính tùy chỉnh khác nếu cần */
}
.img-zoom {
    padding-bottom: 10px;
}
.img-zoom img {
    width: 60px; /* Kích thước ban đầu */
    height: auto; /* Duy trì tỷ lệ khung hình */
    transition: transform 0.2s ease; /* Hiệu ứng phóng to */
    border-radius: 2px;
}

.img-zoom:hover img {
    border-radius: 5px;
    transform: scale(5);
    z-index: 10000;
}
.custom-error-message {
    display: none;
    color: red;
    font-size: 11px;
    padding-bottom: 10px;
}
.content-area-loading {
    display: flex; /* Sử dụng flexbox */
    justify-content: center; /* Canh giữa các phần tử theo chiều ngang */
    height: 100vh; /* Chiều cao của div là 100% chiều cao của viewport */
}

.dropdown-item.active,.dropdown-item:active {
    color: #2d3135;
    text-decoration: none;
    background-color: var(--bs-dropdown-link-active-bg)
}
.container-xl {
    max-width: 100%;
}
.form-check-input-sm-custom {
    width: 10px;
    height: 10px;
  }

  /* CSS tùy chỉnh để làm cho văn bản nhãn nhỏ hơn */
  .form-check-label-sm-custom {
    font-size: 10px; /* hoặc bất kỳ kích thước phù hợp nào */
  }

  .form-check-input-sm {
    width: 13px;
    height: 13px;
  }

  /* CSS tùy chỉnh để làm cho văn bản nhãn nhỏ hơn */
  .form-check-label-sm {
    font-size: 0.8em; /* hoặc bất kỳ kích thước phù hợp nào */
  }
  .custom-note {
    font-size: 8px;
    color: #888;
  }
  .custom-p {
    margin-bottom: 0; cursor: pointer;text-decoration: underline; font-size: 12px;
  }
  .custom-p-2 {
    margin-bottom: 0; font-size: 12px;
  }
.btn-custom {
    padding: 0.25rem 0.8rem;
    font-size: 13px;
}
.btn-custom-delete {
    padding: 0.25rem 0.8rem;
    font-size: 13px;
    background-color: #dc3545;
    color: white;
}
.floating-button {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    transition: opacity 0.3s;
}


.offcanvas {
    z-index: 10000;
}

.custom-table {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-table thead {
    background-color: #343a40;
    color: white;
}

.custom-table tbody td {
    padding: 0.25rem;
}


.custom-table td, .custom-table th {
    text-align: center;       /* Horizontal centering */
    vertical-align: middle;   /* Vertical centering */
}
.toast-success {
    background-color: #d4edda; /* Light green background for success */
    color: #155724; /* Dark green text color for success */
}
.toast-failure {
    background-color: #f8d7da; /* Light red background for failure */
    color: #721c24; /* Dark red text color for failure */
}
.tag-term {
    position: relative; /* Để icon x có thể được đặt tuyệt đối trong thẻ span */
    display: inline-block;
    font-size: 14px;
    border: none;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 5px; /* Hình dạng oval bo tròn */
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tag-term:hover {
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.tag-term:active {
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(1px);
}

.tag-term svg {
    position: absolute;
    top: -1px; /* Điều chỉnh vị trí y để căn giữa */
    right: -1px; /* Điều chỉnh vị trí x để căn giữa */
    cursor: pointer;
    color: red;
    border-radius: 50%; /* Hình dạng hình tròn */
    padding: 5px; /* Khoảng cách giữa icon và nền */
    transition: all 0.3s ease; /* Hiệu ứng chuyển đổi */
}

.tag-term svg:hover {
    background-color: red; /* Màu nền khi hover */
    color: white; /* Đổi màu chữ thành trắng khi hover */
    border-color: red; /* Màu viền khi hover */
    transform: scale(1.2); /* Phóng to nút khi hover */
}
.app-user-dropdown img {
    border-radius: 50%;
}

.custom-img-display {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
}

.custom-p-4 {
    margin: 0;
    font-size: 14px;
}

.custom-p-3 {
    margin: 0;
    font-size: 11px;
}
.custom-span-1 {
    margin: 0;
    font-size: 11px;
    max-width: 290px;
    margin-bottom: 3px;
    margin-right: 20px;
}
.text-container {
    display: grid;
    row-gap: 1px;
}
.attribute-container {
    display: grid;
    grid-template-columns: repeat(2, max-content); /* 3 cột với chiều rộng tự động */
    gap: 11px;
}
.custom-column {
    max-width: 400px;
    word-break: break-word;
    overflow: inherit;
}
.custom-extra-small-icon {
    font-size: 0.75rem; /* Kích thước chữ nhỏ */
}
.underline-pointer-p {
    margin: 0;
    font-size: 14px;
    text-decoration: underline; /* Thêm gạch dưới */
    
}
.custom-div-2 {
    cursor: pointer;
}
.
.image-order {
    
}

.image-order:hover {
    transform: scale(5);
}
.col-85 {
    width: 85%;
}
.col-15 {
    width: 15%;
}
.page-item-custom {
    cursor: pointer;
}
.custom-link {
    font-style: underline;
    color: #f24d1d;
    padding: 5px;
    border-radius: 5px;
    padding-left: 5px;
    padding-right: 5px;
}
.custom-icon {
    cursor: pointer;
}
.order-note-area {
    position: relative;
    display: inline-block;
}
.custom-badge-order-note {
    position: absolute;
    top: -5px;
    right: -10px;
    font-size: 10px;
}
.custom-icon-order-note {
    font-size: 20px;
}

.note {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  margin-bottom: 20px;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}
.note p {
  margin: 0; /* Bỏ margin cho đoạn văn */
  overflow: hidden; /* Cắt bớt nội dung */
  text-overflow: ellipsis; /* Hiển thị dấu chấm lửng */
  display: -webkit-box; /* Hiển thị như box */
  -webkit-line-clamp: 10; /* Số dòng tối đa hiển thị */
  -webkit-box-orient: vertical; /* Định hướng box theo chiều dọc */
}

.note:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/*.delete-note {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  color: #ff6b6b;
  text-decoration: none;
}

.delete-note:hover {
  text-decoration: underline;
  color: #ff3d3d;
}*/

.note-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.author, .timestamp {
  font-size: 11px;
  color: #6c757d;
}

.delete-note {
  font-size: 11px;
  color: #ff6b6b;
  text-decoration: none;
}

.delete-note:hover {
  text-decoration: underline;
  color: #ff3d3d;
}

/* Hiệu ứng loading */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed; /* Đặt cố định */
  top: 50%; /* Giữa màn hình theo chiều dọc */
  left: 50%; /* Giữa màn hình theo chiều ngang */
  transform: translate(-50%, -50%); /* Căn giữa hoàn toàn */
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Để đảm bảo hiển thị trên các phần tử khác */
}

.loading-circle {
  border: 8px solid #f3f3f3; /* Light gray */
  border-top: 8px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.notification-container {
      margin: 40px auto;
    }
    .notification-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #ffffff;
      border-left: 3.5px solid #ff0000;
      border-radius: 8px;
      padding: 10px 20px 10px 20px;
      margin-bottom: 15px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .notification-item.fade-out {
      opacity: 0;
      transform: translateY(-20px);
    }
    .notification-header {
      color: #333;
      margin: 0;
      word-break: break-word;
    }
    .notification-time {
      font-size: 0.9rem;
      color: #6c757d;
      margin: 8px 0 0;
    }
    .mark-processed-btn {
      padding: 8px 15px;
      font-size: 0.9rem;
      color: #ffffff;
      background-color: #28a745;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
      flex-shrink: 0;
    }
    .mark-processed-btn:hover {
      background-color: #218838;
    }
    .social-icons {
            display: flex;
            gap: 10px;
        }
        .social-icons a {
            text-decoration: none;
            font-size: 13px;
            width: 20px;
            height: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: white;
        }
        .facebook { background: #3b5998; }
        .twitter { background: #1DA1F2; }
        .instagram { background: #E1306C; }
        .threads { background: black; }

.notification-item {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid #f1f3f4;
            transition: all 0.2s ease;
            position: relative;
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-item:hover {
            background: #f8f9fa;
        }

        .notification-item.unread {
            background: rgba(13, 110, 253, 0.05);
            border-left: 3px solid #0d6efd;
        }

        .notification-item.unread::before {
            content: '';
            position: absolute;
            left: 0.5rem;
            top: 0.75rem;
            width: 6px;
            height: 6px;
            background: #0d6efd;
            border-radius: 50%;
        }

        .notification-content {
            margin-left: 1rem;
        }

        .notification-item.unread .notification-content {
            margin-left: 1.5rem;
        }

        .notification-title {
            font-size: 0.85rem;
            font-weight: 500;
            margin-bottom: 0.25rem;
            color: #212529;
            line-height: 1.3;
        }

        .notification-text {
            font-size: 1rem;
            margin-bottom: 0.25rem;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .notification-time {
            font-size: 0.75rem;
            color: #adb5bd;
        }

        .notification-actions {
            display: none;
            position: absolute;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
        }

        .notification-item:hover .notification-actions {
            display: flex;
            gap: 0.25rem;
        }

        .action-btn {
            width: 24px;
            height: 24px;
            border: none;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            transition: all 0.2s ease;
        }

        .btn-read {
            background: #198754;
            color: white;
        }

        .btn-read:hover {
            background: #146c43;
            transform: scale(1.1);
        }

        .btn-delete {
            background: #dc3545;
            color: white;
        }

        .btn-delete:hover {
            background: #b02a37;
            transform: scale(1.1);
        }

        .notification-badge {
            background: #dc3545;
            color: white;
            border-radius: 10px;
            padding: 0.1rem 0.35rem;
            font-size: 0.65rem;
            font-weight: 600;
        }

        .filter-tabs {
            display: flex;
            background: #f8f9fa;
            border-radius: 6px;
            padding: 0.2rem;
            margin-bottom: 0.75rem;
        }

        .filter-btn {
            flex: 1;
            background: transparent;
            border: none;
            padding: 0.4rem 0.5rem;
            border-radius: 4px;
            font-size: 0.75rem;
            color: #6c757d;
            transition: all 0.2s ease;
        }

        .filter-btn.active {
            background: white;
            color: #0d6efd;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        .empty-state {
            text-align: center;
            padding: 2rem 1rem;
            color: #6c757d;
        }

        .empty-state i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            opacity: 0.5;
        }

        .notification-type-icon {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            color: white;
            margin-right: 0.5rem;
            flex-shrink: 0;
        }

        .type-order { background: #0d6efd; }
        .type-system { background: #198754; }
        .type-promotion { background: #fd7e14; }

        /* Scrollbar styling */
        .notification-list::-webkit-scrollbar {
            width: 4px;
        }

        .notification-list::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .notification-list::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 2px;
        }

        .notification-list::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Responsive */
        @media (max-width: 576px) {
            .notification-text {
                -webkit-line-clamp: 1;
            }
            
            .filter-btn {
                padding: 0.3rem 0.25rem;
                font-size: 0.7rem;
            }
        }