/* ===== GLOBAL ===== */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #f4f7fb, #eef3f9);
    margin: 0;
    color: #1e293b;
}
/* ================================
   MAIN SECTION
==================================*/

.paper-section{
    width:100%;
    padding:60px 20px;
}

.paper-layout{
    max-width:1300px;
    margin:auto;

    display:flex;
    gap:35px;
    align-items:flex-start;
}

/* ================================
   LEFT CARD
==================================*/

.published-paper-card{
    flex:2;
    min-width:0;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:28px;

    box-shadow:0 5px 18px rgba(0,0,0,.05);
}

/* ================================
   RIGHT CARD
==================================*/

.proceeding-card{
    flex:1;
    min-width:300px;

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

    padding:25px;

    box-shadow:0 5px 18px rgba(0,0,0,.05);

    position:sticky;
    top:100px;
}

.proceeding-card h2{
    text-align:center;
    margin-bottom:20px;
    font-size:22px;
    font-weight:600;
    color:#1e293b;
}

/* ================================
   FORM
==================================*/

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;

    font-size:14px;
    font-weight:500;
    color:#475569;
}

#conferenceSelect,
#departmentSelect,
#titleSearch{

    width:100%;
    padding:12px 14px;

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

    font-size:14px;

    transition:.3s;
}

#conferenceSelect:focus,
#departmentSelect:focus,
#titleSearch:focus{

    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);

}

/* ================================
   SEARCH BUTTON
==================================*/

.search-btn{

    width:100%;
    padding:14px;

    border:none;
    border-radius:40px;

    background:#2563eb;
    color:#fff;

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

    cursor:pointer;

    transition:.3s;

    box-shadow:
    0 5px 0 #1d4ed8,
    0 12px 18px rgba(37,99,235,.25);

}

.search-btn:hover{

    transform:translateY(-3px);

    box-shadow:
    0 8px 0 #1d4ed8,
    0 16px 25px rgba(37,99,235,.35);

}

.search-btn:active{

    transform:translateY(3px);

    box-shadow:
    0 2px 0 #1d4ed8,
    0 6px 12px rgba(37,99,235,.2);

}

/* ================================
   PROCEEDING BUTTONS
==================================*/

.proceeding-btn{

    display:block;

    text-decoration:none;

    padding:15px 18px;

    margin-bottom:15px;

    border-radius:10px;

    background:#f8fafc;

    border:1px solid #dbeafe;

    color:#1e3a8a;

    font-weight:600;

    transition:.3s;

}

.proceeding-btn:hover{

    background:#2563eb;
    color:#fff;

    transform:translateY(-3px);

    box-shadow:0 10px 20px rgba(37,99,235,.25);

}

/* ================================
   RESULT SECTION
==================================*/

.result-section{

    max-width:1300px;
    margin:40px auto 0;

}

/* ================================
   TABLET
==================================*/

@media(max-width:992px){

    .paper-layout{

        flex-direction:column;

    }

    .published-paper-card,
    .proceeding-card{

        width:100%;
        max-width:100%;

    }

    .proceeding-card{

        position:static;

    }

}

/* ================================
   MOBILE
==================================*/

@media(max-width:576px){

    .paper-section{

        padding:35px 15px;

    }

    .published-paper-card,
    .proceeding-card{

        padding:20px;

    }

    .published-paper-card h2,
    .proceeding-card h2{

        font-size:20px;

    }

    .proceeding-btn{

        padding:13px;

        font-size:14px;

    }

    .search-btn{

        font-size:14px;

    }

}


