/* Custom CSS for envdot documentation */

/* Improve code block appearance */
.highlight {
    background: #f8f8f8;
    border-radius: 4px;
}

div.highlight pre {
    padding: 12px;
    line-height: 1.5;
}

/* Style inline code */
code.literal {
    background-color: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Improve table styling */
table.docutils {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

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

table.docutils th {
    background-color: #f8f8f8;
    font-weight: bold;
}

/* Style admonitions */
.admonition {
    border-radius: 4px;
    margin: 1em 0;
}

.admonition-title {
    font-weight: bold;
}

/* Note admonition */
.admonition.note {
    background-color: #e7f2fa;
    border-left: 4px solid #6ab0de;
}

/* Warning admonition */
.admonition.warning {
    background-color: #fff3cd;
    border-left: 4px solid #f0ad4e;
}

/* Tip admonition */
.admonition.tip {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

/* Important admonition */
.admonition.important {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

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

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

/* Improve method/function signature styling */
.sig-name {
    font-weight: bold;
    color: #2980b9;
}

.sig-param {
    font-style: italic;
}

/* Style parameter lists */
dl.field-list > dt {
    font-weight: bold;
    margin-top: 0.5em;
}

dl.field-list > dd {
    margin-left: 1em;
    margin-bottom: 0.5em;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    .wy-nav-content {
        padding: 1em;
    }

    div.highlight pre {
        padding: 8px;
        font-size: 0.85em;
    }
}

/* Style the version badge */
.rst-versions {
    background-color: #272525;
}

/* Improve heading spacing */
h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* First heading on page shouldn't have top margin */
.section:first-child > h1:first-child {
    margin-top: 0;
}

/* Style the footer */
footer {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #e1e4e5;
}

/* Copy button styling */
.copybtn {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.highlight:hover .copybtn {
    opacity: 1;
}