/* Tablets */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light-color);
        box-shadow: var(--box-shadow);
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .content {
        padding: 1rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .tab-header {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: var(--primary-color);
        border-bottom: none;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    header {
        padding: 1.5rem 0;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.2rem;
    }
    
    pre {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    th, td {
        padding: 0.5rem;
    }
}

/* Impressão */
@media print {
    nav, .mobile-menu-btn, .btn {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }
    
    .container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .content {
        margin: 0;
        padding: 0;
        box-shadow: none;
        background: white;
    }
    
    pre {
        page-break-inside: avoid;
        background: #f8f8f8;
        color: black;
        border: 1px solid #ddd;
    }
}