/* Jupyter notebook styling */

/* Code cells (input) */
.highlight pre {
    background-color: #f7f7f9;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
}

/* Inline code */
code {
    background-color: #f7f7f9;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 90%;
}

/* Code blocks */
pre code {
    background-color: transparent;
    padding: 0;
}

/* Output cells styling */
.highlight {
    margin: 15px 0;
}

/* Add In/Out prompts styling */
.language-python::before {
    content: "In [" counter(code-cell) "]:";
    display: block;
    color: #303f9f;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: monospace;
}

/* Tables (often used for dataframe outputs) */
table {
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 14px;
}

table th {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

table td {
    border: 1px solid #ddd;
    padding: 8px;
}

table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Images (plots) */
img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    display: block;
}

/* Cell spacing */
.jupyter-cell {
    margin: 20px 0;
    padding: 10px;
}

/* Output text styling */
pre:not(.highlight pre) {
    background-color: #fff;
    border: 1px solid #e1e4e5;
    border-radius: 4px;
    padding: 12px;
    margin: 10px 0;
    overflow-x: auto;
}