/**
 * APMarker Unified Frontend CSS
 *
 * Styles for unified frontend interface.
 *
 * @package APMarker
 * @since 1.0.0
 */

/* CSS Reset for APMarker container to prevent external style conflicts */
#apmarker-container {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

@media (min-width: 1240px) {
    div#apmarker-container {
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

#apmarker-container *,
#apmarker-container *::before,
#apmarker-container *::after {
    box-sizing: border-box;
}

#apmarker-container h1,
#apmarker-container h2,
#apmarker-container h3,
#apmarker-container h4,
#apmarker-container h5,
#apmarker-container h6 {
    margin: 0;
    padding: 0;
    font-weight: 600;
    line-height: 1.2;
}

.apmarker-normal-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffffd6;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

h3.apmarker-general-tab-pane-title {
    font-size: 20px;
    margin-bottom: 15px !important;
    font-weight: 600;
}

.apmarker-general-sidebar a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
}

.apmarker-general-sidebar a:hover {
    color: #5568d3;
}

#apmarker-container button,
#apmarker-container input,
#apmarker-container select,
#apmarker-container textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

#apmarker-container button {
    cursor: pointer;
}

#apmarker-container ul,
#apmarker-container ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

#apmarker-container img {
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

#apmarker-container .review-section-content img {
    display: initial;
}

#apmarker-container .apmarker-general-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

#apmarker-container .apmarker-form-content {
    position: relative;
}

@media (min-width: 1240px) {
    .review-essay-container {
        height: calc(100vh - 140px);
        overflow: hidden;
    }

    #apmarker-container .apmarker-form-content {
        width: 100%;
        max-width: 300px;
        min-width: 260px;
        height: 100%;
        overflow-y: auto;
        overflow-x: clip;
        background-color: #f9f9f9;
        border: 1px solid #ccc;
        margin: 0 0 0 0;
        display: inline-block;
        max-height: calc(100vh - 100px);
        border-radius: var(--apmarker-small-border-radius);
    }
    #apmarker-container #article-container,
    #apmarker-container #apmarker-grading-result-container{
        max-height: calc(100vh - 100px);
        height: 100%;
        overflow-y: scroll;
        width: calc(50% - 170px);
        display: inline-block;
        margin: 0px 7.5px;
        float: none;
    }
}

.apmarker-tab-switcher {
    cursor: pointer;
}
#apmarker-container .apmarker-general-tab-pane {
    display: none;
}


#apmarker-container .apmarker-general-tab-pane.active {
    display: block;
}

#apmarker-container .apmarker-initial-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    z-index: 1000;
}

#apmarker-container .apmarker-initial-loading-content {
    text-align: center;
}

#apmarker-container .apmarker-initial-loading .ap-loading-svg,
.apmarker-normal-loading .ap-loading-svg{
    margin: 0 auto 20px;
}

#apmarker-container .apmarker-initial-loading .apmarker-loading-text,
.apmarker-normal-loading .apmarker-loading-text {
    margin: 0 !important;
    color: #666;
    font-size: 16px;
}

#apmarker-container .apmarker-general-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

#apmarker-container .apmarker-general-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#apmarker-container .apmarker-general-username {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 600;
    color: inherit;
}

#apmarker-container .apmarker-general-email {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: inherit;
}

#apmarker-container .apmarker-general-joined {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: inherit;
}


#apmarker-container .apmarker-general-btn-container {
    display: flex;
    gap: 10px;
}

#apmarker-container .apmarker-general-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

#apmarker-container .apmarker-general-stat-card {
    background: #ffffff47;
    padding: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s;
}

#apmarker-container .apmarker-general-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

#apmarker-container .apmarker-general-stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

#apmarker-container .apmarker-general-stat-label {
    display: block;
    font-size: 14px;
    color: #ffffff;
}

#apmarker-container .apmarker-general-dashboard {
    margin-top: 30px;
}

#apmarker-container .apmarker-general-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#apmarker-container .apmarker-general-chart-card {
    background: #fff;
    padding: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#apmarker-container .apmarker-general-chart-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#apmarker-container .apmarker-general-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

#apmarker-container .apmarker-general-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

#apmarker-container .apmarker-general-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#apmarker-container .apmarker-general-stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--apmarker-periwinkle-purple-gradient);
    border-radius: var(--apmarker-normal-border-radius);
    color: #fff;
    font-size: 24px;
}

