/* Custom CSS for EverTag Documentation */

/* General improvements */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ensure proper navigation layout */
.wy-nav-side {
    width: 300px;
}

.wy-nav-content {
    margin-left: 300px;
    max-width: none;
    padding: 1rem 2rem;
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .wy-nav-side {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .wy-nav-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Improve table formatting */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

table th,
table td {
    border: 1px solid #ddd;
    padding: 8px 12px;
    text-align: left;
}

table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* Better code blocks */
.highlight {
    background-color: #f8f8f8;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Improve navigation */
.wy-menu-vertical header,
.wy-menu-vertical p.caption {
    color: #2980B9;
    font-weight: bold;
}

/* Better iframe integration */
.wy-nav-content {
    max-width: none;
    margin: 0;
    padding: 1rem;
}

/* Hide Sphinx branding for cleaner look */
.rst-versions {
    display: none;
}

/* Improve search */
.rst-content .highlighted {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Better responsive design for iframe */
@media (max-width: 480px) {
    .wy-nav-content {
        padding: 0.5rem;
    }

    .wy-menu-vertical {
        font-size: 14px;
    }
}