* {
  box-sizing: border-box;
}
:root {
  --header-color: #940000;
  --header-color-active: #1c63bd;
  --main-bg: #f4f7fa;
  --table-bg: #dbdbdb;
  --color-menu: #494949;
  --menu-color-active: #669ce3;
}
html {
  font-size: 62.5%;
}
body {
  font-size: 1.6rem;
  font-family: "Roboto", sans-serif;
  background-color: var(--main-bg);
}
/* ================= ALL ======================= */
.container {
  width: 1440px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
}
a {
  display: inline-block;
  color: #000;
  text-decoration: none;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--header-color-active);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}
.btn:hover {
  background-color: var(--menu-color-active);
}
/* ================= HEADER ======================= */
header {
  background: #fff;
  box-shadow:
    0 0 4px 0 rgba(0, 0, 0, 0.08),
    0 2px 4px 0 rgba(0, 0, 0, 0.12);
}

.header__wrapper {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* HEADER LEFT */
.header__left {
  display: flex;
  align-items: center;
  column-gap: 10px;
}
.header__link--index {
  font-size: 2rem;
  font-weight: 800;
  color: var(--header-color);
}
/* HEADER RIGHT */
.header__right {
  display: flex;
  align-items: center;
  column-gap: 20px;
}
.header__info {
  display: flex;
  align-items: center;
  column-gap: 6px;
}
.header__link--icon {
  width: 2rem;
  color: var(--header-color);
}
.header__link {
  font-size: 1.8rem;
  color: var(--header-color);
  font-weight: 600;
}
.header__info:hover .header__link,
.header__info:hover .header__link--icon {
  color: var(--header-color-active);
}

/* ================= MAIN ======================= */
main {
  margin-top: 50px;
}
.main-content__wrapper {
  display: flex;
  gap: 50px;
}
.main-content__left {
  width: 20%;
}

.main-nav {
  width: 100%;
  background: #fff;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow:
    0 0 4px 0 rgba(0, 0, 0, 0.08),
    0 2px 4px 0 rgba(0, 0, 0, 0.12);
  padding: 20px;
}
.main-nav__listhidden {
  display: none;
  margin-top: 10px;
}
.main-nav__item--wrapper {
  margin-left: 10px;
  margin-bottom: 15px;
  color: var(--header-color);
  font-size: 1.8rem;
  font-weight: 500;
}
.main-nav__title {
  margin-bottom: 15px;
  color: var(--header-color);
  font-size: 1.9rem;
  font-weight: 600;
  border-bottom: 1px solid var(--header-color);
  padding-bottom: 10px;
}
.blockitem__menu--titleicon {
  width: 1.9rem;
  color: var(--header-color);
}
.main-nav__item {
  margin-bottom: 10px;
  transition: 0.25s;
  /* display: flex;
  align-items: center; */
}
.blockitem__menu--icon {
  width: 1.8rem;
  margin-right: 4px;
}
.main-nav__link {
  padding: 8px 16px;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-menu);
}
.main-nav__item:hover {
  background: var(--menu-color-active);
  border-radius: 4px;
}
.main-nav__item:hover .main-nav__link {
  color: #fff;
}
.main-nav__item--wrapper:hover {
  cursor: pointer;
}
/* ===== MAIN RIGHT ===== */
.main-content__right {
  width: 80%;
}
.blocklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: center;
  text-align: center;
  gap: 30px;
  width: 50%;
  margin: 5% auto 0;
}
.blockitem__imgs {
  padding: 20px 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 0 4px 0 rgba(0, 0, 0, 0.08),
    0 2px 4px 0 rgba(0, 0, 0, 0.12);
  transition: 0.5s;
}
.blockitem__icon {
  width: 101px;
  height: 100px;
}
.blockitem__img {
  width: 5rem;
}
.blockitem__imgs:hover .blockitem__icon {
  color: #00aeef;
}
.blockitem__imgs:hover {
  transform: scale(1.1);
  margin-bottom: 10px;
}

/* SVG ICON EVENT */
.blockitem__imgs:hover .part1 {
  fill: #00aeef;
}

.blockitem__imgs:hover .part3 {
  fill: #00aeef;
}
.blockitem__imgs:hover .part4 {
  fill: #00aeef;
}
.blockitem__imgs:hover .part6 {
  fill: #f8c928;
}
.blockitem__imgs:hover .part7 {
  fill: #f8c928;
}
.blockitem__imgs:hover .part10 {
  fill: #f8c928;
}
.blockitem__imgs:hover .part15 {
  fill: #f8c928;
}
.blockitem__imgs:hover .part8 {
  fill: #008954;
}
.blockitem__imgs:hover .part9 {
  fill: #008954;
}
.blockitem__imgs:hover .part10 {
  fill: #ef4c34;
}
.blockitem__imgs:hover .part2 {
  fill: #ef4c34;
}
.blockitem__imgs:hover .part17 {
  fill: #ef4c34;
}
/*///////////////////END SVG EVENT/////////////////// */

.blockitem__title {
  font-size: 2rem;
  margin-top: 10px;
  font-weight: 800;
  color: var(--header-color);
}
.blockitem__title:hover {
  color: var(--menu-color-active);
}