#apmarker-container .apmarker-general-stat-info {
    flex: 1;
}

#apmarker-container .apmarker-general-stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

#apmarker-container .apmarker-general-stat-text {
    display: block;
    font-size: 14px;
    color: #666;
}


#apmarker-container .apmarker-general-points-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

#apmarker-container .apmarker-general-points-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

#apmarker-container .apmarker-general-points-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#apmarker-container .apmarker-general-points-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--apmarker-blue-color) 0%, var(--apmarker-purple-color) 100%);
    border-radius: var(--apmarker-normal-border-radius);
    color: #fff;
    font-size: 24px;
}

#apmarker-container .apmarker-general-points-info {
    flex: 1;
}

#apmarker-container .apmarker-general-points-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--apmarker-blue-color);
    margin-bottom: 5px;
}

#apmarker-container .apmarker-general-points-label {
    display: block;
    font-size: 14px;
    color: #666;
}

#apmarker-container .apmarker-general-points-chart-section {
    background: #fff;
    padding: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

#apmarker-container .apmarker-general-section-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    border-bottom: 0;
}

#apmarker-container .apmarker-general-points-logs-section {
    background: #fff;
    padding: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#apmarker-container .apmarker-general-points-logs {
    max-height: 500px;
    overflow-y: auto;
}

#apmarker-container .apmarker-general-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#apmarker-container .apmarker-general-form-title {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

#apmarker-container .apmarker-general-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#apmarker-container .apmarker-general-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#apmarker-container .apmarker-general-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#apmarker-container .apmarker-general-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-small-border-radius);
    font-size: 14px;
    transition: all 0.3s;
}

#apmarker-container .apmarker-general-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#apmarker-container .apmarker-general-help-text {
    font-size: 12px;
    color: #999;
}

#apmarker-container .apmarker-general-form-actions {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#apmarker-container .apmarker-general-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: none;
    border-radius: var(--apmarker-small-border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

#apmarker-container .apmarker-general-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

#apmarker-container .apmarker-general-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


#apmarker-container .apmarker-general-activity-title {
    margin: 0 0 20px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

#apmarker-container .apmarker-general-activity-list {
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 200px;
}

#apmarker-container .apmarker-general-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#apmarker-container .apmarker-general-pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: var(--apmarker-small-border-radius);
    cursor: pointer;
    transition: all 0.3s;
}

#apmarker-container .apmarker-general-pagination button:hover:not(:disabled) {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

#apmarker-container .apmarker-general-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.apmarker-general-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #999;
}

.apmarker-general-loading p {
    margin-top: 15px;
    font-size: 14px;
}

#apmarker-container .infinite-rotation {
    animation: infinite-rotation 1s linear infinite;
}

@keyframes infinite-rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#apmarker-container .apmarker-filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#apmarker-container .apmarker-filter-section label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

#apmarker-container .apmarker-filter-section select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-small-border-radius);
    font-size: 14px;
    min-width: 150px;
}

#apmarker-container .apmarker-filter-section button {
    padding: 8px 20px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: var(--apmarker-small-border-radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

#apmarker-container .apmarker-filter-section button:hover {
    background: #5568d3;
}

#apmarker-container .apmarker-history-list {
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 200px;
}

#apmarker-container .apmarker-history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#apmarker-container .apmarker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#apmarker-container .apmarker-modal-content {
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

#apmarker-container .apmarker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

#apmarker-container .apmarker-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#apmarker-container .apmarker-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
}

#apmarker-container .apmarker-modal-close:hover {
    color: #333;
}

