/* 🌟 HEADER CHUNG */
.app-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    background: #002b36;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* LOGO */
.logo img {
    width: 40px;
    height: auto;
    transition: transform 0.3s;
}
.logo img:hover {
    transform: scale(1.1);
}

/* Bố cục */
.header-left, .header-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* MENU ICONS */
.menu {
    display: flex;
    align-items: center;
    gap: 5px;
}
.menu a {
    color: white;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px; height: 35px;
    border-radius: 50%;
    transition: background 0.3s ease, color 0.3s ease;
}
.menu a:hover {
    color: #FFD700;
    background: rgba(255, 255, 255, 0.1);
}

/* TÌM KIẾM */
.search-container {
  position: relative; 
  display: flex;
  align-items: center;
  /* remove flex-grow if you don't want it to expand */
  /* justify-content: center; // xóa nếu bạn không muốn icon ở giữa */
}

.search-icon {
  color: #FFB700;
  cursor: pointer;
  font-size: 18px;
}

/* Ẩn toàn bộ khung search-box */
.search-box {
  display: none; 
  position: absolute;
  top: 120%;  /* bung dưới icon, tùy chỉnh: 100% -> 120% */
  left: 0;    /* canh sát trái icon */
  background: white;
  border: 2px solid #FFB700;
  border-radius: 20px;
  padding: 5px 10px;
  width: 200px;
  z-index: 999;
}

.search-box input {
  border: none;
  outline: none;
  font-size: 14px;
  color: black;
  width: 100%;
}

/* USER MENU */
.user-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}
.user-menu a {
    color: white;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
}
.user-menu a:hover {
    color: #FFD700;
}
.user-menu i {
    font-size: 12px;
}

/* USER DROPDOWN */
.user-dropdown {
    position: relative;
    margin-right: 10px;
}
.user-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #002b36;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    padding: 10px;
    min-width: 100px;
    z-index: 999;
}
.user-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    padding: 5px;
    text-decoration: none;
    font-size: 12px;
    transition: background 0.3s ease;
}
.user-dropdown-content a:hover {
    background: rgba(255,255,255,0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .app-header {
        flex-wrap: wrap;
        height: auto;
        padding: 5px;
    }
    .menu a {
        font-size: 12px;
        width: 30px; height: 30px;
    }
    .search-box {
    width: 160px; /* thu nhỏ trên mobile */
    top: 100%;    /* adjust if needed */
  }
    
    .user-menu a {
        font-size: 12px;
    }
}
