* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, serif;
    background: linear-gradient(135deg, #1B3C53 0%, #234C6A 100%);
    min-height: 100vh;
    margin: 0;
}

/* Title before navbar - white color */
body > h1:first-child {
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Navbar styling */
.navbar {
    background-color: #333;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar li {
    margin: 0;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: background-color 0.3s ease;
}

.navbar a:hover {
    background-color: #575757;
}

.navbar a.active {
    background-color: #456882;
}

/* Navbar profile link - removed picture styling */

/* Main content */
main {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    text-align: center;
    color: #1B3C53;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 600;
}

h2 {
    color: #234C6A;
    font-size: 24px;
    margin: 20px 0;
    font-weight: 600;
}

h3 {
    color: #456882;
    font-size: 20px;
    margin: 15px 0;
}

/* Home page specific styles */
.home {
    text-align: center;
}

p {
    line-height: 1.6;
    color: #333;
}

/* Profile page styles */
.profile-container {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    max-width: none;
    margin: 0;
    background: transparent;
    box-shadow: none;
}

.profile-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #456882;
    box-shadow: 0 4px 15px rgba(69, 104, 130, 0.3);
}

.profile-card p {
    margin: 15px 0;
    font-size: 16px;
}

.profile-card strong {
    color: #234C6A;
}

.profile-card a {
    color: #456882;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.profile-card a:hover {
    color: #1B3C53;
    text-decoration: underline;
}

/* Peer Review Network styles */
.container {
    position: relative;
    padding: 20px;
    transition: 0.5s;
    text-align: center;
}

.container.active {
    filter: blur(20px);
    pointer-events: none;
    user-select: none;
}

.container button {
    background: linear-gradient(135deg, #234C6A 0%, #456882 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 76, 106, 0.4);
}

.container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 76, 106, 0.6);
}

.container button:active {
    transform: translateY(0);
}

/* Popup styles */
.popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -40%);
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    width: 90%;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    border-radius: 20px;
    z-index: 1000;
}

.popup.active {
    top: 50%;
    visibility: visible;
    opacity: 1;
    transition: 0.5s;
}

.popup button {
    align-self: center;
    padding: 12px 30px;
    background: linear-gradient(135deg, #234C6A 0%, #456882 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 76, 106, 0.4);
}

.popup button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 76, 106, 0.6);
}

.popup button[type="button"] {
    background: #999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.popup button[type="button"]:hover {
    background: #777;
}

.spacing {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.spacing label {
    color: #333;
    font-weight: 500;
    text-align: left;
}

.spacing input,
.spacing textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    font-family: Georgia, serif;
}

.spacing input:focus,
.spacing textarea:focus {
    outline: none;
    border-color: #456882;
    background: white;
    box-shadow: 0 0 0 3px rgba(69, 104, 130, 0.1);
}

/* Popup view styles */
.popup-view {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
    width: 90%;
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background-color: white;
    border-radius: 20px;
    z-index: 1000;
}

.popup-view.active {
    top: 50%;
    visibility: visible;
    opacity: 1;
    transition: 0.5s;
}

.view-content {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    border: 2px solid #e0e0e0;
}

.view-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.view-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-buttons button:first-child {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.view-buttons button:first-child:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
}

.view-buttons button:last-child {
    background: #999;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.view-buttons button:last-child:hover {
    background: #777;
    transform: translateY(-2px);
}

/* Table styles */
#requestsList {
    margin-top: 30px;
    text-align: left;
}

#requestsTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#requestsTable th,
#requestsTable td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

#requestsTable th {
    background: linear-gradient(135deg, #234C6A 0%, #456882 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

#requestsTable tr {
    transition: background-color 0.2s ease;
}

#requestsTable tr:nth-child(even) {
    background-color: #f8f9fa;
}

#requestsTable tr:hover {
    background-color: rgba(69, 104, 130, 0.1);
}

#requestsTable td button {
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-btn {
    background-color: #2196F3;
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.view-btn:hover {
    background-color: #0b7dda;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.delete-btn {
    background-color: #ff4444;
    color: white;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.3);
}

.delete-btn:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

#requestsTable a {
    color: #456882;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#requestsTable a:hover {
    color: #234C6A;
    text-decoration: underline;
}

/* Recent Publications page styles */
#searchBar {
    width: 100%;
    max-width: 600px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    margin: 20px auto;
    display: block;
}

#searchBar:focus {
    outline: none;
    border-color: #456882;
    background: white;
    box-shadow: 0 0 0 3px rgba(69, 104, 130, 0.1);
}

#sortSelect {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

#sortSelect:focus {
    outline: none;
    border-color: #456882;
    background: white;
    box-shadow: 0 0 0 3px rgba(69, 104, 130, 0.1);
}

#arxiv-results {
    margin-top: 30px;
}

#loadMoreBtn {
    background: linear-gradient(135deg, #234C6A 0%, #456882 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(35, 76, 106, 0.4);
    margin: 20px auto;
    display: block;
}

#loadMoreBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 76, 106, 0.6);
}

/* Responsive design */
@media (max-width: 768px) {
    body > h1:first-child {
        font-size: 28px;
        padding: 15px 0;
    }
    
    main {
        margin: 20px;
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .navbar ul {
        flex-wrap: wrap;
    }
    
    .navbar li {
        flex: 1 0 auto;
    }
    
    .popup,
    .popup-view {
        width: 95%;
        padding: 25px;
    }
    
    #requestsTable {
        font-size: 14px;
    }
    
    #requestsTable th,
    #requestsTable td {
        padding: 10px;
    }
    
    .profile-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    body > h1:first-child {
        font-size: 24px;
    }
    
    .navbar a {
        padding: 12px 10px;
        font-size: 14px;
    }
    
    main {
        padding: 20px 15px;
    }
    
    .container button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
