/* 评价界面样式文件 */

body {
    background-color: #f8f9fa;
    font-size: 14px;
    /* 隐藏滚动条但保留滚动功能 */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

html {
    /* 隐藏html滚动条但保留滚动功能 */
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.evaluation-container {
    max-width: 500px;
    margin: 1rem auto;
    /* border: 1px solid #dee2e6; */
    border-radius: .375rem;
    background-color: #fff;
    /* box-shadow: 0 .125rem .25rem rgba(0,0,0,.075); */
}

.submit-container {
    max-width: 500px;
    margin: 0 auto;
}

.submit-container .card {
    border: none;
}

.evaluation-header {
    padding: 1rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.evaluation-body {
    padding: 1rem;
}

.nav-tabs .nav-link {
    color: #495057;
    position: relative;
    padding-right: 25px; /* 指示器空间 */
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

.tab-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
}

.indicator-pending { 
    color: orange; 
}

.indicator-submitted { 
    color: green; 
}

/* Bootstrap组件样式覆盖 */
.stars {
    cursor: pointer;
}

.stars .bi {
    font-size: 1.5rem;
    color: #e9ecef; /* 默认空星颜色 */
    transition: color 0.2s;
}

.stars .bi:hover,
.stars.rated .bi.hover {
    color: #ffc107; /* 悬停颜色 */
}

/* 基于选择的星级评分颜色 */
.stars[data-rating="1"] .bi:nth-child(-n+1), 
.stars[data-rating="2"] .bi:nth-child(-n+2) { 
    color: red; 
}

.stars[data-rating="3"] .bi:nth-child(-n+3) { 
    color: orange; 
}

.stars[data-rating="4"] .bi:nth-child(-n+4) { 
    color: #02A7F0; 
}

.stars[data-rating="5"] .bi:nth-child(-n+5) { 
    color: green; 
}

.rating-text {
    margin-left: 4px;
    font-weight: bold;
    min-width: 40px;
}

.rating-text.text-1, 
.rating-text.text-2 { 
    color: red; 
}

.rating-text.text-3 { 
    color: orange; 
}

.rating-text.text-4 { 
    color: #02A7F0; 
}

.rating-text.text-5 { 
    color: green; 
}

/* 附件预览样式 */
.attachment-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.attachment-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attachment-preview img:hover {
    border-color: #007bff;
    transform: scale(1.05);
}

.attachment-preview .file-item {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-align: center;
    padding: 4px;
    overflow: hidden;
}

.attachment-upload {
    width: 60px;
    height: 60px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #6c757d;
    background: #fff;
    transition: all 0.2s ease;
}

.attachment-upload:hover {
    border-color: #007bff;
    color: #007bff;
    background: #f8f9fa;
}

.toast-container {
    z-index: 1080;
}

/* 图片预览模态框样式 */
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

.image-preview-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.image-preview-close:hover {
    opacity: 0.7;
}