.backend-login-bg {
  background: #98d3ea url('../images/backend-bg.jpg') no-repeat center center;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.backend-bg {
  background: #98d3ea url('../images/backend-bg.jpg') no-repeat fixed center;
  background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
}

.backend-login-content {
  min-height: calc(100vh - 99px);
  margin: 0 auto;
  width: 50vw;
}

.backend-content {
  min-height: calc(100vh - 189px);
  margin: 0 auto;
  width: 50vw;
}

.header-nav{
  background-color: #ffffff;
}

nav {
  width: 100%;
  border-bottom: black;
  background: var(--primary-color);
  position: static;
  overflow: visible;
}

nav.top-nav {
  min-height: 60px;
  max-height: 60px;
}

.header-nav {
  position: static !important;
}

/* 確保所有導航列容器的穩定性 */
.navbar {
  position: static !important;
  transform: none !important;
}

.navbar-collapse {
  position: static !important;
}

/* 防止滾動時的佈局偏移 */
body {
  overflow-x: hidden;
}

.top-nav {
  background-color: #f0f0f0;
  height: 60px !important;
  position: static !important;
  z-index: auto;
  width: 100%;
  overflow: hidden;
}

.top-nav .navbar {
  display: flex;
  justify-content: center;
  margin-left: 0 !important;
  height: 100%;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
}

.top-nav .menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
}

nav .navbar-toggler {
  left: 5px;
}

nav .menu > a {
  width: 100px;
  color: #595757;
  text-align: center;
  padding: 5px;
  margin: 0 8px;
  font-size: 18px;
  white-space: nowrap;
  display: inline-block;
  vertical-align: middle;
  line-height: 1.2;
}

nav .menu > a:hover {
  color: var(--bs-white);
  background: #d3aa60;
  border-radius: 1.2rem;
}

#nav-right {
  background: transparent;
  border-radius: 1.2rem;
  margin-right: 20px;
  padding: 5px 0;
}
#nav-right i{
  color: #d3aa60;
}

.header-nav{
  height: 75px;
}
.header-nav a {
  font-weight: normal;
  color: #595757;
  font-size: 16px;
  padding: 0 15px 0 0;
}
.login-block{
  background-color: #d3aa60 !important;
  color:#ffffff;
  margin-right: 70px !important;
}
.login-block a{
  padding: 0 15px;
  color: #ffffff 
}
.login-block a:hover{
  /* color: #d3aa60  */
}
.btn-info:hover{
  color: #fff;
  background-color: #90060e;
}

footer {
  width: 100vw;
  bottom: 0;
}

#footer-section4 {
  background: #d3aa60;
  color: white;
  text-align: center;
  padding-top: 5px;
}

#footer-section4 > .copyright {
  background: white;
  color: whitevar(--primary-color);
  padding: 10px 0;
  margin-top: 5px;
}

#footer-section4 > div > * {
  margin: 10px;
}

.login-header {
  padding: 15px 20px;
  background-color: var(--primary-color);
  color: white;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.login-content {
  background-color: #fefefe;
  width: 100%;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  padding: 20px;
  -webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.login-content span{
  color: #3f3f3f;
}

.login-content > * {
  margin: 25px 0;
}

.login-modal {
  max-width: 500px;
  width: 100%;
}

.login-button {
  background: #d70c18;
  border-radius: 7px;
  width: 100%;
  color: var(--bs-white);
}

.login-content .login-acc-area > input,.login-content .login-pwd-area {
  padding: 5px 10px;
  border: 1px solid #3f3f3f;
  border-radius: 7px;
  color: #3f3f3f;
  width: 50%;
}

.login-content .login-pwd-area > input {
  padding: 5px 10px;
}

.ml-2{
  margin-left: 0.5rem;
}

@media (max-width: 992px) {
  nav .menu {
    background: #347561;
    color: black;
    padding-bottom: 3px;
  }
  nav .menu > * {
    margin: 3px auto;
  }
  nav .menu > a {
    width: 100%;
    color: var(--gray);
    font-size: 16px;
  }
  nav .menu > a:hover {
    width: 30%;
    color: var(--primary-color);
    background: white;
  }
  nav .fa-bars {
    color: var(--gray);
  }
  nav .navbar-toggler {
    padding-left: 16px;
    position: unset;
    right: 0;
    top: unset;
  }
  #nav-left {
    position: absolute;
    width: 100%;
    top: 75px;
  }
  #nav-right {
    margin-right: 16px;
  }
  #nav-right a {
    font-size: 16px;
  }
}


@media (max-width: 680px) {
  .backend-content {
    width: 90vw;
  }
  .content-logo {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .login-logo {
    width: 100%;
  }

  .backend-login-content {
    width: 90vw;
  }
}

/* 麵包屑樣式 */
.breadcrumb-container {
  background-color: #e0e0e0;
  padding: 10px 0;
  border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
  background-color: transparent;
  margin: 0 40px 0 0;
  padding: 0;
  display: flex;
  justify-content: end;
}

.breadcrumb-item {
  font-size: 14px;
}

.breadcrumb-item a {
  color: #595757;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #d70c18;
  text-decoration: underline;
}

.breadcrumb-item.active {
  font-weight: bold;
  color: #d70c18;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  color: #6c757d;
}

/* 主要容器布局 */
.main-container {
  display: flex;
  min-height: calc(100vh - 250px);
  background-color: #f8f9fa;
}

/* 側邊選單樣式 */
.sidebar {
  position: relative;
  min-width: 220px;
  background-color: #e0e0e0;
  color: white;
  padding: 0;
  padding: 0 20px;
}

.sidebar-header {
  padding: 20px;
  background-color: #d70c18;
}

.sidebar-header h5 {
  font-size: 22px;
  color: white;
  margin: 0;
  font-weight: bold;
  text-align: center;
}

.sidebar-header hr {
  border-color: #347561;
  margin: 10px 0;
}

.sidebar-subtitle {
  display: block;
  text-align: center;
  color: #a8d1a8;
  font-size: 14px;
}

.sidebar-menu {
  padding: 0;
}

.sidebar-subtitle,
.sidebar-menu ul {
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  border-bottom: 2px solid #e0e0e0;
}

.sidebar-subtitle{
  font-size: 20px;
  color: #d3aa60 !important;
  font-weight: bold;
  padding: 15px 20px;
}

.sidebar-menu li a {
  font-size: 18px;
  display: block;
  padding: 15px 20px 15px 40px;
  color: #595757;;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sidebar-menu li a:hover {
  background-color: #d3aa60;
  color:#ffffff;
  text-decoration: none;
}

.sidebar-menu li.active a {
  background-color: #d3aa60;
  color: #ffffff;
  font-weight: bold;
}

.sidebar-menu li a i {
  margin-right: 10px;
  width: 16px;
}

/* 內容區域樣式 */
.content-area {
  flex: 1;
  padding: 20px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.content-body {
  min-height: 400px;
}

/* 響應式設計 */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    order: 2;
  }
  
  .content-area {
    order: 1;
    margin: 10px;
  }
  
  .sidebar-menu li a {
    padding: 10px 15px;
  }
}

/* 活躍狀態調整 */
.top-nav .menu a.active {
  background-color: #d3aa60;
  color: white !important;
  border-radius: 1.2rem;
}