.modal-backdrop-tm {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

.tm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 15rem;
    z-index: 1050;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.tm-modal-header {
    font-size: 20px;
    margin-bottom: 15px;
}

.tm-modal-body {
    margin-bottom: 20px;
}

.tm-modal-footer {
    text-align: right;
}

.tm-modal-footer button {
    margin-left: 10px;
}

.tm-loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1060;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.tm-loading-overlay.show {
    display: flex;
}
/* 自定义分页按钮的样式 */
.pagination .page-link.clickable {
    color: #007bff;
    cursor: pointer;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d; /* Bootstrap 默认的禁用颜色 */
    cursor: not-allowed;
}

.pagination .page-item.active .page-link {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}

.pagination .page-link {
    /* 确保非可点击的链接不受影响 */
    color: #6c757d;
}

.bootstrap-select .dropdown-toggle.btn-light,
.bootstrap-select .dropdown-toggle.btn-light:active {
	background-color: unset;
	border-width:0;
}

.ui-image-uploader .image-uploader {
  position: relative;
  border: 1px dashed #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.ui-image-uploader .image-uploader-inner {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* 拖拽高亮 */
.ui-image-uploader .image-uploader.dragover {
  background-color: rgba(0, 123, 255, 0.1);
  outline: 2px dashed #007bff;
}

/* 加号图标 */
.ui-image-uploader .icon-plus {
  font-size: 2em;
  color: #ccc;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* 右上角删除按钮 */
.ui-image-uploader .btn-delete-image {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 关键：让按钮高于图片 */
  z-index: 999; 
}

/* 预览容器 */
.ui-image-uploader .preview-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* 预览图 */
.ui-image-uploader .preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ui-image-uploader .preview.preview-contain {
	object-fit: contain;
}

/* 上传时半透明 */
.ui-image-uploader .uploading {
  opacity: 0.5;
}

/* 进度条容器：默认隐藏 */
.ui-image-uploader .upload-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background-color: rgba(0,0,0,0.1);
  display: none; 
}

/* 进度条 */
.ui-image-uploader .upload-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #28a745;
  transition: width 0.1s linear;
}

.ui-image-uploader .uploaded-url-input {
	width: 100%;
    border:1px solid #ccc;
    margin-top: 5px;
}




/* 音频上传组件 */
.ui-audio-uploader .audio-uploader {
    position: relative;
    border: 1px dashed #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.ui-audio-uploader .audio-uploader-inner {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ui-audio-uploader .audio-uploader.dragover {
    background-color: rgba(0, 123, 255, 0.1);
    outline: 2px dashed #007bff;
}

.ui-audio-uploader .icon-plus {
    font-size: 1.5em;
    color: #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ui-audio-uploader .btn-delete-audio {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ui-audio-uploader .preview-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-audio-uploader .preview {
    width: 100%;
    height: 50px; /* 音频播放器固定高度，适配常见浏览器样式 */
    display: block;
}

.ui-audio-uploader .uploading {
    opacity: 0.5;
}

.ui-audio-uploader .upload-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(0,0,0,0.1);
    display: none;
}

.ui-audio-uploader .upload-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    transition: width 0.1s linear;
}




/* 视频上传组件 */
.ui-video-uploader .video-uploader {
    position: relative;
    border: 1px dashed #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.ui-video-uploader .video-uploader-inner {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ui-video-uploader .video-uploader.dragover {
    background-color: rgba(0, 123, 255, 0.1);
    outline: 2px dashed #007bff;
}

.ui-video-uploader .icon-plus {
    font-size: 2em;
    color: #ccc;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ui-video-uploader .btn-delete-video {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.ui-video-uploader .preview-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ui-video-uploader .preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ui-video-uploader .uploading {
    opacity: 0.5;
}

.ui-video-uploader .upload-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(0,0,0,0.1);
    display: none;
}

.ui-video-uploader .upload-progress-bar {
    height: 100%;
    width: 0%;
    background-color: #28a745;
    transition: width 0.1s linear;
}






/* 上传组件外部样式 */
.ui-file-uploader {
    position: relative;
    border: 2px dashed #bbb; /* 虚线边框 */
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ui-file-uploader .file-uploader-inner {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.ui-file-uploader .file-uploader-inner i.icon-upload {
    font-size: 20px;
    color: #888;
    display: none; /* 隐藏云朵图标 */
}

.ui-file-uploader .file-uploader {
	display:flex;
    padding: 0px 10px;
}

.ui-file-uploader .file-uploader.dragover {
  background-color: rgba(0, 123, 255, 0.1);
  outline: 2px dashed #007bff;
}
.ui-file-uploader .file-info-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    overflow: hidden;
}

.ui-file-uploader .file-name {
    font-size: 14px;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 使用省略号处理文件名过长 */
}

.ui-file-uploader .file-size {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.ui-file-uploader .upload-progress-container {
    display: none; /* 默认隐藏进度条 */
    width: 100%;
    background-color: #e0e0e0;
    margin-top: 5px;
    border-radius: 5px;
}

.ui-file-uploader .upload-progress-bar {
    height: 8px;
    width: 0;
    background-color: #28a745;
    border-radius: 5px;
}

.ui-file-uploader .upload-status-container {
    display: none; /* 默认隐藏上传状态 */
    margin-left: 10px;
}

.ui-file-uploader .upload-status-container .upload-success {
    font-size: 20px;
    color: #28a745; /* 成功时使用绿色 */
    display: inline-block;
}

.ui-file-uploader .btn-remove-file {
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: 5px;
}

.ui-file-uploader .btn-remove-file:hover {
    background: rgba(255, 255, 255, 1);
}

/* 文件下载按钮样式 */
.ui-file-uploader .btn-download-file {
    background: rgba(0, 123, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-file-uploader .btn-download-file:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #0056b3;
    transform: scale(1.05);
}

.ui-file-uploader .file-uploader-inner .upload-progress-container {
    position: relative;
    margin-left: 10px;
    margin-top: 5px;
}