#apmarker-container .apmarker-modal-body {
    padding: 20px;
}
/*common top bar*/
.apmarker-common-top-bar .apmarker-icon {
    width: 25px;
    height: 25px;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(28%) sepia(11%) saturate(461%) hue-rotate(217deg) brightness(96%) contrast(91%);
}
/*top bar icon box*/
.apmarker-top-bar-icon-box {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.apmarker-top-bar-icon-box:hover {
    background-color: rgba(111, 104, 125, 0.1);
}

.apmarker-search-results-list .apmarker-icon {
    filter: unset;
}

.apmarker-common-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.apmarker-common-points-display {
    display: flex;
    flex-direction: column;
}

.apmarker-common-points-display .points-label {
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 1px;
}

.apmarker-common-points-display .points-value {
    background: none;
    padding: 0;
}

.apmarker-top-bar-logo {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f2f2f2;
    padding: 5px;
}

.apmarker-top-bar-logo:after {
    content: '';
    display: block;
    position: absolute;
    background: #28C76F;
    width: 17px;
    height: 17px;
    right: 0px;
    bottom: 0px;
    border-radius: 50%;
    border: 3px solid #fff;
}


.apmarker-common-top-bar {
    display: flex;
    gap: 10px;
    background: #fff;
    color: #6F6B7D;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: var(--apmarker-small-border-radius);
    box-shadow: var(--apmarker-normal-shadow);
    justify-content: space-between;
    align-content: center;
}

.apmarker-common-top-bar-left,
.apmarker-common-top-bar-right {
    flex: 1 1;
}

.apmarker-common-top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.apmarker-common-top-bar-left {
    display: flex;
    align-items: center;
}

.apmarker-top-bar-nav {
    position: absolute;
    bottom: 0;
    right: 0;
    width: max-content;
    min-width: 104px;
    text-align: center;
    background: #fff;
    padding: 5px;
    border-radius: var(--apmarker-small-border-radius);
    transform: translateY(100%);
    z-index: 99999999999;
}

.apmarker-top-bar-nav .apmarker-username-display {
    color: inherit;
    text-transform: capitalize;
    font-size: inherit;
}

.apmarker-top-bar-nav a {
    color: inherit;
    display: block;
}

.apmarker-top-bar-nav a:not(:last-child) {
    margin-bottom: 5px;
}

.apmarker-top-bar-menu a.apmarker-general-sidebar-tab {
    padding: 2px 5px;
    display: flex !important;
    align-items: center;
    gap: 5px;
    border-radius: var(--apmarker-small-border-radius);
}

.apmarker-top-bar-menu a.apmarker-general-sidebar-tab .apmarker-icon {
    width: 15px;
    height: 15px;
}

@media (max-width: 768px) {    
    .apmarker-general-btn-container.apmarker-plan {
        margin-left: 0;
    }
    
    .apmarker-general-charts-grid {
        grid-template-columns: 1fr;
    }
    
    .apmarker-general-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .apmarker-general-points-stats {
        grid-template-columns: 1fr;
    }
    
    .apmarker-filter-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .apmarker-filter-section select {
        width: 100%;
    }
}

/* Search Styles */
.apmarker-common-search {
    flex: 1;
    max-width: 400px;
}

.apmarker-search-container {
    position: relative;
    width: 100%;
}

.apmarker-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-normal-border-radius);
    font-size: 14px;
    transition: all 0.3s;
    background: #f9f9f9;
}

.apmarker-search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.apmarker-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    width: 16px;
    height: 16px;
    pointer-events: none;
    filter: brightness(0) saturate(100%) invert(28%) sepia(11%) 
            saturate(461%) hue-rotate(217deg) brightness(96%) contrast(91%);
}

.apmarker-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.apmarker-search-results-list {
    padding: 5px 0;
}

.apmarker-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.apmarker-search-result-item:last-child {
    border-bottom: none;
}

.apmarker-search-result-item:hover {
    background: #f5f7ff;
}

span.apmarker-icon.apmarker-search-result-icon {
    background-repeat: no-repeat;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-position: center;
    background-size: 26px !important;
    background-color: #8f86f3;
}

.apmarker-search-result-content {
    flex: 1;
}

.apmarker-search-result-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
}

.apmarker-search-result-group {
    font-size: 12px;
    color: #999;
}

