/* common.css */
body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #f5f7fa;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* align-items: center; */
}

.el-menu-item,
.el-menu-item__title,
.el-menu-item__index {
    display: inline-block;
    line-height: 0rem;
    text-align: left;
    color: #333;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.el-menu-item:hover,
.el-menu-item.active {
    background-color: #ecf5ff;
    color: #409eff;
}

.el-menu-item--active {
    background-color: #ffd04b;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.el-card {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.el-table {
    margin-top: 1rem;
}

.el-table th {
    background-color: #f5f7fa;
}

.el-pagination {
    margin-top: 1rem;
    justify-content: flex-end;
}

.el-dialog {
    border-radius: 8px;
}

.el-dialog__header {
    border-bottom: 1px solid #e4e7ed;
    padding: 1rem;
    margin: 0;
}

.el-dialog__body {
    padding: 1.5rem;
}

.el-dialog__footer {
    border-top: 1px solid #e4e7ed;
    padding: 1rem;
}

.action-button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.action-button-group .el-button {
    flex: 1;
}

@media (max-width: 768px) {
    .action-button-group {
        flex-direction: column;
    }
    .action-button-group .el-button {
        width: 100%;
    }
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.dialog-footer .el-button {
    flex: 0 0 auto;
    min-width: 80px;
}

.dialog-footer .action-button-group {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
}

.dialog-footer .action-button-group .el-button {
    flex: 0 0 auto;
    width: auto;
}

.el-button--small {
    padding: 8px 15px;
    font-size: 1rem;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 透明黑色背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* 高層級以覆蓋其他內容 */
}

.el-avatar {
    margin-right: 0.5rem;
}

.container {
    max-width: 1800px;
    border: 1px solid #dee2e6; /* 增加邊框 */
    padding: 20px; /* 內部填充 */
    margin: auto;
    border-radius: 5px; /* 邊框圓角 */
    margin-top: 20px; /* 上邊距 */
    background-color: white;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.el-select .el-input {
    width: 100%; /* 確保下拉框寬度適應父容器 */
}
