@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap');

.paper-analyzer-page {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 0.94rem;
}

.paper-analyzer-page .table,
.paper-analyzer-page .form-label,
.paper-analyzer-page .form-text,
.paper-analyzer-page .btn,
.paper-analyzer-page .small {
    font-size: 0.92rem;
}

.upload-area {
    border: 2px dashed #ccc !important;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    width: 60%;
    margin: 0 auto 1rem;
    padding: 1.8rem 1.2rem !important;
}

.upload-area:hover {
    background-color: #e9ecef;
    border-color: #457b9d !important;
}

.upload-area.dragover {
    background-color: #eaf4ff;
    border-color: #1d6fdc !important;
    box-shadow: 0 0 0 0.2rem rgba(29, 111, 220, 0.15);
}

.upload-area.dragover #dropZone {
    transform: scale(1.01);
}

.upload-area.dragover #dropZone i,
.upload-area.dragover #dropZone p {
    color: #1d6fdc !important;
}

#dropZone {
    cursor: pointer;
    transition: transform 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.paper-list-table .paper-title-line {
    max-width: 520px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-list-table .paper-date-line {
    font-size: 0.76rem;
    line-height: 1.2;
}

.paper-list-table .cell-action {
    vertical-align: middle;
}

.paper-list-table .action-buttons {
    display: inline-flex;
    align-items: center;
}

.paper-list-table .topic-badge {
    color: #fff;
}

.paper-list-table .topic-badge-neuro {
    background-color: #2c4386;
}

.paper-list-table .topic-badge-pharm {
    background-color: #a44200;
}

.paper-list-table .action-buttons.compact-actions .btn {
    font-size: 0.76rem;
    padding: 0.22rem 0.52rem;
    border-radius: 8px;
}

.paper-list-table .action-buttons.compact-actions .btn-pdf-download {
    padding: 0.22rem 0.45rem;
}

.btn-pdf-download i {
    font-size: 0.9rem;
    line-height: 1;
}

.paper-list-table .action-sep {
    font-size: 0.78rem;
    color: #7b7f83;
    font-weight: 700;
    line-height: 1;
    padding: 0 0.05rem;
}

.paper-channel-select {
    min-width: 145px;
    max-width: 145px;
    font-size: 0.78rem;
    padding-top: 0.18rem;
    padding-bottom: 0.18rem;
}

.btn-report-action {
    border-radius: 10px;
    background-color: #859a85;
    color: #fff;
    border: 1px solid #7a8d7a;
    padding: 0.34rem 0.75rem;
}

.btn-report-action:hover {
    background-color: #718771;
    color: #fff;
}

.btn-report-action.is-disabled,
.btn-report-action:disabled {
    background-color: #c2c8c2;
    border-color: #b4bbb4;
    color: #f4f6f4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-structure-action {
    border-radius: 10px;
    background-color: #4c5a64;
    color: #fff;
    border: 1px solid #44515a;
    padding: 0.34rem 0.75rem;
}

.btn-structure-action:hover {
    background-color: #414d56;
    color: #fff;
}

.btn-direct-read-action {
    border-radius: 10px;
    background-color: #5f7ea3;
    color: #fff;
    border: 1px solid #567091;
    padding: 0.34rem 0.75rem;
}

.btn-direct-read-action:hover {
    background-color: #536f90;
    color: #fff;
}

.btn-summary-action {
    border-radius: 10px;
    background-color: #a23e0e;
    color: #fff;
    border: 1px solid #8e360d;
    padding: 0.34rem 0.75rem;
}

.btn-summary-action:hover {
    background-color: #8f360b;
    color: #fff;
}

.btn-summary-report-action {
    border-radius: 10px;
    background-color: #f1686b;
    color: #fff;
    border: 1px solid #de5d60;
    padding: 0.34rem 0.75rem;
}

.btn-summary-report-action:hover {
    background-color: #e15a5d;
    color: #fff;
}

.btn-summary-action.is-disabled,
.btn-summary-action:disabled,
.btn-summary-report-action.is-disabled,
.btn-summary-report-action:disabled {
    background-color: #c2c8c2;
    border-color: #b4bbb4;
    color: #f4f6f4;
    cursor: not-allowed;
    pointer-events: none;
}

.summary-modal-content {
    border-radius: 12px;
}

.summary-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #cad4df;
    border-top-color: #a23e0e;
    border-radius: 50%;
    animation: summary-spin 0.85s linear infinite;
}

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