.apmarker-search-loading,
.apmarker-search-no-results,
.apmarker-search-error {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.apmarker-search-error {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .apmarker-common-search {
        max-width: 100%;
        margin-bottom: 0;
    }
}



/* Notification Badge */

.apmarker-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #ff4757;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: var(--apmarker-normal-border-radius);
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* Notifications Container */
.apmarker-notifications-container {
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Notifications Tabs */
.apmarker-notifications-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.apmarker-notifications-tab {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6F6B7D;
    border-radius: var(--apmarker-small-border-radius);
    transition: all 0.3s;
}

.apmarker-notifications-tab:hover {
    background: rgba(111, 104, 125, 0.1);
}

.apmarker-notifications-tab.active {
    position: relative;
    overflow: hidden;
    background-color: var(--apmarker-main-color);
    background-repeat: no-repeat;
    background-position: 20px center;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--apmarker-normal-border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.apmarker-notifications-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
    transition: left 0.6s ease;
    z-index: -1;
}
.apmarker-notifications-tab.active::after {
    content: '';
    width: 5px;
    height: 5px;
    position: absolute;
    right: 5px;
    top: 5px;
    background: #ffffff;
    border-radius: 50%;
}
/* Notifications List */
.apmarker-notifications-list {
    display: flex;
    gap: 15px;
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
    flex-direction: column;
}

/* Notification Item */
.apmarker-notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: var(--apmarker-normal-border-radius);
}

.apmarker-notification-item:hover {
    background: rgba(111, 104, 125, 0.05);
}

.apmarker-notification-item.unread {
    background: rgba(85, 104, 211, 0.05);
    border-left: 3px solid #5568d3;
}

.apmarker-notification-item.read {
    opacity: 0.7;
}

/* Notification Icon */
.apmarker-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(85, 104, 211, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apmarker-notification-icon .apmarker-icon {
    width: 20px;
    height: 20px;
}

/* Notification Content */
.apmarker-notification-content {
    flex: 1;
    min-width: 0;
}

.apmarker-notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.apmarker-notification-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Notification Meta */
.apmarker-notification-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #999;
}

.apmarker-notification-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.apmarker-notification-status {
    background: #ff4757;
    color: #fff;
    padding: 2px 8px;
    border-radius: var(--apmarker-normal-border-radius);
    font-size: 11px;
    font-weight: 500;
}

/* Notifications Pagination */
.apmarker-notifications-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.apmarker-pagination-prev,
.apmarker-pagination-next {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: var(--apmarker-small-border-radius);
    cursor: pointer;
    font-size: 14px;
    color: #6F6B7D;
    transition: all 0.3s;
}

.apmarker-pagination-prev:hover:not(:disabled),
.apmarker-pagination-next:hover:not(:disabled) {
    background: #5568d3;
    color: #fff;
    border-color: #5568d3;
}

.apmarker-pagination-prev:disabled,
.apmarker-pagination-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.apmarker-pagination-info {
    font-size: 14px;
    color: #6F6B7D;
}

/* Loading Spinner */
.apmarker-loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6F6B7D;
}

/* No Notifications */
.apmarker-no-notifications {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}

/* Error Message */
.apmarker-error-message {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #ff4757;
    font-size: 14px;
}

/* Notification Modal Specific Styles */
.apmarker-notification-modal-content {
    max-width: 600px;
}

div#apmarker-notification-modal-body {
    white-space: break-spaces;
}

.apmarker-notification-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.apmarker-notification-modal-footer .apmarker-notification-date {
    font-size: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .apmarker-notifications-tabs {
        flex-wrap: wrap;
    }
    
    .apmarker-notifications-tab {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .apmarker-notification-item {
        padding: 12px;
    }
    
    .apmarker-notification-title {
        font-size: 15px;
    }
    
    .apmarker-notification-excerpt {
        font-size: 13px;
    }
    
    .apmarker-notifications-pagination {
        flex-wrap: wrap;
    }
}

/* Practice */
#apmarker-container .apmarker-ability-name {
    margin: 0;
    padding: 5px 5px 5px 32px;
}

#apmarker-container .apmarker-checkbox-label {
    padding: 5px 10px;
    border-radius: var(--apmarker-small-border-radius);
}

/* WooCommerce Products Styles */
.apmarker-woocommerce-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.apmarker-woocommerce-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.apmarker-woocommerce-product-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.apmarker-woocommerce-product-header {
    background: var(--apmarker-main-color-gradient);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apmarker-woocommerce-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.apmarker-woocommerce-product-price {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.apmarker-woocommerce-product-description {
    background: #fff;
    padding: 20px;
    flex: 1;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.apmarker-woocommerce-product-description ul,
.apmarker-woocommerce-product-description ol {
    margin: 12px 0;
    padding-left: 0;
    list-style: none;
}

.apmarker-woocommerce-product-description li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #666;
}

.apmarker-woocommerce-product-description li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #5568d3;
    font-weight: 700;
    font-size: 14px;
}

.apmarker-woocommerce-product-description p {
    margin-bottom: 12px;
}

.apmarker-woocommerce-product-description p:last-child {
    margin-bottom: 0;
}

.apmarker-woocommerce-product-card .apmarker-button-normal {
    margin: 0 20px 20px 20px;
    text-align: center;
    justify-content: center;
}



@media (max-width: 768px) {
    .apmarker-woocommerce-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .apmarker-woocommerce-product-header {
        padding: 15px;
    }
    
    .apmarker-woocommerce-product-title {
        font-size: 16px;
    }
    
    .apmarker-woocommerce-product-price {
        font-size: 20px;
    }
    
    .apmarker-woocommerce-product-description {
        padding: 15px;
        font-size: 13px;
    }
    
    .apmarker-woocommerce-product-card .apmarker-button-normal {
        margin: 0 15px 15px 15px;
    }
}


/*re-design for unified frontend*/

.class-score-stats-chart-container {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: var(--apmarker-normal-border-radius);
    padding: 1rem;
}
.mini-charts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}
.mini-chart-container {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-radius: var(--apmarker-normal-border-radius);
    padding: 1rem;
    flex: 1;
    min-width: 250px;
}
.mini-chart-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
    text-align: center;
}
.mini-chart {
    height: 260px;
}