/* ===== RESULT SECTION ===== */
.result-section {
    width: 98%;
    max-width: 1200px;

    background: #ffffff;
    padding: 22px;
    border-radius: 12px;

    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.result-section h3 {
    text-align: center;
    margin-bottom: 18px;
}

/* ===== TABLE ===== */
.table-wrapper {
    overflow-x: auto;
}

.paper-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

/* HEADER */
.paper-table thead {
    background: #e2e8f0;
}

.paper-table th {
    color: #334155;
    padding: 14px;
    font-size: 14px;
    text-align: left;
    font-weight: 600;
}

/* BODY */
.paper-table td {
    padding: 14px;
    font-size: 14px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

/* ROW HOVER */
.paper-table tbody tr:hover {
    background: #f8fafc;
}

/* COLUMN WIDTHS */
.paper-table td:nth-child(1) {
    width: 50px;
    text-align: center;
}

.paper-table td:nth-child(2) {
    max-width: 320px;
    line-height: 1.5;
}

.paper-table td:nth-child(3) {
    max-width: 250px;
}

/* ===== DOI BADGE (CLEAN) ===== */
.paper-table td:nth-child(4) a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;

    background: #f1f5f9;
    color: #475569;

    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

/* ===== VIEW BUTTON (ONLY 3D) ===== */
.paper-table td:last-child a {
    display: inline-block;

    padding: 10px 18px;
    border-radius: 30px;

    background: #f1f5f9;
    color: #334155;

    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    /* 3D EFFECT */
    box-shadow:
        0 4px 0 #cbd5e1,
        0 8px 15px rgba(0, 0, 0, 0.08);

    transition: all 0.2s ease;
}

.paper-table td:last-child a:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 0 #cbd5e1,
        0 12px 20px rgba(0, 0, 0, 0.12);
}

.paper-table td:last-child a:active {
    transform: translateY(3px);
    box-shadow:
        0 2px 0 #cbd5e1,
        0 4px 8px rgba(0, 0, 0, 0.08);
}

/* CO-AUTHOR TEXT */
.paper-table small {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

/* NO DATA */
.no-data {
    text-align: center;
    padding: 20px;
    color: #64748b;
}

/* MESSAGE */
.form-message {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;

    background: #fef9c3;
    color: #92400e;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .published-paper-card {
        padding: 18px;
    }

    .paper-table {
        font-size: 13px;
    }

    .paper-table th,
    .paper-table td {
        padding: 10px;
    }
}

/********PROCEEDING.HTML ***********/
.proceeding-section{
    padding:60px 20px;
    background:#f8fafc;
}

.proceeding-section .container{
    max-width:1300px;
    margin:auto;
}

.proceeding-section h1{
    text-align:center;
    font-size:36px;
    color:#1e293b;
    margin-bottom:10px;
}

.proceeding-section p{
    text-align:center;
    color:#64748b;
    margin-bottom:25px;
}

.proceeding-actions{
    text-align:center;
    margin-bottom:25px;
}

.download-btn{
    display:inline-block;
    background:#2563eb;
    color:#fff;
    padding:12px 25px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.download-btn:hover{
    background:#1d4ed8;
}

.pdf-viewer{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.pdf-viewer iframe{
    width:100%;
    height:900px;
    border:none;
}

@media(max-width:768px){

    .proceeding-section h1{
        font-size:28px;
    }

    .pdf-viewer iframe{
        height:600px;
    }

}

.pdf-viewer{

    background:#f5f5f5;
    padding:20px;
    border-radius:10px;

}

#pdf-container{

    display:flex;
    flex-direction:column;
    gap:25px;

}

#pdf-container canvas{

    width:100%;
    height:auto;

    display:block;

    background:#fff;

    border-radius:8px;

    box-shadow:0 5px 15px rgba(0,0,0,.12);

}
/*=========================================
PDF VIEWER
=========================================*/

.pdf-viewer{
    position:relative;
    width:100%;
    min-height:750px;
    margin-top:25px;
    padding:20px;

    background:#ffffff;

    border-radius:12px;

    box-shadow:0 8px 25px rgba(0,0,0,.08);

    overflow:hidden;
}

/*=========================================
PDF CONTAINER
=========================================*/

#pdf-container{

    position:relative;
    z-index:1;

    display:flex;
    flex-direction:column;

    gap:25px;

}

#pdf-container canvas{

    display:block;

    width:100%;
    height:auto;

    background:#ffffff;

    border-radius:8px;

    border:1px solid #e5e7eb;

    box-shadow:0 4px 15px rgba(0,0,0,.08);

}

/*=========================================
LOADER
=========================================*/

#pdf-loader{
    position:absolute;
    inset:0;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#fff;
    z-index:9999;
}

/* Hide Loader */

#pdf-loader.hide{

    opacity:0;

    visibility:hidden;

    pointer-events:none;

}

/*=========================================
LOADER BOX
=========================================*/

.loader-box{

    width:350px;

    padding:35px;

    text-align:center;

    background:#ffffff;

    border-radius:12px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

/*=========================================
SPINNER
=========================================*/

.loader-spinner{

    width:70px;
    height:70px;

    margin:0 auto 20px;

    border-radius:50%;

    border:6px solid #e5e7eb;

    border-top-color:#2563eb;

    animation:spin .8s linear infinite;

}

/*=========================================
TEXT
=========================================*/

.loader-box h3{

    margin:0 0 10px;

    color:#1e293b;

    font-size:22px;

}

.loader-box p{

    margin-bottom:20px;

    color:#64748b;

    font-size:15px;

}

/*=========================================
PROGRESS BAR
=========================================*/

.progress-bar{

    width:100%;

    height:10px;

    background:#e5e7eb;

    border-radius:50px;

    overflow:hidden;

}

#progress-fill{

    width:0%;

    height:100%;

    background:linear-gradient(90deg,#2563eb,#4f8dfd);

    transition:width .25s ease;

}

/*=========================================
PERCENTAGE
=========================================*/

#progress-text{

    display:block;

    margin-top:12px;

    font-size:18px;

    font-weight:600;

    color:#2563eb;

}

/*=========================================
SPINNER ANIMATION
=========================================*/

@keyframes spin{

    from{

        transform:rotate(0deg);

    }

    to{

        transform:rotate(360deg);

    }

}

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

@media(max-width:768px){

    .pdf-viewer{

        min-height:500px;

        padding:10px;

    }

    .loader-box{

        width:90%;

        padding:25px;

    }

    .loader-spinner{

        width:55px;
        height:55px;

    }

    .loader-box h3{

        font-size:18px;

    }

}
.pdf-viewer{
    position:relative;
    min-height:700px;
}

#pdf-container{
    display:none;      /* Hide until complete PDF is rendered */
    opacity:0;
    transition:opacity .4s ease;
}

#pdf-container.show{
    display:block;
    opacity:1;
}