/* Custom styles for CellDISECT documentation */

/* Improve code block appearance */
div[class^='highlight'] pre {
    line-height: 1.5;
    padding: 12px 15px;
    border-radius: 6px;
    background-color: #f8f9fa;
}

/* Better heading hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Enhance link appearance */
a {
    color: #2980B9;
    text-decoration: none;
}

a:hover {
    color: #3091d1;
    text-decoration: underline;
}

/* Improve table styling */
table.docutils {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 1em 0;
}

table.docutils td, table.docutils th {
    padding: 8px 12px;
    border: 1px solid #e1e4e5;
}

/* Better admonition styling */
.admonition {
    padding: 12px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.admonition-title {
    margin: -12px -12px 12px;
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}

/* Improve navigation sidebar */
.wy-nav-side {
    background: #343131;
}

.wy-side-nav-search {
    background-color: #2980B9;
}

.wy-menu-vertical header, .wy-menu-vertical p.caption {
    color: #3091d1;
}

/* Better code copy button */
.copybutton {
    opacity: 0.3;
    transition: opacity 0.2s ease-in-out;
}

.copybutton:hover {
    opacity: 1;
}

/* Improve API documentation layout */
dl.py.method, dl.py.class, dl.py.function {
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
    background: #fff;
}

/* Better parameter list styling */
.field-list {
    border-left: 2px solid #2980B9;
    padding-left: 15px;
}

/* Improve search box appearance */
.wy-side-nav-search input[type="text"] {
    border-radius: 4px;
    padding: 8px 12px;
    border-color: #2472a4;
}

/* Tutorial Section Styles */
.tutorials-header {
    background-color: #f8f9fa;
    padding: 2em;
    margin-bottom: 2em;
    border-radius: 5px;
    border-left: 5px solid #2980B9;
}

.tutorials-intro {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    color: #444;
}

.tutorial-card {
    height: 100%;
    transition: transform 0.2s ease;
    margin-bottom: 1em;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 1.5em;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Tutorial Content Styles */
.rst-content .section h1,
.rst-content .section h2,
.rst-content .section h3,
.rst-content .section h4,
.rst-content .section h5,
.rst-content .section h6 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-weight: 600;
}

.rst-content .note {
    background-color: #f8f9fa;
    padding: 1em;
    margin: 1em 0;
    border-left: 4px solid #2980B9;
}

/* Code Block Styling */
.highlight {
    background: #f8f9fa;
    border-radius: 4px;
    margin: 1em 0;
}

.highlight pre {
    padding: 1em;
    font-size: 0.9em;
    line-height: 1.5;
}

/* Tutorial Navigation */
.tutorial-nav {
    display: flex;
    justify-content: space-between;
    margin: 2em 0;
    padding: 1em 0;
    border-top: 1px solid #eaecef;
    border-bottom: 1px solid #eaecef;
}

.tutorial-nav a {
    color: #2980B9;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.tutorial-nav a:hover {
    color: #3091d1;
}

/* Tutorial Progress Indicator */
.tutorial-progress {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 0.5em;
    border-bottom: 1px solid #eaecef;
    z-index: 100;
}

.progress-bar {
    height: 4px;
    background: #2980B9;
    width: var(--scroll-percentage, 0%);
    transition: width 0.2s;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .tutorials-header {
        padding: 1em;
    }
    
    .tutorial-card {
        margin-bottom: 1em;
    }
    
    .tutorial-nav {
        flex-direction: column;
        gap: 1em;
    }
} 