/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Set background gradient */
body {
  background-color: rgba(52, 58, 64) !important;
  background-image: url("../images/mian_page/team/a-book-2363881_1280.jpg");
  background-size: cover;
  background-position: center center;
  padding-top: 56px;
}
.navbar {
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 1000;
}
/* Main container styles */
.container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  border-radius: 15px; 
}
.navbar_h4 {
  top: 50%;
  left: 50%;
  transform: translate(-0%, -20%);
}
/* Header styles */
h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #244062;
  font-size: 36px;
  font-weight: bold;
}
h4 {
  margin-top: 10px;
}

/* Form styles */
.form-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.form-allinput {
  flex-basis: 100%;
  margin-bottom: 20px;
}

.form-inputs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 10px;
  flex: 1 1 auto;
}

.form-inputs label {
  display: inline-block;
  width: 80px;
  font-size: 16px;
  color: #244062;
  font-weight: bold;
  margin-right: 5px;
  margin-left: 5px;
  margin-bottom: 10px;
}

.form-inputs input {
  width: 200px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 18px;
  color: #555;
  flex: 1 1 auto;
}

.form-inputs select {
  width: 300px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 18px;
  color: #555;
  flex: 1 1 auto;
}

/* .download-link {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  color: #244062;
  text-decoration: underline;
} */


.download-link:hover {
  color: #1779ba;
}


/* 样式化包裹链接的 div */
.download-container {
  background-color: #ffffff; /* 背景颜色 */
  padding: 10px; /* 内边距 */
  border: 1px solid #ddd; /* 边框 */
  border-radius: 25px; /* 圆角 */
  display: inline-block; /* 内容以块级元素显示，但仍在同一行 */
}

/* 样式化链接 */
.download-link {
  color: #007bff; /* 文本颜色 */
  text-decoration: none; /* 去掉下划线 */
  font-weight: bold; /* 加粗字体 */
}

/* 当链接被鼠标悬停时的样式 */
.download-container:hover {
  color: #9b9b9b; /* 鼠标悬停时的文本颜色 */
}


/* Upload file styles */
.a-upload {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  margin-right: 10px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.a-upload:hover {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

#file {
  display: none;
}

#submit-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;

}

#submit-btn:hover {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}
#simulate_button {
  /* display: inline-block; */
  font-size: 16px;
  width: 20%;
  color: #fff;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  /* text-align: center; */

  /* justify-content: center; 水平居中 */
  /* align-items: center; 垂直居中 */
  display: grid;
  place-items: center; /* 水平和垂直居中 */
}

#simulate_button:hover {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

#get_number {
  opacity: 0;
  pointer-events: none;
  display: none;
}

/* Results styles */
.form-results {
  flex-basis: 100%;
  margin-top: 5px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 18px;
  color: #244062;
}

.result-item p:first-child {
  font-weight: bold;
  margin-right: 20px;
}

/* 设置表格的行元素的高度 */
tr {
  height: 20px;
}

/* 设置表格的列元素的宽度，边框，文本对齐方式和字体 */
td {
  width: 25%;
  border: 1px solid black;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* 设置表格的第一行元素的背景颜色和字体颜色 */
tr:first-child {
  background-color: darkblue;
  color: white;
}
.autocomplete-container {
    position: relative;
}

#autocomplete-list {
    position: absolute;
    background-color: #fff;
    border-radius: 5px;
    max-height: 200px;
    margin-left: auto;
    top: 60px;
    width:50%;
    z-index: 5;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}
#autocomplete-list div:nth-child(odd) {
    background-color: white; /* White background for odd-indexed items */
}

#autocomplete-list div:nth-child(even) {
    background-color: #f2f2f2; /* Grey background for even-indexed items */
}

#autocomplete-list div {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#autocomplete-list div:hover {
    background-color: #f0f0f0;
}

#autocomplete-list div.selected {
    background-color: #1779ba;
    color: #fff;
}
.tip_color{
  font-size: 8px;
  color:#007BFF;
}
.sidebar {
    width: 250px;
    height: 100vh;
    background-color: #343a40;
    color: white;
    transition: width 0.3s;
    position: fixed;
    top: 56px;
    left: 0;
    overflow-x: hidden;
    z-index: 1000;
    will-change: transform;
    backface-visibility: hidden;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar-header {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #4b545c;
}

.sidebar-logo {
    width: 100%;
    max-width: 150px;
    margin-bottom: 10px;
    transition: opacity 0.3s;
}

.sidebar.collapsed .sidebar-logo {
    opacity: 0;
    pointer-events: none;
}

.btn-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 5px;
    z-index: 1001;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 50px;
}

.sidebar-menu li {
    padding: 10px;
    border-bottom: 1px solid #4b545c;
}

.sidebar-menu li a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.sidebar-menu li a i {
    margin-right: 10px;
}

.sidebar-menu li a .menu-text {
    transition: opacity 0.3s;
}

.sidebar.collapsed .menu-text {
    opacity: 0;
    pointer-events: none;
}

.content {
    margin-left: 250px;
    padding: 20px;
    transition: margin-left 0.3s;
}

.sidebar.collapsed ~ .content {
    margin-left: 60px;
}

/* 移动端默认隐藏侧边栏 */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .desktop-sidebar-toggler {
        display: none;
    }

    .main-content {
        margin-left: 0 !important;
    }
}

@media (max-width: 992px) {
    .feature-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 991.98px) {
    .sidebar-overlay.active {
        display: block;
    }
}
@media (max-width: 768px) {
    .feature-card {
        margin-bottom: 30px;
    }
}

/* Small screens (phones) */
@media only screen and (max-width: 600px) {
  .container {
    font-size: 8px; /* Adjust button font size for smaller screens */
    max-width: 95%; /* Adjust container width for smaller screens */
  }
  .form-inputs{
    display: block;
  }
.form-inputs label {
  font-size: 16px;

}

  .form-inputs input {
    display: block;
    font-size: 8px; /* Adjust button font size for smaller screens */
    width: 90%; /* Adjust input width for smaller screens */
  }

  .a-upload,
  #submit-btn,
  #get_number {
    margin:10px;
    padding: 8px 16px; /* Adjust button padding for smaller screens */
    font-size: 8px; /* Adjust button font size for smaller screens */
  }
  #simulate_button {
    margin:5px;
    padding: 8px 8px; /* Adjust button padding for smaller screens */
    font-size: 8px; /* Adjust button font size for smaller screens */
    width: 40%;

}


  #autocomplete-list {
    top: 75px;
    max-height: 150px; /* Adjust max-height for autocomplete on smaller screens */
  }
}