* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}


.filtros {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.form-filtros {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    align-items: end;
}

.grupo-filtro {
    display: flex;
    flex-direction: column;
}

.grupo-filtro label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    font-size: 14px;
}

.grupo-filtro input, .grupo-filtro select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.grupo-filtro input:focus, .grupo-filtro select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 5px rgba(102,126,234,0.3);
}

.btn-filtrar, .btn-limpar {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-filtrar {
    background: var(--primary-color);
    color: white;
}

.btn-filtrar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.btn-limpar {
    background: #6c757d;
    color: white;
}

.btn-limpar:hover {
    background: #5a6268;
}

.grid {
    padding: 25px;
}

.card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.card-titulo {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.card-descricao {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.card-data {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
}

.btn-arquivos {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-arquivos:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102,126,234,0.4);
}

.paginacao {
    padding: 20px 25px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagina-link {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s;
}

.pagina-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagina-ativa {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: var(--primary-color);
}

.info-pagina {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    animation: slideDown 0.3s;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--primary-color);;
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close:hover {
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
}

.lista-arquivos {
    list-style: none;
    padding: 0;
}

.lista-arquivos li {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    transition: 0.3s;
}

.lista-arquivos li:hover {
    background: #f8f9fa;
}

.arquivo-link {
    text-decoration: none;
    color: #667eea;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arquivo-link:hover {
    color: #764ba2;
}

.sem-arquivos {
    text-align: center;
    color: #999;
    padding: 40px;
}

@media (max-width: 768px) {
    .form-filtros {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}