.ranking-header, .class-ability-radar-header,.class-ability-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 700px) {
    .class-score-chart-wrapper {
        max-width: 98vw !important;
    }
    #classScoreStatsChart3 {
        max-height: 45vw !important;
    }
}
@media (max-width: 480px) {
    .class-score-stats-chart-container {
        padding: 12px 2vw 10px 2vw;
    }
    #classScoreStatsChart3 {
        max-height: 40vw !important;
    }
}
.class-score-xlabel-tooltip {
    position: absolute;
    z-index: 9999;
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--apmarker-normal-border-radius);
    font-size: 13px;
    pointer-events: none;
    white-space: pre-line;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    display: none;
    max-width: 80vw;
    word-break: break-all;
}
/*學生排行榜*/
.student-ranking-container,
.class-ability-radar-container {
    background: #fff;
    box-shadow: var(--apmarker-normal-border-radius);
    border-radius: var(--apmarker-normal-border-radius);
    padding: 1rem;
}
.ranking-header,
.class-ability-radar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
span.review-count-info {
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
}
.ranking-header h3,
.class-ability-radar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #495057;
}
.subject-filter,
.class-ability-subject {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.subject-select,
.subject-select-radar{
    background-color: #fff;
    font-size: 0.9rem;
}
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}
.ranking-table th, .ranking-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}
.ranking-table th {
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}
.ranking-table tr:hover {
    background-color: #f8f9fa;
}
.trend-arrow {
    display: inline-block;
    font-weight: bold;
    margin-right: 5px;
}
.trend-arrow.up {
    color: #28a745;
}
.trend-arrow.down {
    color: #dc3545;
}
.trend-arrow.same {
    color: #6c757d;
}
.trend-difference,
.trend-text {
    font-size: 0.8em;
    color: #6c757d;
}
@media (max-width: 600px) {
    .ranking-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .subject-filter {
        width: 100%;
    }
    
    .subject-select {
        flex-grow: 1;
    }
}


@media (min-width: 1240px) {
    .apmarker-single-essay-evaluation {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
    }
    #single-essay-evaluation-form,
    #single-evaluation-result{
        max-height: 100vh;
        overflow: auto;
        width: calc(50% - 10px);
        display: inline-block;
        float: left;
    }
}
.apmarker-single-essay-evaluation .form-group {
    margin-bottom: 15px;
}

.apmarker-single-essay-evaluation h3 {
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.2rem;
    color: #495057;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/*quiz*/

.apmarker-quiz-selection {
    padding: 30px;
    background: #f9f9f9;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.quiz-navigation {
    text-align: right;
    margin-bottom: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}
.form-group select,
.form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-normal-border-radius);
    font-size: 14px;
}
.apmarker-btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--apmarker-normal-border-radius);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}
.apmarker-btn-primary {
    background-color: var(--apmarker-main-color);
    color: white;
}
.apmarker-btn-primary:hover {
    background-color: var(--apmarker-secondary-color);
}
.apmarker-btn-outline {
    background: transparent;
    border: 2px solid var(--apmarker-main-color);
    color: var(--apmarker-main-color);
    padding: 8px 16px;
    font-size: 14px;
}
.apmarker-btn-outline:hover {
    background: var(--apmarker-main-color);
    color: white;
}
.apmarker-quiz-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: var(--apmarker-normal-border-radius);
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
}