.btn-delete-selected {
    border-radius: 10px;
    background-color: #d6775b;
    color: #fff;
    border: 1px solid #c46a50;
    padding: 0.34rem 0.85rem;
}

.btn-delete-selected:hover {
    background-color: #c7684d;
    color: #fff;
}

.btn-pdf-download {
    border: 1px solid #c82333;
    color: #fff;
    background-color: #dc3545;
    border-radius: 10px;
    padding: 0.34rem 0.6rem;
}

.btn-pdf-download:hover {
    color: #dc3545;
    background-color: #fff;
    border-color: #e8b1b1;
}

.btn-pdf-download i {
    font-size: 0.9rem;
    line-height: 1;
}

.btn-edit-action {
    border: 1px solid #0d6efd;
    color: #fff;
    background-color: #0d6efd;
    font-weight: 700;
}

.btn-edit-action:hover {
    color: #0d6efd;
    background-color: #fff;
    border-color: #0d6efd;
}

.btn-edit-action.is-disabled,
.btn-edit-action:disabled {
    background-color: #c2c8c2;
    border-color: #b4bbb4;
    color: #f4f6f4;
    cursor: not-allowed;
    pointer-events: none;
}

.pagination .page-link {
    background-color: #ece6e1;
    color: #000;
    border: 1px solid #ded7d2;
    border-radius: 999px !important;
    min-width: 1.75rem;
    padding: 0.18rem 0.5rem;
    font-size: 0.84rem;
    line-height: 1.1;
    text-align: center;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:nth-last-child(2) .page-link,
.pagination .page-item:last-child .page-link {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.pagination .page-item.active .page-link {
    background-color: #706b69;
    border-color: #706b69;
    color: #fff;
}

.pagination {
    gap: 0.35rem;
}

.pagination .page-item.disabled .page-link {
    background-color: #ece6e1;
    color: #8c8681;
    border-color: #ded7d2;
}

@media (max-width: 768px) {
    .upload-area {
        width: 100%;
        padding: 1.2rem 0.9rem !important;
    }

    #dropZone {
        min-height: 92px;
    }

    .paper-list-head {
        display: none;
    }

    .paper-list-table,
    .paper-list-table tbody,
    .paper-list-table tr,
    .paper-list-table td {
        display: block;
        width: 100%;
    }

    .paper-list-table .paper-row {
        display: flex !important;
        flex-wrap: wrap;
        border: 1px solid #e8ece8;
        border-radius: 10px;
        margin-bottom: 12px;
        padding: 10px 12px;
        background: #fff;
    }

    .paper-list-table .paper-row td {
        border: 0 !important;
        padding: 0.15rem 0;
    }

    .paper-list-table .cell-main {
        order: 1;
        width: 100%;
        margin-bottom: 6px;
    }

    .paper-list-table .paper-title-line {
        max-width: 100%;
    }

    .paper-list-table .paper-date-line,
    .paper-list-table .cell-file {
        display: none !important;
    }

    .paper-list-table .cell-select,
    .paper-list-table .cell-type,
    .paper-list-table .cell-action {
        order: 2;
        display: inline-flex;
        width: auto;
        margin-right: 12px;
        align-items: center;
    }

    .paper-list-table .cell-action {
        margin-right: 0;
        margin-left: auto;
    }
}

.blog-card-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.blog-board-title-badge {
    display: inline-block;
    border: 2px solid #5189bc;
    border-radius: 999px;
    color: #5189bc;
    background: transparent;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.2;
    padding: 0.45rem 1rem;
}

.blog-card-item {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: stretch;
    border: 1px solid #d9e2ea;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    box-shadow: 0 4px 14px rgba(23, 42, 58, 0.06);
    width: 680px;
    max-width: 680px;
    margin: 0 auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none !important;
    color: inherit !important;
}

.blog-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(23, 42, 58, 0.12);
    border-color: #b9cbe0;
    color: inherit !important;
}

