/* ==== Reset, fix tràn ngang ==== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: Arial, sans-serif;
  background: #f7f7f7;
  overflow-x: hidden;
}

/* ==== Container nội dung chính ==== */
.noi-dung {
  width: 100%;
  padding: 20px;
  margin: 0 auto 20px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

/* ==== Tiêu đề, bảng, liên kết ==== */
h2 {
  color: #333;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  background: #fff;
}

th, td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
  word-break: break-word;
}

th {
  background-color: #eee;
}

a {
  text-decoration: none;
  color: #007BFF;
}

a:hover {
  text-decoration: underline;
  color: #0056b3;
}

hr {
  border: 0;
  border-top: 1px solid #ccc;
  margin: 20px 0;
}

/* ==== HEADER ==== */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  background: #333;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

/* ==== LOGO ==== */
.logo a {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
}

.logo span {
  display: inline-block;
}

/* ==== MENU PC ==== */
.top-menu-pc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.top-menu-pc a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
}

.top-menu-pc a i {
  font-size: 20px;
}

.top-menu-pc a .text {
  font-size: 12px;
  display: block;
  text-align: center;
  word-break: break-word;
}

/* ==== BADGE ==== */
.icon-wrap {
  position: relative;
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0,0,0,0.3);
  min-width: 18px;
  text-align: center;
}

/* ==== MENU MOBILE ==== */
.top-menu-mobile {
  display: none;
}

/* ==== Responsive Menu ==== */
@media (max-width: 600px) {
  .top-header {
    padding: 6px 10px;
  }

  .logo {
    width: auto;
    text-align: left;
    margin-bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }

  .logo a span {
    font-size: 20px;
    font-weight: bold;
    color: #cf6;
  }

  .top-menu-pc {
    display: none;
  }

  .top-menu-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #333;
    padding: 3px 0;
    gap: 1px;
  }

  .top-menu-mobile a {
    color: #fff;
    font-size: 17px;
    text-decoration: none;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .top-menu-mobile .badge {
    top: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 18px;
    padding: 0;
  }
}

/* ==== Layout 2 cột cho phần file mới + danh sách thư mục ==== */
.hang-2-khoi {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.hang-2-khoi > div {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.cot-trai {
  flex: 2;
  min-width: 0;
}

.cot-phai {
  flex: 1;
  min-width: 0;
}

@media screen and (max-width: 768px) {
  .hang-2-khoi {
    flex-direction: column;
  }
}
