/* Composition Form Styles */
.aimarkerside {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    background: #f7f7f7;
    padding: 0 5px;
}

.aimarkerside-item a {
    display: block;
    color: #3759d7;
    border-radius: 50%;
    position: relative;
    width: 46px;
    height: 46px;
}
.aimarkerside-item a i {
    font-size: 24px;
    line-height: 46px;
}
.aimarkerside-item a svg {
    height: 46px;
}
.aimarkerside-item {
    width: auto;
    text-align: center;
    margin-bottom: 10px;
}
.aimarkerside-item a:hover {
    color: #1f90eb;
    background: #fff;
    box-shadow: 0 0 2px #ccc;
}
.aimarkerside-item a:hover:after {
    content: '';
    background: #eba41f;
    width: 8px;
    height: 8px;
    display: inline-block;
    position: absolute;
    right: 8px;
    top: 8px;
    border-radius: 50%;
}
@media(max-width:1239px){
    .aimarkerside {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .aimarkerside-item {
        margin-bottom: 0px;
        margin-left: 10px;
    }
    span.tooltips {
        left: initial;
        right: 48px;
        border-radius: 10px 0 10px 10px;
        top: 10px;
        line-height: 26px !important;
    }
}

.aimarker-form-section h3 {
    color: #fff;
    font-size: 15px;
}
.aimarker-form-content a {
    color: #ffc107;
}
.mini-input {
    display: inline-block !important;
    width: auto !important;
}

.aimarker-form-section {
    margin-bottom: 15px;
}
.aimarker-form-content {
    background: linear-gradient(7deg, #ce00ff, #0d6efd);
    padding: 20px;
    color: #fff;
}

.aimarker-userinfo-box {
    margin-bottom: 20px;
}

.aimarker-user-points {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.aimarker-logo {
    width: 40px;
    height: 40px;
    margin-right: 15px;
}

.aimarker-user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.aimarker-username-display {
    font-weight: bold;
    font-size: 16px;
    color: #ffffff;
}

.aimarker-points-display {
    display: flex;
    align-items: center;
    gap: 5px;
}

.points-label {
    font-weight: bold;
    font-size: 16px;
}

.points-value {
    font-weight: bold;
    font-size: 16px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: var(--aimarker-normal-border-radius);
}

.aimarker-form-content select,
.aimarker-form-content input,
.aimarker-form-content textarea {
    border-radius: 5px;
    padding: 7px;
    border-style: solid;
    width: 100%;
}

#article-container,#aimarker-topic-generation-result{
    max-height: 500px;
    height: 500px;
    overflow-y: scroll;
    padding: 20px;
}
div#article-container h3,div#aimarker-topic-generation-result h3 {
    color: #419dff;
    background: linear-gradient(45deg, #2196F3, #7277FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 20px;
}
div#article-container textarea {
    width: 100%;
    height: calc(100% - 80px);
    border-radius: 8px;
    box-shadow: 0 8px 20px 0 #575757;
    padding: 15px;
    margin-top: 15px;
    border: solid #3d9cf1;
}
div#aimarker-form-message {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #ffffffeb;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.aimarker-loading,
.aimarker-success,
.aimarker-error {
    text-align: center;
}

.refund-message {
    margin-top: 10px;
    padding: 10px;
    background-color: #e8f4fd;
    border: 1px solid #b3d9ff;
    border-radius: 5px;
    color: #0066cc;
    font-weight: bold;
}



/*history list*/
table.aimarker-composition-history-table,
table.aimarker-topic-generation-history-table {
    line-height: 1.6;
    color: #333;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: var(--aimarker-normal-border-radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}
table.aimarker-composition-history-table thead th:first-child,
table.aimarker-topic-generation-history-table thead th:first-child {
    border-top-left-radius: 12px;
}
table.aimarker-composition-history-table thead th,
table.aimarker-topic-generation-history-table thead th {
    background: #fff;
    color: #333;
    font-weight: 600;
    text-align: left;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
table.aimarker-composition-history-table td,
table.aimarker-topic-generation-history-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    vertical-align: middle;
}
table.aimarker-composition-history-table tbody tr:nth-child(even),
table.aimarker-topic-generation-history-table tbody tr:nth-child(even) {
    background-color: rgba(245, 247, 250, 0.8);
}
table.aimarker-composition-history-table tbody tr:nth-child(odd),
table.aimarker-topic-generation-history-table tbody tr:nth-child(odd) {
    background-color: rgba(249, 250, 252, 0.6);
}

/*history popup*/
/* 整体模态框样式 */
.aimarker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 模态框内容区域样式 */
.aimarker-modal-content {
    position: relative;
    background-color: white;
    width: 80%;
    max-width: 1200px;
    max-height: 90%;
    overflow: scroll;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 关闭按钮样式 */
.aimarker-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

/* 模态框主体样式 */
.aimarker-modal-body {
    padding: 20px;
}

/* 作文详情标题样式 */
.aimarker-composition-details h3 {
    margin-top: 0;
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* 作文元信息样式 */
.aimarker-composition-meta p {
    margin: 10px 0;
}

/* 已评阅状态样式 */
.status-graded {
    color: green;
}

/* 评分失败状态样式 */
.status-error {
    color: red;
    font-weight: bold;
}

/* 作文内容标题样式 */
.aimarker-composition-content h4 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* 作文内容文本样式 */
.aimarker-content-text {
    white-space: pre-line;
}

/* 评阅结果标题样式 */
.aimarker-grading-details h4 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
}

/* Composition History Styles */
.aimarker-composition-history {
    margin: 20px 0;
}

.aimarker-composition-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.aimarker-filter-label {
    font-weight: bold;
    color: #333;
}

.aimarker-main-content select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}



.aimarker-composition-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.aimarker-composition-table th,
.aimarker-composition-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.aimarker-composition-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
}

.aimarker-composition-table tr:hover {
    background-color: #f5f5f5;
}

.aimarker-composition-table .topic-type-1 {
    color: #0073aa;
    font-weight: bold;
}

.aimarker-composition-table .topic-type-2 {
    color: #00a32a;
    font-weight: bold;
}

.aimarker-composition-table .topic-type-3 {
    color: #dba617;
    font-weight: bold;
}

.aimarker-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

.aimarker-pagination-info {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.aimarker-pagination-links {
    display: flex;
    gap: 5px;
}

.aimarker-pagination-links a,
.aimarker-pagination-links span {
    padding: 6px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #0073aa;
    background-color: white;
    transition: all 0.3s;
    min-width: 30px;
    text-align: center;
}

.aimarker-pagination-links a:hover {
    background-color: #f0f0f0;
    border-color: #999;
}

.aimarker-pagination-links .current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
    font-weight: bold;
}

.aimarker-pagination-links .disabled {
    color: #ccc;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.aimarker-pagination-links .disabled:hover {
    background-color: #f9f9f9;
    border-color: #ddd;
}

.aimarker-pagination-jump {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aimarker-pagination-jump label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.aimarker-page-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .aimarker-pagination {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .aimarker-pagination > * {
        margin-bottom: 10px;
    }
    
    .aimarker-pagination-links {
        justify-content: center;
    }
    
    .aimarker-pagination-jump {
        justify-content: center;
    }
}


.aimarker-filter-section {
    display: flex;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}
.aimarker-main-content {
    margin: 15px;
}
.aimarker-main-content h3 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: var(--aimarker-font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.normal-size-form {
    max-width: 600px;
}
.aimarker-tooltips {
    display: none;
}
span.aimarker-tooltips {
    background: #2e2e2e;
    color: #fff;
    position: absolute;
    width: 56px;
    left: 50px;
    top: 12px;
    border: 1px solid #6f6f6f;
    border-radius: 0 10px 10px 10px;
    font-size: 12px;
    line-height: 26px;
    text-align: center;
    z-index: 9999999;
}
span.aimarker-tooltips.tooltipsright {
    left: initial;
    right: 40px;
    border-radius: 10px 0 10px 10px;
    top: 5px;
    line-height: 26px !important;
}
@media (min-width: 1240px) {
    .aimarkerside {
        height: calc(100vh - 62px);
    }
    .aimarker-main-content {
        width: calc(100% - 90px);
        height: calc(100vh - 92px);
        overflow-y: scroll;
    }
    .aimarker-form-content {
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 62px);
        overflow-y: auto;
        overflow-x: clip;
        background-color: #f9f9f9;
        border: 1px solid #ccc;
        margin: 0 0 0 0;
        display: inline-block;
        min-height: 700px;
    }
    #article-container,#aimarker-grading-result-container{
        max-height: calc(100vh - 62px);
        height: calc(100vh - 62px);
        overflow-y: scroll;
        width: calc(50% - 195px);
        display: inline-block;
        margin: 0px 7.5px;
        float: none;
    }

    #aimarker-topic-generation-result{
        max-height: calc(100vh - 62px);
        height: calc(100vh - 62px);
        overflow-y: scroll;
        width: calc(100% - 375px);
        display: inline-block;
        margin: 0px 7.5px;
        float: none;
    }

    div#aimarker-container {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
}