/* ================================= LOGIN ================================= */
.login-wrapper {
  width: 400px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow:
    0 0 4px 0 rgba(0, 0, 0, 0.08),
    0 2px 4px 0 rgba(0, 0, 0, 0.12);
  padding: 20px;
}
.login-wrapper-add {
  width: 800px;
}
.login__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--header-color);
  text-align: center;
  margin-bottom: 30px;
}
.login_item {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.login_item--add {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.login_item--submit {
  justify-content: center;
}
.lbl_login {
  font-weight: 500;
  color: var(--color-menu);
}
.login_item--input {
  width: 80%;
  height: 40px;
  border: 2px solid var(--menu-color-active);
  border-radius: 6px;
}
.login_item--btn {
  width: 60%;
  height: 40px;
  border-radius: 8px;
  background: var(--header-color-active);
  color: #fff;
  font-weight: 600;
  border: transparent;
  cursor: pointer;
}
.login_item--btn:hover {
  background: var(--menu-color-active);
}
.forgetpass {
  color: var(--header-color);
  font-weight: 500;
}
.forgetpass:hover {
  color: var(--menu-color-active);
}

/* ================================= Định dạng Table ================================= */
.table-wrapper {
  margin-top: 20px;
  overflow-x: auto;
}
.tble-btn-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ctk-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--header-color);
}
table {
  width: 100%;
  border: 1px solid #ffffff;
}
tr,
th,
td {
  border: 1px solid #ffffff;
  padding: 15px;
}
.td-name {
  min-width: 250px;
}
.td-subname {
  text-align: center;
  min-width: 150px;
}
.td-short-word {
  text-align: center;
}
table {
  width: 100%;
  border-collapse: collapse;
}

tbody tr:nth-child(odd) {
  background-color: #f2f2f2;
}

tbody tr:nth-child(even) {
  background-color: #ffffff;
}

th {
  color: #fff;
  font-weight: 600;
  background: var(--header-color-active);
}
.ctk-sotinchi {
  text-align: center;
}
/* .ctk-hk {
  font-weight: 700;
  font-size: 1.8rem;
  text-align: center;
} */

/* ========================== SINH VIÊN ================================ */
/* ////////// PROFILE /////////////////// */
.profile__std {
  border-radius: 8px;
  box-shadow:
    0 0 4px 0 rgba(0, 0, 0, 0.08),
    0 2px 4px 0 rgba(0, 0, 0, 0.12);
  background: #fff;
  padding: 30px;
}
.profilestd__top {
  display: flex;
  gap: 50px;
}
.profile__left__inner {
  position: relative;
  width: 150px;
  height: 150px;
}
.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
  border: 3px solid #d0d0d0;
}
.profile-frame {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%; /* tăng chút */
  height: 120%;
  pointer-events: none;
  object-fit: cover;
}
.profile-name {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.profile-class {
  font-size: 1.8rem;
  font-weight: 700;
  color: #515151;
  margin-bottom: 20px;
}
.profilestd__content {
  margin-top: 10px;
}

/* ======================================= thông báo ================================= */
.success {
  color: #009f00;
  background-color: #a1ffdb;
  padding: 10px 10px;
  border-radius: 4px;
  border: 1px solid #009f00;
  font-size: 1.8rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.danger {
  color: #b50000;
  background-color: #ffcccc;
  padding: 10px 10px;
  border: 1px solid #b50000;
  font-size: 1.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
}
.error {
  font-size: 1.8rem;
  color: #ff142c;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 500;
}
.rate-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #d9a520;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.rate-box input {
  width: 160px;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

/* ========================================= phân trang ================================= */
.pagination {
  margin-top: 20px;
  text-align: center;
}
.pagination ul {
  list-style: none;
  display: inline-flex;
  padding: 0;
}

.pagination li {
  margin: 0;
}

.pagination a {
  display: block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #0d6efd;
  background: white;
}

.pagination a:hover {
  background: #f2f2f2;
}

.pagination a.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.pagination li:first-child a {
  border-radius: 5px 0 0 5px;
}

.pagination li:last-child a {
  border-radius: 0 5px 5px 0;
}

.status-namhoc {
  font-weight: 800;
}

.status-namhoc--open {
  color: #009f00;
}

.status-namhoc--locked {
  color: #b50000;
}

/* ========================================= profile ================================= */
.profilestd__content--inner {
  display: flex;
  gap: 50px;
  justify-content: space-between;
}
.detail_std {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 10px;
}
.detail_std--label {
  font-size: 1.8rem;
  font-weight: 600;
}

/* ========================================= profile action ================================= */
.profile__std--action {
  margin-top: 30px;
}
.profile_action__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.blockitem--action {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.blockitem__icon--action {
  width: 5rem;
  height: auto;
}
.blockitem__imgs--action {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 90px;
}
.score-input {
  width: 60px;
}
.tbkt-cell,
.tbmh-cell {
  width: 80px;
  box-sizing: border-box;
  text-align: center;
}

.icon-editor {
  width: 2.5rem;
  color: #07a8ff;
}
.icon-delete {
  width: 2.5rem;
  color: #b40000;
}
.icon-viewer {
  width: 2.5rem;
  color: #027400;
}
.mobile-menu__icon {
  width: 2.5rem;
}
.mobile-menu {
  display: none;
}
