/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center; /* 水平居中 */
  align-items: center; /* 垂直居中 */
  z-index: 999; /* 确保模态框在最上层 */
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 99%;
  max-width: 800px;
  position: absolute; /* 绝对定位 */
  top: 50%; /* 顶部偏移50% */
  left: 50%; /* 左侧偏移50% */
  transform: translate(-50%, -50%); /* 向上和向左移动自身宽度和高度的一半 */
  max-height: 90vh; /* 限制最大高度为视口高度的90% */
  overflow-y: hidden; /* 初始时隐藏滚动条 */
}

.modal-content:hover,
.modal-content:focus {
  overflow-y: auto; /* 当内容高度大于90vh，显示滚动条 */
}

#edit-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 99%;
  max-width: 800px;
  position: absolute; /* 绝对定位 */
  top: 50%; /* 顶部偏移50% */
  left: 50%; /* 左侧偏移50% */
  transform: translate(-50%, -50%); /* 向上和向左移动自身宽度和高度的一半 */
  height: 60vh;
  max-height: 60vh;
  overflow-y: auto;
}

#outbound-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 99%;
  max-width: 800px;
  position: absolute; /* 绝对定位 */
  top: 50%; /* 顶部偏移50% */
  left: 50%; /* 左侧偏移50% */
  transform: translate(-50%, -50%); /* 向上和向左移动自身宽度和高度的一半 */
  max-height: 90vh; /* 限制最大高度为视口高度的90% */
  overflow-y: hidden; /* 初始时隐藏滚动条 */
}

/* 搜索下拉框样式 */
.searchable-select {
  position: relative;
}

.searchable-select input {
  width: 100%;
  box-sizing: border-box;
}

.searchable-select ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: white;
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: none;
}

.searchable-select ul li {
  padding: 8px;
  cursor: pointer;
}

.searchable-select ul li:hover {
  background-color: #f0f0f0;
}

/* 动态渐变色动画 */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 将动画应用到 main 元素 */
main {
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

/* 修改 style.css 文件 */
#outbound-modal-backdrop {
    z-index: 1000; /* 调整为较小的值 */
}

#outbound-modal-content {
    z-index: 1001;
}