body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
}

/* ----------------------- 00. Thanh Menu bên trái ----------------------- */
.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.logo-img {
  width: 96px; /* Kích thước logo */
  height: 96px; /* Kích thước logo */
  margin-right: 10px; /* Khoảng cách giữa logo và văn bản */
  object-fit: contain; /* Giữ tỉ lệ logo */
}


.sidebar {
    width: 250px;
    background-color: #f9f9f9;
    padding: 15px;
    border-right: 1px solid #ddd;
    transition: width 0.3s ease; /* Hiệu ứng thu gọn */
    overflow: hidden;
    position: relative;
}

.sidebar.collapsed {
    width: 80px; /* Thu gọn sidebar */
}

.sidebar .logo {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Thu nhỏ logo trong sidebar khi thu gọn */
.sidebar.collapsed .logo {
    opacity: 1; /* Giữ logo hiển thị */
    align-items: center; /* Căn giữa theo chiều dọc */
    justify-content: center; /* Căn giữa theo chiều ngang */
    transform: scale(0.8); /* Thu nhỏ logo xuống 80% */
    transition: transform 0.3s ease, opacity 0.3s ease; /* Hiệu ứng chuyển đổi mượt mà */
}

/* Ẩn text trong sidebar khi thu gọn */
#sidebar.collapsed .menu-text {
    display: none; /* Ẩn text */
}

/* Căn chỉnh icon trong sidebar */
#sidebar .menu-item {
    display: flex;
    align-items: center;
    gap: 10px; /* Khoảng cách giữa icon và text */
    padding: 10px 15px;
    transition: padding 0.3s ease;
}

/* Giảm khoảng cách khi sidebar thu gọn */
#sidebar.collapsed .menu-item {
    justify-content: center; /* Đưa icon ra giữa */
    padding: 20px; /* Giảm padding */
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin-bottom: 10px;
}