@media(max-width:1239px){
    .aimarkerside {
        width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .aimarkerside-item {
        margin-bottom: 0px;
        margin-left: 10px;
    }
    span.aimarker-tooltips {
        left: initial;
        right: 48px;
        border-radius: 10px 0 10px 10px;
        top: 10px;
        line-height: 26px !important;
    }
}

@media screen and (max-width: 768px) {
    .aimarker-composition-history-table tr,
    .aimarker-topic-generation-history-table tr {
        display: flex;
        flex-direction: column;
    }
    .aimarker-composition-history-table thead,
    .aimarker-topic-generation-history-table thead {
        display: none;
    }
    .aimarker-composition-filter {
        flex-direction: column;
        align-items: stretch;
    }
    
    .aimarker-composition-table {
        font-size: 14px;
    }
    
    .aimarker-composition-table th,
    .aimarker-composition-table td {
        padding: 8px 10px;
    }
    
    .aimarker-pagination {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}



/*生題*/
/* 整体题目列表容器 */
.generated-topics-list {
    background-color: #ffffff;
    border-radius: var(--aimarker-normal-border-radius);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

/* 单个题目项容器 */
.generated-topic-item {
    padding: 20px;
    border-bottom: 1px dashed #ccc;
    transition: background-color 0.3s ease;
}

/* 鼠标悬停在题目项上的效果 */
.generated-topic-item:hover {
    background-color: #f8f9fa;
}

/* 题目序号（h4元素）样式 */
.generated-topic-item h4 {
    color: #333;
    font-size: 18px;
    margin-bottom: 5px;
}

/* 题目标题样式 */
.generated-topic-item.topic-title {
    font-size: 20px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

/* 题目描述样式 */
.generated-topic-item.topic-description {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* 题目要求部分样式 */
.generated-topic-item.topic-requirements {
    font-size: 15px;
    color: #888;
    margin-bottom: 5px;
}

/* 题目要求里的强调文字样式 */
.generated-topic-item.topic-requirements strong {
    color: #e74c3c;
}

/* 题目难度部分样式 */
.generated-topic-item.topic-difficulty {
    font-size: 15px;
    color: #888;
    margin-bottom: 5px;
}

/* 题目字数部分样式 */
.generated-topic-item.topic-word-count {
    font-size: 15px;
    color: #888;
}

/* 题目生成相关操作按钮的容器样式 */
.topic-generation-actions {
    text-align: center;
    margin-top: 20px;
}

/* 下载题目列表按钮样式 */
.download-topics-button {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
}

/* 重新生成按钮样式 */
.regenerate-topics-button {
    background-color: white;
    color: #007bff;
    padding: 10px 20px;
    border: 1px solid #007bff;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}
