@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);

body{
	font-family: "cwTeXKai", serif,'TW-Kai-98_1'; 
  /* font-family: 'Times New Roman', 'BiauKai', '標楷體', DFKai-SB, serif; */
	font-size: 1.2rem;
}

.sidebarTitle{
    margin-top: 10px;
    width: 170px;
    color: #fff;
    font-size: 30px;
    border-bottom: 1px solid #fff;
}

.navbar-outer{
    background:#1e1a39;
    height: 100vh;
    position: relative;
    padding: 10px;
    overflow: auto;
}

.navbar-inner{
    padding: 0px;
    width:calc(100% - 200px);
    height:95%;
    background: #f8f9fa !important;
    box-shadow: rgba(33, 9, 63, 0.35)5px 10px 20px 15px;
    border-radius: 30px;
    position: absolute;
    top: 2.5%; 
    right: 10px; 
    visibility: visible;
    overflow: hidden;
}

::-webkit-scrollbar { display: none;}

@media (max-width: 992px) {
  .navbar-outer {
    display: none;
  }
  .navbar-inner{
    position: relative;
    padding: 0px;
    width: 100%;
    top: 0px;
    right: 0px;
    border-radius: 0px;
    box-shadow: rgba(33, 9, 63, 0.35)0px 0px 0px 0px;
  }
}

a {
  text-decoration: none; 
  color: inherit; 
}

/* 取消number輸入框右側箭頭按鍵，針對 Chrome, Safari, Edge, 和 Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 取消number輸入框右側箭頭按鍵，針對 Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #7030A0;
}

.bg-ns{
  /*background-color: #8710e0;*/
  /* background: linear-gradient(to bottom, rgba(189,160,231,0.1), rgba(138,99,200,0.1)); */
  background: #ece8fa;
  background-color: #ece8fa;
}

.btn:focus{
  box-shadow: 0 0 0 0.25rem rgba(215,181,245,.25);
}

.btn-ns {
  color: #fff;
  background-color: #7030A0;
  border-color: #7030A0 !important;
}

.btn-ns:active {
  color: #fff;
  background-color: #7030A0;
  outline: 4px solid #d7b5f5;
}

.btn-ns:focus {
  color: #fff;
  background-color: #7030A0;
  outline: 4px solid #d7b5f5;
}

.btn-ns:hover {
  color: #fff;
  background-color: #8710e0;
  border-color: #ad5ef2 !important;
}

.text-ns{
	color: #7030A0 !important;
}

.form-control:focus {
  /* outline: 4px solid #d7b5f5; */
  border-color: #ad5ef2;
  box-shadow: 0 0 0 0.25rem rgba(215,181,245,.25);
}

.form-control:hover {
  border-color: #ad5ef2;
}

/* 修改 Autocomplete 输入框的背景颜色和字体颜色 */
.ui-autocomplete-input {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: 0.25rem;
  transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  font-family: "cwTeXKai", serif;
}

.ui-autocomplete-input:hover {
  border-color: #ad5ef2;
}

.ui-autocomplete-input:focus {
  border-color: #ad5ef2;
  border: 1px solid #ad5ef2;;
  box-shadow: 0 0 0 0.25rem rgba(215,181,245,.25);
  outline: 0;
}

/* 修改 Autocomplete 选项列表的外观 */
.ui-autocomplete {
  max-height: 200px; /* 最大高度 */
  overflow: auto; /* 垂直滚动 */
  border: 1px solid #ccc; /* 边框样式 */
  background-color: #fff; /* 背景颜色 */
  font-family: "cwTeXKai", serif;
  z-index: 2000;
}

.ui-autocomplete::-webkit-scrollbar {
	display: none; /* Chrome Safari */  
}

/* 修改 Autocomplete 选项的外观 */
.ui-menu-item {   
  font-family: "cwTeXKai", serif;
  color: #555; /* 字体颜色 */
  cursor: pointer; /* 鼠标指针 */
}

.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active,
.ui-button:active,
.ui-button.ui-state-active:hover {
	border: 1px solid #ad5ef2;
	background: rgba(215,181,245,.25);
	font-weight: normal;
	
}

.form-check-input:checked {
  background-color: #8710e0;
  border-color: #8710e0;
}

.form-check-input:focus {
  outline: 4px solid #d7b5f5;
}

.form-switch .form-check-input:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23d7b5f5'/%3e%3c/svg%3e");
  border-color: #8710e0;
}

.form-select:focus {
  border-color: #ad5ef2;
  outline: 4px solid #d7b5f5;
  box-shadow: 0 0 0 0.25rem rgba(215,181,245,.25);
}

option:checked,
option:hover,
option:focus  {
  background-color: #8710e0;
  color: #fff;
}

.autocomplete-options {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
}

