/* Shared styles for all whitepaper sections */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --bg-color: #ffffff;
    --code-bg: #f8f9fa;
    --border-color: #dee2e6;
    --rust-keyword: #d73a49;
    --rust-string: #032f62;
    --rust-comment: #6a737d;
    --rust-type: #005cc5;
    --rust-function: #6f42c1;
}

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

body {
    font-family: 'Roboto Condensed', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 3px solid var(--secondary-color);
}

.title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.3rem;
    font-style: bold;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.logo-container {
    text-align: center;
    margin: 0 0;
}

.logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.authors {
    font-size: 1rem;
    color: var(--text-color);
    margin-top: 0;
}

.section {
    margin-bottom: 2.5rem;
}

h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
}

h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin: 1rem 0 0.5rem 0;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

.abstract {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.abstract h1 {
    border: none;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

.code-block {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: 'Roboto Condensed', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
}

.rust-code {
    color: #24292e;
}

.rust-keyword {
    color: var(--rust-keyword);
    font-weight: bold;
}

.rust-string {
    color: var(--rust-string);
}

.rust-comment {
    color: var(--rust-comment);
    font-style: italic;
}

.rust-type {
    color: var(--rust-type);
    font-weight: bold;
}

.rust-function {
    color: var(--rust-function);
}

.rust-macro {
    color: var(--accent-color);
}

.highlight-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.problem-statement {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.solution-statement {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.research-questions {
    background: linear-gradient(135deg, #cce5ff 0%, #b3d9ff 100%);
    border: 1px solid #b3d9ff;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.contributions {
    background: linear-gradient(135deg, #e2e3ff 0%, #d1d3ff 100%);
    border: 1px solid #d1d3ff;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
}

.toc {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.toc ul {
    list-style-type: none;
    padding-left: 0;
}

.toc ul ul {
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.toc>ul>li {
    margin: 0.8rem 0;
    font-weight: bold;
}

.toc ul ul li {
    margin: 0.3rem 0;
    font-weight: normal;
    font-size: 0.9rem;
}

.toc a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
}

.theme-btn {
    position: absolute;
    top: 10px;
    right: 70px;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.8em;
}

.code-block.dark-theme {
    background-color: #292d3e;
    color: #a6accd;
    border-color: #444267;
}

.code-block.dark-theme .rust-code {
    color: #a6accd;
}

.code-block.dark-theme .rust-keyword {
    color: #c792ea;
}

.code-block.dark-theme .rust-string {
    color: #c3e88d;
}

.code-block.dark-theme .rust-comment {
    color: #676e95;
}

.code-block.dark-theme .rust-type {
    color: #ffcb6b;
}

.code-block.dark-theme .rust-function {
    color: #82aaff;
}

.code-block.dark-theme .rust-macro {
    color: #f78c6c;
}

code {
    background-color: var(--code-bg);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Roboto Condensed', 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.95em;
    font-weight: bold;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badges img {
    height: 28px;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

/* Ecosystem table styles */
.ecosystem-table {
    margin: 20px 0;
}

.ecosystem-table h4 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.ecosystem-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ecosystem-table th {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.ecosystem-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.ecosystem-table tr:last-child td {
    border-bottom: none;
}

.ecosystem-table tr:nth-child(even) {
    background: #f8f9fa;
}

.status-current {
    color: #27ae60;
    font-weight: bold;
}

.status-planned {
    color: #f39c12;
    font-weight: bold;
}

.ecosystem-table code {
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}
/* Conclusion section styles */
.achievement-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.metric-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.metric-item h4 {
    margin: 0 0 8px 0;
    color: var(--primary-color);
    font-size: 1.1em;
}

.metric-item p {
    margin: 0;
    font-size: 0.95em;
    color: #555;
}
/* Dedication styles */
.dedication {
    margin-top: 15px;
    text-align: center;
    font-size: 1.1em;
    color: #333;
    font-style: italic;
}