.apmarker-quiz-result {
    margin: 0 auto;
}
.result-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.score-circle {
    text-align: center;
    padding: 20px;
    border-radius: 50%;
    color: white;
    min-width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.score-value {
    font-size: 22px;
    font-weight: bold;
}
.score-text {
    font-size: 12px;
    margin-top: 5px;
}
.result-details {
    flex: 1;
}
.result-details p {
    margin: 5px 0;
}
.result-question-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
}
.result-question-item.correct {
    border-left-color: var(--apmarker-light-green-color);
}
.result-question-item.incorrect {
    border-left-color: var(--apmarker-light-red-color);
}
.result-question-header h5 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.result-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
}
.result-status.correct {
    background: var(--apmarker-light-green-color);
}
.result-status.incorrect {
    background: var(--apmarker-light-red-color);
}
.result-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}
.user-answer, .correct-answer {
    padding: 10px;
    border-radius: var(--apmarker-normal-border-radius);
}
.user-answer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}
.correct-answer {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}
.answer-correct {
    color: var(--apmarker-light-green-color);
    font-weight: bold;
}
.answer-incorrect {
    color: var(--apmarker-light-red-color);
    font-weight: bold;
}
.question-explanation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--apmarker-normal-border-radius);
    margin-top: 15px;
    border-left: 3px solid var(--apmarker-main-color);
}
.result-actions {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
@media (max-width: 768px) {
    .result-summary {
        flex-direction: column;
        text-align: center;
    }
    .result-answers {
        grid-template-columns: 1fr;
    }
    .result-actions {
        flex-direction: column;
    }
}


.apmarker-quiz-container {
    margin: 0 auto;
}
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.quiz-header h3 {
    margin: 0;
    color: #333;
}
.quiz-info {
    background: #e7f3ff;
    padding: 15px;
    border-radius: var(--apmarker-normal-border-radius);
    margin-bottom: 20px;
    border-left: 4px solid var(--apmarker-main-color);
}
.question-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid var(--apmarker-main-color);
}
.question-header h4 {
    margin: 0 0 15px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.question-type {
    background: var(--apmarker-main-color);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}
.question-difficulty {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
}
.difficulty-easy { background: var(--apmarker-light-green-color); }
.difficulty-medium { background: #ffc107; color: #000; }
.difficulty-hard { background: var(--apmarker-light-red-color); }
.question-content {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}
.question-content p {
    margin: 0 0 10px 0;
}
.option-item {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: var(--apmarker-normal-border-radius);
    transition: background-color 0.2s;
}
.option-item:hover {
    background-color: #f8f9fa;
}
.option-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
}
.option-content {
    flex: 1;
}
.fill-blank-answer input {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: var(--apmarker-normal-border-radius);
}
.no-options {
    color: var(--apmarker-light-red-color);
    font-style: italic;
}
.quiz-submit {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.submit-note {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}
.apmarker-quiz-no-questions {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: var(--apmarker-normal-border-radius);
}
.apmarker-quiz-no-questions h3 {
    color:var(--apmarker-light-red-color);
    margin-bottom: 15px;
}
.apmarker-quiz-no-questions ul {
    text-align: left;
    display: inline-block;
    margin: 15px 0;
}


.apmarker-quiz-history {
    margin: 0 auto;
}
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.history-header h3 {
    margin: 0;
    color: #333;
}
.no-history {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: var(--apmarker-normal-border-radius);
}
.no-history p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}
.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-item {
    background: white;
    padding: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-top: 4px solid var(--apmarker-main-color);
}
.apmarker-quiz-history .stat-number.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--apmarker-main-color);
    margin-bottom: 5px;
}
.apmarker-quiz-history .stat-label {
    color: #666;
    font-size: 14px;
}
.apmarker-history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--apmarker-normal-border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.apmarker-history-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    text-transform: capitalize;
    border-bottom: 1px solid #dee2e6;
}
.apmarker-history-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}
.apmarker-history-table tr:last-child td {
    border-bottom: none;
}
.apmarker-history-table tr:hover {
    background: #f8f9fa;
}
.quiz-date {
    font-weight: 600;
    color: #333;
}
.quiz-time {
    font-size: 12px;
    color: #666;
}
.score-display {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: var(--apmarker-normal-border-radius);
    display: inline-block;
}
.score-display.passed {
    background: #d4edda;
    color: #155724;
}
.score-display.failed {
    background: #f8d7da;
    color: #721c24;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.status-badge.passed {
    background: #d4edda;
    color: #155724;
}
.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}
.apmarker-btn-outline {
    background: transparent;
    border: 2px solid var(--apmarker-main-color);
    color: var(--apmarker-main-color);
    padding: 6px 12px;
    font-size: 12px;
}
.apmarker-btn-outline:hover {
    background: var(--apmarker-main-color);
    color: white;
}
.history-pagination {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.history-pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--apmarker-main-color);
    border-radius: var(--apmarker-normal-border-radius);
}
.history-pagination .page-numbers.current {
    background: var(--apmarker-main-color);
    color: white;
    border-color: var(--apmarker-main-color);
}
.history-pagination .page-numbers:hover {
    background: #f8f9fa;
}
@media (max-width: 768px) {
    .history-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .history-stats {
        grid-template-columns: 1fr;
    }
    .apmarker-history-table {
        font-size: 14px;
    }
    .apmarker-history-table th,
    .apmarker-history-table td {
        padding: 10px 8px;
    }
}
.apmarker-quiz-result-detail {
    margin: 0 auto;
}
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}
.detail-header h3 {
    margin: 0;
    color: #333;
}
.detail-actions {
    display: flex;
    gap: 10px;
}
.result-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}
.score-circle {
    text-align: center;
    padding: 20px;
    border-radius: 50%;
    color: white;
    min-width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.score-value {
    font-size: 22px;
    font-weight: bold;
}
.score-text {
    font-size: 12px;
    margin-top: 5px;
}
.result-details {
    flex: 1;
}
.result-details p {
    margin: 5px 0;
}
.result-question-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-left: 4px solid #ddd;
}
.result-question-item.correct {
    border-left-color: var(--apmarker-light-green-color);
}
.result-question-item.incorrect {
    border-left-color: var(--apmarker-light-red-color);
}
.result-question-header h5 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.result-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    color: white;
}
.result-status.correct {
    background: var(--apmarker-light-green-color);
}
.result-status.incorrect {
    background: var(--apmarker-light-red-color);
}
.result-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
}
.user-answer, .correct-answer {
    padding: 10px;
    border-radius: var(--apmarker-normal-border-radius);
}
.user-answer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}
.correct-answer {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
}
.answer-correct {
    color: var(--apmarker-light-green-color);
    font-weight: bold;
}
.answer-incorrect {
    color: var(--apmarker-light-red-color);
    font-weight: bold;
}
.question-explanation {
    background: #f8f9fa;
    padding: 15px;
    border-radius: var(--apmarker-normal-border-radius);
    margin-top: 15px;
    border-left: 3px solid var(--apmarker-main-color);
}
.result-actions {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
@media (max-width: 768px) {
    .result-summary {
        flex-direction: column;
        text-align: center;
    }
    .result-answers {
        grid-template-columns: 1fr;
    }
    .result-actions {
        flex-direction: column;
    }
}

/*tutorial*/
#using-tutorial .apmarker-tutorials {
    background: #fff;
    border-radius: var(--apmarker-normal-border-radius);
    padding: var(--apmarker-common-padding);
    box-shadow: var(--apmarker-box-shadow);
}
@media(min-width:1200px){
    #using-tutorial .apmarker-tutorials {
        max-width: 1000px;
        margin: 0 auto;
    }
}