.sortable-item{
  cursor: move;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
  }
  
 @media (min-width: 768px) {
 	
    .bd-placeholder-img-lg {
      font-size: 3.5rem;
    }
    
 }
  
.autocomplete-options {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid #ccc;
}

.divCenterBottom{
  width:95%;
  margin:auto;
  margin-bottom:-1px;
  --bs-gutter-x:0;
	font-size: 16px;
	border-bottom:1px solid;
  /* border-collapse: collapse; */
	align-items: center;
  height: 50px;
  text-align:center;
}

.bgx{
  --bs-gutter-x:0;
}

.boderFull{
  border:1px solid;
  border-radius: 8px;
}
  
.outer{
    left: 0px;
    position: absolute;
    width: 100%;
    height: 100%;
    background:rgba(255, 255, 255, 0.37);
    backdrop-filter:blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner{
    top: 25%;
    width:95%;
    padding:5px;
    background: #f8f9fa !important;
    border-radius:5px;
    box-shadow: rgba(33, 9, 63, 0.35)8px 8px 20px 8px;
}

.cfm-color{
	color: #336666 !important;
}

.del-color{
	color: #FF5151 !important;
}

.menuEditBox{
	border: 1px solid;
    border-radius: 8px;
    --bs-gutter-x: 0;
    font-size: 16px;
    padding: 10px;
}

.menuListBox{
	border: 1px solid;
    border-radius: 8px;
    --bs-gutter-x: 0;
    font-size: 16px;
    padding: 10px;
    margin-top: 10px;
}

.menuSpBox{
	border-bottom: 1px solid;
    --bs-gutter-x: 0;
    font-size: 16px;
    padding: 5px;
}

.menuSpListBox{
    --bs-gutter-x: 0;
    font-size: 16px;
}

.display-flex{
	display: flex;	
}

.iframe{
	margin-top: 56px;
	width: 100%;
	height: calc(100dvh - 56px);
}

@media (min-width: 992px) {
	.iframe {
	    margin-top: 0px;
      height: 100dvh;
	}
}

.bs-g-x-0{
	--bs-gutter-x: 0;
}

.carousel-inner-cus{
  display: flex;
  align-items: center;
}

.carousel-item-cus img {
  display: flex;
  justify-content: center;
  width: 100%;                   
  height: auto;                  
  max-width: calc(100vh / 1.414);  
  object-fit: cover;
}

.carousel-item-cus img {  
  display: flex;
  justify-content: center;
  width: 100%;                   
  height: auto;                  
  max-width: calc(100vh / 1.414);  
  object-fit: cover;
}

/* 手机模式 */
@media (max-width: 1024px) {
  .carousel-item-cus img {
    width: 100%;                   /* 宽度为屏幕宽度 */
    /* height: calc(100vw * 1.414);   高度按比例计算 */
    object-fit: cover;             /* 图片覆盖容器 */
  }
}

#topMessage{
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 40px;
  top: 50px; /* 動畫從這裡開始 */
  left: 50%;
  transform: translateX(-50%); /* 只水平居中 */
  background: #336666;
  border-radius: 8px;
  color: #fff;
  z-index: 2000;
}

.icon-button {
  display: inline-block; /* 確保是塊狀元素，可以調整間距 */                        
  /* background-color: #fff; 背景顏色 */
  border-radius: 50%; /* 圓形按鈕效果 */
  padding: 5px; /* 內邊距，讓背景和圖示分開 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer; /* 滑鼠懸停變為點擊手勢 */
  transition: transform 0.2s, box-shadow 0.2s; /* 添加動畫效果 */
}

.icon-button:hover {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: scale(1.1); /* 放大效果 */
}

.icon-button:active {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  transform: scale(0.95); /* 按下時的縮小效果 */
}

.icon-button-circle {
  display: inline-block; /* 確保是塊狀元素，可以調整間距 */                        
  /* background-color: #fff; 背景顏色 */
  border-radius: 50%; /* 圓形按鈕效果 */
  padding: 5px; /* 內邊距，讓背景和圖示分開 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.1); /*陰影效果 */
  cursor: pointer; /* 滑鼠懸停變為點擊手勢 */
  transition: transform 0.2s, box-shadow 0.2s; /* 添加動畫效果 */
}

.icon-button-circle:hover {
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2); /*懸停時的陰影 */
  transform: scale(1.1); /* 放大效果 */
}

.icon-button-circle:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2); /*按下時的陰影*/
  transform: scale(0.95); /* 按下時的縮小效果 */
}

.listShowBox {
  display: flex;
  min-width: max-content;
  align-items: center;
  min-height: 60px;
  height: auto;
}

.listShow {
  padding: 1px;
  flex-grow: 1;
  flex-shrink: 0;
  min-height: 100%;
}