* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f3f5f7;
    font-family: Arial, Helvetica, sans-serif;
    color: #252525;
}

.page {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 50px 20px;
}

.search-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 45px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    border: 1px solid #e6e9ec;
}

.brand {
    font-size: 28px;
    font-weight: 700;
    color: #30318b;
}

.subtitle {
    margin-top: 8px;
    margin-bottom: 35px;
    color: #707070;
    font-size: 15px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input-row {
    display: flex;
    gap: 10px;
}

input[type="number"] {
    width: 100%;
    padding: 15px 17px;
    border: 1px solid #d8dde2;
    border-radius: 9px;
    font-size: 16px;
    outline: none;
}

input[type="number"]:focus {
    border-color: #30318b;
    box-shadow: 0 0 0 3px rgba(48,49,139,0.10);
}

button {
    padding: 0 28px;
    border: none;
    border-radius: 9px;
    background: #30318b;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #25266f;
}

.help {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.history-card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
    border: 1px solid #e6e9ec;
}

.header {
    padding: 30px 35px;
    background: #30318b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.header .brand {
    color: white;
    font-size: 25px;
}

.journal {
    margin-top: 5px;
    font-size: 13px;
    opacity: 0.85;
}

.article-id {
    text-align: right;
    font-size: 12px;
    opacity: 0.85;
}

.article-id strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    opacity: 1;
}

.article-info {
    padding: 30px 35px;
    border-bottom: 1px solid #eeeeee;
}

.label {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
    color: #8a8a8a;
    margin-bottom: 8px;
}

.title {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
    color: #252525;
}

.history-title {
    padding: 30px 35px 10px;
    font-size: 20px;
    font-weight: 700;
    color: #30318b;
}

.timeline {
    padding: 20px 35px 35px;
}

.timeline-item {
    display: flex;
    position: relative;
}


/*
|--------------------------------------------------------------------------
| DOWNLOAD LOA BUTTON
|--------------------------------------------------------------------------
*/

.loa-download-wrapper {

    margin-top: 30px;

    padding-top: 25px;

    border-top:
        1px solid
        #eeeeee;

    text-align: center;
}


.loa-download-button {

    display: inline-block;

    padding:
        13px
        24px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #198754,
            #157347
        );

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        all 0.2s ease;

    box-shadow:
        0 5px 15px
        rgba(
            25,
            135,
            84,
            0.18
        );
}


.loa-download-button:hover {

    background:
        linear-gradient(
            135deg,
            #157347,
            #198754
        );

    color: #ffffff;

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(
            25,
            135,
            84,
            0.25
        );
}


.loa-download-description {

    margin-top: 9px;

    color: #777777;

    font-size: 12px;

    line-height: 1.5;
}

.timeline-marker {
    width: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.marker {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: #30318b;
    color: white;
    z-index: 2;
}

.marker.accepted {
    background: #2a9d8f;
}

.marker.declined {
    background: #c94c4c;
}

.marker.revision {
    background: #e09f3e;
}

.marker.review {
    background: #457b9d;
}

.timeline-line {
    width: 2px;
    background: #d9dde2;
    flex: 1;
    min-height: 65px;
}

.timeline-content {
    padding: 2px 0 35px 20px;
    flex: 1;
}

.timeline-status {
    font-size: 17px;
    font-weight: 700;
    color: #30318b;
}

.timeline-date {
    margin-top: 5px;
    color: #777;
    font-size: 13px;
}

.timeline-description {
    margin-top: 9px;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.privacy-note {
    margin: 0 35px 30px;
    padding: 18px 20px;
    background: #f6f7f9;
    border-left: 4px solid #30318b;
    border-radius: 7px;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.footer {
    padding: 20px 35px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.footer a {
    color: #30318b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.error-card {
    background: white;
    padding: 50px 35px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0,0,0,0.08);
}

.error-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f3d6d6;
    color: #b33a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
}

.error-card h2 {
    margin: 0 0 10px;
}

.error-card p {
    color: #666;
    margin-bottom: 25px;
}

.back-button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    background: #30318b;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 650px) {
    .page {
        padding: 20px 10px;
    }

    .search-card {
        padding: 25px 20px;
    }

    .input-row {
        flex-direction: column;
    }

    button {
        height: 48px;
    }

    .header {
        padding: 25px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-id {
        text-align: left;
    }

    .article-info {
        padding: 25px 20px;
    }

    .title {
        font-size: 18px;
    }

    .history-title {
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline {
        padding-left: 20px;
        padding-right: 20px;
    }

    .privacy-note {
        margin-left: 20px;
        margin-right: 20px;
    }
}
