/* =========================================================
   APPROVER PAGES
   ========================================================= */

.approver-page {
    min-height: 70vh;
    padding: 50px 20px 80px;
    background: #f7f8fa;
}

.approver-container {
    width: 100%;
    max-width: 1150px;
    margin: 0 auto;
}


/* =========================================================
   BREADCRUMB
   ========================================================= */

.approver-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #777;
}

.approver-breadcrumb a {
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.approver-breadcrumb a:hover {
    text-decoration: underline;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.approver-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 35px;
}

.approver-page-header h1 {
    margin: 0 0 8px;
    font-size: 34px;
    font-weight: 700;
    color: #202124;
}

.approver-page-header p {
    margin: 0;
    color: #6c757d;
    font-size: 16px;
}


/* =========================================================
   PENDING COUNT
   ========================================================= */

.pending-count {
    min-width: 110px;
    padding: 18px 25px;
    text-align: center;
    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.pending-count span {
    display: block;
    font-size: 30px;
    font-weight: 700;
    color: #198754;
    line-height: 1;
}

.pending-count small {
    display: block;
    margin-top: 6px;
    color: #777;
}


/* =========================================================
   PUBLICATION LIST
   ========================================================= */

.publication-review-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.publication-review-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    padding: 25px;

    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.publication-review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   STATUS
   ========================================================= */

.publication-status {
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;

    border-radius: 50px;

    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d1e7dd;
    color: #0f5132;
}

.status-rejected {
    background: #f8d7da;
    color: #842029;
}


/* =========================================================
   PUBLICATION CARD
   ========================================================= */

.publication-card-main {
    flex: 1;
    min-width: 0;
}

.publication-card-main h2 {
    margin: 0 0 8px;

    font-size: 21px;
    line-height: 1.35;
    font-weight: 650;

    color: #212529;
}

.publication-author {
    margin-bottom: 18px;
    color: #555;
    font-size: 14px;
}

.publication-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.publication-meta > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.meta-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.publication-meta span:last-child {
    color: #333;
    font-size: 14px;
}

.publication-submitted {
    margin-top: 18px;
    font-size: 13px;
    color: #999;
}


/* =========================================================
   REVIEW BUTTON
   ========================================================= */

.publication-card-action {
    flex-shrink: 0;
}

.btn-review {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 11px 18px;

    background: #198754;
    color: #fff;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: background 0.2s ease;
}

.btn-review:hover {
    background: #157347;
    color: #fff;
    text-decoration: none;
}

.btn-review span {
    font-size: 18px;
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.empty-review-state {
    padding: 70px 30px;

    text-align: center;

    background: #fff;
    border: 1px solid #e4e7eb;
    border-radius: 14px;
}

.empty-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #d1e7dd;
    color: #198754;

    font-size: 30px;
    font-weight: 700;
}

.empty-review-state h2 {
    margin-bottom: 8px;
    font-size: 24px;
}

.empty-review-state p {
    margin-bottom: 25px;
    color: #777;
}

.btn-back-dashboard {
    display: inline-block;

    padding: 11px 20px;

    background: #198754;
    color: #fff;

    border-radius: 8px;

    text-decoration: none;
}

.btn-back-dashboard:hover {
    background: #157347;
    color: #fff;
}


/* =========================================================
   DETAIL HEADER
   ========================================================= */

.review-detail-header {
    margin-bottom: 25px;
}

.review-detail-header h1 {
    margin: 12px 0 8px;

    font-size: 34px;
    line-height: 1.3;

    color: #202124;
}

.review-author {
    margin: 0;
    color: #666;
}


/* =========================================================
   DETAIL CARD
   ========================================================= */

.review-detail-card {
    margin-bottom: 25px;

    padding: 30px;

    background: #fff;

    border: 1px solid #e4e7eb;
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.review-detail-card h2 {
    margin: 0 0 25px;

    font-size: 20px;
    font-weight: 650;

    color: #212529;
}


/* =========================================================
   INFORMATION GRID
   ========================================================= */

.review-info-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}

.review-info-item {
    padding: 15px;

    background: #f8f9fa;

    border-radius: 9px;
}

.review-info-item span {
    display: block;

    margin-bottom: 5px;

    font-size: 12px;

    color: #888;

    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.review-info-item strong {
    display: block;

    color: #333;

    font-size: 15px;
}


/* =========================================================
   ATTACHED FILE
   ========================================================= */

.attached-publication {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 18px;

    border: 1px solid #e3e6e9;
    border-radius: 10px;
}

.attached-file-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    background: #f8d7da;

    border-radius: 8px;

    font-size: 24px;
}

.attached-file-info {
    flex: 1;
}

.attached-file-info strong {
    display: block;

    margin-bottom: 3px;

    color: #333;
}

.attached-file-info small {
    color: #888;
}

.btn-download {
    display: inline-flex;

    align-items: center;
    gap: 7px;

    padding: 9px 14px;

    background: #f1f3f5;
    color: #333;

    border-radius: 7px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.btn-download:hover {
    background: #e9ecef;
    color: #111;
}


/* =========================================================
   REVIEW ACTION
   ========================================================= */

.review-action-card {
    margin-top: 25px;
    padding: 30px;

    background: #fff;

    border: 1px solid #e4e7eb;
    border-radius: 14px;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.review-action-card h2 {
    margin: 0 0 7px;

    font-size: 22px;
}

.review-action-card > p {
    margin-bottom: 25px;

    color: #777;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.review-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 25px;
}

.approve-form {
    display: flex;
    align-items: center;
}

.btn-approve,
.btn-reject {
    width: 100%;

    padding: 13px 20px;

    border: 0;
    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
}

.btn-approve {
    background: #198754;
    color: #fff;
}

.btn-approve:hover {
    background: #157347;
}

.reject-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reject-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.reject-form textarea {
    width: 100%;

    padding: 12px;

    border: 1px solid #ced4da;
    border-radius: 8px;

    resize: vertical;
}

.reject-form textarea:focus {
    outline: none;

    border-color: #dc3545;

    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-reject {
    background: #dc3545;
    color: #fff;
}

.btn-reject:hover {
    background: #bb2d3b;
}


/* =========================================================
   REVIEWED NOTICE
   ========================================================= */

.reviewed-notice {
    padding: 45px 30px;

    text-align: center;

    background: #fff;

    border: 1px solid #e4e7eb;
    border-radius: 14px;
}

.reviewed-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: #d1e7dd;
    color: #198754;

    font-size: 28px;
    font-weight: 700;
}

.reviewed-notice h2 {
    margin-bottom: 8px;
}

.reviewed-notice p {
    color: #777;
}


/* =========================================================
   PREVIOUS REJECTION
   ========================================================= */

.previous-rejection {
    max-width: 700px;

    margin: 25px auto 0;
    padding: 18px;

    text-align: left;

    background: #f8d7da;

    border-radius: 9px;

    color: #842029;
}

.previous-rejection strong {
    display: block;
    margin-bottom: 7px;
}

.previous-rejection p {
    margin: 0;
    color: #842029;
}


/* =========================================================
   BACK
   ========================================================= */

.review-back {
    margin-top: 25px;
}

.review-back a {
    color: #198754;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.review-back a:hover {
    text-decoration: underline;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .approver-page {
        padding: 30px 15px 60px;
    }

    .approver-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .approver-page-header h1 {
        font-size: 28px;
    }

    .pending-count {
        width: 100%;
    }

    .publication-review-card {
        align-items: stretch;
        flex-direction: column;
    }

    .publication-card-action {
        width: 100%;
    }

    .btn-review {
        width: 100%;
        justify-content: center;
    }

    .review-detail-header h1 {
        font-size: 28px;
    }

    .review-detail-card {
        padding: 20px;
    }

    .review-info-grid {
        grid-template-columns: 1fr;
    }

    .review-actions {
        grid-template-columns: 1fr;
    }

    .attached-publication {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .attached-file-info {
        min-width: 150px;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

}