.menu li a {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.menu li a:hover {
    background-color: #e6f7ff;
	margin: 8px;
    color: #1890ff;
}

.menu li a .icon {
    font-size: 18px;
    margin-right: 10px;
    transition: margin-right 0.3s ease;
}

.menu li a .text {
    transition: opacity 0.3s ease;
}

.menu a.active {
    background-color: #007bff; /* Nền xanh */
    font-weight: bold; /* Chữ đậm */
    border-radius: 5px; /* Bo góc */
}


.sidebar ul li a.active {
    background-color: #e6f7ff;
    color: #1d4ed8;
	border-radius: 6px;
	padding-left: 20px; /* Thêm khoảng trắng 20px bên trái */
}

.sidebar.collapsed .menu li a .icon {
    margin-right: 0; /* Xóa khoảng cách giữa icon và text */
}

.sidebar.collapsed .menu li a .text {
    opacity: 0; /* Ẩn text khi sidebar thu gọn */
    pointer-events: none; /* Ngăn việc chọn text ẩn */
}
/* ----------------------- 00. Thanh Menu bên trái ----------------------- */


/* ----------------------- 00. Nội dung chính (main-content) điều chỉnh khi sidebar thu gọn  ----------------------- */
.main-content {
    margin-left: 8px; /* Cách mép trái 250px khi sidebar mở */
    transition: margin-left 0.3s ease; /* Hiệu ứng mượt khi chuyển đổi */
	flex-grow: 1; /* Lấp đầy không gian còn lại */
    padding: 20px; /* Khoảng cách bên trong */
    background-color: #ffffff;
    overflow-y: auto; /* Cuộn nội dung khi cần */
}

.main-content.collapsed {
    margin-left: 0px; /* Cách mép trái 80px khi sidebar thu gọn */

}

.main-content.sidebar-hidden {
    margin-left: 0; /* Mở rộng nội dung toàn màn hình */
}
/* ----------------------- 00. Nội dung chính (main-content) điều chỉnh khi sidebar thu gọn  ----------------------- */

/* ----------------------- 01. Nội dung header  ----------------------- */
/* ----------------------- 01.1 Nút thu gọn sidebar  ----------------------- */
.toggle-button {
    background: linear-gradient(90deg, #2563eb, #64b5f6); /* Gradient xanh lam */
    color: white; /* Màu chữ trắng */
    border: none; /* Loại bỏ viền */
    border-radius: 5px; /* Bo góc */
    padding: 10px 15px; /* Tạo khoảng cách bên trong */
    font-size: 18px; /* Kích thước biểu tượng */
    cursor: pointer; /* Đổi con trỏ chuột thành pointer khi hover */
    transition: background-color 0.3s ease; /* Hiệu ứng chuyển màu */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Hiệu ứng bóng */
}

.toggle-button:hover {
    background: linear-gradient(90deg, #1e4eb9, #4da8e0); /* Màu đậm hơn khi hover */
}

.toggle-button:focus {
    outline: none; /* Loại bỏ viền mặc định khi focus */
}
/* ----------------------- 01.1 Nút thu gọn sidebar  ----------------------- */

.content { /* I. Phần tử lớn nhất */
    box-sizing: border-box; /* Đảm bảo chiều rộng bao gồm padding và border */
    flex-grow: 1;
    padding: 13px;
    width: 100%; /* Đảm bảo phần tử cha chiếm toàn bộ chiều rộng */
}

.header { /* I.1 Phần tử con của content */
    width: 100%;
    box-sizing: border-box; /* Tính cả padding và border vào width */
	gap: 20px;  /* Tạo khoảng cách giữa các phần tử bên trong container */
	background-color: #ffffff;
    position: sticky; /* Cố định header */
    display: flex; /* Sử dụng flexbox */
    align-items: center; /* Căn giữa các phần tử theo trục dọc */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Hiệu ứng bóng nhẹ */
    padding: 5px 10px; /* Tạo khoảng cách bên trong */
    z-index: 10000; /* Đảm bảo header nằm trên nội dung khác */
}

.header-right { /* I.1.1 Phần tử con của header */
    display: flex; /* Sử dụng flexbox */
    width: 100%; /* Đảm bảo phần tử cha chiếm toàn bộ chiều rộng */
    box-sizing: border-box; /* Đảm bảo chiều rộng bao gồm padding và border */
    align-items: center; /* Căn giữa các phần tử con theo chiều dọc */
    justify-content: flex-end; /* Đẩy toàn bộ nội dung sang phải */
    gap: 13px; /* Tạo khoảng cách giữa các phần tử */
}

.header h2 { /* I.1 Text h2 phần tử của header */
    margin: 0; /* Xóa khoảng cách mặc định */
    white-space: nowrap; /* Ngăn xuống dòng */
}

.header button { /* I.1 Nút phần tử của header */
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;

}

.header.sidebar-hidden { /* I.1 Phần tử của header khi ẩn */
    margin-left: 0; /* Header mở rộng toàn màn hình */
}

/* ----------------------- 01.2 Dropdown của nút creat livestream của header ----------------------- */
/* Container của dropdown */
.dropdown {
    position: relative; /* Đặt vị trí tương đối cho nút */
    display: inline-block;
}

/* Nút Create Livestream */
.livestream-btn {
    background-color: #e6f7ff;
    color: #1890ff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
}

.livestream-btn:hover {
	transform: scale(1.1); /* Tăng nhẹ kích thước khi hover */
}

/* Dropdown menu */
.dropdown-menu {
    display: none; /* Ẩn mặc định */
    position: absolute;
    top: calc(100% + 5px); /* Xuất hiện ngay bên dưới nút, cách 5px */
    right: 0; /* Căn lề trái */
    background-color: #ffffff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    width: 200px; /* Chiều rộng menu */
    z-index: 2000;
}

/* Dropdown Header */
.dropdown-header {
    font-weight: bold;
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #555;
    text-decoration: none; /* Bỏ gạch chân */
    display: block; /* Đảm bảo bao phủ toàn bộ dòng */
}

/* Dropdown Items */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #333;
    text-decoration: none; /* Bỏ gạch chân */
    font-size: 14px;
    transition: background-color 0.2s ease;
}


/* Hiệu ứng hover */
.dropdown-item:hover {
    background-color: #f5f5f5;
    color: #007bff; /* Màu chữ khi hover */
}

/* Hiển thị menu khi có lớp 'show' */
.dropdown-menu.show {
    display: block;
}
/* ----------------------- 01.2 Dropdown của nút creat livestream của header ----------------------- */


/* ----------------------- 01.3 Nút thông báo của header ----------------------- */
.notification {
  position: relative;
  display: inline-block;
}

#notification-button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
    background-color: #e6f7ff; /* Màu đậm hơn khi hover */
    color: #007bff; /* Màu chữ khi hover */
}

.icon {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  display: none;
}

.notification-list {
  position: absolute;
  top: 40px;
  right: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  z-index: 1000;
  display: none;
}

.notification-list.visible {
  display: block;
}

.notifications-container .notification-item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.notifications-container .notification-item:hover {
  background: #f0f8ff;
}

.mark-read {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
}

/* ----------------------- 01.3 Nút thông báo của header ----------------------- */

/* ----------------------- 01.4 Dropdown nút ngôn ngữ ----------------------- */
.language-dropdown {
	background-color: transparent;
    position: relative;
    display: inline-block;
}

.language-btn {
    background-color: transparent;
	margin-left: 5px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-btn img.flag {
    width: 20px;
    height: 14px;
    border: 1px solid #ccc; /* Đường viền mỏng xung quanh quốc kỳ */
    border-radius: 2px;
}

.language-btn span {
    font-size: 14px; /* Điều chỉnh kích thước mũi tên nếu cần */
    color: #000; /* Màu của mũi tên */
}

.flag {
    width: 20px;
    height: 14px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border-radius: 5px;
    overflow: hidden;
}

.language-option {
	width: 186px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.language-option:hover {
    color: #007bff; /* Màu chữ khi hover */
    background-color: #f0f0f0;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}
/* ----------------------- 01.4 Dropdown nút ngôn ngữ ----------------------- */


/* ----------------------- 01.5 Profile Button ----------------------- */
/* Profile Container */
.profile-container {
    position: relative;
    display: inline-block;
}

/* Profile Section */
.profile {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

/* Profile Button */
.profile-btn {
    width: 40px;
    height: 40px;
    background-color: #87ceeb; /* Màu nền xanh nhạt */
    border-radius: 50%; /* Làm tròn nút */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Hiệu ứng bóng mềm mại */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Hiệu ứng mượt */
}

.profile-btn:hover {
    transform: scale(1.1); /* Tăng nhẹ kích thước khi hover */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* Tăng bóng khi hover */
}

/* Profile Icon */
.profile-icon {
    font-size: 20px; /* Kích thước biểu tượng lớn hơn một chút */
    color: white; /* Màu biểu tượng */
    line-height: 1; /* Căn chỉnh biểu tượng */
}

/* Ảnh đại diện của người dùng thay cho biểu tượng 👤 */
.profile-avatar {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Hiển thị ngay bên dưới nút Profile */
    right: 0; /* Căn phải */
    background-color: #fff; /* Nền trắng */
    border: 1px solid #ddd; /* Viền nhẹ */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Đổ bóng menu */
    border-radius: 8px; /* Bo góc menu */
    display: none; /* Mặc định ẩn */
    z-index: 1000; /* Hiển thị trên các phần tử khác */
    padding: 10px 0; /* Khoảng cách giữa các mục */
    width: 200px; /* Chiều rộng cố định */
}

/* Dropdown Menu Items */
.dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 10px 15px; /* Khoảng cách bên trong */
    color: #333; /* Màu chữ */
    text-decoration: none; /* Bỏ gạch chân */
    font-size: 16px; /* Kích thước chữ */
    transition: background-color 0.2s ease, color 0.2s ease; /* Hiệu ứng mượt */
}

.dropdown-menu a:hover {
    background-color: #f1f1f1; /* Nền khi hover */
    color: #007bff; /* Màu chữ khi hover */
}

/* Dropdown Icon */
.dropdown-menu .icon {
    margin-right: 10px; /* Khoảng cách giữa biểu tượng và text */
    font-size: 18px; /* Kích thước icon */
    color: #87ceeb; /* Màu xanh nhạt của icon */
}

/* Dropdown Header */
.dropdown-header {
    font-weight: bold;
    border-bottom: 1px solid #ddd; /* Đường phân cách */
    margin-bottom: 10px;
    padding-bottom: 10px;
}

/* ----------------------- 01.5 Profile Button ----------------------- */

.container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	gap: 50px;  /* Tạo khoảng cách giữa các phần tử bên trong container */
	margin-bottom: 20px;
}


/* ----------------------- Danh sách thông báo (gia hạn gói, nhắc nạp ELS Coin) ----------------------- */
.notification-list .header {
    position: static;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 8px;
    box-shadow: none;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    font-size: 14px;
}

.notifications-container .notification-item {
    font-size: 13px;
    line-height: 1.45;
    color: #444;
}

.notifications-container .notification-item.unread {
    background-color: #f5f7ff;
    color: #222;
    font-weight: 500;
}

.notification-time {
    display: block;
    margin-top: 4px;
    color: #999;
    font-size: 11px;
    font-weight: 400;
}

.notification-empty {
    padding: 16px 0;
    color: #999;
    font-size: 13px;
    text-align: center;
}

/* Giữ nguyên độ rộng menu bên trái khi nội dung trang rộng (body dùng flex) */
.sidebar {
    flex-shrink: 0;
}

.main-content {
    min-width: 0;
}
