/* Escopo: apostila_efluentes.html */
body {
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #e0f7fa 0%, #e3f2fd 100%);
            margin: 0;
            padding: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            min-height: 100vh;
        }
        
        .quadro {
            background: linear-gradient(90deg, #e3f2fd 80%, #b2ebf2 100%);
            border-left: 7px solid #039be5;
            padding: 20px 36px 20px 28px;
            margin: 22px 0;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(33, 150, 243, 0.07);
            color: #17406a;
            width: 100%;
            box-sizing: border-box;
            overflow-x: visible;
        }

        .quadro pre {
            background: #e0eafc;
            margin: 12px 0 0 0;
            padding: 14px 18px;
            border-radius: 5px;
            font-size: 15px;
            overflow-x: visible;
            width: 100%;
            box-sizing: border-box;
            white-space: pre-wrap;
            word-break: break-word;
        }
        }

        @page {
            size: A4 landscape;
            margin: 1cm;
        }

        .page {
            background: rgba(255,255,255,0.98);
            width: 100%;
            max-width: 900px;
            min-height: 60vh;
            padding: 40px 32px 40px 32px;
            margin: 36px auto 28px auto;
            box-shadow: 0 4px 32px rgba(33, 150, 243, 0.10), 0 1.5px 0 #b3e5fc inset;
            border-radius: 18px;
            border: 1.5px solid #b3e5fc;
            overflow: visible;
            display: flex;
            flex-direction: column;
            box-sizing: border-box;
        }

        .img-center {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 32px 0 24px 0;
        }

        .img-center img {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 2px 12px rgba(25, 118, 210, 0.10);
        }

        /* Classes para diferentes tamanhos de imagem */
        .img-center img.img-small {
            max-width: 60%;
            max-height: 400px;
            object-fit: contain;
        }
        
        .img-center img.img-normal {
            max-width: 85%;
            max-height: 600px;
            object-fit: contain;
        }
        
        .img-center img.img-medium {
            max-width: 75%;
            max-height: 700px;
            object-fit: contain;
        }
        
        .img-center img.img-large {
            max-width: 70%;
            max-height: 800px;
            object-fit: contain;
        }
        
        .img-center img.img-very-large {
            max-width: 65%;
            max-height: 900px;
            object-fit: contain;
        }
        
        /* Ajustes para imagens muito largas (landscape) */
        .img-center img.img-wide {
            max-width: 90%;
            max-height: 500px;
        }
        
        /* Ajustes para imagens muito altas (portrait) */
        .img-center img.img-tall {
            max-width: 50%;
            max-height: 1000px;
        }
        
        /* Combinações específicas */
        .img-center img.img-large.img-wide {
            max-width: 85%;
            max-height: 600px;
        }
        
        .img-center img.img-large.img-tall {
            max-width: 55%;
            max-height: 900px;
        }
        
        .img-center img.img-medium.img-wide {
            max-width: 80%;
            max-height: 550px;
        }

        .img-caption {
            font-size: 15px;
            color: #2a3a4a;
            margin-top: 10px;
            text-align: center;
            max-width: 90%;
        }

        .cover {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }

        .cover h1 {
            font-size: 52px;
            color: #0277bd;
            margin-bottom: 20px;
            letter-spacing: 1.5px;
            text-shadow: 0 2px 8px #b3e5fc;
        }

        .cover h2 {
            font-size: 28px;
            color: #039be5;
            margin-bottom: 10px;
            letter-spacing: 1px;
        }

        h1, h2, h3, h4 {
            color: #0277bd;
            border-bottom: 1px solid #b3e5fc;
            padding-bottom: 10px;
            margin-top: 24px;
            font-weight: 700;
        }
        h1 { font-size: 30px; }
        h2 { font-size: 25px; }
        h3 { font-size: 21px; }
        h4 { font-size: 17px; }

        p, ul, li {
            line-height: 1.6;
            color: #333;
            font-size: 14px;
        }

        ul {
            padding-left: 20px;
        }
        
        li {
            margin-bottom: 8px;
        }

        pre {
            background-color: #f4f4f4;
            padding: 15px;
            border-radius: 5px;
            overflow-x: visible;
            white-space: pre-wrap;
            word-break: break-word;
        }

        code {
            font-family: Consolas, 'Courier New', monospace;
            background-color: #e0e0e0;
            padding: 2px 5px;
            border-radius: 3px;
        }

        pre code {
            background-color: transparent;
            padding: 0;
            border-radius: 0;
        }
        
        hr {
            border: 0;
            border-top: 1px solid #ddd;
            margin: 20px 0;
        }

        .toc {
            background: linear-gradient(135deg, #e3f2fd 0%, #b2ebf2 100%);
            border: 2px solid #039be5;
        }

        .toc ol {
            list-style-type: decimal;
            padding-left: 30px;
            margin: 20px 0;
        }

        .toc ol ul {
            list-style-type: disc;
            padding-left: 40px;
            margin-top: 8px;
            margin-bottom: 8px;
        }

        .toc li {
            margin: 10px 0;
            line-height: 1.6;
        }

        .toc a {
            text-decoration: none;
            color: #0277bd;
            font-weight: 500;
        }
        .toc a:hover {
            text-decoration: underline;
            color: #01579b;
        }
