/* ===== GLOBAL ===== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f7fb;
    color: #333;
}

/* ===== SECTION ===== */
.paper-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 15px;
}

/* ===== SEARCH CARD ===== */
.paper-card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.paper-card h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 20px;
}

/* ===== FORM ===== */
.form-group label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

#conferenceSelect ,#departmentSelect {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* ===== BUTTON ===== */
.search-btn {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #357abd, #2a5fa3);
}

/* ===== RESULT CARD ===== */
.result-section {
    width: 100%;
    max-width: 1100px;
    background: #fff;
    padding: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.4s ease;
}

.result-section h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* ===== TABLE WRAPPER (SCROLL FIX) ===== */
.table-wrapper {
    overflow-x: auto;
}

/* ===== TABLE ===== */
.paper-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
    /* 🔥 prevents breaking */
}

/* HEADER */
.paper-table thead {
    background: linear-gradient(135deg, #4a90e2, #357abd);
}

.paper-table th {
    color: white;
    padding: 14px;
    font-size: 14px;
    text-align: center;
}

/* BODY */
.paper-table td {
    padding: 12px;
    font-size: 13px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

/* ROW HOVER */
.paper-table tbody tr:hover {
    background: #f5f9ff;
}

/* TITLE */
.title-cell {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    font-weight: 500;
}

/* KEYWORDS FIX */
.paper-table td:nth-child(7) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== BUTTON ===== */
.view-btn {
    padding: 6px 12px;
    background: #4a90e2;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    transition: 0.3s;
}

.view-btn:hover {
    background: #2f6fc2;
    transform: scale(1.05);
}

/* ===== EMPTY ===== */
.no-data {
    text-align: center;
    color: red;
    padding: 20px;
}

/* ===== ANIMATION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .paper-card {
        padding: 20px;
        margin-top:10%;
    }

    .result-section {
        padding: 15px;
    }

    .paper-table {
        font-size: 12px;
    }

    .paper-table th,
    .paper-table td {
        padding: 8px;
    }
}

#conferenceSelect {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;

    /* 🔥 FIX OVERFLOW */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#conferenceSelect option {
    white-space: normal;   /* allows wrapping inside dropdown */
}
.table-wrapper {
    width: 100%;
    overflow-x: auto;   /* 🔥 horizontal scroll */
}
.paper-table {
    min-width: 900px;   /* ensures table doesn't shrink */
}
@media (max-width: 768px) {

    .paper-section {
        padding: 40px 10px;
    }

    .paper-card {
        max-width: 100%;
        padding: 18px;
    }

    .result-section {
        max-width: 100%;
        padding: 15px;
    }

    /* better scroll */
    .table-wrapper {
        border-radius: 10px;
    }
}

.form-message {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    background: #ffe5e5;
    color: #d8000c;
    border: 1px solid #ffb3b3;
}

#titleSearch {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
}