
.header {
    background-color: #31454f; /* 淺一點的深藍色以與側邊欄形成對比 */
    color: #ffffff; /* 白色文字 */
    padding: 10px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between; /* 添加這個以使麵包穴靠左，其他項目靠右 */
    justify-content: flex-end; /* 使內容靠右對齊 */
}

.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    flex-grow: 1; /* 使其佔用所有可用空間 */
    display: flex;
    align-items: center;
    font-size: 18px; /* 您可以根據需要調整字體大小 */
}

.header-item {
    margin-left: 16px; /* 添加左邊距使項目分開 */
    display: flex;
    align-items: center;
}

.header-item i {
    margin-right: 5px; /* 如果有圖標，與文字間隔一些距離 */
}

.header .user-info {
    display: flex;
    align-items: center;
}

.header span {
    margin-right: 20px;
}

.header a {
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px; /* 圖示和文字之間的間隙 */
}


.header a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header i {
    font-size: 16px;
}
/* 當螢幕寬度小於 768px 時 */
@media screen and (max-width: 768px) {
  /* 將表格轉換為塊級元素，這樣每一行就會成為一個「卡片」 */
  .table-responsive {
    display: block;
  }

  .table-responsive thead,
  .table-responsive tbody,
  .table-responsive th,
  .table-responsive td,
  .table-responsive tr {
    display: block;
  }

  /* 將 `td` 元素轉換為塊級，這樣它們會堆疊在一起 */
  .table-responsive td {
    /* 如果你想添加邊框或其他樣式，可以在這裡進行 */
    border: none;
    position: relative;
    padding-left: 50%;
    text-align: left;
  }

  /* 使用偽元素添加 `th` 文本到每個 `td` 以便於標識 */
  .table-responsive td:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    content: attr(data-label);
  }
}