.blog-card-item:active,
.blog-card-item.is-active {
    transform: translateY(-1px) scale(0.995);
    box-shadow: 0 8px 20px rgba(20, 44, 66, 0.16);
    border-color: #8cb0d6;
    color: inherit !important;
}

.blog-card-item .blog-card-date,
.blog-card-item .blog-card-title,
.blog-card-item .blog-card-excerpt {
    text-decoration: none !important;
    color: inherit;
}

.blog-card-thumb-wrap {
    position: relative;
    height: 135px;
    min-height: 135px;
    overflow: hidden;
    background: #eef3f8;
}

.blog-card-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.blog-card-thumb-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c98;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.blog-card-body {
    padding: 10px 11px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-date {
    font-size: 0.68rem;
    color: #667786;
    margin-bottom: 3px;
}

.blog-card-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1d2c39 !important;
    line-height: 1.3;
    margin-bottom: 3px;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.blog-card-excerpt {
    margin: 0;
    color: #556776 !important;
    line-height: 1.35;
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.blog-article-shell {
    background:
      radial-gradient(circle at 17% 0%, rgba(48, 97, 146, 0.1), transparent 35%),
      radial-gradient(circle at 85% 8%, rgba(35, 103, 79, 0.1), transparent 45%),
      #f4f7fa;
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
}

.blog-article-post {
    background: #fff;
    border: 1px solid #dce4ec;
    border-radius: 14px;
    margin: 0;
    overflow: hidden;
}

.blog-article-hero {
    padding: 36px 40px 20px;
    border-bottom: 1px solid #e2e9ef;
    background: #706b69 !important;
}

.blog-article-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}

.blog-article-nav-btn {
    display: inline-block;
    min-width: 58px;
    text-align: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: transparent;
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
}

.blog-article-nav-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

.blog-article-nav-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.blog-article-hero h1 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1.28;
    white-space: pre-line;
    color: #ffffff !important;
    font-weight: 900;
}

.blog-article-hero h1.is-center {
    text-align: center;
}

.blog-article-cover {
    padding: 20px 40px 8px;
}

.blog-article-cover img {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
    border: 1px solid #cfdae5;
}

.blog-article-content {
    padding: 14px 40px 34px;
    color: #253643;
    line-height: 1.78;
    font-size: 1.1rem;
}

.blog-article-content h1,
.blog-article-content h2,
.blog-article-content h3,
.blog-article-content h4,
.blog-article-content h5 {
    color: #172737;
    margin-top: 1.2em;
    margin-bottom: 0.45em;
}


.blog-article-content .ql-align-center { text-align: center; }
.blog-article-content .ql-align-right { text-align: right; }
.blog-article-content .ql-align-justify { text-align: justify; }

.blog-article-content img {
    width: 100%;
    max-width: 600px;
    display: block;
    border-radius: 12px;
    border: 1px solid #d5dfe8;
    margin: 0.5rem auto;
}

.blog-inline-caption {
    margin: 0.2rem 0 0.9rem;
    text-align: center;
    font-weight: 700;
    color: #233747;
}

.blog-reference-sep {
    border: 0;
    border-top: 1px solid #d5dde4;
    margin: 1.1rem 0 0.9rem;
}

.blog-reference-note {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #617386 !important;
    font-style: italic !important;
}

@media (max-width: 768px) {
    .blog-card-item {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 500px;
    }

    .blog-card-thumb-wrap {
        min-height: 140px;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .blog-card-title {
        font-size: 1.02rem;
    }

    .blog-card-excerpt {
        font-size: 0.94rem;
    }

    .blog-article-content {
        font-size: 1.1rem;
        padding: 12px 18px 24px;
    }

    .blog-article-hero {
        padding: 18px 18px 14px;
    }

    .blog-article-cover {
        padding: 12px 18px 6px;
    }
}