#using-tutorial .tutorials-intro {
    margin-bottom: 25px;
    font-size: 16px;
    color: #666;
}

#using-tutorial .tab-headers {
    list-style: none;
    margin: 0 0 20px 0;
    background: #ffffff;
    padding: 15px;
    border-radius: var(--apmarker-normal-border-radius);
    border-bottom: 1px solid #ddd;
    overflow-x: auto;
    white-space: nowrap;
}

#using-tutorial .tab-header {
    display: inline-block;
    padding: 8px 15px;
    background: var(--apmarker-light-bg-color);
    color: #555;
    text-decoration: none;
    border: 1px solid #919191;
    border-radius: var(--apmarker-normal-border-radius);
}

#using-tutorial .tab-header:hover,
#using-tutorial .tab-header.active {
    background: var(--apmarker-main-color);
    color: #ffffff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    position: relative;
}
#using-tutorial .tab-header.active:after, .tab-header:hover:after {
    content: '';
    width: 5px;
    height: 5px;
    position: absolute;
    right: 5px;
    top: 5px;
    background: #ffffff;
    border-radius: 50%;
}
#using-tutorial .tab-content {
    display: none;
}

#using-tutorial .tutorials-tabs .tab-content>h3 {
    display: none;
}
#using-tutorial .tab-content.active {
    display: block;
}

