/* 主容器樣式 */
.apmarker-review-submission {
    margin: 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

/* 標題樣式 */
.apmarker-review-submission h2 {
    color: #23282d;
    font-size: 18px;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.apmarker-review-submission h3 {
    color: #666;
    font-size: 18px;
    margin: 15px 0 5px;
}

.apmarker-review-submission h4 {
    color: #23282d;
    font-size: 16px;
    margin: 20px 0 10px;
}



/* 作文內容區域 */
.apmarker-review-submission .submission-content {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.apmarker-review-submission .content-box {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-normal-border-radius);
    line-height: 1.6;
    white-space: pre-wrap;
    font-size: 15px;
    color: #333;
    max-height: 500px;
    overflow: auto;
    margin-bottom: 15px;
}

.student-submitted-images {
    margin-bottom: 15px;
}

/* 表單組樣式 */
.apmarker-review-submission .form-group {
    margin-bottom: 20px;
}

.apmarker-review-submission .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

/* 文本輸入框樣式 */
.apmarker-review-submission #feedback {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-normal-border-radius);
    font-size: 14px;
    line-height: 1.5;
    min-height: 200px;
    background: #f9f9f9;
    transition: border-color 0.2s ease;
}

.apmarker-review-submission #feedback:focus {
    border-color: var(--apmarker-main-color);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 1px var(--apmarker-main-color);
}

/* 分數輸入框樣式 */
.apmarker-review-submission #score {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-normal-border-radius);
    text-align: center;
    font-size: 16px;
    font-weight: bold;
}
.showscore {
    font-size: 16px !important;
    color: #000 !important;
    font-weight: bold;
    margin: 15px 0 !important;
}




/* 響應式設計 */
@media screen and (max-width: 782px) {
    .apmarker-review-submission {
        padding: 0;
        background: transparent;
        border: 0;
    }
}



.student-submitted-images h4 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.image-gallery,
.file-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.image-item,
.file-item {

    border-radius: var(--apmarker-normal-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.image-item:hover,
.file-item:hover {
    transform: var(--apmarker-scale-hover);
    box-shadow: var(--apmarker-box-hover-shadow);
}

.image-item img,
.file-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: var(--apmarker-transition-transform);
}

.image-item img:hover,
.file-item img:hover {
    opacity: 0.9;
}

/* 響應式調整 */
@media (max-width: 768px) {
    .image-gallery,
    .file-gallery {
        grid-template-columns: 1fr;
    }
    
    .image-item img,
    .file-item img {
        height: 180px;
    }
    
    .student-submitted-images h4 {
        font-size: 1.25rem;
    }
}

/* 燈箱效果 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* 返回頂部按鈕樣式 */
.back-to-top-button {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: var(--apmarker-main-color, #3658D6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999; /* 確保按鈕在最上層 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.back-to-top-button.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-button:hover {
    background: var(--apmarker-secondary-color, #0b5ed7);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}


/* 響應式調整 */
@media (min-width: 769px) {
.back-to-top-button span.apmarker-icon.arrow-up-m {
    width: 24px;
    height: 24px;
}
}

@media (max-width: 768px) {
    .back-to-top-button {
        bottom: 5px;
        right: 5px;
        width: 40px;
        height: 40px;
    }
    
    .back-to-top-button .apmarker-icon.up-arrow {
        font-size: 18px;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.lightbox .close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


/*雷達圖下數據*/
.ability-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 25px;
}
.ability-stat-item {
    padding: 8px;
    background: #f9f9f9;
    border-radius: var(--apmarker-normal-border-radius);
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
}
.ability-name {
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}
.ability-score {
    font-weight: bold;
    color: var(--apmarker-main-color);
}
.ability-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: var(--apmarker-normal-border-radius);
    margin-top: 8px;
    flex: 1 0 100%;
}
.ability-progress .progress-bar {
    height: 100%;
    background: var(--apmarker-main-color);
    border-radius: var(--apmarker-normal-border-radius);
    transition: width 0.5s ease;
}
@media (max-width: 600px) {
    .ability-stats-summary {
        grid-template-columns: 1fr;
    }
    
    .radar-chart-wrapper {
        height: 250px;
    }
}


/*新版分左右版本*/
.analysis-sublist-left{
    width: 49%;
    display: inline-block;
    float: left;
}

.analysis-sublist-right {
    width: 50%;
    display: inline-block;
    float: right;
}
.analysis-item.revised-paragraph {
    clear: both;
}


.student-submitted-images a.pdf-link {
    display: flex;
    text-transform: uppercase;
    align-items: center;
    gap: 5px;
    background: #fff;
}

.student-submitted-images span.pdf-icon {
    background: #dc3545;
    padding: 10px 10px;
    display: inline-flex;
    align-items: center;
}

.student-submitted-images span.pdf-icon span.apmarker-icon.pdf-m {
    width: 22px;
    height: 22px;
}