/* Color Scheme */
:root {
    --primary-blue: #1e88e5;
    --dark-blue: #1565c0;
    --light-bg: #f8f9fa;
    --sidebar-bg: #ffffff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #dee2e6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--light-bg);
}

/* Header */
.header-custom {
    background-color: var(--primary-blue);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-title {
    font-size: 1.5rem;
    font-weight: 500;
}

.logo-icon {
    font-size: 2rem;
}

.search-box {
    width: 250px;
    background-color: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.search-box::placeholder {
    color: rgba(255,255,255,0.7);
}

.github-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.github-link:hover {
    color: rgba(255,255,255,0.9);
}

/* Navigation */
.navbar-custom {
    background-color: var(--dark-blue);
    padding: 0;
}

.navbar-custom .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
}

.navbar-custom .nav-link:hover {
    color: white;
    background-color: rgba(0,0,0,0.1);
}

.navbar-custom .nav-link.active {
    color: white;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 3px solid white;
}

/* Sidebar */
.sidebar {
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.sidebar-title {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.sidebar-nav a:hover {
    color: var(--primary-blue);
}

/* Main Content */
.content-title {
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.authors-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--sidebar-bg);
    border-radius: 8px;
}

.authors {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.affiliations {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.author-notes {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0;
}

/* Action Cards */
.action-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s, transform 0.3s;
    height: 100%;
}

.action-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.action-card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.action-card .card-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.action-card .card-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.action-card .card-link:hover {
    color: var(--dark-blue);
}

/* Table of Contents (Right Sidebar) */
.toc {
    background-color: var(--sidebar-bg);
    padding: 1.5rem;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.toc-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.toc-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.5rem;
}

.toc-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.toc-nav a:hover {
    color: var(--primary-blue);
}

/* Content Sections */
section {
    margin-bottom: 3rem;
}

section h3 {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar,
    .toc {
        position: static;
        margin-bottom: 2rem;
    }
    
    .search-box {
        width: 150px;
    }
    
    .header-title {
        font-size: 1.2rem;
    }
}

