* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Điều chỉnh lề cho nội dung để tránh bị che bởi header cố định */
.row.content {
  margin-top: 50px;
  /* Khoảng cách để header cố định không che nội dung */
}

/* Cố định vị trí header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #555;
  color: white;

  z-index: 1000;
  aspect-ratio: 16/0;
  /* Đảm bảo header nằm trên các phần tử khác */
}
.navbar{
  margin-bottom: 0;
}
/* .navbar-header{
  aspect-ratio: 0/0;
} */
/* Cố định vị trí thanh điều hướng bên trái (sidenav) */
.sidenav {
  position: fixed;
  /* Điều chỉnh nếu chiều cao của header thay đổi */
  left: 0;
  /* width: 25%; */
  /* Điều chỉnh chiều rộng nếu cần */
  /* background-color: #d8d5d5; */
  background-color: #eee;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  height: calc(100% - 10px);
  padding-top: 20px;
  z-index: 999;
  /* Đảm bảo sidenav nằm trên các phần tử khác */
  overflow-y: auto;
  aspect-ratio: 2/16;
  /* Cho phép cuộn trong sidenav nếu nội dung quá nhiều */
}

/* Điều chỉnh lề cho phần nội dung chính */
.main {
  margin-left: 19%;
  /* Điều chỉnh theo chiều rộng của sidenav */
  padding: 20px;
  padding-top: 0;
  aspect-ratio: 14/16;
}

/* Đảm bảo giao diện tốt trên màn hình nhỏ */
@media screen and (max-width: 767px) {
  .sidenav {
    height: auto;
    padding: 15px;
    /* position: relative; */
  }

  .main {
    margin-left: 0;
  }

  .row.content {
    margin-top: 0;
    /* Xóa khoảng cách trên nếu không có header cố định */
  }
}

/* Link menu chính */
.nav-stacked > li > a {
  color: #333;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-stacked > li > a:hover {
  background-color: #007bff;
  color: white;
}

/* Kiểu dáng cho menu con */
.dropdown-content, .dropdown-content2 {
  display: none;
  /* margin-top: 10px; */
  background-color: #fff;
  box-shadow: 0 4px 8px #ccc;
  border-radius: 5px;
  padding: 10px;
  list-style: none;
}

.dropdown-content > li > a {
  padding: 8px 15px;
  display: block;
  color: #333;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.dropdown-content2 > li > a {
  padding: 8px 15px;
  display: block;
  color: #333;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.dropdown-content > li > a:hover {
  background-color: #007bff;
  color: white;
}
.dropdown-content2 > li > a:hover {
  background-color: #007bff;
  color: white;
}
/* Chỉnh title */
#title{
  position: sticky;
  top: 30px;
  background-color: #fff; /* Đảm bảo tiêu đề có nền trắng hoặc rõ ràng */
  z-index: 100; /* Đảm bảo nó luôn ở trên các thành phần khác */
  padding: 10px; 
  border-bottom: 1px solid #ccc;
}


/*Chỉnh giao diện chọn ngành để thêm sinh viên*/
#nganh{
  margin: auto;
  display: inline-block;
  padding: 10px;
}
.info-box {
  display: block;
  border: 1px solid black;
  min-height: 90px;
  background: #fff;
  width: 300px;
  border-radius: 2px;
  margin-bottom: 15px;
}

.info-box small {
  font-size: 14px
}

.info-box .progress {
  background: rgba(0,0,0,0.2);
  margin: 5px -10px 5px -10px;
  height: 2px
}

.info-box .progress,.info-box .progress .progress-bar {
  border-radius: 0
}

.info-box .progress .progress-bar {
  background: #fff
}

.info-box-icon {
  border-top-left-radius: 2px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 2px;
  display: block;
  float: left;
  height: 90px;
  width: 90px;
  text-align: center;
  font-size: 45px;
  line-height: 90px;
  background: rgba(0,0,0,0.2)
}

.info-box-icon>img {
  max-width: 100%
}

.info-box-content {
  padding: 5px 10px;
  margin-left: 90px
}

.info-box-number {
  display: block;
  font-weight: bold;
  /* font-size: 18px */
}

.progress-description,.info-box-text {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-box-text {
  text-transform: uppercase;
}

