/* Base Styles */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    transition: background-color 0.3s, color 0.3s;
}

.top-left-logo {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.blog-logo {
  height: 40px;
  width: auto;
  border-radius: 5px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-logo:hover {
  transform: scale(1.1);
}


.header, .paper, .nav, .search-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
}

/* Header Styles */
.header h1 {
    margin-bottom: 10px;
    font-size: 2.2em;
    color: #222;
}

.header p {
    margin: 8px 0;
    font-size: 1em;
}

/* Navigation Styles */
.nav {
    text-align: center;
    font-weight: bold;
}

.nav a {
    color: #0366d6;
    text-decoration: none;
    margin: 0 10px;
}

.nav a:hover {
    text-decoration: underline;
}

.nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Paper Styles */
.paper {
    transition: transform 0.2s;
}

.paper:hover {
    transform: translateY(-3px);
}

.paper-title {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.paper-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.paper-info p {
    font-size: 1em;
    color: #555;
    margin: 0;
}

.paper-link {
    font-size: 1em;
    color: #555;
    margin-bottom: 10px;
}

.paper-summary {
    font-size: 1em;
    color: #555;
    line-height: 1.5em;
    margin-bottom: 20px;
}

.paper-summary summary {
    font-weight: bold;
    cursor: pointer;
    color: #0366d6;
}

.summary-content {
    margin-top: 10px;
}

.paper-divider {
    border: 0;
    border-top: 1px solid #eee;
}

/* Link Styles */

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Footer Styles */

footer {
    text-align: center;
    font-size: 0.9em;
    color: #888;
    margin-top: 50px;
}

footer p {
    margin: 6px 0;
}

footer a {
    color: #0366d6;
}

/* Theme Toggle */

#theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 12px;
    background-color: #0366d6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
    z-index: 999;
}

#theme-toggle:hover {
    background-color: #024c9a;
}

/* Search Styles */

.search-container {
    display: flex;
    gap: 10px;
}

#search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

#search-button {
    padding: 10px 15px;
    background-color: #0366d6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#search-button:hover {
    background-color: #0056b3;
}

.search-results-info {
    background: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    font-weight: bold;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.pagination-button {
    padding: 8px 12px;
    background-color: #0366d6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95em;
}

.pagination-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-weight: bold;
    color: #333;
}

.notice {
    background-color: #fff8e1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 2em;
    font-weight: bold;
    color: #3871b1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#back-to-top {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    background-color: #0366d6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    font-size: 1.2em;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: background-color 0.3s, color 0.3s;
}

#back-to-top:hover {
    background-color: #024c9a;
}
