.sidebar{
  background: aliceblue;
}
.search-form {
  display: flex;
  align-items: center;
  justify-items: center;
}

.search-form input {
  padding: 6px;
  border: 1px solid #ccc;
  flex: 1;
}

.search-form button {
  padding: 4.5px ;
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
  cursor: pointer;
  border-radius: 5px;
}

.table-rounded {
  border-radius: 5px; /* Điều chỉnh bán kính để thay đổi mức độ cong */
  overflow: hidden; /* Đảm bảo viền cong được hiển thị chính xác */
}

#pagination {
  margin-top: 20px;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Màu xám với độ trong suốt 50% */
  z-index: 999; /* Đảm bảo màn xám ở phía trước của các phần tử khác */
}

.xoa_box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgba(202, 202, 199, 0.822);
  border-radius: 5px;
  width: 20%;
  justify-content: center;
  align-items: center;
  justify-items: center;
}

.regist-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgb(255, 255, 255);
  border-radius: 5px;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 2%;
  cursor: pointer;
}

#successMessage, #deleteMessage, #updateMessage{
  display: none; /* Ban đầu ẩn thông báo */
  position: fixed; /* Giữ thông báo cố định trên màn hình */
  top: 20px; /* Cách trên cùng 20px */
  left: 50%; /* Căn giữa theo chiều ngang */
  transform: translateX(-50%); /* Căn giữa theo chiều ngang */
  background-color: #93e3ee; /* Màu nền xanh lá */
  color: white; /* Màu chữ trắng */
  padding: 10px 20px; /* Khoảng cách trong */
  border-radius: 5px; /* Bo tròn các góc */
  z-index: 1000; /* Hiển thị trên các phần tử khác */
  opacity: 1; /* Thiết lập độ trong suốt */
  transition: opacity 1s; /* Hiệu ứng chuyển đổi độ trong suốt */
}


.container-fluid{
  width: 114rem;
  height: 10rem ;
}

.menu-item.active {
  border-bottom: 2px solid #007bff;
  font-weight: bold;
  color: #007bff;
}

@keyframes blink {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* desktop/PC ----------- */
@media (min-width: 1024px) and (max-width: 1280px){
  body {
    font-size: 16px;
  } 
  .main {
    font-size: 9px;
    height: auto;
  }

  .content{
    margin-top: -2.5%;
    margin-left: -2.5%; 
  }

  .card-body{
    margin-left: -2%;
  }

  .search-form{
    font-size: 10px;
    height: 5px;
  }

  .navbar{
    height: 4.2rem;
  }

  .d-flex{
    margin-left: -0.5%;
    font-size: 10px;
    width: 65%;
  }
}


/* desktop/PC ----------- */
@media (min-width: 1024px) and (max-width: 1920px) and (min-height: 1000px){
  body {
    font-size: 16px;
    overflow-x: hidden;
  } 
  
  .main {
    height: auto;
  }

  .navbar{
    font-size: 19px;
  }

  .content{
    margin-top: -2%;
    margin-left: -1%; 
  }

  .search-form{
    font-size: 10px;
    height: 5px;
  }

  .card-body{
    margin-left: 0%;
  }

  footer{
    font-size: 20px;
  }

}


@media (min-width: 1300px) and (max-width: 1350px) and (max-height: 650px){
  body {
    font-size: 10px;
    overflow-x: hidden;
  } 
  
  .main {
    height: auto;
  }

  .navbar{
    height: 3.5rem;
    font-size: 10px;

  }

  .content{
    margin-top: -2%;
    margin-left: -1.5%; 
  }

  .search-form{
    font-size: 10px;
    height: 5px;
  }
}


/* TV LG ----------- */
@media (min-width: 1920px) and (max-width: 3840px) {
  body {
    font-size: 20px;
  } 
  .main {
    font-size: 14px;
    height: auto;
  }

  .d-flex{
    padding-left: 2%;
    font-size: 14px;
    width: 102%;
  }

  .content{
    margin-top: -1%;
    margin-left: -2.5%; 
  }

  .card-body{
    margin-left: -2%;
  }

  .search-form{
    font-size: 10px;
    height: 5px;
  }

  .navbar{
    height: 8%;
  }

}

/* Dành cho thiết bị nhỏ */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
    html, body {
        width: 100%; /* Tận dụng toàn bộ chiều rộng màn hình */
        height: auto;
        margin: 0;
        padding: 0;
        overflow-x: hidden; /* Ngăn cuộn ngang */
        font-size: 14px; /* Cỡ chữ vừa phải, dễ đọc */
    }

    .main {
        font-size: 12px; /* Tăng cỡ chữ để dễ đọc */
        height: auto;
        padding: 10px; /* Tạo khoảng cách cho nội dung */
    }

    .d-flex {
        padding-left: 5%; /* Chỉnh padding để không bị sát lề */
        font-size: 12px; /* Cỡ chữ phù hợp với màn hình nhỏ */
        width: 90%; /* Đảm bảo nội dung nằm gọn trong màn hình */
    }

    .search-form {
        font-size: 12px; /* Giữ kích thước chữ dễ đọc */
        height: auto; /* Để chiều cao linh hoạt */
        margin-top: 10px; /* Tạo khoảng cách với các phần tử khác */
    }

    .content {
        margin: 5% auto; /* Căn giữa nội dung với khoảng cách hợp lý */
        padding: 5%;
        font-size: 12px; /* Tăng cỡ chữ để dễ đọc */
    }

    /* Thêm hỗ trợ cho các nút hoặc hình ảnh */
    button {
        font-size: 14px;
        padding: 10px;
        width: 100%; /* Đảm bảo nút dễ nhấn */
    }

    img {
        max-width: 100%; /* Đảm bảo hình ảnh không vượt quá màn hình */
        height: auto;
    }
}