#using-tutorial .pdf-viewer-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}
#using-tutorial .pdf-canvas-container {
    overflow: auto;
}
#using-tutorial .pdfjs-viewer {
    width: 100%;
    height: 100%;
}

#using-tutorial .pdfjs-viewer canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 100%;
}

#using-tutorial .pdf-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

#using-tutorial .pdf-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

#using-tutorial .pdf-page-info {
    font-size: 14px;
    color: #666;
    margin: 0 15px;
}

#using-tutorial .apmarker-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

#using-tutorial .apmarker-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 5px;
    border: 1px solid #888;
    width: 80%;
    max-width: 900px;
    border-radius: 8px;
    animation: apmarker-modal-animation 0.3s;
}

@keyframes apmarker-modal-animation {
    from {opacity: 0; transform: translateY(-50px);}
    to {opacity: 1; transform: translateY(0);}
}

#using-tutorial .apmarker-modal-close {
    color: #ffffff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: -11px;
    top: -14px;
    z-index: 999999;
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: var(--apmarker-main-color);
    border-radius: 50%;
}

#using-tutorial .apmarker-modal-close:hover,
#using-tutorial .apmarker-modal-close:focus {
    color: #fff;
    text-decoration: none;
    background: var(--apmarker-dark-color);
}

#using-tutorial .apmarker-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

#using-tutorial .apmarker-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    #using-tutorial .tab-headers {
        flex-direction: column;
    }
    #using-tutorial .pdf-navigation {
        flex-wrap: wrap;
    }
    #using-tutorial .apmarker-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    #using-tutorial .pdf-actions {
        flex-direction: column;
        align-items: center;
    }
    #using-tutorial .pdf-actions .apmarker-button-normal {
        width: 100%;
        max-width: 300px;
    }
}

/*main-portal*/
.apmarker-main-portal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    padding: 20px;
    margin: 0 auto;
    min-height: 100vh;
    flex-wrap: wrap;
    align-content: center;
}

.apmarker-main-portal-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apmarker-main-portal-header .apmarker-logo img {
    max-height: 40px;
    width: auto;
}

.apmarker-card-container {
    width: 100%;
    flex: 1 0 280px;
    padding: 0;
    max-width: 320px;
}
.apmarker-main-portal .apmarker-card {
    background-color: white;
    border-radius: var(--apmarker-normal-border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}
.apmarker-main-portal .clickable-card {
    cursor: pointer;
}
.apmarker-main-portal .clickable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.apmarker-main-portal .card-header {
    padding: 25px;
    color: #fff;
    text-align: center;
}
.apmarker-main-portal .card-header h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
}
.apmarker-main-portal .card-header p {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}
.apmarker-main-portal .card-body {
    padding: 30px;
    text-align: center;
}
.apmarker-main-portal .card-content {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
}
.apmarker-main-portal .card-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white !important;
    border: none;
}
.apmarker-main-portal .card-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .apmarker-main-portal .apmarker-card {
        width: 100% !important;
    }
}

.teacher-card-container .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
.teacher-card-container .card-btn {
    background-color: #667eea !important;
}
.teacher-card-container .apmarker-card {
    width: auto;
}
.student-card-container .card-header {
    background: linear-gradient(135deg, #00c52e 0%, #c3df00 100%) !important;
}
.student-card-container .card-btn {
    background-color: #667eea !important;
}
.student-card-container .apmarker-card {
    width: auto;
}



/*logout*/
/* 简洁优雅的登出界面美化 */
.apmarker-logout-wrapper {
    max-width: 320px;
    margin: 3rem auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.apmarker-logout-content {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.apmarker-logout-icon {
    margin-bottom: 1.5rem;
}

.apmarker-logout-icon svg {
    width: 56px;
    height: 56px;
    color: #6b7280;
    opacity: 0.9;
}

.apmarker-logout-title {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.apmarker-logout-message {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.apmarker-logout-actions {
    margin-top: 1.5rem;
}

/* 悬停状态微交互 */
.apmarker-logout-content {
    transition: box-shadow 0.2s ease;
}

.apmarker-logout-content:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 响应式设计 */
@media (max-width: 640px) {
    .apmarker-logout-wrapper {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .apmarker-logout-content {
        padding: 2rem 1.5rem;
    }
    
    .apmarker-logout-icon svg {
        width: 48px;
        height: 48px;
    }
}