   :root {
    --mc-green: #7ed957;
    --mc-green-dark: #129c2b;
    --mc-red: #ff6b6b;
   }
      @font-face {
    font-family: "Minecraft";
    src: url("/public/fonts/minecraft.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
   }
      @font-face {
    font-family: "RobotoSlab";
    src: url("/public/fonts/Roboto_Slab/static/RobotoSlab-ExtraBold.ttf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
   }
      @font-face {
    font-family: "Anton";
    src: url("/public/fonts/Anton/Anton-Regular.ttf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
   }
   @font-face {
    font-family: "Mcten";
    src:
     url("/public/fonts/mcten.ttf") format("truetype"),
     url("/public/fonts/minecraft.otf") format("opentype");
   }
   .mc-simple-toggle {
    padding: 1px;
    width: 36px;
    height: 36px;
    z-index: 1100;
    background: transparent;
    border: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
   }

   .header-bar {
    padding: 10px 15px;
    position: sticky;
    top: 0;
    display: flex;

    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 60px;
    background: rgb(32 32 32);
    z-index: 9;
   }

   .header-bar img {
    width: auto;
    height: 40px;
   }
   .mc-simple-sidebar {
    visibility: hidden; 
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 40vw;
    transform: translateX(-100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1050;
    background: #232323;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 24px;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35);
    border-right: 1px solid #3a3a3a;
   }
   .mc-simple-sidebar.open {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition: transform 0.3s ease-out, visibility 0s linear 0s;
   }


   .mc-simple-close {
    z-index: 10;
    margin-left: auto;
    margin-bottom: 15px;
    margin-top: 15px;
    width: 34px;
    height: 34px;
    background: transparent;
    border: 0;
    cursor: pointer;
    position: relative;
   }
   .mc-simple-close::before,
   .mc-simple-close::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 24px;
    height: 3px;
    background: #e6e6e6;
    transform-origin: center;
   }
   .mc-simple-close::before {
    transform: rotate(45deg);
   }
   .mc-simple-close::after {
    transform: rotate(-45deg);
   }

   .mc-download-btn {
    -webkit-tap-highlight-color: transparent; /* Tắt overlay xanh của Chrome/Safari */
    -webkit-user-select: none; /* Ngăn chọn text vô tình */
    margin: 10px 0 22px;
    display: grid;
    place-items: center;
    height: 56px;
    color: var(--mc-green);
    text-decoration: none;
    font-family: "Mcten", Arial, sans-serif;
    letter-spacing: 1px;
    /* border: 1px solid var(--mc-green);*/
    font-weight: bold;
    font-size: 1.4rem;
   }
   .mc-download-btn:hover {
    /*color:#eaffea; background: rgba(39,206,64,.06);
  box-shadow: inset 0 0 0 2px var(--mc-green-dark);*/
   }

   .mc-download-btn img {
    width: auto;
    height: 70px;
   }
   .mc-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-family: "Mcten", Arial, sans-serif;
   }
   .mc-item {
    -webkit-tap-highlight-color: transparent; /* Tắt overlay xanh của Chrome/Safari */
    -webkit-user-select: none; /* Ngăn chọn text vô tình */
    font-family: "RobotoSlab", Arial, sans-serif;
    display: block;
    padding: 16px 4px;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 16px;
   }
   .mc-item:hover {
    background: #383838;
   }

   .mc-sep {
    height: 1px;
    background: #3c3c3c;
   }

   /* green progress-like line */
   .mc-greenline {
    height: 2px;
    background: var(--mc-green);
    margin: 14px 0;
   }

   /* special red sign out */
   .mc-item--danger {
    color: var(--mc-red);
   }
   .mc-item--success {
    color: #73e600;
   }

   /* overlay */
   .mc-simple-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition:
     background-color 0.5s ease,
     visibility 0.2s ease;
    z-index: 1000;
   }
   .sidebar-open .mc-simple-overlay {
    pointer-events: auto;
   }

   @media (min-width: 420px) {
    .mc-simple-sidebar {
     width: 75vw;
    }
   }
      @media (min-width: 1024px) {
    /* 1. Ẩn các nút/phần của sidebar mobile */
    .toolbar {
    /* Phóng to toàn bộ toolbar lên 1.25 lần (tăng 25%) */
    transform: scale(1.25); 
    
    /* Neo vị trí ở "giữa đáy" để khi phóng to nó mọc lên trên, không bị lệch */
    transform-origin: bottom center; 
    
    /* Nhấc lên cao một chút cho thoáng (tuỳ chọn) */
    bottom: 40px; 
  }
    .mc-simple-toggle,
    .mc-simple-overlay,
    .mc-simple-close,
    .mc-simple-sidebar {
     display: none !important; /* Ẩn hoàn toàn */
    }

    /* 2. Gỡ bỏ margin-left cho nội dung chính */
    .main-container {
     margin-left: 0;
    }

    /* 3. Style cho nav list khi ở trong header */
    .header-bar {
     /* Căn chỉnh logo bên trái, nav bên phải */
     height: 80px;
     justify-content: space-between;
     align-items: center;
     gap: 20px;
     padding: 10px 64px; /* Thêm padding ngang */
    }

    .header-bar .mc-list {
     display: flex;
     flex-direction: row; /* Xếp ngang */
     gap: 10px; /* Khoảng cách giữa các item */
     font-family: "Anton", Arial, sans-serif;
    }

    /* 4. Style cho các item nav */
    .header-bar .mc-item {
     padding: 8px 12px;
     font-size: 15px;
     border-radius: 4px; /* Thêm bo góc cho đẹp */
    }
    .header-bar .mc-item:hover {
     background: #383838;
    }

    /* 5. Ẩn các đường kẻ trong menu ngang */
    .header-bar .mc-sep,
    .header-bar .mc-greenline {
     display: none;
    }
   }
   
   /* Style cho nút Profile trên Header */
.mc-button-user {
    display: flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-family: "Anton", sans-serif;
    font-size: 0.9rem;
    height: 36px; /* Bằng chiều cao nút toggle */
}

.mc-button-user:hover {
    background: #333;
    border-color: var(--mc-green);
}

/* Ẩn tên user trên mobile, chỉ hiện icon người */
.desktop-only {
    display: none;
}
@media (min-width: 768px) {
    .desktop-only {
        display: inline;
    }
}

/* Style cho Info User trong Sidebar */
.user-info-sidebar {
    text-align: center;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.user-info-sidebar p { margin: 0; font-size: 0.8rem; color: #aaa; }
.user-info-sidebar h3 { margin: 5px 0 0; color: var(--mc-green); font-family: "Mcten", sans-serif; }

/* Item màu đỏ cho nút đăng xuất */
.mc-item--danger {
    color: #ff5555 !important;
}
.mc-item--danger:hover {
    background: rgba(255, 85, 85, 0.1);
}