/* General page styling */
body {
    font-family: Arial, Helvetica, sans-serif; /* Modern font */
    margin: 20px;
    background-color: #f9f9f9; /* Light background */
    color: #333; /* Dark text for readability */
}

h1 {
    text-align: center;
    color: #444;
}

/* Reset Button Styling */
form a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f44336; /* Red background */
    color: white; /* White text */
    text-decoration: none; /* Remove underline */
    border-radius: 4px; /* Rounded corners */
    text-align: center;
    font-size: 14px;
    font-weight: bold;
}

form a:hover {
    background-color: #d32f2f; /* Darker red on hover */
}


/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff; /* White background for the table */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    border-radius: 8px; /* Rounded corners */
    overflow: hidden; /* Ensure rounded corners apply */
}

th, td {
    padding: 12px 15px; /* Add padding for better readability */
    text-align: left;
    vertical-align: top; /* Align text to the top */
}

th {
    background-color: #007BFF; /* Blue header background */
    color: #fff; /* White text for header */
    font-weight: bold;
    text-transform: uppercase; /* Uppercase header text */
}

th a {
    color: inherit; /* Keep link color the same as the header */
    text-decoration: none; /* Remove underline */
}

th a:hover {
    text-decoration: underline; /* Add underline on hover */
}

tr:nth-child(even) {
    background-color: #f2f2f2; /* Light gray for even rows */
}

tr:hover {
    background-color: #e9f5ff; /* Light blue on hover */
}

td {
    border-bottom: 1px solid #ddd; /* Subtle border for rows */
}

/* Column widths */
th:nth-child(1), td:nth-child(1) {
    width: 40%; /* Author/Title */
}

th:nth-child(2), td:nth-child(2) {
    width: 5%; /* Year */
}

th:nth-child(3), td:nth-child(3) {
    width: 10%; /* Volume */
}

th:nth-child(4), td:nth-child(4) {
    width: 45%; /* Abstract */
}

/* Author/Title styling */
.author-title {
    font-weight: bold; /* Make authors bold */
    display: block; /* Ensure authors and title are on separate lines */
    margin-bottom: 5px; /* Add spacing between author and title */
}

.title-link {
    display: block;
    font-weight: normal;
    color: #007BFF;
    text-decoration: none;
}

.title-link:hover {
    text-decoration: underline;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 800px;
    max-height: 90%;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}