@import url('/css/pages/mystudy/mystudy_list.css');
@import url('/css/pages/index/study_analyze.css');

.study-analyze-subject-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.study-analyze-subject-row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 20px;
    margin-bottom: 0;
    min-width: 0;
}

.study-analyze-subject-row::-webkit-scrollbar {
    display: none;
}

.study-analyze-subject-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 auto;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #8ea6bf;
    border-radius: 999px;
    background: #fff;
    color: #35516f;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
}

.study-analyze-subject-btn.is-active {
    border-color: #1f5f96;
    background: #1f5f96;
    color: #fff;
}

.study-analyze-subject-btn:active {
    opacity: 0.92;
}

.study-analyze-table td.study-analyze-book-name {
    color: #1f5f96 !important;
    font-size: 13px !important;
}

.study-analyze-book-link {
    color: inherit;
    font-size: inherit;
    text-decoration: none;
}

.study-analyze-book-link:hover,
.study-analyze-book-link:focus,
.study-analyze-book-link:active {
    text-decoration: none;
}

.study-analyze-subject-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.study-analyze-scroll-hint {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    min-width: 34px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -1px;
    color: rgba(19, 62, 100, 0.96);
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 0 4px rgba(255, 255, 255, 0.9);
    pointer-events: none;
    user-select: none;
    transition: opacity 0.2s ease;
}

.study-analyze-scroll-hint-left {
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(236, 239, 243, 0.98) 0%,
        rgba(236, 239, 243, 0.86) 58%,
        rgba(236, 239, 243, 0) 100%
    );
}

.study-analyze-scroll-hint-right {
    right: 0;
    background: linear-gradient(
        270deg,
        rgba(236, 239, 243, 0.98) 0%,
        rgba(236, 239, 243, 0.86) 58%,
        rgba(236, 239, 243, 0) 100%
    );
}

.study-analyze-scroll-hint.is-hidden {
    opacity: 0;
}

.study-analyze-menu-select-wrap {
    position: relative;
    flex: 0 0 auto;
}

.study-analyze-menu-select {
    box-sizing: border-box;
    min-width: 104px;
    width: auto;
    height: 32px;
    padding: 0 28px 0 12px;
    border: 1px solid #bcc7d1;
    border-radius: 4px;
    background: #eceff3;
    color: #2e4458;
    font-size: 12px;
    font-weight: 600;
    line-height: 30px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.study-analyze-menu-select-wrap::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 11px;
    transform: translateY(-48%);
    font-size: 10px;
    color: #4a5f72;
    pointer-events: none;
}

.study-analyze-menu-select:focus {
    outline: none;
    border-color: #1f5f96;
    box-shadow: 0 0 0 1px rgba(31, 95, 150, 0.18);
}

@media (max-width: 599px) {
    .study-analyze-subject-line {
        gap: 5px;
    }

    .study-analyze-subject-row {
        padding: 0 18px;
    }

    .study-analyze-subject-btn {
        height: 30px;
        min-height: 30px;
        line-height: 28px;
        font-size: 11px;
        padding: 0 8px;
    }

    .study-analyze-menu-select {
        min-width: 90px;
        height: 30px;
        line-height: 28px;
    }
}
